[go: up one dir, main page]

CN112306614A - Screen control method and device, electronic equipment, user equipment and readable medium - Google Patents

Screen control method and device, electronic equipment, user equipment and readable medium Download PDF

Info

Publication number
CN112306614A
CN112306614A CN202011224719.5A CN202011224719A CN112306614A CN 112306614 A CN112306614 A CN 112306614A CN 202011224719 A CN202011224719 A CN 202011224719A CN 112306614 A CN112306614 A CN 112306614A
Authority
CN
China
Prior art keywords
screen
user equipment
electronic device
relative position
equipment
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.)
Withdrawn
Application number
CN202011224719.5A
Other languages
Chinese (zh)
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 CN202011224719.5A priority Critical patent/CN112306614A/en
Publication of CN112306614A publication Critical patent/CN112306614A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a screen control method, a screen control device, electronic equipment, user equipment and a readable medium, and relates to the technical field of computers, wherein the method comprises the following steps: when the electronic equipment is connected with user equipment, acquiring and verifying equipment identification of the user equipment; if the equipment identification passes the verification, acquiring the relative position between the user equipment and the screen of the electronic equipment; and if the relative position is within the designated range, controlling the screen to be in an unlocking state. The screen is automatically unlocked when the user enters the appointed range under the control of the screen, and the screen is conveniently unlocked by the user.

Description

屏幕控制方法、装置、电子设备、用户设备及可读介质Screen control method, device, electronic device, user equipment and readable medium

技术领域technical field

本申请涉及计算机技术领域,更具体地,涉及一种屏幕控制方法、装置、电子设备、用户设备及可读介质。The present application relates to the field of computer technology, and more particularly, to a screen control method, apparatus, electronic device, user equipment, and readable medium.

背景技术Background technique

在一些公共服务和保密要求较高的行业,如银行、社保、保密单位等工作环境,要求员工离开座位时必须锁定电脑的屏幕,但是,目前在电脑锁屏后,解锁方式设置不够合理。In some industries with high requirements for public services and confidentiality, such as banking, social security, confidential units and other working environments, employees are required to lock the computer screen when they leave their seats. However, after the computer screen is locked, the unlocking method is not reasonable enough.

发明内容SUMMARY OF THE INVENTION

本申请提出了一种屏幕控制方法、装置、电子设备、用户设备及可读介质,以改善上述缺陷。The present application proposes a screen control method, apparatus, electronic device, user equipment, and readable medium to improve the above-mentioned defects.

第一方面,本申请实施例提供了一种屏幕控制方法,用于可与用户设备建立连接的电子设备,所述方法包括:当所述电子设备连接用户设备时,获取并验证所述用户设备的设备标识;若所述设备标识验证通过,获取所述电子设备的屏幕与所述用户设备之间的相对位置;若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。In a first aspect, an embodiment of the present application provides a screen control method for an electronic device that can establish a connection with a user equipment, the method includes: when the electronic device is connected to the user equipment, acquiring and verifying the user equipment If the verification of the device identification is passed, obtain the relative position between the screen of the electronic device and the user equipment; if the relative position is within a specified range, control the screen to be in an unlocked state.

第二方面,本申请实施例提供了一种屏幕控制方法,用于可与电子设备建立连接的用户设备,所述方法包括:当所述用户设备连接所述电子设备且所述用户设备的设备标识被所述电子设备验证通过时,获取所述用户设备与所述电子设备的屏幕之间的相对位置;若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。In a second aspect, an embodiment of the present application provides a screen control method for a user equipment that can establish a connection with an electronic device, the method comprising: when the user equipment is connected to the electronic device and the device of the user equipment When the identification is verified by the electronic device, the relative position between the user equipment and the screen of the electronic device is obtained; if the relative position is within a specified range, the screen is controlled to be in an unlocked state.

第三方面,本申请实施例还提供了一种屏幕控制装置,用于可与用户设备建立连接的电子设备,所述装置包括:第一验证单元、第一确定单元和第一解锁单元。第一验证单元,用于当所述电子设备连接有用户设备时,获取并验证所述用户设备的设备标识。第一确定单元,用于若所述设备标识验证通过,获取所述电子设备的屏幕与所述用户设备之间的相对位置。第一解锁单元,用于若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。In a third aspect, an embodiment of the present application further provides a screen control apparatus for an electronic device that can establish a connection with a user equipment, the apparatus includes: a first verification unit, a first determination unit, and a first unlocking unit. The first verification unit is configured to acquire and verify the device identification of the user equipment when the electronic device is connected with the user equipment. The first determining unit is configured to acquire the relative position between the screen of the electronic device and the user equipment if the device identification is verified successfully. A first unlocking unit, configured to control the screen to be in an unlocked state if the relative position is within a specified range.

第四方面,本申请实施例还提供了一种屏幕控制装置,用于可与电子设备建立连接的用户设备,所述装置包括:第二验证单元和第二解锁单元。第二验证单元,用于当所述用户设备连接所述电子设备且所述用户设备的设备标识被所述电子设备验证通过时,获取所述用户设备与所述电子设备的屏幕之间的相对位置。第二解锁单元,用于若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。In a fourth aspect, an embodiment of the present application further provides a screen control device for a user equipment that can establish a connection with an electronic device, the device comprising: a second verification unit and a second unlocking unit. a second verification unit, configured to acquire the relative relationship between the user equipment and the screen of the electronic device when the user equipment is connected to the electronic device and the device identification of the user equipment is verified by the electronic device Location. The second unlocking unit is configured to control the screen to be in an unlocked state if the relative position is within a specified range.

第五方面,本申请实施例还提供了一种电子设备,包括:一个或多个第一处理器;存储器;屏幕;其中,所述第一处理器用于执行所述存储器中存储的计算机程序,以执行上述方法。In a fifth aspect, an embodiment of the present application further provides an electronic device, including: one or more first processors; a memory; a screen; wherein the first processor is configured to execute a computer program stored in the memory, to perform the above method.

第六方面,本申请实施例还提供了一种电子设备,包括:第一处理器、屏幕和第一测量天线;所述第一测量天线用于获取所述电子设备的屏幕与用户设备之间的相对位置;所述第一处理器用于当所述电子设备连接所述用户设备时,获取并验证所述用户设备的设备标识,若所述设备标识验证通过且所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。In a sixth aspect, an embodiment of the present application further provides an electronic device, including: a first processor, a screen, and a first measurement antenna; the first measurement antenna is used to obtain the distance between the screen of the electronic device and the user equipment the relative position of the user equipment; the first processor is configured to acquire and verify the device identification of the user equipment when the electronic device is connected to the user equipment, if the device identification is verified and the relative position is within a specified range to control the screen to be unlocked.

第七方面,本申请实施例还提供了一种用户设备,包括:一个或多个第二处理器;第二存储器;其中,所述第二处理器用于执行所述第二存储器中存储的计算机程序,以执行上述方法。In a seventh aspect, an embodiment of the present application further provides a user equipment, including: one or more second processors; a second memory; wherein the second processor is configured to execute a computer stored in the second memory program to perform the above method.

第八方面,本申请实施例还提供了一种用户设备,包括:第二处理器和第二测量天线;所述第二测量天线用于获取所述用户设备与电子设备的屏幕之间的相对位置;所述第二处理器用于当所述用户设备连接所述电子设备且所述用户设备的设备标识被所述电子设备验证通过时,若述相对位置位于指定范围内,控制所述屏幕处于解锁状态。In an eighth aspect, an embodiment of the present application further provides a user equipment, including: a second processor and a second measurement antenna; the second measurement antenna is used to obtain a relative relationship between the user equipment and a screen of an electronic device position; the second processor is configured to control the screen to be in the specified range if the relative position is within a specified range when the user equipment is connected to the electronic device and the device identification of the user equipment is verified by the electronic device unlocked state.

第九方面,本申请实施例还提供了一种计算机可读介质,所述可读存储介质存储有处理器可执行的程序代码,所述程序代码被所述处理器执行时使所述处理器执行上述方法。In a ninth aspect, an embodiment of the present application further provides a computer-readable medium, where the readable storage medium stores program code executable by a processor, and when the program code is executed by the processor, the processor Perform the above method.

本申请提供的屏幕控制方法、装置、电子设备、用户设备及可读介质,当所述电子设备连接有用户设备时,获取所述用户设备的设备标识,并且验证所述用户设备的设备标识。如果验证通过,则获取所述用户设备与所述电子设备的屏幕之间的相对位置。如果该相对位置位于指定范围内,控制屏幕解锁,如果设备标识验证未通过,则控制屏幕锁屏,或者,如果相对位置未位于指定范围内,则控制屏幕锁屏。因此,本申请对屏幕的控制,能够使得用户在进入该指定范围内的时候自动将屏幕解锁,方便用户解锁屏幕,使得屏幕解锁方式更加合理。In the screen control method, device, electronic device, user equipment and readable medium provided by the present application, when the electronic device is connected with the user equipment, the device identification of the user equipment is obtained, and the device identification of the user equipment is verified. If the verification is passed, the relative position between the user equipment and the screen of the electronic equipment is acquired. If the relative position is within the specified range, control the screen to unlock, if the device ID verification fails, control the screen to lock, or if the relative position is not within the specified range, control the screen to lock. Therefore, the control of the screen in the present application enables the user to automatically unlock the screen when entering the specified range, which is convenient for the user to unlock the screen and makes the screen unlocking method more reasonable.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了到达角度定位方法的原理示意图;Fig. 1 shows the principle schematic diagram of the angle of arrival positioning method;

图2示出了到达角度定位方法获取相对角度的示意图;Fig. 2 shows the schematic diagram that the angle-of-arrival positioning method obtains the relative angle;

图3示出了本申请一实施例提供的屏幕控制方法的方法流程图;FIG. 3 shows a method flowchart of a screen control method provided by an embodiment of the present application;

图4示出了本申请另一实施例提供的屏幕控制方法的方法流程图;FIG. 4 shows a method flowchart of a screen control method provided by another embodiment of the present application;

图5示出了本申请又一实施例提供的屏幕控制方法的方法流程图;FIG. 5 shows a method flowchart of a screen control method provided by another embodiment of the present application;

图6示出了本申请实施例提供的相对角度范围的示意图;FIG. 6 shows a schematic diagram of a relative angle range provided by an embodiment of the present application;

图7示出了本申请再一实施例提供的屏幕控制方法的方法流程图;FIG. 7 shows a method flowchart of a screen control method provided by still another embodiment of the present application;

图8示出了本申请一实施例提供的屏幕控制装置的模块框图;FIG. 8 shows a module block diagram of a screen control device provided by an embodiment of the present application;

图9示出了本申请另一实施例提供的屏幕控制装置的模块框图;FIG. 9 shows a module block diagram of a screen control apparatus provided by another embodiment of the present application;

图10示出了本申请一实施例提供的电子设备的结构框图;FIG. 10 shows a structural block diagram of an electronic device provided by an embodiment of the present application;

图11示出了本申请另一实施例提供的电子设备的结构框图;11 shows a structural block diagram of an electronic device provided by another embodiment of the present application;

图12示出了本申请实施例提供的UWB模块的结构框图;FIG. 12 shows a structural block diagram of a UWB module provided by an embodiment of the present application;

图13示出了本申请实施例提供的安全单元的结构框图;FIG. 13 shows a structural block diagram of a security unit provided by an embodiment of the present application;

图14示出了本申请另一实施例提供的智能设备的结构框图;FIG. 14 shows a structural block diagram of a smart device provided by another embodiment of the present application;

图15示出了本申请又一实施例提供的智能设备的结构框图;FIG. 15 shows a structural block diagram of a smart device provided by another embodiment of the present application;

图16示出了本申请一实施例提供的用户设备的结构框图;FIG. 16 shows a structural block diagram of a user equipment provided by an embodiment of the present application;

图17是本申请实施例的用于保存或者携带实现根据本申请实施例的屏幕控制方法的程序代码的存储单元。FIG. 17 is a storage unit for storing or carrying a program code for implementing the screen control method according to the embodiment of the present application according to the embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

在一些公共服务和保密要求较高的行业,如银行、社保、保密单位等工作环境,要求员工离开座位时必须锁定屏幕,但在实际工作生活中总有人忘记敲击键盘快捷键(WIN+L)锁定屏幕,因此很容易造成电脑数据被盗、被破坏,从而导致个人或公司的隐私和机密泄露。另外,返回工位后需要输入复杂的密码才能解锁屏幕,增加了操作的复杂性,降低了工作效率。In some industries with high requirements for public services and confidentiality, such as banking, social security, confidential units and other working environments, employees are required to lock the screen when they leave their seats, but in actual work life there are always people who forget to hit the keyboard shortcut (WIN+L ) to lock the screen, so it is easy to cause computer data to be stolen and destroyed, resulting in the disclosure of personal or company privacy and confidentiality. In addition, it is necessary to enter a complex password to unlock the screen after returning to the workstation, which increases the complexity of the operation and reduces the work efficiency.

目前有一些自动锁屏和解锁的技术,能够在电脑前无用户的时候自动将屏幕锁屏。例如,一种屏幕的自动锁屏和解锁技术为在办公座椅上安装身份识别器,以实现电脑自动锁屏解锁的方法和装置,例如,在办公室座椅上安装体重检测器,当检测到座椅上的物体的体重小于某个阈值的时候,可以认为用户离开了座位,则将电脑的屏幕锁屏,当检测到座椅上的物体的体重大于某个阈值的时候,可以认为用户在电脑前,则将电脑的屏幕解锁。再例如,一种屏幕的自动锁屏和解锁技术为在电脑上安装接近感应模块,检测人员离开和靠近实现电脑屏幕锁定和解锁。又例如,一种屏幕的自动锁屏和解锁技术为通过电脑端连接NFC读卡器,获取NFC终端ID和终端唯一识别号信息,匹配成功后实现屏幕解锁和锁屏。At present, there are some automatic screen lock and unlock technologies that can automatically lock the screen when there is no user in front of the computer. For example, an automatic screen locking and unlocking technology is to install an identification device on an office seat to realize the method and device for automatically locking and unlocking a computer. For example, a weight detector is installed on the office seat. When the weight of the object on the seat is less than a certain threshold, it can be considered that the user has left the seat, and the screen of the computer is locked. When the weight of the object on the seat is detected to be greater than a certain threshold, it can be considered that the user is in the In front of the computer, unlock the computer's screen. For another example, an automatic screen locking and unlocking technology is to install a proximity sensing module on a computer to detect when a person leaves and approaches to lock and unlock the computer screen. For another example, an automatic screen locking and unlocking technology is to connect an NFC card reader through a computer to obtain the NFC terminal ID and terminal unique identification number information, and to realize screen unlocking and screen locking after successful matching.

发明人在研究中发现,目前的自动锁屏和解锁的技术,因为一些缺陷的存在而导致解锁或锁定屏幕的方式不够完善。具体地,通过在座椅上设置体重检测器自动锁屏和解锁的方式,判断误差性较大,灵敏度和安全性较低,相同体重的人员很容易解锁电脑屏幕,同时该专利必须配套特定的座椅使用才可以,如果临时座椅更换则无法解除/锁定屏幕,不仅没有提升用户体验,反而影响了正常功能。通过接近感应模块自动锁屏和解锁的方式,无法识别人员身份,任何人员的靠近和离开都会进行锁屏和解锁操作,该方式只能解决频繁解除/锁定屏幕的繁琐步骤,但没有任何安全性,容易造成电脑关键信息泄露。通过电脑端连接NFC读卡器自动锁屏和解锁的方式,需要用户使用NFC终端近距离操作才可以实现功能,类似于原有的快捷按键功能,本质上并没有解决用户离开时忘记锁屏操作的痛点问题。The inventor found in the research that the current automatic screen locking and unlocking technology is not perfect due to the existence of some defects. Specifically, by setting the weight detector on the seat to automatically lock and unlock the screen, the judgment error is large, and the sensitivity and security are low. It is easy for people of the same weight to unlock the computer screen. At the same time, the patent must be matched with a specific The seat can only be used. If the temporary seat is replaced, the screen cannot be unlocked/locked, which not only does not improve the user experience, but affects the normal function. Through the automatic locking and unlocking method of the proximity sensor module, the identity of the person cannot be identified, and the screen lock and unlock operation will be performed when any person approaches or leaves. This method can only solve the tedious steps of frequently unlocking/locking the screen, but without any security , it is easy to cause the leakage of key computer information. The method of automatically locking and unlocking the screen by connecting the NFC card reader to the computer requires the user to use the NFC terminal to operate at close range to realize the function. Similar to the original shortcut button function, it does not essentially solve the problem that the user forgets to lock the screen when he leaves. pain points.

因此,为了改善上述缺陷,本申请实施例提供了一种屏幕控制方法和装置,以实现用户在电子设备的一定区域内的时候,电子设备自动解锁屏幕以及在用户离开的时候,电子设备自动解锁。Therefore, in order to improve the above-mentioned defects, the embodiments of the present application provide a screen control method and device, so that when a user is in a certain area of an electronic device, the electronic device automatically unlocks the screen and when the user leaves, the electronic device automatically unlocks .

在介绍本申请实施例之前,先对本申请实施例中涉及到的技术名词作说明。Before introducing the embodiments of the present application, the technical terms involved in the embodiments of the present application are described first.

超宽带无线通信技术(UWB),是一种无载波通信技术,UWB不使用载波,而是使用短(纳秒级)的能量脉冲序列,并通过正交频分调制或直接排序将脉冲扩展到一个频率范围内,因此其所占的频谱范围很大。UWB的主要特点是传输速率高、空间容量大、成本低、功耗低等,必将成为解决企业、家庭、公共场所等高速因特网接入的需求与越来越拥挤的频率资源分配之间的矛盾的技术手段。UWB可用于对物体的定位,UWB定位的主要优势有,低功耗、对信道衰落(如多径、非视距等信道)不敏感、抗干扰能力强、不会对同一环境下的其他设备产生干扰、穿透性较强(能在穿透一堵砖墙的环境进行定位),具有很高的定位准确度和定位精度。UWB定位是一种实时定位技术,可以不停的上报当前的位置数据,实时性非常强。再者,UWB定位具有超高精度,定位误差小于10cm。Ultra-wideband wireless communication technology (UWB), is a carrier-free communication technology, UWB does not use a carrier, but uses a short (nanosecond) energy pulse sequence, and the pulse is extended by orthogonal frequency division modulation or direct sequencing to A frequency range, so it occupies a large spectrum range. The main features of UWB are high transmission rate, large space capacity, low cost, and low power consumption. Contradictory technical means. UWB can be used to locate objects. The main advantages of UWB positioning are: low power consumption, insensitivity to channel fading (such as multipath, non-line-of-sight channels, etc.) It produces interference, has strong penetration (can locate in an environment that penetrates a brick wall), and has high positioning accuracy and positioning accuracy. UWB positioning is a real-time positioning technology, which can continuously report the current position data, which is very real-time. Furthermore, UWB positioning has ultra-high precision, and the positioning error is less than 10cm.

飞行时间(Time of flight,TOF)测距方法,通过测量UWB信号在两个设备之间往返的飞行时间来计算距离。与蓝牙和WIFI定位方法不同,通过UWB获取的位置信息并不是基于信号强度(RSSI)进行计算,而是通过精确无线信号的发送时刻、接收时刻,并通过算法计算的。具体地,根据数学关系,一点到已知点的距离为常数,那么这点一定在以已知点为圆心,以该常数为半径的圆上。假设需要测量两个设备之间的距离,该两个设备分别为第一设备和第二设备。第一设备首先向第二设备发送测距请求,第二设备收到测距请求进行处理,经过一小段时间处理后向第一设备回复确认信息,分别记录UWB信号发送和接收的时间间隔,例如,将第一设备发出信号和接收回应的时间间隔记为TTOT,第二设备收到数据包和发出回应的时间间隔记为TTAT。那么信号在空中的单向飞行时间TTOF可以计算为:TTOF=(TTOF-TTAT)/2。The time of flight (TOF) ranging method calculates the distance by measuring the flight time of the UWB signal to and from the two devices. Different from the Bluetooth and WIFI positioning methods, the location information obtained by UWB is not calculated based on the signal strength (RSSI), but is calculated by the precise wireless signal transmission time, reception time, and algorithm. Specifically, according to the mathematical relationship, the distance from a point to a known point is a constant, then this point must be on a circle with the known point as the center and the constant as the radius. It is assumed that the distance between two devices needs to be measured, and the two devices are the first device and the second device respectively. The first device first sends a ranging request to the second device, and the second device receives the ranging request for processing, and returns confirmation information to the first device after processing for a short period of time, and records the time interval between UWB signal transmission and reception, for example , the time interval between the first device sending a signal and receiving the response is recorded as T TOT , and the time interval between the second device receiving the data packet and sending the response is recorded as T TAT . Then the one-way flight time T TOF of the signal in the air can be calculated as: T TOF =(T TOF -T TAT )/2.

到达角度(Angle of Arrival,AOA)定位,一般是基于相位差的方式计算出到达角度,如图1所示,一个发射机B配合两个接收机A,通过两个接收机的信号到达角即可在二维平面中确定发射机的相对位置,首先单看一个接收机,发射机持续发送广播信号,接收机的天线阵列接收到的波形肯定是不同步的,其相位差φ是我们可以通过数学运算得到的参数,另外两个接收天线之间的距离d是已知的。通过数学计算可以由相位差φ和天线距离d计算出图1中的发射机和两个接收机所在平面之间的相对角度。如图2所示,A为两个接收机,B为发射机,两个接收机A所在的平面与发射机B之间的夹角为θ,具体地,θ可以是两个接收机之间的中间位置与发射机B之间的夹角,D为两个接收机之间的中间位置与发射机B之间的距离。θ1是其中一个接收机A与发射机B之间的夹角,θ2是另一个接收机A与发射机B之间的夹角。Angle of Arrival (AOA) positioning is generally based on the phase difference to calculate the angle of arrival. As shown in Figure 1, a transmitter B cooperates with two receivers A, and the signal arrival angle through the two receivers is The relative position of the transmitter can be determined in a two-dimensional plane. First, look at a receiver. The transmitter continues to send broadcast signals. The waveform received by the receiver's antenna array must be out of sync. The parameter obtained by the mathematical operation, the distance d between the other two receiving antennas is known. Through mathematical calculation, the relative angle between the planes where the transmitter and the two receivers are located in Fig. 1 can be calculated from the phase difference φ and the antenna distance d. As shown in Figure 2, A is two receivers, B is a transmitter, and the included angle between the plane where the two receivers A are located and the transmitter B is θ, specifically, θ can be the distance between the two receivers The angle between the middle position of and transmitter B, D is the distance between the middle position between the two receivers and transmitter B. θ 1 is the angle between one receiver A and transmitter B, and θ 2 is the angle between the other receiver A and transmitter B.

θ的计算方法如下:The calculation method of θ is as follows:

Figure BDA0002763267220000051
Figure BDA0002763267220000051

其中,

Figure BDA0002763267220000052
为上述相位差,d为两个接收机A之间的距离。in,
Figure BDA0002763267220000052
is the above-mentioned phase difference, and d is the distance between the two receivers A.

请参阅图3,图3示出了本申请实施例提供的一种屏幕控制方法,该屏幕控制方法应用于智能设备,该智能设备可以是电子设备,也可以是用户设备,该电子设备和用户设备可以连接,则该方法的执行主体可以是该电子设备,也可以是用户设备。具体地,该电子设备可以是计算机、智能手机、平板电脑、电子书等设备,该用户设备可以是用户终端和穿戴设备。具体地,如图3所示,该方法包括:S301至S304。Please refer to FIG. 3. FIG. 3 shows a screen control method provided by an embodiment of the present application. The screen control method is applied to a smart device. The smart device may be an electronic device or a user device. The electronic device and the user If the device can be connected, the execution body of the method can be the electronic device or the user equipment. Specifically, the electronic device may be a computer, a smart phone, a tablet computer, an electronic book, etc., and the user equipment may be a user terminal and a wearable device. Specifically, as shown in FIG. 3 , the method includes: S301 to S304.

S301:当所述电子设备连接用户设备时,获取并验证所述用户设备的设备标识。S301: When the electronic device is connected to a user equipment, acquire and verify a device identity of the user equipment.

其中,该用户设备可以是目标用户终端和目标穿戴设备的至少一种。作为一种实施方式,用户设备具有较高的随身携带性,该随身携带性用于表征该用户设备被用户随身携带的可能性,即随身携带性越高,用户设备被用户随身携带的可能性越高。于本申请实施中,所述用户设备可以用户所使用的多个电子装置中随身携带性高于指定阈值的设备。The user equipment may be at least one of a target user terminal and a target wearable device. As an embodiment, the user equipment has high portability, and the portability is used to represent the possibility that the user equipment is carried by the user, that is, the higher the portability, the more likely the user equipment is carried by the user. higher. In the implementation of the present application, the user equipment may be a device whose portability is higher than a specified threshold among multiple electronic devices used by the user.

作为一种实施方式,可以通过数据分析的方式确定用户所使用的电子装置的随身携带性,例如,获取用户所使用的各个电子装置的使用数据,该使用数据包括一天内电子装置的使用时长,根据该使用时长确定随身携带性,例如,获取该使用时长与24小时的比值,根据该比值确定随身携带性,例如,将该比值作为随身携带性,因此,每天的使用时长越长,随身携带性越高。作为一种实施方式,可以统计预设时间长度内,所获取的每个电子装置的每天的使用时长,根据每个电子装置的多个使用时长确定每个电子装置的目标使用时长,根据目标使用时长与24小时的比值,确定随身携带性。其中,可以将每个电子装置的多个使用时长的平均值作为该电子装置的目标使用时长。As an implementation manner, the portability of the electronic device used by the user can be determined by means of data analysis, for example, the usage data of each electronic device used by the user is obtained, and the usage data includes the usage time of the electronic device in a day, Determine the portability according to the usage time, for example, obtain the ratio of the usage time to 24 hours, and determine the portability according to the ratio, for example, use the ratio as the portability. higher sex. As an implementation manner, the obtained daily usage time of each electronic device within a preset time length can be counted, and the target usage duration of each electronic device can be determined according to the multiple usage durations of each electronic device, and the target usage duration can be determined according to the target usage duration. The ratio of duration to 24 hours determines portability. Wherein, the average value of multiple usage durations of each electronic device may be used as the target usage duration of the electronic device.

其中,若电子装置为用户终端,则该电子装置的使用时间可以是用户操作该终端的时间长度,具体地,该时间长度可以包括终端亮屏的时间长度、接收到触发操作的时间长度和被握持的时长长度的至少一个,若电子装置为穿戴设备,该电子装置的使用时间为穿戴设备的穿戴时间长度。Wherein, if the electronic device is a user terminal, the usage time of the electronic device may be the length of time during which the user operates the terminal. At least one of the holding time length, if the electronic device is a wearable device, the use time of the electronic device is the wear time length of the wearable device.

因此,可以记录用户曾使用过的多个电子装置,由多个电子装置中确定随身携带性最高的电子装置,作为上述用户设备。Therefore, a plurality of electronic devices that the user has used can be recorded, and the electronic device with the highest portability among the plurality of electronic devices can be determined as the above-mentioned user equipment.

需要说明的是,若用户设备是目标用户终端,可以将用户所使用的多个用户终端中随身携带性最高的终端作为目标用户终端,若用户设备是目标穿戴设备,可以将用户所使用的多个穿戴设备中随身携带性最高的穿戴设备作为目标穿戴设备,若用户设备是用户终端和穿戴设备,可以将用户所使用的多个用户终端中随身携带性最高的终端作为目标用户终端,以及将用户所使用的多个穿戴设备中随身携带性最高的穿戴设备作为目标穿戴设备。It should be noted that, if the user equipment is the target user terminal, the terminal with the highest portability among the multiple user terminals used by the user can be used as the target user terminal. The wearable device with the highest portability among the wearable devices is used as the target wearable device. If the user equipment is a user terminal and a wearable device, the terminal with the highest portability among the multiple user terminals used by the user can be used as the target user terminal, and the The wearable device with the highest portability among the multiple wearable devices used by the user is used as the target wearable device.

作为一种实施方式,该用户设备的设备标识可以用于标识用户设备的身份唯一性,于本申请实施例中,设备标识可以是用户设备的MAC地址、处理器型号标识等。当所述电子设备在与用户设备之间完成通信连接的时候,电子设备发送获取请求至用户设备,用户设备接收获取请求,基于该获取请求将用户设备的设备标识发送至电子设备,电子设备执行设备标识的验证操作。As an implementation manner, the device identifier of the user equipment may be used to identify the uniqueness of the identity of the user equipment. In this embodiment of the present application, the device identifier may be the MAC address of the user equipment, the processor model identifier, and the like. When the electronic device completes the communication connection with the user equipment, the electronic device sends an acquisition request to the user equipment, the user equipment receives the acquisition request, sends the device identification of the user equipment to the electronic device based on the acquisition request, and the electronic device executes the Validation operation for device identity.

作为一种实施方式,验证操作可以是验证设备标识的合法性或者验证设备标识是否为已授权用户的用户设备的设备标识,如果设备标识验证通过,表明电子设备当前连接的用户设备为电子设备的使用者的用户设备,即电子设备的机主的设备,具体的实施方式请参考后续实施例。As an implementation manner, the verification operation may be to verify the legitimacy of the device identification or to verify whether the device identification is the device identification of the user equipment of an authorized user. The user equipment of the user, that is, the equipment of the owner of the electronic equipment, please refer to the following embodiments for the specific implementation.

S302:若所述设备标识验证通过,获取所述电子设备的屏幕与所述用户设备之间的相对位置。S302: If the verification of the device identification is passed, obtain the relative position between the screen of the electronic device and the user equipment.

其中,相对位置可以包括用户设备与所述电子设备的屏幕之间的相对距离,还可以是相对距离以及其他的参数,其中,该其他的参数可以包括相对方位角度。Wherein, the relative position may include the relative distance between the user equipment and the screen of the electronic device, and may also be the relative distance and other parameters, wherein the other parameters may include the relative azimuth angle.

S303:若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。S303: If the relative position is within a specified range, control the screen to be in an unlocked state.

其中,指定范围为预先设置的一个安全区域,用于判定用户是否位于电子设备的使用范围内。如果判定用户设备与电子设备的屏幕之间的相对位置位于指定范围内,则可以判定用户设备位于安全区域内,可以进一步确定电子设备的使用者坐在电子设备的屏幕之前,即有使用电子设备的需求,则可以控制屏幕处于解锁状态。具体地,该指定范围可以是指定距离,也可以是指定距离和指定角度区域。在一些实施例中,若该方法的执行主体是用户设备,则控制所述屏幕处于解锁状态的实施方式可以是,用户设备发送解锁指令至电子设备,电子设备根据解锁指令控制屏幕处于解锁状态。Wherein, the specified range is a preset security area, which is used to determine whether the user is within the usage range of the electronic device. If it is determined that the relative position between the user equipment and the screen of the electronic device is within the specified range, it can be determined that the user equipment is located in the safe area, and it can be further determined that the user of the electronic device is sitting in front of the screen of the electronic device, that is, the user is using the electronic device. requirements, you can control the screen to be unlocked. Specifically, the specified range may be a specified distance, or may be a specified distance and a specified angle area. In some embodiments, if the execution body of the method is the user equipment, the implementation of controlling the screen to be in the unlocked state may be that the user equipment sends an unlocking instruction to the electronic device, and the electronic device controls the screen to be in the unlocked state according to the unlocking instruction.

作为一种实施方式,控制屏幕处于解锁状态的实施方式可以是,如果屏幕的当前状态为锁屏状态,则控制屏幕解锁,从而使屏幕由锁屏状态切换为解锁状态,如果屏幕的当前状态为解锁状态,则控制屏幕保持解锁状态,具体地,可以不对屏幕执行解锁或锁屏操作,而保持屏幕当前的解锁状态。As an implementation manner, the implementation of controlling the screen to be in the unlocked state may be, if the current state of the screen is the locked screen state, control the screen to be unlocked, so that the screen is switched from the locked screen state to the unlocked state, if the current state of the screen is In the unlocked state, the screen is controlled to remain in the unlocked state. Specifically, the screen may not be unlocked or locked, but the current unlocked state of the screen may be maintained.

作为一种实施方式,若所述设备标识未验证通过或所述相对位置未位于指定范围内,控制所述屏幕处于锁屏状态。As an implementation manner, if the device identification fails to pass the verification or the relative position is not within a specified range, the screen is controlled to be in a lock screen state.

若所述相对位置未位于指定范围内,则表示携带用户设备的用户未位于电子设备的使用范围内,则可以控制屏幕处于锁屏状态。在一些实施例中,若该方法的执行主体是用户设备,则控制所述屏幕处于锁屏状态的实施方式可以是,用户设备发送锁屏指令至电子设备,电子设备根据锁屏指令控制屏幕处于锁屏状态。If the relative position is not within the specified range, it means that the user carrying the user equipment is not within the usage range of the electronic device, and the screen can be controlled to be in a locked screen state. In some embodiments, if the execution body of the method is a user equipment, the implementation of controlling the screen to be in a screen lock state may be that the user equipment sends a screen lock instruction to the electronic device, and the electronic device controls the screen to be in a lock screen state according to the screen lock instruction. Lock screen state.

若所述设备标识未验证通过,电子设备可以确定该用户设备位于电子设备的连接范围内,且该用户设备的设备标识并非是预先设置的授权用户的用户设备的设备标识,即非法用户的设备标识,如果此时保持电子设备的屏幕处于解锁状态,则在该连接范围内,该非法用户依然有窥屏的可能性,因此,在设备标识未验证通过的时候,控制所述屏幕处于锁屏状态。If the device identification fails to pass the verification, the electronic device can determine that the user equipment is located within the connection range of the electronic device, and the device identification of the user equipment is not the preset device identification of the authorized user's user equipment, that is, the device of an illegal user. If the screen of the electronic device is kept in the unlocked state at this time, the illegal user still has the possibility of peeping the screen within the connection range. Therefore, when the device identification fails to pass the verification, the screen is controlled to be locked. state.

作为一种实施方式,控制所述屏幕处于锁屏状态的实施方式可以是,如果屏幕的当前状态为解锁状态,则控制屏幕锁屏,从而使屏幕由解锁状态切换为锁屏状态,如果屏幕的当前状态为锁屏状态,则控制屏幕保持锁屏状态,具体地,可以不对屏幕执行解锁或锁屏操作,而保持屏幕当前的锁屏状态。As an implementation manner, the implementation of controlling the screen to be in the locked screen state may be, if the current state of the screen is the unlocked state, control the screen to lock the screen, so that the screen is switched from the unlocked state to the locked screen state. If the current state is the screen lock state, the screen is controlled to remain in the lock screen state. Specifically, the screen may not be unlocked or locked, but the current screen lock state of the screen may be maintained.

在一些实施例中,若所述设备标识未验证通过或所述相对位置未位于指定范围内,则可以输出提醒信息,以便提醒用户检查所佩戴的用户设备是否正确或提醒用户重新调整用户设备与屏幕之间的相对位置。具体地,所述设备标识未验证通过或所述相对位置未位于指定范围内,输出指定提醒信息,所述指定提醒信息用于提醒用户佩戴设备标识正确的用户设备和调整所述用户设备与所述电子设备的屏幕之间的相对位置的至少一种,然后,返回执行若所述设备标识验证通过,获取所述用户设备与所述电子设备的屏幕之间的相对位置的操作以及后续操作,从而重新验证新获取的设备标识和新获取的相对位置。其中,指定提醒信息可以是文本内容或指定语音,在此不做限定。In some embodiments, if the device identification fails to pass the verification or the relative position is not within a specified range, a reminder message may be output to remind the user to check whether the user device being worn is correct or to remind the user to readjust the user device and the user device. relative position between screens. Specifically, if the device identification fails to pass verification or the relative position is not within the specified range, output specified reminder information, where the specified reminder information is used to remind the user to wear the device to identify the correct user equipment and to adjust the relationship between the user equipment and the specified user equipment. at least one of the relative positions between the screens of the electronic device, and then returning to perform the operation of obtaining the relative position between the user equipment and the screen of the electronic device and subsequent operations if the device identity verification is passed, Thereby, the newly acquired device identification and the newly acquired relative position are re-verified. Wherein, the designated reminder information may be text content or designated voice, which is not limited herein.

具体地,该指定提醒信息可以包括设备提醒信息和位置提醒信息。作为一种实施方式,当电子设备连接用户设备时,获取并验证所述用户设备的设备标识,对所述设备标识执行验证操作,如果所述设备标识验证通过,获取所述用户设备与所述电子设备的屏幕之间的相对位置,即执行S302,如果设备标识未验证通过,则输出设备提醒信息,所述设备提醒信息用于提醒用户佩戴设备标识正确的用户设备,然后,再次获取与电子设备连接的用户设备的设备标识,作为新的设备标识,对新的设备标识执行验证操作,如果新的设备标识验证通过,则执行S302,如果新的设备标识验证未通过,控制所述屏幕处于锁屏状态。Specifically, the designated reminder information may include device reminder information and location reminder information. As an implementation manner, when the electronic device is connected to the user equipment, the device identification of the user equipment is obtained and verified, and a verification operation is performed on the device identification. The relative position between the screens of the electronic device, that is, S302 is executed. If the device identification fails to pass the verification, the device reminder information is output, and the device reminder information is used to remind the user to wear the correct user equipment of the device identification, and then obtain and electronically again. The device identification of the user equipment connected by the device is used as a new device identification, and the verification operation is performed on the new device identification. If the new device identification is verified, then execute S302, if the new device identification is not verified, control the screen to be in the state of S302. Lock screen state.

作为另一种实施方式,若所述设备标识验证通过,获取所述用户设备与所述电子设备的屏幕之间的相对位置,若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态,若所述相对位置未位于指定范围内,则输出位置提醒信息,所述位置提醒信息用于提醒用户调整所述用户设备与所述屏幕之间的相对位置;输出位置提醒信息之后,再次获取用户设备与所述电子设备的屏幕之间的相对位置,将再次获取的相对位置作为新的相对位置,判定新的相对位置是否位于指定范围内,如果是,则控制所述屏幕处于解锁状态,如果否,则控制所述屏幕处于锁屏状态。As another implementation, if the verification of the device identification is passed, the relative position between the screen of the user equipment and the electronic device is obtained, and if the relative position is within a specified range, the screen is controlled to be in an unlocked state , if the relative position is not within the specified range, output position reminder information, which is used to remind the user to adjust the relative position between the user equipment and the screen; after outputting the position reminder information, obtain the The relative position between the user equipment and the screen of the electronic device, the relative position obtained again is taken as the new relative position, and it is determined whether the new relative position is within the specified range, and if so, the screen is controlled to be in an unlocked state, If not, the screen is controlled to be in a lock screen state.

作为再一种实施方式,指定时间段内,检测到未成功解锁的次数如果超过指定次数之后,增加解锁难度。其中,该指定时间段可以根据实际使用需求而设定,例如,可以是一天或一小时。其中,未成功解锁包括设备标识未验证通过或所述相对位置未位于指定范围内。具体地,在指定时间段内,统计未成功解锁的次数,判断该未成功解锁的次数是否大于指定次数,如果小于或等于该指定次数,则输出提醒信息之后,再次判断屏幕是否被成功解锁,如果大于指定次数,则增加目标解锁条件,当设备标识验证通过、相对位置位于指定范围内且目标解锁条件满足的时候,才能够控制屏幕处于解锁状态,否则,将屏幕锁屏。其中,目标解锁条件可以是指纹解锁验证通过、密码解锁验证通过、语音解锁验证通过等,具体地,可以根据实际使用而设定。As a further embodiment, within a specified period of time, if the number of times of unsuccessful unlocking exceeds the specified number of times, the difficulty of unlocking is increased. Wherein, the specified time period may be set according to actual usage requirements, for example, may be one day or one hour. Wherein, the unsuccessful unlocking includes that the device identification fails to pass the verification or the relative position is not within the specified range. Specifically, within a specified time period, count the number of unsuccessful unlockings, and determine whether the number of unsuccessful unlockings is greater than the specified number of times. If it is less than or equal to the specified number of times, after outputting the reminder information, it is judged again whether the screen has been successfully unlocked. If it is greater than the specified number of times, increase the target unlocking condition. When the device ID verification is passed, the relative position is within the specified range, and the target unlocking condition is satisfied, the screen can be controlled to be in the unlocked state, otherwise, the screen will be locked. The target unlocking condition may be fingerprint unlocking verification, password unlocking verification, voice unlocking verification, etc. Specifically, it may be set according to actual use.

在另一些实施例中,若所述设备标识未验证通过或所述相对位置未位于指定范围内,用户可以采用其他的方式解锁屏幕。具体地,若所述设备标识未验证通过或所述相对位置未位于指定范围内,在电子设备的屏幕或用户设备的屏幕中的至少一个显示解锁界面,用户基于该解锁界面输入解锁密码,判断该解锁密码是否正确,如果正确,则控制所述屏幕处于解锁状态,如果不正确,则控制所述屏幕处于锁屏状态。其中,解锁密码可以是指纹密码、虹膜密码、人脸图像密码、数字密码等,在此不做限定。In other embodiments, if the device identification fails to pass the verification or the relative position is not within a specified range, the user may use other methods to unlock the screen. Specifically, if the device identification is not verified or the relative position is not within the specified range, an unlocking interface is displayed on at least one of the screen of the electronic device or the screen of the user device, and the user inputs the unlocking password based on the unlocking interface, and judges Whether the unlocking password is correct, if it is correct, the screen is controlled to be in an unlocked state, and if it is incorrect, the screen is controlled to be in a locked state. The unlocking password may be a fingerprint password, an iris password, a face image password, a digital password, etc., which is not limited herein.

因此,如果用户的用户设备的设备标识能够被验证通过,在用户在携带该用户设备位于屏幕的指定范围内的时候,可以自动保持屏幕的解锁并且在离开该指定范围的时候,可以自动将屏幕锁屏。因此,本申请实施例的屏幕控制方法对屏幕的控制,能够使得用户在离开电子设备的指定范围内的时候,自动将电子设备的屏幕锁屏且能够在进入该指定范围内的时候自动将屏幕解锁,较好地避免用户忘记锁屏并且方便用户解锁屏幕。Therefore, if the device identification of the user equipment of the user can be verified, when the user carries the user equipment within the specified range of the screen, the screen can be automatically kept unlocked, and when the user leaves the specified range, the screen can be automatically locked. lock screen. Therefore, the screen control method of the embodiment of the present application controls the screen, so that the user can automatically lock the screen of the electronic device when leaving the designated range of the electronic device, and can automatically lock the screen when entering the designated range. Unlocking, it is better to prevent users from forgetting to lock the screen and to facilitate users to unlock the screen.

需要说明的是,本申请实施例提供的方法可以由电子设备执行,也可以由用户设备执行。若上述方法的执行主体是电子设备,则电子设备在确定满足解锁屏幕的条件时,控制屏幕处于解锁状态,在确定满足锁屏条件的时候,控制屏幕处于锁屏状态。若上述方法的执行主体是用户设备,则用户设备在确定满足解锁屏幕的条件时,发送解锁请求至电子设备,电子设备响应该解锁请求控制屏幕处于解锁状态,在确定满足锁屏条件的时候,发送锁屏请求至电子设备,电子设备响应该锁屏请求控制屏幕处于锁屏状态。It should be noted that, the methods provided in the embodiments of the present application may be executed by an electronic device, or may be executed by a user equipment. If the execution subject of the above method is an electronic device, the electronic device controls the screen to be in an unlocked state when it is determined that the conditions for unlocking the screen are met, and controls the screen to be in a locked state when it is determined that the screen-locking conditions are met. If the execution subject of the above method is the user equipment, when the user equipment determines that the conditions for unlocking the screen are met, the user equipment sends an unlocking request to the electronic device, and the electronic device controls the screen to be in an unlocked state in response to the unlocking request. A lock screen request is sent to the electronic device, and the electronic device controls the screen to be in a lock screen state in response to the lock screen request.

请参阅图4,图4示出了本申请实施例提供的一种屏幕控制方法,该屏幕控制方法应用于上述的电子设备,具体地,该方法包括:S401至S405。Please refer to FIG. 4 . FIG. 4 shows a screen control method provided by an embodiment of the present application. The screen control method is applied to the above-mentioned electronic device. Specifically, the method includes: S401 to S405 .

S401:当所述电子设备连接用户设备时,获取所述用户设备的设备标识。S401: When the electronic device is connected to a user equipment, acquire a device identifier of the user equipment.

S402:判断所述用户设备的设备标识与预设标识是否匹配。S402: Determine whether the device identifier of the user equipment matches a preset identifier.

其中,所述预设标识为授权用户对应的终端的标识,其中,所述授权用户可以是电子设备的使用者。作为一种实施方式,预设标识对应的用户与电子设备的机主可以是同一个用户,其中,机主可以是电子设备的管理员也可以是用于登录电子设备的用户ID对应的用户。The preset identifier is an identifier of a terminal corresponding to an authorized user, where the authorized user may be a user of an electronic device. As an embodiment, the user corresponding to the preset identifier and the owner of the electronic device may be the same user, wherein the owner may be the administrator of the electronic device or the user corresponding to the user ID used to log in to the electronic device.

具体地,预设标识可以是电子设备预先获取的设备标识。作为一种实施方式,获取预设标识的实施方式可以是,用户可以在电子设备内录入自己所使用的用户设备的设备标识。例如,用户将频繁使用的智能手机或手环的设备标识录入电子设备,并操作电子设备将所录入的设备标识标记为用于自动解锁或锁屏的设备标识,由此,电子设备将用户录入的设备标识标记为预设标识。Specifically, the preset identifier may be a device identifier pre-obtained by the electronic device. As an implementation manner, the implementation manner of acquiring the preset identification may be that the user may enter the device identification of the user equipment used by the user in the electronic device. For example, the user enters the device identification of the frequently used smartphone or bracelet into the electronic device, and operates the electronic device to mark the entered device identification as the device identification used for automatic unlocking or locking the screen. The device ID of is marked as a preset ID.

作为另一种实施方式,还可以是电子设备主动发送设备标识获取请求至用户设备,用户设备获取到设备标识获取请求,基于该请求将设备标识发送至电子设备,电子设备将该设备标识存储,并记为预设标识。在一些实施例中,该电子设备包括安全单元,安全单元(Secure Element,SE)是一种具有防内容篡改功能的微控制器,为设备中安装在SE上的应用提供安全的存储和运行环境。电子设备将预设标识存储在安全单元内。在另一些实施例中,用户设备也可以包括安全单元,且用户设备的设备标识存储在用户设备的安全单元内。As another implementation manner, the electronic device may actively send a device identification acquisition request to the user equipment, the user equipment acquires the device identification acquisition request, sends the device identification to the electronic device based on the request, and the electronic device stores the device identification, And record it as the default logo. In some embodiments, the electronic device includes a Secure Element (SE), which is a microcontroller with anti-tampering content, providing a secure storage and execution environment for applications installed on the SE in the device . The electronic device stores the preset identification in the security unit. In other embodiments, the user equipment may also include a security element, and the device identification of the user equipment is stored in the security element of the user equipment.

另外,如果用户具有多个设备,例如,以用户设备为穿戴设备为例,用户使用过的穿戴设备可以是多个,例如,可以包括手环、智能手表、智能眼镜以及智能服装等,则电子设备需要从用户使用的多个设备中确定一个设备为目标设备,将穿戴设备作为用于电子设备的解锁和锁屏的用户设备。In addition, if the user has multiple devices, for example, taking the user device as an example of a wearable device, there may be multiple wearable devices used by the user, such as wristbands, smart watches, smart glasses, and smart clothing. The device needs to determine one device from the multiple devices used by the user as the target device, and use the wearable device as the user device for unlocking and locking the screen of the electronic device.

作为一种实施方式,电子设备可以发送提示信息至用户所使用的多个设备中的指定设备,该指定设备可以是多个设备中任一具有接收提示信息且显示提示信息的功能的设备,也可以是用户最近一次使用的穿戴设备,还可以是用户使用的智能手机,该提示信息包括电子设备所获取的用户曾使用的多个设备的名称,该名称可以是前述设备标识,也可以是设备的型号等。具体地,电子设备获取用户曾使用的多个设备的名称的实施方式可以是,从数据服务器内获取到该用户曾使用的多个设备的名称。其中,该数据服务器可以是用于收集和记录用户使用的各个设备的使用数据的服务器。该提示信息在指定设备上的显示的时候,指定设备的显示界面将多个设备的名称显示,并显示每个设备对应的选中按钮,例如,可以是以列表的形式将多个设备的名称显示,用户在多个设备中选中一个设备,作为目标设备。As an implementation manner, the electronic device may send prompt information to a designated device among multiple devices used by the user, and the designated device may be any one of the multiple devices that has the function of receiving prompt information and displaying prompt information, or It can be the wearable device used by the user last time, or the smart phone used by the user. The prompt information includes the names of multiple devices that the user has used and obtained by the electronic device. The name can be the aforementioned device identifier, or the device model, etc. Specifically, an implementation manner for the electronic device to obtain the names of the multiple devices that the user has used may be to obtain the names of the multiple devices that the user has used from the data server. Wherein, the data server may be a server for collecting and recording usage data of various devices used by the user. When the prompt information is displayed on the specified device, the display interface of the specified device displays the names of multiple devices, and displays the corresponding selection button for each device. For example, the names of multiple devices can be displayed in the form of a list. , the user selects a device among multiple devices as the target device.

作为另一种实施方式,还可以是根据上述的随身携带性由多个设备中确定目标设备。例如,采用前述实施例的方式,确定每个设备的随身携带性,将随身携带性最高的设备作为目标设备,其中,确定设备的随身携带性的实施方式可以参考前述实施例,在此不再赘述。As another implementation manner, the target device may also be determined from a plurality of devices according to the aforementioned portability. For example, in the manner of the foregoing embodiments, the portability of each device is determined, and the device with the highest portability is used as the target device. For the implementation of determining the portability of a device, reference may be made to the foregoing embodiments, which are not repeated here. Repeat.

S403:获取所述用户设备与所述电子设备的屏幕之间的相对位置。S403: Obtain a relative position between the user equipment and the screen of the electronic device.

作为一种实施范式,相对位置可以包括相对距离。获取用户设备和电子设备的屏幕之间的相对距离的实施方式可以是,根据前述的TOF的方式确定,也可以通过超声波测距的方式确定该相对距离。该相对位置用于表示电子设备的屏幕前方的物体与电子设备的屏幕之间的距离值,于本申请实施例中,在设备标识验证通过的情况下,可以认为电子设备的屏幕前方的物体可以是携带该用户设备的用户,即用户设备的使用者。As an implementation paradigm, the relative position may include relative distance. An implementation manner of acquiring the relative distance between the user equipment and the screen of the electronic device may be determined according to the aforementioned TOF method, or the relative distance may be determined by ultrasonic ranging. The relative position is used to represent the distance value between the object in front of the screen of the electronic device and the screen of the electronic device. In this embodiment of the present application, when the device identification is verified, it can be considered that the object in front of the screen of the electronic device can be It is the user who carries the user equipment, that is, the user of the user equipment.

在一些实施例中,在设备标识验证通过之后,获取电子设备的屏幕前方的物体与电子设备的屏幕之间的距离值,并且判断该距离值在预设时间段内的变化幅度是否小于指定变化范围,如果小于变化范围,则根据该预设时间段内的多个距离值得到目标距离值。其中,该变化范围可以根据经验而设定,例如是[-0.1米,0.1米],如果变化幅度小于变化范围,则可以认为变化幅度较小,即该距离值处于较稳定的状态。In some embodiments, after the verification of the device identity is passed, the distance value between the object in front of the screen of the electronic device and the screen of the electronic device is obtained, and it is determined whether the change range of the distance value within a preset time period is less than a specified change If the range is smaller than the change range, the target distance value is obtained according to multiple distance values within the preset time period. The variation range can be set according to experience, for example, [-0.1 m, 0.1 m]. If the variation range is smaller than the variation range, it can be considered that the variation range is small, that is, the distance value is in a relatively stable state.

作为一种实施方式,可以将该多个距离值的平均值作为目标距离值,也可以是将该多个距离值的最大值或最小值作为目标距离值,其中,该预设时间段的起点时刻可以是判定设备标识验证通过的时刻。然后,将该目标距离值作为用户设备与所述电子设备的屏幕之间的相对距离。由此,能够避免用户只是经过电子设备或者在电子设备的屏幕前短暂停留的时候,就根据所获取的相对位置判断是否要将屏幕解锁,即能够避免不慎将屏幕解锁。As an implementation manner, the average value of the plurality of distance values may be used as the target distance value, or the maximum or minimum value of the plurality of distance values may be used as the target distance value, wherein the starting point of the preset time period The time may be the time at which it is determined that the verification of the device identity is passed. Then, the target distance value is used as the relative distance between the user equipment and the screen of the electronic equipment. In this way, it can be avoided that the user only passes through the electronic device or stays in front of the screen of the electronic device for a short time, and determines whether to unlock the screen according to the obtained relative position, that is, the screen can be prevented from being unlocked inadvertently.

作为另一种实施范式,相对位置可以包括相对距离和相对方位角度。该相对方位角度的获取方式可以采用上述的AOA方法。As another implementation paradigm, the relative position may include relative distance and relative azimuth angle. The acquisition method of the relative azimuth angle may adopt the above-mentioned AOA method.

S404:判断所述相对位置是否位于指定范围内。S404: Determine whether the relative position is within a specified range.

作为一种实施方式,若相对位置为相对距离,则该指定范围为预设阈值,则判断所述相对位置是否位于指定范围内的实施方式可以是,判断所述相对距离是否小于预设阈值;若小于所述预设阈值,判定所述相对位置位于指定范围内;若不小于所述预设阈值,判定所述相对位置未位于指定范围内。其中,预设阈值可以是预先设定的经验值,如果用户设备的设备标识验证通过且与电子设备的屏幕之间的相对距离小于预设阈值,可以判定该用户设备的用户位于电子设备的使用范围内,从而执行S405。于本申请实施例中,该预设阈值可以是1米至2米,例如,该预设阈值为2米。As an embodiment, if the relative position is a relative distance, and the specified range is a preset threshold, an embodiment of judging whether the relative position is within the specified range may be to judge whether the relative distance is less than a preset threshold; If it is smaller than the preset threshold, it is determined that the relative position is within the specified range; if it is not smaller than the preset threshold, it is determined that the relative position is not within the specified range. The preset threshold value may be a preset empirical value. If the device identification of the user equipment passes the verification and the relative distance from the screen of the electronic device is less than the preset threshold value, it can be determined that the user of the user equipment is located in the use of the electronic device. within the range, so that S405 is executed. In this embodiment of the present application, the preset threshold may be 1 meter to 2 meters, for example, the preset threshold is 2 meters.

作为另一种实施方式,若相对位置为相对方位角度,则判断所述相对位置是否位于指定范围内的实施方式可以是,判断所述相对方位角度是否位于指定角度范围内;若所述相对方位角度位于指定角度范围内,判定所述相对位置位于指定范围内;若所述相对方位角度未位于指定角度范围内,判定所述相对位置未位于指定范围内。As another embodiment, if the relative position is a relative azimuth angle, the embodiment of judging whether the relative position is within a specified range may be to judge whether the relative azimuth angle is within a specified angle range; If the angle is within the specified angle range, it is determined that the relative position is within the specified range; if the relative azimuth angle is not within the specified angle range, it is determined that the relative position is not within the specified range.

作为再一种实施方式,若相对位置为相对距离和相对方位角度,则判断所述相对位置是否位于指定范围内的实施方式可以是,若所述相对距离小于预设阈值且所述相对方位角度位于指定角度范围内,判定所述相对位置位于指定范围内;若满足所述相对距离不小于预设阈值和所述相对方位角度未位于指定角度范围的至少一个条件,判定所述相对位置未位于指定范围内。满足所述相对距离不小于预设阈值和所述相对方位角度未位于指定角度范围的至少一个条件可以是指,所述相对距离不小于预设阈值、所述相对方位角度未位于指定角度范围或所述相对距离不小于预设阈值且所述相对方位角度未位于指定角度范围这三种情况的至少一种情况发生。As a further embodiment, if the relative position is a relative distance and a relative azimuth angle, an embodiment of judging whether the relative position is within a specified range may be, if the relative distance is less than a preset threshold and the relative azimuth angle If it is within the specified angle range, it is determined that the relative position is within the specified range; if at least one of the conditions that the relative distance is not less than a preset threshold value and the relative azimuth angle is not within the specified angle range is satisfied, it is determined that the relative position is not within the specified angle range. within the specified range. Satisfying at least one condition that the relative distance is not less than a preset threshold value and the relative azimuth angle is not within a specified angle range may mean that the relative distance is not less than a preset threshold value, the relative azimuth angle is not within a specified angle range or At least one of the three situations occurs that the relative distance is not less than a preset threshold and the relative azimuth angle is not within a specified angle range.

另外,考虑到虽然用户设备的设备标识验证通过且与电子设备的屏幕之间的相对距离小于预设阈值,但是,有可能用户当前并没有在使用电子设备,例如,只是坐在电子设备前休息,则可以获取电子设备的屏幕之前的图像,确定所采集的图像内是否人脸图像,如果有人脸图像,则判断该人脸图像与预设图像是否匹配,如果匹配,则可以判定该用户设备的用户位于电子设备的使用范围内,然后,执行S405。In addition, considering that although the device identification of the user equipment is verified and the relative distance from the screen of the electronic device is less than the preset threshold, it is possible that the user is not currently using the electronic device, for example, just sitting in front of the electronic device to rest , then the image before the screen of the electronic device can be obtained to determine whether there is a face image in the collected image, if there is a face image, then determine whether the face image matches the preset image, if so, it can be determined that the user equipment The user is located within the usage range of the electronic device, and then, S405 is performed.

S405:控制所述屏幕处于解锁状态。S405: Control the screen to be in an unlocked state.

作为一种实施方式,在所述设备标识未验证通过或所述相对位置未位于指定范围内的情况下的实施方式可以参考前述实施例,在此不再赘述。As an implementation manner, reference may be made to the foregoing embodiments for implementation in the case where the device identification fails to pass the verification or the relative position is not within a specified range, and details are not described herein again.

其上,上述步骤未详细描述的部分可以参考前述实施例,在此不再赘述。For the parts that are not described in detail in the foregoing steps, reference may be made to the foregoing embodiments, and details are not described herein again.

请参阅图5,图5示出了本申请实施例提供的一种屏幕控制方法,该屏幕控制方法应用于上述的电子设备,具体地,该方法包括:S501至S511。Please refer to FIG. 5. FIG. 5 shows a screen control method provided by an embodiment of the present application. The screen control method is applied to the above-mentioned electronic device. Specifically, the method includes: S501 to S511.

S501:获取到用户设备的连接请求,并尝试与所述用户设备建立连接。S501: Acquire a connection request from a user equipment, and try to establish a connection with the user equipment.

作为一种实施方式,所述连接请求可以是电子设备主动扫描附近的用户设备,在扫描到可连接设备的时候,主动发送探测请求至用户设备,用户设备在获取到探测请求之后,如果有连接意向,则发送连接请求至电子设备,电子设备响应该连接请求,并尝试与用户设备建立连接。As an implementation manner, the connection request may be that the electronic device actively scans for nearby user equipment, and when a connectable device is scanned, it actively sends a detection request to the user equipment. After the user equipment obtains the detection request, if there is a connection Intention, send a connection request to the electronic device, and the electronic device responds to the connection request and attempts to establish a connection with the user equipment.

作为另一种实施方式,所述连接请求可以是电子设备被动接收的请求,即用户设备会主动向周围广播连接请求,在电子设备扫描到该用户设备的时候,能够获取到用户设备发送的连接请求,并且响应该连接请求,从而在电子设备和用户设备之间尝试建立连接。具体地,将电子设备作为从设备,即接收连接请求的设备,电子设备以固定扫描间隔扫描外部寻呼,用户设备为主设备,即发送连接请求的设备,用户设备会主动发送连接请求。当电子设备扫描到用户设备的时候,便会响应用户设备的连接请求,从而尝试在电子设备和用户设备之间建立连接。As another implementation manner, the connection request may be a passively received request by the electronic device, that is, the user equipment will actively broadcast the connection request to the surrounding, and when the electronic device scans the user equipment, it can obtain the connection sent by the user equipment. A connection is attempted between the electronic device and the user device in response to the connection request. Specifically, the electronic device is used as the slave device, that is, the device that receives the connection request, the electronic device scans for external paging at fixed scanning intervals, the user equipment is the master device, that is, the device that sends the connection request, and the user equipment will actively send the connection request. When the electronic device scans the user device, it will respond to the connection request of the user device, thereby attempting to establish a connection between the electronic device and the user device.

作为一种实施方式,电子设备的扫描频率可以根据实际使用需求而设定,也可以根据参考数据而设定。其中,该参考数据可以包括当前时刻。As an implementation manner, the scanning frequency of the electronic device may be set according to actual use requirements, or may be set according to reference data. Wherein, the reference data may include the current moment.

在一些实施例中,该参考数据可以是当前时刻,该当前时刻为电子设备当前的系统时间,电子设备确定当前时刻所处的时间段,根据该时间段确定电子设备的扫描频率。具体地,可以预先设定对应关系,该对应关系包括不同的时间段对应的扫描频率,则在确定当前时刻对应的时间段之后,根据该对应关系确定时间段对应的扫描频率,作为电子设备的扫描频率。其中,该对应关系可以是根据实际需求而设定,也可以是根据用户的电子设备使用数据而设定。其中,该用户的电子设备使用数据可以是电子设备被使用的时间段,从而能够确定一天内不同的时间段内电子设备的使用时长,从而能够统计出一天内每个时间段内电子设备的使用时长占比,例如,14点至15点的时间段内,电子设备的使用时长为1小时,则该时段对应的电子设备的使用时长占比为1,则通过该方法能够确定一天内每个时段的使用时长占比,然后,根据使用时长占比确定每个时间段对应的扫描频率。例如,可以是使用时长占比与扫描频率正相关,即使用时长占比越大,扫描频率越高,使用时长占比越小,扫描频率越低。时间间隔越短,则精度和安全性更高,时间间隔越长,则功耗更低,但是精度和安全性降低。In some embodiments, the reference data may be the current time, which is the current system time of the electronic device, the electronic device determines the time period in which the current time is located, and determines the scanning frequency of the electronic device according to the time period. Specifically, a corresponding relationship can be preset, and the corresponding relationship includes scanning frequencies corresponding to different time periods. After the time period corresponding to the current moment is determined, the scanning frequency corresponding to the time period is determined according to the corresponding relationship, which is used as the scanning frequency of the electronic device. scanning frequency. The corresponding relationship may be set according to actual needs, or may be set according to the user's electronic device usage data. Wherein, the user's electronic device usage data may be the time period in which the electronic device is used, so that the use time of the electronic device in different time periods in a day can be determined, so that the use of the electronic device in each time period in a day can be counted. For example, in the time period from 14:00 to 15:00, the use time of electronic equipment is 1 hour, then the use time proportion of electronic equipment corresponding to this period is 1, then this method can be used to determine each The usage time ratio of the time period is determined, and then the scanning frequency corresponding to each time segment is determined according to the usage time ratio. For example, the proportion of usage time may be positively correlated with the scan frequency, that is, the larger the proportion of usage time, the higher the scan frequency, and the smaller the proportion of usage time, the lower the scan frequency. The shorter the interval, the higher the accuracy and safety, the longer the interval, the lower the power consumption, but the lower the accuracy and safety.

另外,电子设备同一时刻只能连接一个用户设备,从而能够避免电子设备在连接说个用户设备的时候,不同的用户设备的设备标识的验证结果不同或者与电子设备的屏幕之间的相对位置不同而导致屏幕的锁屏和解锁的控制紊乱。作为一种实施方式,电子设备与用户设备之间通过蓝牙连接,具体地,电子设备与所述用户设备通过超宽带无线通信技术建立连接。In addition, the electronic device can only be connected to one user device at a time, so that when the electronic device is connected to a user device, the verification results of the device identifiers of different user devices are different or the relative positions of the screens of the electronic device are different. As a result, the control of locking and unlocking the screen is disordered. As an implementation manner, the electronic device and the user equipment are connected through Bluetooth, and specifically, the electronic device and the user equipment are connected through an ultra-wideband wireless communication technology.

S502:判断是否成功建立连接。S502: Determine whether the connection is successfully established.

其中,电子设备与用户设备之间的连接是否建立成功,可以通过电子设备与用户设备之间的连接检测来判定。作为一种实施方式,电子设备可以发送第一信标至用户设备,用户设备响应第一信标而返回第二信标,则电子设备在发送第一信标之后,检测是否获取到第二信标,如果在指定时间长度内未获取到第二信标,则判定电子设备与用户设备之间未成功连接。或者,在在指定时间长度内未获取到第二信标,可以再次发送第一信标,如果连续N次未获取到第二信标,则判定电子设备与用户设备之间未成功连接。其中,N可以是经验值,例如,N为5。如果在指定时间长度获取到第二信标,或者在N次之前获取到第二信标,则判定电子设备与用户设备之间成功连接。Wherein, whether the connection between the electronic device and the user equipment is successfully established can be determined by detecting the connection between the electronic device and the user equipment. As an implementation manner, the electronic device may send a first beacon to the user equipment, and the user equipment returns a second beacon in response to the first beacon, and the electronic device detects whether the second beacon is acquired after sending the first beacon If the second beacon is not acquired within the specified time period, it is determined that the connection between the electronic device and the user equipment is unsuccessful. Alternatively, if the second beacon is not acquired within a specified time period, the first beacon may be sent again, and if the second beacon is not acquired for N consecutive times, it is determined that the connection between the electronic device and the user equipment is unsuccessful. Wherein, N can be an empirical value, for example, N is 5. If the second beacon is acquired within the specified time period, or the second beacon is acquired before N times, it is determined that the connection between the electronic device and the user equipment is successful.

如果电子设备与用户设备之间成功连接,则可以执行S503,如果电子设备与用户设备之间未成功连接,则执行S509。If the connection between the electronic device and the user equipment is successful, S503 may be performed, and if the connection between the electronic device and the user equipment is unsuccessful, then S509 may be performed.

S503:获取所述用户设备的设备标识。S503: Obtain the device identifier of the user equipment.

S504:判断所述用户设备的设备标识与预设标识是否匹配。S504: Determine whether the device identifier of the user equipment matches a preset identifier.

电子设备与用户设备配对成功之后,电子设备与用户设备之间便可以相互通信。电子设备发起获取用户设备的设备标识的标识获取请求,用户设备获取到标识获取请求之后,用户设备调用用户设备内安全单元内的设备标识,将设备标识发送至电子设备,电子设备与预设标识进行匹配。After the electronic device and the user equipment are paired successfully, the electronic device and the user equipment can communicate with each other. The electronic device initiates an identification acquisition request to obtain the device identification of the user equipment. After the user equipment obtains the identification acquisition request, the user equipment calls the device identification in the security unit of the user equipment, and sends the device identification to the electronic device. The electronic device and the preset identification to match.

作为一种实施方式,为了便于用户在携带用户设备的时候能够快速对用户设备的设备标识进行识别,可以预先完成电子设备与用户设备之间的配对过程,具体地,该配对过程包括,用户启动用户设备的通信功能,例如,启动UWB功能,电子设备与用户设备之间建立连接,并且,电子设备与用户设备之间产生初始认证码,该初始认证码用于电子设备与用户设备之间建立连接时的身份验证。作为一种实施方式,该初始认证码可以是PIN码,则电子设备与用户设备的连接过程可以是,电子设备获取用户设备的配对秘钥,与本地服务器秘钥服务器中的秘钥PIN码比对,如果配对通过,则判定电子设备与用户设备配对成功。As an implementation manner, in order to facilitate the user to quickly identify the device identifier of the user equipment when carrying the user equipment, a pairing process between the electronic device and the user equipment may be completed in advance. Specifically, the pairing process includes: user-initiated The communication function of the user equipment, for example, starting the UWB function, establishing a connection between the electronic equipment and the user equipment, and generating an initial authentication code between the electronic equipment and the user equipment, the initial authentication code is used for establishing between the electronic equipment and the user equipment Authentication when connecting. As an implementation manner, the initial authentication code may be a PIN code, and the connection process between the electronic device and the user equipment may be: Yes, if the pairing is passed, it is determined that the electronic device is successfully paired with the user equipment.

然后,电子设备获取用户设备的设备标识,并且存储在电子设备的安全单元内,并且赋予该设备标识锁屏和解锁权限,例如,可以是为该设备标识配置一个指定标签,该指定标签用于表征该标签对应的设备标识的用户设备具有锁屏和解锁权限,则将配置有指定标签的设备标识作为预设标识。Then, the electronic device acquires the device identification of the user equipment, stores it in the security unit of the electronic device, and grants the device identification screen lock and unlock permissions. For example, a specified label may be configured for the device identification, and the specified label is used for If the user equipment representing the device identification corresponding to the label has the right to lock the screen and unlock the screen, the device identification configured with the specified label is used as the preset identification.

S505:获取所述用户设备与所述电子设备的屏幕之间的相对距离。S505: Obtain the relative distance between the user equipment and the screen of the electronic device.

S506:判断所述相对距离是否小于预设阈值。S506: Determine whether the relative distance is less than a preset threshold.

S507:获取所述用户设备与所述电子设备的屏幕之间的相对方位角度。S507: Obtain the relative azimuth angle between the user equipment and the screen of the electronic device.

S508:判断所述相对方位角度是否位于指定角度范围内。S508: Determine whether the relative azimuth angle is within a specified angle range.

其中,指定角度范围可以是以屏幕的中心点为中心的,屏幕的前方的三维方向角度范围,具体地,如图6所示,以屏幕601的中心点为中心设定三维空间坐标XYZ,其中,X方向和Y方向与屏幕的平面平行,Z方向与屏幕的平面垂直,可以设定X方向的±α1角度,Y方向的±α2角度以及Z方向的±α3角度,构成的角度范围为指定角度范围,其中,目标物体与电子设备的屏幕的方位角度为X方向的α1角度是指电子设备偏离电子设备的屏幕的中心线的X方向的角度为α1角度,其他Y方向和Z方向的偏离角度的含义与X方向类似,在此不再赘述。于本申请实施例中,α1、α2和α3均为75°,也就是说,本申请实施例中,将电子设备的屏幕前方2m,屏幕三维方向XYZ角度±75°设置为指定范围,即安全区域。Wherein, the specified angle range can be centered on the center point of the screen, and the three-dimensional direction angle range in front of the screen. Specifically, as shown in FIG. 6 , the three-dimensional space coordinates XYZ are set with the center point of the screen 601 as the center, wherein , the X direction and the Y direction are parallel to the plane of the screen, and the Z direction is perpendicular to the plane of the screen. You can set the ±α1 angle of the X direction, the ±α2 angle of the Y direction and the ±α3 angle of the Z direction, and the formed angle range is specified. The angle range, where the azimuth angle between the target object and the screen of the electronic device is the α1 angle in the X direction, which means that the angle in the X direction that the electronic device deviates from the center line of the screen of the electronic device is the α1 angle, and the deviations in the other Y directions and Z directions The meaning of the angle is similar to that of the X direction, and details are not repeated here. In the embodiment of the present application, α1, α2 and α3 are all 75°, that is to say, in the embodiment of the present application, 2m in front of the screen of the electronic device, and the XYZ angle ±75° in the three-dimensional direction of the screen is set to the specified range, that is, it is safe. area.

如果用户设备与所述电子设备的屏幕之间的相对距离小于预设阈值,并且用户设备与所述电子设备的屏幕之间的相对方位角度位于指定角度范围内,则控制所述屏幕处于解锁状态。如果用户设备与所述电子设备的屏幕之间的相对距离大于预设阈值,则可以不必执行判断所述相对方位角度是否位于指定角度范围内的操作,而控制所述屏幕处于锁屏状态。If the relative distance between the user equipment and the screen of the electronic device is less than a preset threshold, and the relative azimuth angle between the user equipment and the screen of the electronic device is within a specified angle range, control the screen to be in an unlocked state . If the relative distance between the user equipment and the screen of the electronic device is greater than a preset threshold, the screen may be controlled to be locked without performing the operation of judging whether the relative azimuth angle is within a specified angle range.

需要说明的是,上述的S505至S508的执行顺序不做限制,具体地,可以是先判断相对距离是否小于预设阈值再判断相对方位角度是否位于指定角度范围内,也可以是先判断相对方位角度是否位于指定角度范围内再判断相对距离是否小于预设阈值,在此不做限定,还可以是同时判断相对距离是否小于预设阈值以及相对方位角度是否位于指定角度范围内,在所述相对距离小于预设阈值且所述相对方位角度位于指定角度范围内时,执行S511,否则,不执行S511,作为一种实施方式,可以执行S509。It should be noted that the execution order of the above-mentioned S505 to S508 is not limited. Specifically, it can be determined whether the relative distance is less than a preset threshold value and then whether the relative azimuth angle is within the specified angle range, or the relative azimuth can also be determined first. Whether the angle is within the specified angle range and then determine whether the relative distance is less than the preset threshold is not limited here. It can also be judged whether the relative distance is less than the preset threshold and whether the relative azimuth angle is within the specified angle range at the same time. When the distance is less than the preset threshold and the relative azimuth angle is within the specified angle range, S511 is performed, otherwise, S511 is not performed, and as an implementation manner, S509 may be performed.

S509:检测是否获取到解锁密码。S509: Detect whether an unlock password is obtained.

在电子设备与用户设备未成功建立连接的情况下,无法再使用用户设备自动控制屏幕解锁或锁屏,则用户可以通过解锁密码的方式将屏幕解锁。作为一种实施方式,在电子设备与用户设备未成功建立连接的时候,将电子设备的屏幕锁屏并且在屏幕上显示解锁界面,用户可以在解锁界面内输入解锁密码。If the connection between the electronic device and the user device is not successfully established, and the user device can no longer be used to automatically control the screen unlocking or locking, the user can unlock the screen by using an unlock password. As an embodiment, when the connection between the electronic device and the user equipment is not successfully established, the screen of the electronic device is locked and an unlocking interface is displayed on the screen, and the user can input the unlocking password in the unlocking interface.

另外,在一些实施例中,在设备标识未验证通过的时候或相对位置未位于指定范围内的时候,也可以将电子设备的屏幕锁屏并且在屏幕上显示解锁界面。In addition, in some embodiments, when the device identification fails to pass the verification or when the relative position is not within a specified range, the screen of the electronic device can also be locked and an unlocking interface can be displayed on the screen.

再者,在一些实施例中,为了电子设备与用户设备未成功建立连接的情况下,通过解锁密码的方式将屏幕解锁之后,该用户设备持续位于电子设备的扫描范围内,如果继续扫描的话,依然会得到电子设备与用户设备未成功建立连接的判定结果,而导致已经通过解锁密码的屏幕又被锁屏。因此,可以在本次判定电子设备与用户设备未成功建立连接的情况下,在通过解锁密码成功解锁屏幕之后,忽略该用户设备的连接请求,即不再响应该电子设备的连接请求,从而无法再次得到电子设备与用户设备未成功建立连接的判定结果,进而不会导致已经通过解锁密码的屏幕又被锁屏。Furthermore, in some embodiments, in the case where the connection between the electronic device and the user equipment is not successfully established, after the screen is unlocked by means of an unlocking password, the user equipment continues to be within the scanning range of the electronic device. A determination result that the connection between the electronic device and the user device is not successfully established is still obtained, and the screen that has passed the unlock password is locked again. Therefore, when it is determined that the connection between the electronic device and the user equipment has not been successfully established this time, after the screen is successfully unlocked by the unlock password, the connection request of the user equipment can be ignored, that is, the connection request of the electronic device will not be responded to, so that it is impossible to The determination result that the connection between the electronic device and the user device is not successfully established is obtained again, so that the screen that has passed the unlock password will not be locked again.

S510:判断所获取的解锁密码是否准确。S510: Determine whether the acquired unlocking password is accurate.

S511:控制所述屏幕处于解锁状态。S511: Control the screen to be in an unlocked state.

另外,在一些实施例中,若设备标识验证通过,用户设备与所述电子设备的屏幕之间的相对距离小于预设阈值,并且用户设备与所述电子设备的屏幕之间的相对方位角度位于指定角度范围内,电子设备的屏幕处于解锁状态的时候,电子设备继续扫描周围设备的连接请求,一旦设备标识验证未通过、相对位置未位于指定范围内以及电子设备与用户设备之间的连接断开,则控制屏幕锁屏。In addition, in some embodiments, if the device identification verification is passed, the relative distance between the user equipment and the screen of the electronic device is less than a preset threshold, and the relative azimuth angle between the user equipment and the screen of the electronic device is located at Within the specified angle range, when the screen of the electronic device is in the unlocked state, the electronic device continues to scan for connection requests from surrounding devices. On, control the screen lock screen.

因此,本申请实施例中,在用户设备的设备标识的验证通过、用户设备与电子设备的屏幕之间的相对距离小于预设阈值且相对方位角度位于指定角度范围内的时候,可以将屏幕自动锁屏,从而通过设备标识和相对距离以及相对方位角度的检测,能够更加准确的验证用户的身份以及用户使用电子设备的使用意图,从而使得自动解锁的准确率更高。Therefore, in the embodiment of the present application, when the verification of the device identification of the user equipment is passed, the relative distance between the user equipment and the screen of the electronic device is less than the preset threshold, and the relative azimuth angle is within the specified angle range, the screen can be automatically Lock the screen, so that through the detection of device identification, relative distance and relative azimuth angle, the user's identity and the user's intention to use the electronic device can be more accurately verified, so that the accuracy of automatic unlocking is higher.

需要说明的是,上述的方法的实施例的执行主体可以是用户设备,也可以是电子设备,还可以是用户设备与电子设备的交互执行,于本申请实施例中,对上述方法实施例的各个步骤的执行主体不做限定。It should be noted that the execution subject of the above method embodiments may be user equipment, electronic equipment, or interactive execution between user equipment and electronic equipment. The execution subject of each step is not limited.

请参阅图7,图7示出了本申请实施例提供的一种屏幕控制方法,该屏幕控制方法应用于上述的用户设备,具体地,该方法包括:S701至S702。Referring to FIG. 7 , FIG. 7 shows a screen control method provided by an embodiment of the present application. The screen control method is applied to the above-mentioned user equipment. Specifically, the method includes: S701 to S702.

S701:当所述用户设备连接所述电子设备且所述用户设备的设备标识被所述电子设备验证通过时,获取所述用户设备与所述电子设备的屏幕之间的相对位置。S701: When the user equipment is connected to the electronic device and the device identification of the user equipment is verified by the electronic device, obtain a relative position between the user equipment and the screen of the electronic device.

作为一种实施方式,用户设备连接所述电子设备,将用户设备的设备标识发送至电子设备,电子设备验证该设备标识,并将验证结果反馈至用户设备,用户设备根据该验证结果能够确定该设备标识被所述电子设备验证通过。As an implementation manner, the user equipment connects to the electronic device, sends the device identification of the user equipment to the electronic device, the electronic device verifies the device identification, and feeds back the verification result to the user equipment, and the user equipment can determine the The device identification is verified by the electronic device.

S702:若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。S702: If the relative position is within a specified range, control the screen to be in an unlocked state.

于本申请实施例中,用户设备可以检测用户设备与所述电子设备的屏幕之间的相对位置,获取该相对位置的实施方式可以参考前述电子设备获取该相对位置的实施方式,在此不再赘述。In this embodiment of the present application, the user equipment may detect the relative position between the user equipment and the screen of the electronic device, and the implementation of obtaining the relative position may refer to the foregoing implementation of obtaining the relative position by the electronic device, which is not repeated here. Repeat.

用户设备能够判断该相对位置是否位于指定范围内,并且根据该判定结果控制电子设备的屏幕解锁或锁屏,具体地,如果判定用户设备与电子设备的屏幕之间的相对位置位于指定范围内,用户设备发送解锁指令至电子设备,电子设备根据解锁指令控制屏幕处于解锁状态,若所述相对位置未位于指定范围内,用户设备发送锁屏指令至电子设备,电子设备根据锁屏指令控制屏幕处于锁屏状态,具体地,获取该相对位置的实施方式以及判断相对位置是否位于指定范围内的实施方式均可以参考前述实施例,在此不再赘述。The user equipment can determine whether the relative position is within the specified range, and control the screen unlocking or locking of the electronic device according to the judgment result. Specifically, if it is determined that the relative position between the user equipment and the screen of the electronic device is within the specified range, The user equipment sends an unlock command to the electronic device, and the electronic device controls the screen to be in an unlocked state according to the unlock command. If the relative position is not within the specified range, the user device sends a lock screen command to the electronic device, and the electronic device controls the screen to be in an unlocked state according to the lock screen command. The lock screen state, specifically, the implementation manner of acquiring the relative position and the implementation manner of judging whether the relative position is within a specified range can refer to the foregoing embodiments, which will not be repeated here.

请参阅图8,其示出了本申请实施例提供的一种屏幕控制装置的结构框图,该屏幕控制装置800用于可与用户设备建立连接的电子设备,该屏幕控制装置800可以包括:第一验证单元801、第一确定单元802和第一解锁单元803。Please refer to FIG. 8 , which shows a structural block diagram of a screen control apparatus provided by an embodiment of the present application. The screen control apparatus 800 is used for an electronic device that can establish a connection with a user equipment. The screen control apparatus 800 may include: A verification unit 801 , a first determination unit 802 and a first unlocking unit 803 .

第一验证单元801,用于当所述电子设备连接用户设备时,获取并验证所述用户设备的设备标识。The first verification unit 801 is configured to acquire and verify the device identification of the user equipment when the electronic device is connected to the user equipment.

进一步的,第一验证单元801还用于判断所述用户设备的设备标识与预设标识是否匹配,其中,所述预设标识为授权用户对应的终端的标识;若所述用户设备的设备标识与预设标识匹配,判定所述设备标识验证通过;若所述用户设备的设备标识与预设标识不匹配,判定所述设备标识验证未通过。Further, the first verification unit 801 is further configured to judge whether the device identification of the user equipment matches a preset identification, wherein the preset identification is the identification of the terminal corresponding to the authorized user; if the device identification of the user equipment If it matches with the preset identifier, it is determined that the verification of the device identifier has passed; if the device identifier of the user equipment does not match the preset identifier, it is determined that the verification of the device identifier has not passed.

进一步的,第一验证单元801还用于获取到用户设备的连接请求,并尝试与所述用户设备建立连接;如果成功建立连接,获取并验证所述用户设备的设备标识。Further, the first verification unit 801 is further configured to obtain a connection request to the user equipment, and try to establish a connection with the user equipment; if the connection is successfully established, obtain and verify the device identity of the user equipment.

进一步的,第一验证单元801还用于若未成功建立连接,检测是否获取到解锁密码;若获取到解锁密码,根据所述解锁密码将所述屏幕解锁。Further, the first verification unit 801 is further configured to detect whether the unlocking password is obtained if the connection is not successfully established; if the unlocking password is obtained, unlock the screen according to the unlocking password.

第一确定单元802,用于若所述设备标识验证通过,获取所述用户设备与所述电子设备的屏幕之间的相对位置。The first determining unit 802 is configured to acquire the relative position between the screen of the user equipment and the electronic device if the device identification is verified successfully.

进一步的,若相对位置包括相对距离,第一确定单元802还用于判断所述相对距离是否小于预设阈值;若小于所述预设阈值,判定所述相对位置位于指定范围内;若不小于所述预设阈值,判定所述相对位置未位于指定范围内。Further, if the relative position includes a relative distance, the first determining unit 802 is further configured to determine whether the relative distance is less than a preset threshold; if it is less than the preset threshold, determine that the relative position is within a specified range; if not less than The preset threshold value determines that the relative position is not within a specified range.

进一步的,若相对位置包括相对方位角度,第一确定单元802还用于判断所述相对方位角度是否位于指定角度范围内;若所述相对方位角度位于指定角度范围内,判定所述相对位置位于指定范围内;若所述相对方位角度未位于指定角度范围内,判定所述相对位置未位于指定范围内。Further, if the relative position includes a relative azimuth angle, the first determining unit 802 is further configured to determine whether the relative azimuth angle is within the specified angle range; if the relative azimuth angle is within the specified angle range, determine that the relative position is within the specified angle range. within the specified range; if the relative azimuth angle is not within the specified angle range, it is determined that the relative position is not within the specified range.

进一步的,若相对位置包括相对距离和相对方位角度,确定单元802还用于若所述相对距离小于预设阈值且所述相对方位角度位于指定角度范围内,判定所述相对位置位于指定范围内;若满足所述相对距离不小于预设阈值和所述相对方位角度未位于指定角度范围的至少一个条件,判定所述相对位置未位于指定范围内。Further, if the relative position includes a relative distance and a relative azimuth angle, the determining unit 802 is further configured to determine that the relative position is within a specified range if the relative distance is less than a preset threshold and the relative azimuth angle is within a specified angle range. ; If at least one of the conditions that the relative distance is not less than a preset threshold value and the relative azimuth angle is not within the specified angle range is satisfied, it is determined that the relative position is not within the specified range.

第一解锁单元803,用于若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。The first unlocking unit 803 is configured to control the screen to be in an unlocked state if the relative position is within a specified range.

进一步,该屏幕控制装置800还包括第一锁屏单元,用于若所述设备标识未验证通过或所述相对位置未位于指定范围内,控制所述屏幕处于锁屏状态。Further, the screen control apparatus 800 further includes a first screen lock unit, configured to control the screen to be in a screen lock state if the device identification fails the verification or the relative position is not within a specified range.

其中,电子设备与所述用户设备通过超宽带无线通信技术建立连接,且电子设备通过超宽带无线通信技术获取所述用户设备与所述电子设备的屏幕之间的相对位置。The connection between the electronic device and the user equipment is established through the ultra-wideband wireless communication technology, and the electronic device obtains the relative position between the user equipment and the screen of the electronic device through the ultra-wideband wireless communication technology.

请参阅图9,其示出了本申请实施例提供的一种屏幕控制装置的结构框图,该屏幕控制装置900用于可与电子设备建立连接的用户设备,该屏幕控制装置900可以包括:第二验证单元901和第二解锁单元902。Please refer to FIG. 9 , which shows a structural block diagram of a screen control apparatus provided by an embodiment of the present application. The screen control apparatus 900 is used for a user equipment that can establish a connection with an electronic device. The screen control apparatus 900 may include: Two verification unit 901 and second unlocking unit 902 .

第二验证单元901,用于当所述用户设备连接所述电子设备且所述用户设备的设备标识被所述电子设备验证通过时,获取所述用户设备与所述电子设备的屏幕之间的相对位置。The second verification unit 901 is configured to acquire the information between the user equipment and the screen of the electronic device when the user equipment is connected to the electronic device and the device identification of the user equipment is verified by the electronic device. relative position.

进一步的,第二验证单元901还用于判断所述用户设备的设备标识与预设标识是否匹配,其中,所述预设标识为授权用户对应的终端的标识;若所述用户设备的设备标识与预设标识匹配,判定所述设备标识验证通过;若所述用户设备的设备标识与预设标识不匹配,判定所述设备标识验证未通过。Further, the second verification unit 901 is further configured to determine whether the device identification of the user equipment matches a preset identification, wherein the preset identification is the identification of the terminal corresponding to the authorized user; if the device identification of the user equipment If it matches with the preset identifier, it is determined that the verification of the device identifier has passed; if the device identifier of the user equipment does not match the preset identifier, it is determined that the verification of the device identifier has not passed.

进一步的,第二验证单元901还用于获取到用户设备的连接请求,并尝试与所述用户设备建立连接;如果成功建立连接,获取并验证所述用户设备的设备标识。Further, the second verification unit 901 is further configured to obtain a connection request to the user equipment, and try to establish a connection with the user equipment; if the connection is successfully established, obtain and verify the device identity of the user equipment.

进一步的,第二验证单元901还用于若未成功建立连接,检测是否获取到解锁密码;若获取到解锁密码,根据所述解锁密码将所述屏幕解锁。Further, the second verification unit 901 is further configured to detect whether the unlocking password is obtained if the connection is not successfully established; if the unlocking password is obtained, unlock the screen according to the unlocking password.

第二解锁单元902,用于若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。The second unlocking unit 902 is configured to control the screen to be in an unlocked state if the relative position is within a specified range.

进一步的,若相对位置包括相对距离,第二解锁单元902还用于判断所述相对距离是否小于预设阈值;若小于所述预设阈值,判定所述相对位置位于指定范围内;若不小于所述预设阈值,判定所述相对位置未位于指定范围内。Further, if the relative position includes a relative distance, the second unlocking unit 902 is further configured to determine whether the relative distance is less than a preset threshold; if it is less than the preset threshold, determine that the relative position is within a specified range; if not less than The preset threshold value determines that the relative position is not within a specified range.

进一步的,若相对位置包括相对方位角度,第二解锁单元902还用于判断所述相对方位角度是否位于指定角度范围内;若所述相对方位角度位于指定角度范围内,判定所述相对位置位于指定范围内;若所述相对方位角度未位于指定角度范围内,判定所述相对位置未位于指定范围内。Further, if the relative position includes a relative azimuth angle, the second unlocking unit 902 is further configured to determine whether the relative azimuth angle is within the specified angle range; if the relative azimuth angle is within the specified angle range, determine that the relative position is within the specified angle range. within the specified range; if the relative azimuth angle is not within the specified angle range, it is determined that the relative position is not within the specified range.

进一步的,若相对位置包括相对距离和相对方位角度,第二解锁单元902还用于若所述相对距离小于预设阈值且所述相对方位角度位于指定角度范围内,判定所述相对位置位于指定范围内;若满足所述相对距离不小于预设阈值和所述相对方位角度未位于指定角度范围的至少一个条件,判定所述相对位置未位于指定范围内。Further, if the relative position includes a relative distance and a relative azimuth angle, the second unlocking unit 902 is further configured to determine that the relative position is within a specified angle range if the relative distance is less than a preset threshold and the relative azimuth angle is within a specified angle range. If the relative distance is not less than a preset threshold and the relative azimuth angle is not within the specified angle range, it is determined that the relative position is not within the specified range.

进一步,该屏幕控制装置900还包括第二锁屏单元,用于若所述设备标识未验证通过或所述相对位置未位于指定范围内,控制所述屏幕处于锁屏状态。Further, the screen control apparatus 900 further includes a second screen lock unit, configured to control the screen to be in a screen lock state if the device identification fails the verification or the relative position is not within a specified range.

其中,电子设备与所述用户设备通过超宽带无线通信技术建立连接,且电子设备通过超宽带无线通信技术获取所述用户设备与所述电子设备的屏幕之间的相对位置。The connection between the electronic device and the user equipment is established through the ultra-wideband wireless communication technology, and the electronic device obtains the relative position between the user equipment and the screen of the electronic device through the ultra-wideband wireless communication technology.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

请参考图10,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是计算机、智能手机、平板电脑、电子书等能够运行应用程序的设备。于本申请实施例中,该电子设备可以是计算机。Please refer to FIG. 10 , which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be a computer, a smart phone, a tablet computer, an electronic book, or other devices capable of running application programs. In this embodiment of the present application, the electronic device may be a computer.

本申请中的电子设备100可以包括一个或多个如下部件:第一处理器110、第一存储器120、屏幕601以及一个或多个应用程序,其中,一个或多个应用程序可以被存储在第一存储器120中并被配置为由一个或多个第一处理器110执行,第一处理器110用于一个或多个程序,以执行如前述方法实施例所描述的方法。The electronic device 100 in this application may include one or more of the following components: a first processor 110, a first memory 120, a screen 601, and one or more application programs, wherein one or more application programs may be stored in the first in a memory 120 and configured to be executed by one or more first processors 110, the first processors 110 are used for one or more programs to perform the methods described in the foregoing method embodiments.

第一处理器110可以包括一个或者多个处理核。第一处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在第一存储器120内的指令、程序、代码集或指令集,以及调用存储在第一存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,第一处理器110可以采用数字信号处理(Digital SignalProcessing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。第一处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(GraphicsProcessing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到第一处理器110中,单独通过一块通信芯片进行实现。The first processor 110 may include one or more processing cores. The first processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and by running or executing the instructions, programs, code sets or instruction sets stored in the first memory 120, and calling the stored in the first memory 120. 120, perform various functions of the electronic device 100 and process data. Optionally, the first processor 110 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). A hardware form to implement. The first processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the first processor 110, and is implemented by a communication chip alone.

第一存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。第一存储器120可用于存储指令、程序、代码、代码集或指令集。第一存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The first memory 120 may include a random access memory (Random Access Memory, RAM), or may include a read-only memory (Read-Only Memory). The first memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The first memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, and an image playback function). etc.), instructions for implementing the various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 during use (eg, phone book, audio and video data, chat record data) and the like.

请参阅图11,图11示出的电子设备除了包括上述第一处理器110、第一存储器120、屏幕601之外,还包括第一微控制单元(Microcontroller Unit,MCU)130、第一通信模块和第一安全单元150、第一测量天线,该第一测量天线包括第一天线161、第二天线162、第三天线163和第四天线164。其中,所述第一微控制单元用于控制所述第一通信模块产生无线信号,并通过所述第一测量天线发射;基于所述第一测量天线发射的无线信号,获取所述用户设备与所述电子设备的屏幕之间的相对位置,并将所述相对位置发送至所述处理器。其中,所述第一通信模块可以是图11和图14所示的UWB模块140,也可以是图15所示的测量模块170。Please refer to FIG. 11. In addition to the above-mentioned first processor 110, first memory 120, and screen 601, the electronic device shown in FIG. 11 also includes a first Microcontroller Unit (MCU) 130 and a first communication module. and a first security unit 150 , a first measurement antenna, the first measurement antenna includes a first antenna 161 , a second antenna 162 , a third antenna 163 and a fourth antenna 164 . Wherein, the first micro-control unit is used to control the first communication module to generate a wireless signal and transmit it through the first measurement antenna; based on the wireless signal transmitted by the first measurement antenna, obtain the relationship between the user equipment and the user equipment. relative positions between screens of the electronic device, and sending the relative positions to the processor. The first communication module may be the UWB module 140 shown in FIG. 11 and FIG. 14 , or may be the measurement module 170 shown in FIG. 15 .

于本申请实施例中,该智能设备可以是电子设备,则第一处理器110可以是电子设备的主机。处理器用于基于所述第一测量天线获取所述用户设备与所述电子设备的屏幕之间的相对位置,具体地,第一测量天线包括测距天线和测角度天线,测距天线用于测量所述用户设备与所述电子设备的屏幕之间的相对距离,测角度天线用于基于到达角度定位技术测量所述用户设备与所述电子设备的屏幕之间的相对方位角度。作为一种实施方式,第一天线161作为测距天线,用于测量所述用户设备与所述电子设备的屏幕之间的相对距离,第二天线162、第三天线163和第四天线164共同作为测角度天线,用于基于到达角度定位技术测量所述用户设备与所述电子设备的屏幕之间的相对方位角度。In this embodiment of the present application, the smart device may be an electronic device, and the first processor 110 may be a host of the electronic device. The processor is configured to obtain the relative position between the user equipment and the screen of the electronic device based on the first measurement antenna. Specifically, the first measurement antenna includes a ranging antenna and an angle-measuring antenna, and the ranging antenna is used for measuring The relative distance between the user equipment and the screen of the electronic device, the angle measuring antenna is used to measure the relative azimuth angle between the user equipment and the screen of the electronic device based on the angle of arrival positioning technology. As an implementation manner, the first antenna 161 is used as a ranging antenna to measure the relative distance between the user equipment and the screen of the electronic device, and the second antenna 162 , the third antenna 163 and the fourth antenna 164 share the same As an angle measuring antenna, it is used to measure the relative azimuth angle between the user equipment and the screen of the electronic device based on the angle of arrival positioning technology.

作为一种实施方式,第一测量天线包括共用天线,所述共用天线同时作为所述测距天线和所述测角度天线。例如,该共用天线可以是第一天线161。具体地,第一天线161可以单独完成电子设备与用户设备之间的UWB通信,可以用于UWB通信和TOF测距。UWB通信时,第一微控制单元130控制UWB模块140产生UWB信号,并通过第一天线161发射出去。用户设备接收到电子设备发射的UWB信号后,经过解调、解码、信号处理得到UWB信号所携带的信息。然后,用户设备再通过编码、调制处理回复UWB信号给电子设备。TOF测距时,电子设备通过自身发射和接收到信号的时间差、用户设备接收和发射信号的时间差、以及UWB信号在空气中的传播速度可以计算出用户设备距离电子设备的相对距离。As an implementation manner, the first measurement antenna includes a shared antenna, and the shared antenna serves as the ranging antenna and the angle measurement antenna at the same time. For example, the common antenna may be the first antenna 161 . Specifically, the first antenna 161 can independently complete the UWB communication between the electronic device and the user equipment, and can be used for UWB communication and TOF ranging. During UWB communication, the first micro-control unit 130 controls the UWB module 140 to generate UWB signals and transmit them through the first antenna 161 . After receiving the UWB signal transmitted by the electronic device, the user equipment obtains the information carried by the UWB signal through demodulation, decoding and signal processing. Then, the user equipment returns the UWB signal to the electronic equipment through encoding and modulation processing. During TOF ranging, the electronic device can calculate the relative distance between the user equipment and the electronic device through the time difference between the signal transmitted and received by the electronic device, the time difference between the signal received and transmitted by the user equipment, and the propagation speed of the UWB signal in the air.

第二天线162、第三天线163和第四天线164采用3D AOA方式测量用户设备与电子设备的相对方位角度。三根天线以特定的距离和形状摆放,只用于接收UWB信号供UWB模块和MCU处理。由于三根天线位置不同接收到同一个UWB信号的时间和相位不同,利用这一特征可以得到任一组天线对的相对角度,具体的计算方法可以参考前述AOA的描述,在此不再赘述。每组天线对确定的是一个圆锥形状,三组天线对确定的三个圆锥形状相交即可以确定出唯一方向。结合第一天线161测距和第二天线162、第三天线163和第四天线164测角,可以确定出相对距离和角度。The second antenna 162 , the third antenna 163 and the fourth antenna 164 measure the relative azimuth angle between the user equipment and the electronic equipment by using a 3D AOA method. The three antennas are placed at a specific distance and shape, and are only used to receive UWB signals for processing by the UWB module and MCU. Since the time and phase of receiving the same UWB signal are different for the three antennas at different positions, the relative angle of any group of antenna pairs can be obtained by using this feature. Each group of antenna pairs determines a conical shape, and the intersection of the three conical shapes determined by the three groups of antenna pairs can determine a unique direction. By combining the distance measurement of the first antenna 161 and the angle measurement of the second antenna 162, the third antenna 163 and the fourth antenna 164, the relative distance and angle can be determined.

如图12所示,UWB模块140包括MAC层和PHY层,用于产生UWB信号和解调UWB信号供MCU数据处理。UWB模块的硬件电路包括发射器(Transmitter)、接收器(Receiver)、频率产生单元(FGU)、调制解调器(Modem)、数字处理(DSP)、电源管理(PM)、主机接口系统(HostInterface Subsystem)、安全子系统(Security Subsystem)等。As shown in FIG. 12 , the UWB module 140 includes a MAC layer and a PHY layer for generating UWB signals and demodulating the UWB signals for MCU data processing. The hardware circuit of the UWB module includes a transmitter (Transmitter), a receiver (Receiver), a frequency generation unit (FGU), a modem (Modem), a digital processing (DSP), a power management (PM), a host interface system (HostInterface Subsystem), Security Subsystem, etc.

第一安全单元150含有安全内核的SOC,安全内核必须配备有一种或多种公私钥加密算法、分组数据加密算法和杂凑算法。硬件电路包括非易失性存储器、系统管理单元、安全处理单元、算法管理单元等,如图13所示,非易失性存储器用于存储用户设备的设别标识,具有不被攻击以及掉电保护等安全存储性。系统管理单元用于实现设备标识的采集与库中的预设标识比对,并将比对的结果传输给MCU处理,作为是否解锁屏的判断信号之一。安全处理单元实现用户身份管理、用户账户注册注销处理、身份认证处理等。算法管理单元用于通过通用算法或国密算法实现秘钥生成、运算、存储,数据加解密,数据签名、校验等。The first security unit 150 contains the SOC of the security core, and the security core must be equipped with one or more public and private key encryption algorithms, packet data encryption algorithms and hash algorithms. The hardware circuit includes a non-volatile memory, a system management unit, a security processing unit, an algorithm management unit, etc. As shown in Figure 13, the non-volatile memory is used to store the device identification of the user equipment, which is protected from attack and power failure. Safe storage such as protection. The system management unit is used to realize the comparison between the collection of the device identification and the preset identification in the library, and transmit the comparison result to the MCU for processing, as one of the judgment signals for unlocking the screen. The security processing unit implements user identity management, user account registration and cancellation processing, identity authentication processing, and the like. The algorithm management unit is used to realize secret key generation, operation, storage, data encryption and decryption, data signature, verification, etc. through general algorithm or national secret algorithm.

MCU主要具有三方面的功能:(1)控制UWB模块与其他设备配对,存储配对密码用户后续设备配对和比对,该比对结果作为是否解除/锁定屏幕的条件之一。(2)将携带有用户设备的设备标识传输给安全单元,安全单元判断设备标识是否与身份库中的预设标识相匹配,并将判断结果传回给MCU,该判断结果作为是否解除/锁定屏幕的条件之二。(3)通过预设的算法计算出用户设备相对电子设备的相对位置,并将相对位置信息传回给主机,该位置信息作为是否解除/锁定屏幕的条件之三。The MCU mainly has three functions: (1) Control the pairing of the UWB module with other devices, and store the pairing password for subsequent device pairing and comparison. The comparison result is used as one of the conditions for unlocking/locking the screen. (2) The device identification carrying the user equipment is transmitted to the security unit, and the security unit determines whether the device identification matches the preset identification in the identity database, and returns the judgment result to the MCU, and the judgment result is used as whether to release/lock The second condition of the screen. (3) Calculate the relative position of the user equipment relative to the electronic equipment through a preset algorithm, and send the relative position information back to the host, which is the third condition for whether to release/lock the screen.

处理器110(即主机)用于接收MCU发送的判断信号、信号处理、以及控制解除/锁定屏幕。当配对成功、身份信息匹配通过和位置信息满足阈值要求同时满足时,主机控制屏幕自动解锁。当任一条件无法满足时,主机控制屏幕自动锁屏,并继续以固定时间间隔扫描外部寻呼,重复以上判断流程。屏幕作为显示单元,解除/锁定屏幕的结果直接在屏幕上显示。The processor 110 (ie, the host) is used for receiving the judgment signal sent by the MCU, processing the signal, and controlling the unlocking/locking of the screen. When the pairing is successful, the identity information matches and the location information meets the threshold requirements at the same time, the host control screen is automatically unlocked. When any of the conditions cannot be met, the host controls the screen to automatically lock the screen, and continues to scan external paging at fixed time intervals, repeating the above judgment process. The screen is used as a display unit, and the result of unlocking/locking the screen is directly displayed on the screen.

作为一种实施方式,可以将上述的四根天线调整为三根天线,如图14所示,第一天线161用于测距,第一天线161、第二天线162、第三天线163用于测角,即第一天线161用于测距和测角。具体地,先使用第一天线161进行TOF测距,再使用第一天线161、第二天线162、第三天线进行3D AOA测角,从而使得硬件方案少一根天线,降低了成本和面积。As an embodiment, the above-mentioned four antennas can be adjusted into three antennas. As shown in FIG. 14 , the first antenna 161 is used for distance measurement, and the first antenna 161 , the second antenna 162 and the third antenna 163 are used for measurement angle, that is, the first antenna 161 is used for ranging and angle measurement. Specifically, the first antenna 161 is used to perform TOF ranging, and then the first antenna 161, the second antenna 162, and the third antenna are used to perform 3D AOA angle measurement, thereby reducing the cost and area of the hardware solution by one less antenna.

考虑到电子设备被操作时没有阻挡物且正对电子设备的屏幕,因此可将测距和测角模块替换为精度稍差、成本更低的检测方法,如图15所示,与上述电子设备相比,将UWB模块140更换为测量模块170,该测量模块170可以是超声波、红外线、蓝牙模块,与UWB相比,使用测量模块170使得硬件成本更低、技术方案成熟,更容易普及。Considering that the electronic device is operated without obstruction and facing the screen of the electronic device, the ranging and angle-measuring modules can be replaced with detection methods with less accuracy and lower cost, as shown in Figure 15, which is similar to the above-mentioned electronic device. In contrast, the UWB module 140 is replaced with a measurement module 170, which can be an ultrasonic, infrared, or Bluetooth module. Compared with UWB, the use of the measurement module 170 results in lower hardware costs, mature technical solutions, and easier popularization.

请参考图16,其示出了本申请实施例提供的一种用户设备的结构框图。该用户设备200可以是移动终端和穿戴设备等能够运行应用程序的设备。于本申请实施例中,该电子设备可以是穿戴设备,例如,可以是智能手环。Please refer to FIG. 16 , which shows a structural block diagram of a user equipment provided by an embodiment of the present application. The user equipment 200 may be a device capable of running an application program, such as a mobile terminal and a wearable device. In this embodiment of the present application, the electronic device may be a wearable device, for example, a smart bracelet.

本申请中的用户设备200可以包括一个或多个如下部件:第二处理器210、第二存储器220以及一个或多个应用程序,其中,一个或多个应用程序可以被存储在第二存储器220中并被配置为由一个或多个第二处理器210执行,第二处理器210用于一个或多个程序,以执行如前述方法实施例所描述的方法。The user equipment 200 in this application may include one or more of the following components: a second processor 210 , a second memory 220 and one or more application programs, wherein one or more application programs may be stored in the second memory 220 and configured to be executed by one or more second processors 210 for one or more programs to perform the methods described in the foregoing method embodiments.

作为一种实施方式,该第二处理器210和第二存储器220的实施方式可以参考前述第一处理器110和第一存储器120,在此不再赘述。As an implementation manner, for implementations of the second processor 210 and the second memory 220, reference may be made to the foregoing first processor 110 and the first memory 120, and details are not described herein again.

另外,用户设备200除了包括上述第二处理器210和第二存储器220之外,还包括第二微控制单元、第二通信模块和第二安全单元、第二测量天线,其中,述第二测量天线用于获取所述用户设备与电子设备的屏幕之间的相对位置;所述第二处理器用于当所述用户设备连接所述电子设备且所述用户设备的设备标识被所述电子设备验证通过时,若所述相对位置位于指定范围内,控制所述屏幕处于解锁状态。In addition, in addition to the second processor 210 and the second memory 220, the user equipment 200 further includes a second micro-control unit, a second communication module, a second security unit, and a second measurement antenna, wherein the second measurement The antenna is used for acquiring the relative position between the user equipment and the screen of the electronic device; the second processor is used for when the user equipment is connected to the electronic device and the device identity of the user equipment is verified by the electronic device When passing, if the relative position is within a specified range, the screen is controlled to be in an unlocked state.

作为一种实施方式,该第二微控制单元、第二通信模块和第二安全单元、第二测量天线的实施方式可以参考前述的第一微控制单元130、第一通信模块、第一安全单元150和第一测量天线,在此不再赘述。As an embodiment, for the implementation of the second micro-control unit, the second communication module, the second security unit, and the second measurement antenna, reference may be made to the aforementioned first micro-control unit 130, the first communication module, and the first security unit 150 and the first measurement antenna, which are not repeated here.

请参考图17,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1400中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 17 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 1400 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质1400可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1400包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1400具有执行上述方法中的任何方法步骤的程序代码1410的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1410可以例如以适当形式进行压缩。The computer-readable storage medium 1400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1400 includes a non-transitory computer-readable storage medium. Computer readable storage medium 1400 has storage space for program code 1410 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 1410 may be compressed, for example, in a suitable form.

综上所述,本申请实施例提供的屏幕控制方法一方面,有效解决了员工离开座位忘记锁屏的问题,避免了电脑数据被盗、被破坏的风险,保护了个人或公司的隐私和机密信息。另一方面,可自动识别是否安全人员靠近/操作电脑,从而实现自动解锁屏幕,不需要再频繁输入过长的密码解锁,极大提高了工作效率。To sum up, on the one hand, the screen control method provided by the embodiments of the present application effectively solves the problem of employees forgetting to lock the screen when they leave their seats, avoids the risk of computer data theft and destruction, and protects the privacy and confidentiality of individuals or companies. information. On the other hand, it can automatically identify whether security personnel are approaching/operating the computer, so as to realize automatic unlocking of the screen, no need to frequently input a long password to unlock, which greatly improves work efficiency.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (19)

1. A screen control method for an electronic device that can establish a connection with a user device, the method comprising:
when the electronic equipment is connected with the user equipment, acquiring and verifying equipment identification of the user equipment;
if the equipment identification passes the verification, acquiring the relative position between the screen of the electronic equipment and the user equipment;
and if the relative position is within the designated range, controlling the screen to be in an unlocking state.
2. The method of claim 1, wherein the relative position comprises a relative distance, and wherein after obtaining the relative position between the screen of the electronic device and the user device, further comprising:
judging whether the relative distance is smaller than a preset threshold value or not;
if the relative position is smaller than the preset threshold, judging that the relative position is located in a specified range;
and if the relative position is not smaller than the preset threshold, judging that the relative position is not positioned in the specified range.
3. The method of claim 1, wherein the relative position comprises a relative azimuth angle, and wherein after obtaining the relative position between the screen of the electronic device and the user device, further comprising:
judging whether the relative azimuth angle is within a specified angle range;
if the relative azimuth angle is within a specified angle range, judging that the relative position is within the specified range;
and if the relative azimuth angle is not in the specified angle range, judging that the relative position is not in the specified range.
4. The method of claim 1, wherein the relative position comprises a relative distance and a relative orientation angle, and wherein obtaining the relative position between the screen of the electronic device and the user device comprises:
if the relative distance is smaller than a preset threshold value and the relative azimuth angle is within a specified angle range, determining that the relative position is within the specified range;
and if at least one condition that the relative distance is not less than a preset threshold value and the relative azimuth angle is not in a specified angle range is met, judging that the relative position is not in the specified range.
5. The method of claim 1, wherein the verifying the device identity of the user equipment comprises:
judging whether the equipment identifier of the user equipment is matched with a preset identifier, wherein the preset identifier is the identifier of a terminal corresponding to an authorized user;
if the equipment identifier of the user equipment is matched with a preset identifier, judging that the equipment identifier passes verification;
and if the equipment identifier of the user equipment is not matched with the preset identifier, judging that the equipment identifier is not verified.
6. The method of claim 1, wherein obtaining and verifying the device identifier of the user device when the user device is connected to the electronic device comprises:
acquiring a connection request of user equipment, and trying to establish connection with the user equipment;
and if the connection is successfully established, acquiring and verifying the equipment identifier of the user equipment.
7. The method of claim 6, further comprising:
if the connection is not successfully established, detecting whether an unlocking password is acquired;
and if the unlocking password is acquired, unlocking the screen according to the unlocking password.
8. The method according to any one of claims 1-7, wherein the electronic device and the user equipment establish a connection through ultra-wideband wireless communication technology, and acquiring the relative position between the screen of the electronic device and the user equipment comprises:
and acquiring the relative position between the screen of the electronic equipment and the user equipment through an ultra-wideband wireless communication technology.
9. A screen control method for a user device that can establish a connection with an electronic device, the method comprising:
when the user equipment is connected with the electronic equipment and the equipment identification of the user equipment is verified by the electronic equipment, acquiring the relative position between the user equipment and the screen of the electronic equipment;
and if the relative position is within the designated range, controlling the screen to be in an unlocking state.
10. A screen control apparatus for an electronic device that can establish a connection with a user device, the apparatus comprising:
the first verification unit is used for acquiring and verifying the equipment identifier of the user equipment when the electronic equipment is connected with the user equipment;
the first determining unit is used for acquiring the relative position between the screen of the electronic equipment and the user equipment if the equipment identification passes verification;
and the first unlocking unit is used for controlling the screen to be in an unlocking state if the relative position is within a specified range.
11. A screen control apparatus for a user device that can establish a connection with an electronic device, the apparatus comprising:
a second verification unit, configured to acquire a relative position between the user equipment and a screen of the electronic device when the user equipment is connected to the electronic device and a device identifier of the user equipment is verified by the electronic device;
and the second unlocking unit is used for controlling the screen to be in an unlocking state if the relative position is within a specified range.
12. An electronic device, comprising:
one or more first processors;
a first memory;
a screen;
wherein the first processor is configured to execute a computer program stored in the first memory to perform the method of any of claims 1-8.
13. An electronic device, comprising: a first processor, a screen and a first measurement antenna;
the first measuring antenna is used for acquiring the relative position between a screen of the electronic equipment and user equipment;
the first processor is used for acquiring and verifying the equipment identifier of the user equipment when the electronic equipment is connected with the user equipment, and controlling the screen to be in an unlocking state if the equipment identifier passes verification and the relative position is located in a specified range.
14. The electronic device of claim 13, further comprising a micro-control unit and a communication module;
the micro control unit is used for controlling the communication module to generate a wireless signal and transmitting the wireless signal through the first measuring antenna; and acquiring the relative position between the screen of the electronic equipment and the user equipment based on the wireless signal transmitted by the first measuring antenna, and sending the relative position to the first processor.
15. The electronic device of claim 13, wherein the relative position comprises a relative distance and a relative azimuth angle, and wherein the first measurement antenna comprises a ranging antenna and an angle measurement antenna;
the ranging antenna is used for measuring the relative distance between the screen of the electronic equipment and the user equipment;
the angle measurement antenna is used for measuring a relative azimuth angle between a screen of the electronic equipment and the user equipment based on an angle of arrival positioning technology.
16. The electronic device of claim 15, wherein the first measurement antenna comprises a common antenna that functions as both the ranging antenna and the angle measurement antenna.
17. A user device, comprising:
one or more second processors;
a second memory;
wherein the second processor is configured to execute a computer program stored in the second memory to perform the method of claim 9.
18. A user device, comprising: a second processor and a second measurement antenna;
the second measuring antenna is used for acquiring the relative position between the user equipment and the screen of the electronic equipment;
and the second processor is used for controlling the screen to be in an unlocked state if the relative position is within a specified range when the user equipment is connected with the electronic equipment and the equipment identification of the user equipment is verified by the electronic equipment.
19. A computer-readable medium having stored program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1-8 when executed by the processor.
CN202011224719.5A 2020-11-05 2020-11-05 Screen control method and device, electronic equipment, user equipment and readable medium Withdrawn CN112306614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011224719.5A CN112306614A (en) 2020-11-05 2020-11-05 Screen control method and device, electronic equipment, user equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011224719.5A CN112306614A (en) 2020-11-05 2020-11-05 Screen control method and device, electronic equipment, user equipment and readable medium

Publications (1)

Publication Number Publication Date
CN112306614A true CN112306614A (en) 2021-02-02

Family

ID=74326191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011224719.5A Withdrawn CN112306614A (en) 2020-11-05 2020-11-05 Screen control method and device, electronic equipment, user equipment and readable medium

Country Status (1)

Country Link
CN (1) CN112306614A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535247A (en) * 2021-06-15 2021-10-22 荣耀终端有限公司 A method and system for screen locking and unlocking
CN114732200A (en) * 2022-03-23 2022-07-12 周小洋 Mobile phone timing box unlocking method and device, electronic equipment and mobile phone timing box
CN114968446A (en) * 2021-03-17 2022-08-30 联想(新加坡)私人有限公司 Device unlocking or awakening based on ultra-wideband position tracking
CN115190202A (en) * 2022-05-23 2022-10-14 荣耀终端有限公司 Unlocking method of terminal equipment and related device
CN115618315A (en) * 2022-10-31 2023-01-17 中国农业银行股份有限公司 Screen unlocking method, device, electronic device and storage medium
TWI891513B (en) * 2024-09-23 2025-07-21 奧圖碼股份有限公司 Display system, display device and unlocking method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019388A (en) * 2013-01-09 2013-04-03 苏州云都网络技术有限公司 Screen unlocking method, screen locking method and terminal
CN105893802A (en) * 2016-03-29 2016-08-24 四川效率源信息安全技术股份有限公司 Method for locking/unlocking computer screen based on Bluetooth
US20180035296A1 (en) * 2015-05-21 2018-02-01 Tencent Technology (Shenzhen) Company Limited Screen unlocking method and apparatus, and storage medium
CN111246395A (en) * 2019-12-27 2020-06-05 上海商米科技集团股份有限公司 Method and apparatus for wirelessly unlocking and locking an electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019388A (en) * 2013-01-09 2013-04-03 苏州云都网络技术有限公司 Screen unlocking method, screen locking method and terminal
US20180035296A1 (en) * 2015-05-21 2018-02-01 Tencent Technology (Shenzhen) Company Limited Screen unlocking method and apparatus, and storage medium
CN105893802A (en) * 2016-03-29 2016-08-24 四川效率源信息安全技术股份有限公司 Method for locking/unlocking computer screen based on Bluetooth
CN111246395A (en) * 2019-12-27 2020-06-05 上海商米科技集团股份有限公司 Method and apparatus for wirelessly unlocking and locking an electronic device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968446A (en) * 2021-03-17 2022-08-30 联想(新加坡)私人有限公司 Device unlocking or awakening based on ultra-wideband position tracking
CN113535247A (en) * 2021-06-15 2021-10-22 荣耀终端有限公司 A method and system for screen locking and unlocking
CN113535247B (en) * 2021-06-15 2022-10-14 荣耀终端有限公司 Screen locking and unlocking method and system
WO2022262519A1 (en) * 2021-06-15 2022-12-22 荣耀终端有限公司 Screen locking method and system, and screen unlocking method and system
CN114732200A (en) * 2022-03-23 2022-07-12 周小洋 Mobile phone timing box unlocking method and device, electronic equipment and mobile phone timing box
CN115190202A (en) * 2022-05-23 2022-10-14 荣耀终端有限公司 Unlocking method of terminal equipment and related device
CN115618315A (en) * 2022-10-31 2023-01-17 中国农业银行股份有限公司 Screen unlocking method, device, electronic device and storage medium
TWI891513B (en) * 2024-09-23 2025-07-21 奧圖碼股份有限公司 Display system, display device and unlocking method thereof

Similar Documents

Publication Publication Date Title
CN112306614A (en) Screen control method and device, electronic equipment, user equipment and readable medium
EP3446457B1 (en) Two-factor authentication
JP7213967B2 (en) System, method and apparatus for access control
US11562644B2 (en) Proximity-sensor supporting multiple application services
CN101395890B (en) Distance-based security
Varshavsky et al. Amigo: Proximity-based authentication of mobile devices
US12354424B2 (en) Techniques for authenticating building/room access terminals
US10432321B2 (en) Ultrasonic communications for wireless beacons
EP3428818B1 (en) Identity authentication method and system
EP3029972B1 (en) Smart beacon data security
US7378939B2 (en) Method and apparatus for providing proximity based authentication, security, and notification in a wireless system
US20030220765A1 (en) Method and apparatus for enhancing security in a wireless network using distance measurement techniques
CN119789039A (en) Distance measurement between mobile devices
CN105550552B (en) A kind of guard method of mobile terminal and device
US20180227754A1 (en) Wearable data device with deactivation security feature
JP6183132B2 (en) Authentication server, authentication program, and authentication method
CN105894628A (en) Method, device and system for processing information, mobile terminal and intelligent lock
Li et al. iLock: Immediate and automatic locking of mobile devices against data theft
JP2017224101A (en) Information processing terminal, information processing system, program, and control method
CN106028284A (en) Method for identifying relative positions between smart devices and smart devices
WO2025243565A1 (en) Authentication device, authentication method, and program
CN112983132A (en) Unlocking method, wearable device, unlocking device and unlocking device
Scannell et al. Proximity-based authentication of mobile devices
EP3231208B1 (en) Local authentication
JP6880295B2 (en) Authentication systems, servers, authentication methods, and programs

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210202