[go: up one dir, main page]

CN108347758A - Screen wake-up method and device, terminal, computer-readable storage medium - Google Patents

Screen wake-up method and device, terminal, computer-readable storage medium Download PDF

Info

Publication number
CN108347758A
CN108347758A CN201810114241.7A CN201810114241A CN108347758A CN 108347758 A CN108347758 A CN 108347758A CN 201810114241 A CN201810114241 A CN 201810114241A CN 108347758 A CN108347758 A CN 108347758A
Authority
CN
China
Prior art keywords
terminal
wake
screen
main chip
sensor
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.)
Pending
Application number
CN201810114241.7A
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 CN201810114241.7A priority Critical patent/CN108347758A/en
Publication of CN108347758A publication Critical patent/CN108347758A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a screen awakening method and device, a terminal and a computer readable storage medium. The method comprises the following steps: when the lifting wake-up function of the terminal is started, starting the motion detection function of the acceleration sensor; if the change of the motion state of the terminal is detected, the acceleration sensor sends an interrupt request to a main chip, and the main chip starts a related sensor according to the interrupt request; and when the data detected by the associated sensor reaches a preset awakening condition, the main chip awakens the terminal screen. By the method, the sensor and the main chip can be automatically switched on and off according to the motion state of the terminal, the power consumption of the terminal is reduced while the terminal screen is intelligently awakened, and the standby time of the terminal is prolonged.

Description

屏幕唤醒方法和装置、终端、计算机可读存储介质Screen wake-up method and device, terminal, computer-readable storage medium

技术领域technical field

本申请涉及电子技术领域,特别是涉及一种屏幕唤醒方法方法和装置、终端、计算机可读存储介质。The present application relates to the field of electronic technology, and in particular to a method and device for waking up a screen, a terminal, and a computer-readable storage medium.

背景技术Background technique

随着通信设备的智能化发展,传感器的应用越来越广泛,现在的智能终端上往往搭载了很多传感器,例如声传感器、光传感器、触摸传感器、重力传感器、加速度传感器、方向传感器、距离传感器、磁传感器等,给用户带来了丰富的应用和体验。在通过传感器实现特殊功能、应用的过程中,传感器与主芯片长期开启会导致耗电量增大、发热等现象,造成不必要的功耗损失。With the intelligent development of communication equipment, the application of sensors is becoming more and more extensive. Nowadays, smart terminals are often equipped with many sensors, such as acoustic sensors, light sensors, touch sensors, gravity sensors, acceleration sensors, direction sensors, distance sensors, Magnetic sensors, etc., have brought rich applications and experiences to users. In the process of implementing special functions and applications through sensors, long-term openness of the sensor and the main chip will lead to increased power consumption, heat generation, and other phenomena, resulting in unnecessary power loss.

发明内容Contents of the invention

本申请实施例提供一种屏幕唤醒方法、装置、计算机设备及存储介质,能够根据终端的运动状态自动开关传感器与主芯片,降低终端的功耗。Embodiments of the present application provide a screen wake-up method, device, computer equipment, and storage medium, which can automatically switch a sensor and a main chip according to a motion state of a terminal to reduce power consumption of the terminal.

一种屏幕唤醒方法,用于抬起唤醒终端屏幕,包括:A method for waking up the screen, used for raising and waking up the terminal screen, comprising:

当所述终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能;When the wake-up function of the terminal is turned on, turn on the motion detection function of the acceleration sensor;

若检测到所述终端的运动状态发生变化,则所述加速度传感器向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器;If it is detected that the motion state of the terminal changes, the acceleration sensor sends an interrupt request to the main chip, and the main chip turns on the associated sensor according to the interrupt request;

当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕。When the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen.

一种屏幕唤醒装置,包括:A screen wake-up device, comprising:

启动模块,用于当所述终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能;The starting module is used to start the motion detection function of the acceleration sensor when the lift-up wake-up function of the terminal is turned on;

检测模块,用于在检测到所述终端的运动状态发生变化后,向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器;The detection module is configured to send an interrupt request to the main chip after detecting that the motion state of the terminal changes, and the main chip turns on the associated sensor according to the interrupt request;

唤醒模块,用于当所述关联传感器检测的数据达到预设唤醒条件时,唤醒终端屏幕。A wake-up module, configured to wake up the terminal screen when the data detected by the associated sensor reaches a preset wake-up condition.

一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行所述的屏幕唤醒方法的步骤。A terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to execute the steps of the screen wake-up method.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述的方法的步骤。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method are realized.

上述屏幕唤醒方法和装置、终端、计算机可读存储介质,当终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能,若检测到所述终端的运动状态发生变化,则所述加速度传感器向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器,当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕,能够根据终端的运动状态自动开关传感器与主芯片,在实现智能唤醒终端屏幕的同时降低终端的功耗,增加终端的待机时长。The above screen wake-up method and device, terminal, and computer-readable storage medium, when the lift-up wake-up function of the terminal is turned on, the motion detection function of the acceleration sensor is turned on, and if a change in the motion state of the terminal is detected, the acceleration sensor Send an interrupt request to the main chip, the main chip turns on the associated sensor according to the interrupt request, and when the data detected by the associated sensor reaches the preset wake-up condition, the main chip wakes up the terminal screen, which can automatically The switch sensor and the main chip realize intelligent wake-up of the terminal screen while reducing the power consumption of the terminal and increasing the standby time of the terminal.

附图说明Description of drawings

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

图1为一个实施例中传感器的驱动框架示意图;Fig. 1 is a schematic diagram of a drive frame of a sensor in an embodiment;

图2为一个实施例中终端的内部结构示意图;Fig. 2 is a schematic diagram of the internal structure of a terminal in an embodiment;

图3为一个实施例中屏幕唤醒方法的流程图;Fig. 3 is the flowchart of screen wake-up method in one embodiment;

图4为又一个实施例中屏幕唤醒方法的流程图;FIG. 4 is a flow chart of a screen wake-up method in yet another embodiment;

图5为又一个实施例中屏幕唤醒方法的流程图;FIG. 5 is a flowchart of a screen wake-up method in yet another embodiment;

图6为又一个实施例中屏幕唤醒方法的流程图;FIG. 6 is a flowchart of a screen wake-up method in yet another embodiment;

图7为又一个实施例中屏幕唤醒方法的流程图;FIG. 7 is a flowchart of a screen wake-up method in yet another embodiment;

图8为又一个实施例中屏幕唤醒方法的流程图;FIG. 8 is a flowchart of a screen wake-up method in yet another embodiment;

图9为一个实施例中屏幕唤醒装置的结构框图;Fig. 9 is a structural block diagram of a screen wake-up device in an embodiment;

图10为与本申请实施例提供的终端相关的手机的部分结构的框图;FIG. 10 is a block diagram of a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application;

图11为一个实施例中终端的空间坐标轴位置示意图。Fig. 11 is a schematic diagram of the spatial coordinate axis position of the terminal in an embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在限制本申请。可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the description of the application are only for the purpose of describing specific embodiments, and are not intended to limit the application. It can be understood that the terms "first", "second" and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first client could be termed a second client, and, similarly, a second client could be termed a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.

在一个实施例中,如图1所示,提供了一种传感器的驱动框架示意图。其中,该传感器的驱动框架包括用户空间层110、内核空间层120和硬件层130。用户空间层110上可包含应用程序112,传感器可通过该应用程序112来实现对终端运动状态的检测,当终端的位置信息和/或转动角度达到预设唤醒条件时,唤醒终端屏幕。内核空间层120中包括I2C(Inter-Integrated Circuit,I2C总线)设备驱动122、I2C核心124以及I2C适配器126。通过I2C设备驱动122实现对I2C硬件体系结构中设备端的驱动,设备一般挂接在受主芯片(CPU)控制的I2C适配器126上,通过I2C适配器126与主芯片交换数据。I2C核心124提供了I2C总线驱动和设备驱动的注册、注销方法。通过I2C总线驱动实现对硬件层中的I2C适配器132的控制,I2C总线驱动主要包含了I2C适配器132的数据结构和控制I2C适配器132产生通信信号的函数,控制I2C适配器与I2C设备交换数据。通过上述的传感器的驱动框架,可实现本申请各个实施例中的屏幕唤醒方法。In one embodiment, as shown in FIG. 1 , a schematic diagram of a driving framework of a sensor is provided. Wherein, the driver framework of the sensor includes a user space layer 110 , a kernel space layer 120 and a hardware layer 130 . The user space layer 110 may contain an application program 112 through which the sensor can detect the motion status of the terminal, and wake up the terminal screen when the terminal's position information and/or rotation angle meet the preset wake-up conditions. The kernel space layer 120 includes an I2C (Inter-Integrated Circuit, I2C bus) device driver 122 , an I2C core 124 and an I2C adapter 126 . The device driver in the I2C hardware architecture is driven by the I2C device driver 122. The device is generally connected to the I2C adapter 126 controlled by the main chip (CPU), and exchanges data with the main chip through the I2C adapter 126. The I2C core 124 provides registration and deregistration methods for I2C bus drivers and device drivers. The control of the I2C adapter 132 in the hardware layer is realized through the I2C bus driver. The I2C bus driver mainly includes the data structure of the I2C adapter 132 and the function of controlling the I2C adapter 132 to generate communication signals, and controls the I2C adapter to exchange data with the I2C device. Through the above sensor driving framework, the screen wake-up method in each embodiment of the present application can be realized.

在一个实施例中,如图2所示,提供了一种终端的内部结构示意图。该终端包括通过系统总线连接的处理器、存储器和显示屏。其中,该处理器用于提供计算和控制能力,支撑整个终端的运行。存储器用于存储数据、程序、和/或指令代码等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于终端的屏幕唤醒方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统、数据库和计算机程序。该数据库中存储有用于实现以上各个实施例所提供的一种屏幕唤醒方法相关的数据,比如可存储有唤醒终端的预设位置数据或角度数据等。该计算机程序可被处理器所执行,以用于实现本申请各个实施例所提供的一种屏幕唤醒方法。内存储器为非易失性存储介质中的操作系统、数据库和计算机程序提供高速缓存的运行环境。显示屏可以是触摸屏,比如为电容屏或电子屏,用于显示终端的界面信息,显示屏包括亮屏状态和息屏状态,当终端处于休眠模式时显示屏为息屏状态,当终端的屏幕被唤醒时显示屏为亮屏状态。该终端可以是手机、平板电脑或者个人数字助理或穿戴式设备等。In one embodiment, as shown in FIG. 2 , a schematic diagram of an internal structure of a terminal is provided. The terminal includes a processor, a memory and a display screen connected by a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire terminal. The memory is used to store data, programs, and/or instruction codes, etc., and at least one computer program is stored on the memory, and the computer program can be executed by the processor to implement the screen wake-up method applicable to the terminal provided in the embodiment of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random-access-memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes non-volatile storage media and internal memory. Nonvolatile storage media store operating systems, databases, and computer programs. The database stores data related to implementing a method for waking up the screen provided by the above embodiments, for example, preset position data or angle data for waking up the terminal may be stored. The computer program can be executed by a processor, so as to realize a method for waking up a screen provided by various embodiments of the present application. Internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, which is used to display terminal interface information. The display screen includes a bright screen state and an off screen state. When the terminal is in sleep mode, the display screen is in an off screen state. When awakened, the display screen is in a bright state. The terminal may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device.

本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端的限定,具体的终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。如该终端还包括通过系统总线连接的传感器,传感器可以是加速度传感器、陀螺仪、红外线传感器、地磁传感器中的一种及以上,用于对终端的状态信息进行检测,比如可用于检测终端的位置数据、转动角度、与外部接触物的距离等。Those skilled in the art can understand that the structure shown in Figure 1 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the terminals to which the solution of this application is applied. Specific terminals may include More or fewer components are shown in the figures, or certain components are combined, or have different component arrangements. If the terminal also includes a sensor connected through the system bus, the sensor can be one or more of an acceleration sensor, a gyroscope, an infrared sensor, and a geomagnetic sensor, and is used to detect the status information of the terminal, for example, it can be used to detect the position of the terminal data, rotation angle, distance from external contact objects, etc.

在一个实施例中,如图3所示,提供了一种屏幕唤醒方法,用于抬起唤醒终端屏幕。本实施例以该方法应用于如图2所示的终端为例进行说明。该屏幕唤醒方法,包括:In one embodiment, as shown in FIG. 3 , a method for waking up the screen is provided, which is used to wake up the terminal screen by lifting it up. This embodiment is described by taking the method applied to the terminal shown in FIG. 2 as an example. The screen wake-up method includes:

步骤302:当所述终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能。Step 302: When the wake-up function of the terminal is turned on, turn on the motion detection function of the acceleration sensor.

其中,终端上设有抬起唤醒功能开关,例如开关名称为“抬手亮屏”,用于开启或关闭抬起唤醒功能。可选地,终端可以接收用户在设置界面输入的操作指令以开启或关闭抬起唤醒功能,操作指令可以是触控操作、语音操作、按键操作中的至少一种;终端还可以根据不同场景智能地切换该抬起唤醒开关,例如在24:00~8:00时间段内关闭抬起唤醒功能,其他时间段开启抬起唤醒功能。Wherein, there is a lift-to-wake function switch on the terminal, for example, the name of the switch is "raise hand to brighten the screen", which is used to enable or disable the lift-to-wake function. Optionally, the terminal can receive an operation instruction input by the user on the setting interface to turn on or off the lift-to-wake function. The operation instruction can be at least one of touch operation, voice operation, and button operation; the terminal can also be intelligent according to different scenarios. The wake-up switch can be switched accordingly, for example, the wake-up function is turned off during the time period of 24:00-8:00, and the wake-up function is turned on during other time periods.

当终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能(accelmotion detect,AMD)。其中,加速度传感器在本实施例中可以是重力加速度传感器(GRAVITY Sensor,G-sensor),能够检测加速力的变化,可以通过其来获得分别来自三个不同轴向上的加速度用以通知上层应用做出相应处理。因此,通过加速度传感器的运动检测功能够检测终端是否发生移动。当终端未发生移动时,加速度传感器处于低功耗状态;在检测到终端发生移动(例如抖动)后,加速度传感器向主芯片传输数据。When the wake-up function of the terminal is turned on, the motion detection function (accelmotion detect, AMD) of the acceleration sensor is turned on. Among them, the acceleration sensor in this embodiment can be a gravity acceleration sensor (GRAVITY Sensor, G-sensor), which can detect changes in acceleration force, and can obtain accelerations from three different axial directions through it to notify the upper layer application Deal with it accordingly. Therefore, whether the terminal moves can be detected through the motion detection function of the acceleration sensor. When the terminal is not moving, the acceleration sensor is in a low power consumption state; after detecting that the terminal is moving (such as shaking), the acceleration sensor transmits data to the main chip.

步骤304:若检测到所述终端的运动状态发生变化,则所述加速度传感器向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器。Step 304: If it is detected that the motion state of the terminal changes, the acceleration sensor sends an interrupt request to the main chip, and the main chip turns on the associated sensor according to the interrupt request.

终端的运动状态包括稳定状态和移动状态,其中稳定状态可以表示终端处于静止时的状态,移动状态可以表示终端被拿起或甩动时的状态。加速度传感器通过AMD检测到终端的运动状态发生变化后会向主芯片发送中断请求,中断请求表示向主芯片提出申请(例如发送一个电脉冲信号),要求主芯片中断当前工作,处理周边硬件提出的需求。The motion state of the terminal includes a stable state and a moving state, wherein the stable state may represent a state when the terminal is at rest, and the moving state may represent a state when the terminal is picked up or shaken. The acceleration sensor will send an interrupt request to the main chip after detecting that the motion state of the terminal has changed through AMD. The interrupt request means to apply to the main chip (such as sending an electrical pulse signal), requiring the main chip to interrupt the current work and process the peripheral hardware. need.

举例说明,先对G-sensor器件设定一个阈值,当该G-sensor器件检测到当前加速度值大于设定的阈值时触发主芯片中断,主芯片接收到一次抖动事件,主芯片处理该抖动事件并开始抬起唤醒终端屏幕的检测工作。For example, first set a threshold for the G-sensor device. When the G-sensor device detects that the current acceleration value is greater than the set threshold, the main chip interrupt is triggered. The main chip receives a jitter event, and the main chip processes the jitter event. And start the detection work of raising and waking up the terminal screen.

进一步地,主芯片根据加速度传感器中断请求开启关联传感器,其中,关联传感器包括但不限于加速度传感器、陀螺仪、红外线传感器和地磁传感器,根据需要实现的不同功能可开启不同的传感器进行数据检测。可以理解的是,上述关联传感器可以采用单独一个传感器来实现特定功能,例如单独采用加速度传感器来实现终端的抬起唤醒检测功能,节省器件功耗;也可以采用多个传感器结合的方式实现特定的功能,例如采用加速度传感器和陀螺仪传感器来检测终端的位置信息和转动角度来实现终端的抬起唤醒检测功能,提升检测的准确率;不同的传感器使用方式可带来不同的技术效果,本申请对此不作进一步限定。Further, the main chip turns on associated sensors according to the interrupt request of the acceleration sensor, wherein the associated sensors include but not limited to acceleration sensors, gyroscopes, infrared sensors and geomagnetic sensors, and different sensors can be turned on for data detection according to different functions realized as required. It can be understood that the above-mentioned associated sensor can use a single sensor to realize a specific function, for example, an acceleration sensor can be used alone to realize the wake-up detection function of the terminal to save power consumption of the device; a combination of multiple sensors can also be used to achieve a specific function. Functions, such as using the acceleration sensor and gyroscope sensor to detect the position information and rotation angle of the terminal to realize the wake-up detection function of the terminal and improve the accuracy of detection; different sensor usage methods can bring different technical effects, this application This is not further limited.

步骤306:当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕。Step 306: When the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen.

例如可以通过加速度传感器可以检测终端的位置信息,根据终端在X、Y、Z三个坐标轴的位置判断终端是否抬起到正对人脸的位置,从而实现自动唤醒或熄灭终端屏幕的功能。例如还可以通过加速度传感器与陀螺仪检测终端的位置信息以及转动角度,判断终端是否在X、Y、Z三个坐标轴的任一坐标轴的转动角度超过预设角度阈值、并且该终端抬起到人脸位置,来实现自动唤醒或熄灭终端屏幕的功能。For example, the acceleration sensor can detect the location information of the terminal, and judge whether the terminal is raised to the position facing the face according to the position of the terminal on the three coordinate axes of X, Y, and Z, so as to realize the function of automatically waking up or turning off the terminal screen. For example, the acceleration sensor and gyroscope can also be used to detect the position information and rotation angle of the terminal, and determine whether the rotation angle of the terminal on any of the three coordinate axes of X, Y, and Z exceeds the preset angle threshold, and the terminal is raised. to the position of the face to realize the function of automatically waking up or turning off the terminal screen.

本实施例提供的屏幕唤醒方法,当终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能,若检测到所述终端的运动状态发生变化,则所述加速度传感器向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器,当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕,能够根据终端的运动状态自动开关传感器与主芯片,在实现智能唤醒终端屏幕的同时降低终端的功耗,增加终端的待机时长。In the screen wake-up method provided in this embodiment, when the lift-up wake-up function of the terminal is turned on, the motion detection function of the acceleration sensor is turned on, and if a change in the motion state of the terminal is detected, the acceleration sensor sends an interrupt request to the main chip , the main chip turns on the associated sensor according to the interrupt request, and when the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen, and can automatically switch the sensor and the main chip according to the motion state of the terminal, While realizing intelligent wake-up of the terminal screen, the power consumption of the terminal is reduced, and the standby time of the terminal is increased.

在一个实施例中,如图4所示,在步骤302之后,还包括:In one embodiment, as shown in FIG. 4, after step 302, further includes:

步骤402:当所述终端处于息屏状态时,所述加速度传感器进入待机检测模式,并检测所述终端的加速度值是否大于预设加速度阈值;若是,则执行步骤404。Step 402: When the terminal is in the off-screen state, the acceleration sensor enters a standby detection mode, and detects whether the acceleration value of the terminal is greater than a preset acceleration threshold; if yes, execute step 404.

具体地,终端处于息屏状态时表示终端的显示屏背光熄灭以节省电源、防止误触控等,在息屏状态下终端通常处于低功耗模式,各器件保持休眠状态等待有操作指令或通知时才被唤醒开始工作。Specifically, when the terminal is in the off-screen state, it means that the backlight of the display screen of the terminal is turned off to save power and prevent false touches, etc. In the off-screen state, the terminal is usually in a low power consumption mode, and each device remains in a dormant state waiting for an operation command or notification Wake up and start working.

当终端处于息屏状态,且终端杆的抬起唤醒功能开启时,若终端保持稳定状态,此时加速传感器进入待机检测模式,实时检测终端是否发生移动。具体地,加速度传感器检测终端的当前加速度值,当终端处于静止或匀速运动状态时,终端的当前加速度为零,此时终端通常处于被放置的情况下;当终端被移动时,加速度传感器会检测到终端当前的加速度值发生变化,若检测到加速度值大于预设加速度阈值,则认为终端发生抖动或晃动,此时终端可能处于被抬起或翻转的情况下。When the terminal is in the off-screen state and the wake-up function of the terminal pole is turned on, if the terminal remains in a stable state, the acceleration sensor will enter the standby detection mode at this time to detect whether the terminal moves in real time. Specifically, the acceleration sensor detects the current acceleration value of the terminal. When the terminal is stationary or moving at a constant speed, the current acceleration of the terminal is zero. At this time, the terminal is usually placed; when the terminal is moved, the acceleration sensor will detect When the current acceleration value of the terminal changes, if the detected acceleration value is greater than the preset acceleration threshold, it is considered that the terminal shakes or shakes. At this time, the terminal may be lifted or turned over.

步骤404:判定为所述终端由稳定状态变为移动状态。Step 404: It is determined that the terminal changes from a stable state to a moving state.

当检测到终端的加速度值大于预设加速度阈值时,则判定为该终端由稳定状态变为移动状态,此时加速度传感器会向主芯片发送一次抖动事件,以指示主芯片进行抬起唤醒检测工作。When it is detected that the acceleration value of the terminal is greater than the preset acceleration threshold, it is determined that the terminal has changed from a stable state to a moving state. At this time, the acceleration sensor will send a vibration event to the main chip to instruct the main chip to perform lift-up and wake-up detection. .

在本实施例中,在终端处于息屏状态时,加速度传感器进入待机检测模式,当检测到终端的加速度值大于预设加速度阈值时判定为终端由稳定状态变为移动状态,能够在终端静止时使传感器与主芯片进入低功耗模式,降低了终端功耗与资源占用率。In this embodiment, when the terminal is in the off-screen state, the acceleration sensor enters the standby detection mode, and when it detects that the acceleration value of the terminal is greater than the preset acceleration threshold, it is determined that the terminal changes from a stable state to a moving state. Make the sensor and the main chip enter the low power consumption mode, which reduces the terminal power consumption and resource occupancy rate.

在一个实施例中,加速度传感器获取X、Y、Z三个坐标轴的加速度值,若至少一个坐标轴上的加速度值大于预设加速度阈值,则判定为所述终端发生移动。举例说明,由于地球的引力作用,G-sensor平放时,Z轴方向能感应到1g的重力加速度,如果移动或倾斜,此时垂直的重力加速度会分解到X、Y、Z坐标轴上,所以移动具有G-sensor的终端时,X,Y,Z轴的值不断变化,可以理解为终端处于一个坐标系中,根据X、Y、Z轴当前的值就能判断该终端是否移动。In one embodiment, the acceleration sensor acquires acceleration values of three coordinate axes X, Y, and Z, and if the acceleration value on at least one coordinate axis is greater than a preset acceleration threshold, it is determined that the terminal is moving. For example, due to the gravitational effect of the earth, when the G-sensor is placed flat, the Z-axis direction can sense a 1g gravitational acceleration. If it is moved or tilted, the vertical gravitational acceleration will be decomposed into the X, Y, and Z coordinate axes. Therefore, when moving a terminal with a G-sensor, the values of the X, Y, and Z axes are constantly changing. It can be understood that the terminal is in a coordinate system, and it can be judged whether the terminal is moving according to the current values of the X, Y, and Z axes.

其中,X、Y、Z三个坐标轴的加速度值表示了终端的不同移动方向,如图11所示,以屏幕的左下方为原点,箭头指向的方向为正,以浮点数为等级单位,例如从-10到10,则有如下情形:当手机屏幕向上(z轴朝天)水平放置的时侯,(x,y,z)的值分别为(0,0,10);当手机屏幕向下(z轴朝地)水平放置的时侯,(x,y,z)的值分别为(0,0,-10);当手机屏幕向左侧放(x轴朝天)的时候,(x,y,z)的值分别为(10,0,0);当手机竖直(y轴朝天)向上的时候,(x,y,z)的值分别为(0,10,0);因此,通过X、Y、Z三个坐标轴求三角函数,能够准确地检测出手机的运动状态。可以理解的是,当坐标轴的原点选取不同位置时,X、Y、Z三个坐标轴的值也对应表示不同位置。Among them, the acceleration values of the three coordinate axes of X, Y, and Z represent different moving directions of the terminal, as shown in Figure 11, with the lower left of the screen as the origin, the direction pointed by the arrow is positive, and the level unit is a floating point number. For example, from -10 to 10, the situation is as follows: when the mobile phone screen is placed horizontally upwards (z-axis facing the sky), the values of (x, y, z) are (0, 0, 10); When the bottom (z-axis is facing the ground) is placed horizontally, the values of (x, y, z) are (0, 0, -10); when the mobile phone screen is placed to the left (x-axis is facing the sky), (x , y, z) are (10, 0, 0); when the mobile phone is vertical (y-axis facing the sky), the values of (x, y, z) are (0, 10, 0); therefore , through the X, Y, Z three coordinate axes to calculate the trigonometric function, can accurately detect the motion state of the mobile phone. It can be understood that when the origins of the coordinate axes are selected at different positions, the values of the three coordinate axes X, Y, and Z also represent different positions correspondingly.

在一个实施例中,如图5所示,所述加速度传感器向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器,包括:In one embodiment, as shown in FIG. 5, the acceleration sensor sends an interrupt request to the main chip, and the main chip turns on the associated sensor according to the interrupt request, including:

步骤502:当所述加速度传感器检测到所述终端发生移动后,向所述主芯片发送用于指示所述主芯片进行抬起唤醒检测工作的中断请求;Step 502: After the acceleration sensor detects that the terminal moves, send an interrupt request to the main chip for instructing the main chip to perform lift-up and wake-up detection;

具体地,当终端处于稳定状态时,加速度传感器处于待机检测模式,此时加速度传感器与主芯片的通道并未开启,也即主芯片此时不与加速度传感器进行数据交换。当加速度传感器检测到终端发生移动(抖动)时,向主芯片发送中断请求,用于指示主芯片进行抬起唤醒检测工作。Specifically, when the terminal is in a stable state, the acceleration sensor is in the standby detection mode, and the channel between the acceleration sensor and the main chip is not opened at this time, that is, the main chip does not exchange data with the acceleration sensor at this time. When the acceleration sensor detects that the terminal moves (shakes), it sends an interrupt request to the main chip to instruct the main chip to perform lift-up and wake-up detection.

步骤504:所述主芯片根据所述中断请求开启与所述关联传感器的数据传输通道。Step 504: The main chip opens a data transmission channel with the associated sensor according to the interrupt request.

其中,关联传感器指的是为实现抬起唤醒终端屏幕功能所需要使用到的传感器,可以是加速度传感器、陀螺仪、红外线传感器、地磁传感器等,关联传感器可以为一个或多个。主芯片接收到加速度传感器发送的中断请求后开启与关联传感器的数据传输通道,与相关的传感器进行数据交换。Wherein, the associated sensor refers to the sensor required to realize the function of lifting and waking up the terminal screen, which may be an acceleration sensor, a gyroscope, an infrared sensor, a geomagnetic sensor, etc., and there may be one or more associated sensors. After receiving the interrupt request sent by the acceleration sensor, the main chip opens the data transmission channel with the associated sensor, and exchanges data with the related sensor.

例如,主芯片接收到一次抖动事件,接收关联传感器检测的数据,当传感器检测的数据达到预设唤醒条件时,主芯片系统将发送唤醒消息至用户空间层的应用程序,应用程序接收到消息后唤醒终端屏幕。For example, the main chip receives a jitter event and receives the data detected by the associated sensor. When the data detected by the sensor reaches the preset wake-up condition, the main chip system will send a wake-up message to the application program in the user space layer. After the application program receives the message Wake up the terminal screen.

进一步地,当终端再次进入息屏状态且终端被稳定放置时,主芯片关闭关联传感器。Further, when the terminal enters the off-screen state again and the terminal is placed stably, the main chip turns off the associated sensor.

本实施例提供的屏幕唤醒方法,在传感器检测到终端发生抖动后再指示主芯片开启关联传感器,能够节省器件功耗,提升终端待机时长。The screen wake-up method provided in this embodiment instructs the main chip to turn on the associated sensor after the sensor detects that the terminal shakes, which can save power consumption of the device and increase the standby time of the terminal.

在一个实施例中,如图6所示,所述当关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕,包括:In one embodiment, as shown in FIG. 6, when the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen, including:

步骤602:获取所述终端处于稳定状态的第一位置数据。Step 602: Obtain first location data that the terminal is in a stable state.

其中,第一位置数据表示终端处于稳定状态时刻的位置数据,也即是当主芯片开启与传感器数据传输通道时终端所处的位置数据。根据加速度传感器检测的X、Y、Z三个坐标轴的加速度值,可以获取终端处于稳定状态的第一位置数据。Wherein, the first location data represents the location data when the terminal is in a stable state, that is, the location data of the terminal when the main chip opens the data transmission channel with the sensor. According to the acceleration values of the three coordinate axes X, Y, and Z detected by the acceleration sensor, the first position data that the terminal is in a stable state can be acquired.

步骤604:在预设时长内持续获取所述终端的第二位置数据。Step 604: Continuously acquire the second location data of the terminal within a preset time period.

第二位置数据表示终端在移动过程中实时获取的位置数据,通过预设时长来限定抬起动作的识别时间,通常用户进行抬起动作是一个连贯的操作过程,通过限定识别时长来判断是否属于抬手动作,可以降低误触发的概率,提升用户体验。举例说明,预设时长可以是1秒,在1秒时间内持续获取终端的第二位置数据。The second location data represents the location data obtained by the terminal in real time during the moving process. The recognition time of the lifting action is limited by the preset time length. Usually, the user’s lifting action is a coherent operation process. By limiting the recognition time length to determine whether it belongs to Raising your hand can reduce the probability of false triggering and improve user experience. For example, the preset duration may be 1 second, and the second location data of the terminal is continuously acquired within 1 second.

步骤606:当所述第一位置数据处于第一预设阈值范围且所述第二位置数据处于第二预设阈值范围时,唤醒所述终端屏幕。Step 606: wake up the terminal screen when the first location data is within a first preset threshold range and the second location data is within a second preset threshold range.

第一预设范围限定了终端处于初始状态的位置数据,具体地,可以设置为终端向下放置状态、终端向上放置状态、终端处于口袋放置状态时的位置数据等。例如当加速度传感器检测到加速度值为(-4.5<x<4.5,-5<y<5,-9.8<z<-5)时,则表示终端处于屏幕朝下放置状态,也即是当加速度传感器获取的第一位置数据处于该范围值时,则判定终端当前处于屏幕朝下放置状态。The first preset range defines the location data of the terminal in the initial state, specifically, it can be set as the location data when the terminal is placed in the downward state, the terminal is in the upward state, or the terminal is in the pocket state. For example, when the acceleration sensor detects that the acceleration value is (-4.5<x<4.5, -5<y<5, -9.8<z<-5), it means that the terminal is placed with the screen facing down, that is, when the acceleration sensor When the acquired first position data is within the range value, it is determined that the terminal is currently placed in the screen-down state.

第二预设阈值范围限定了终端达到亮屏条件的位置数据,例如可以设置为终端正面朝人脸时的位置数据。例如当加速度传感器检测到加速度值为(-5<x<5,-2<y<9.8,0.5<z<9.8)时,则表示终端达到正面朝人脸位置,则此时达到亮屏条件。当第一位置数据处于第一预设阈值范围且第二位置数据处于第二预设阈值范围时,主芯片向应用程序发送消息唤醒终端屏幕。The second preset threshold range defines the location data of the terminal meeting the bright screen condition, for example, it may be set as the location data when the terminal is facing a human face. For example, when the acceleration sensor detects that the acceleration value is (-5<x<5, -2<y<9.8, 0.5<z<9.8), it means that the terminal has reached the position facing the face, and the bright screen condition is met at this time. When the first location data is in the first preset threshold range and the second location data is in the second preset threshold range, the main chip sends a message to the application program to wake up the terminal screen.

本实施例提供的屏幕唤醒方法,通过获取加速度传感器的检测的位置数据,当终端的初始位置与最终位置满足唤醒终端屏幕的条件时,主芯片唤醒终端屏幕,能够根据终端的位置信息判断是否出现抬手或翻转动作,智能地唤醒终端屏幕,提升用户体验。In the screen wake-up method provided in this embodiment, by acquiring the position data detected by the acceleration sensor, when the initial position and the final position of the terminal meet the conditions for waking up the terminal screen, the main chip wakes up the terminal screen, and can determine whether a Raise your hand or turn over to intelligently wake up the terminal screen to improve user experience.

在一个实施例中,如图7所示,所述当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕,还包括:In one embodiment, as shown in FIG. 7, when the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen, and further includes:

步骤702:获取所述终端在X、Y、Z三个坐标轴的转动角度,并获取所述终端的位置数据。Step 702: Obtain the rotation angle of the terminal on the three coordinate axes of X, Y, and Z, and acquire the location data of the terminal.

具体地,终端上设有陀螺仪(Gyroscope),陀螺仪可以测量角速度,将角速度对时间积分,得到角度,因此,通过陀螺仪可以获取终端的转动角度。陀螺仪可以获取X、Y、Z三个坐标轴的转动角度,根据不同坐标轴的转动角度可以判断终端的转动方向以及转动幅度。本实施例通过陀螺仪获取终端的转动角度,通过加速度传感器获取终端的位置数据。Specifically, the terminal is provided with a gyroscope (Gyroscope), which can measure the angular velocity and integrate the angular velocity with respect to time to obtain an angle. Therefore, the rotation angle of the terminal can be obtained through the gyroscope. The gyroscope can obtain the rotation angles of the three coordinate axes of X, Y, and Z, and the rotation direction and the rotation range of the terminal can be judged according to the rotation angles of different coordinate axes. In this embodiment, the rotation angle of the terminal is obtained through the gyroscope, and the location data of the terminal is obtained through the acceleration sensor.

步骤704:当所述终端的至少一个坐标轴大于预设转动角度且所述终端的位置数据处于预设阈值范围时,唤醒所述终端屏幕。Step 704: wake up the terminal screen when at least one coordinate axis of the terminal is greater than a preset rotation angle and the location data of the terminal is within a preset threshold range.

其中,通过预设转动角度判断终端是否达到亮屏条件,例如可以设置终端翻转手势的转动角度,还可以设置终端抬起手势的转动角度。进一步地,通过终端的位置数据判断终端是否达到预设位置。Wherein, it is judged whether the terminal meets the bright-screen condition through the preset rotation angle, for example, the rotation angle of the terminal flip gesture can be set, and the rotation angle of the terminal lift gesture can also be set. Further, it is judged whether the terminal has reached the preset position according to the position data of the terminal.

举例说明,设置当陀螺仪获取的X轴转动角度超过25°时处于抬起状态,并且设置当加速度传感器检测到加速度值为(-4<x<4,2<y<9.8,3.5<z<9.3)时,终端处于正面朝人脸状态,则当终端的X轴大于该预设转动角度且终端的位置数据处于该预设阈值范围时,主芯片唤醒终端屏幕。For example, set when the X-axis rotation angle acquired by the gyroscope is in the lifting state, and set when the acceleration sensor detects that the acceleration value is (-4<x<4, 2<y<9.8, 3.5<z< 9.3), the terminal is in the state of facing the face, then when the X-axis of the terminal is greater than the preset rotation angle and the position data of the terminal is within the preset threshold range, the main chip wakes up the terminal screen.

本实施例提供的屏幕唤醒方法,结合终端的转动角度与位置数据,当终端转动到预设角度且终端处于预设位置时唤醒终端屏幕,可以增加识别终端达到亮屏条件的准确率,并减少误触发。The screen wake-up method provided in this embodiment, combined with the terminal’s rotation angle and position data, wakes up the terminal screen when the terminal rotates to a preset angle and the terminal is at a preset position, which can increase the accuracy of identifying the terminal’s bright screen condition, and reduce False trigger.

在一个实施例中,如图8所示,该屏幕唤醒方法还包括:In one embodiment, as shown in FIG. 8, the method for waking up the screen further includes:

步骤802:当开启抬起亮屏功能时,提示用户示范抬起动作。Step 802: Prompt the user to demonstrate the lifting action when the function of lifting to brighten the screen is enabled.

由于不同使用用户群体的动作习惯不同,不同的用户抬手的时间也可能不同,例如老人、小孩的动作偏慢,抬手时间较长。本实施例通过记录用户初次进行抬起动作的时长,对具体使用用户的动作数据进行采集。Due to the different action habits of different user groups, different users may raise their hands at different times. For example, the elderly and children move slowly and take a long time to raise their hands. In this embodiment, the user's motion data is collected by recording the duration of the user's initial lifting motion.

举例说明,在用户开始使用抬起亮屏功能时,提示用户示范抬起动作,并对用户示范的抬起动作进行识别,便于用户在使用过程中进行校正。For example, when the user starts to use the function of lifting and brightening the screen, the user is prompted to demonstrate the lifting action, and the lifting action demonstrated by the user is recognized, so that the user can make corrections during use.

步骤804:当所述用户的抬起动作能够唤醒终端屏幕时,则保存所述抬起动作的识别时长。Step 804: When the user's lifting action can wake up the terminal screen, save the recognition duration of the lifting action.

具体地,在检测到用户发起的抬起动作并且满足预设抬起条件时,保存识别该抬起动作的时长,并根据该保存的时长作为下一次识别用户抬起动作的时间依据。例如可以在检测到用户示范抬起动作后通过算法返回用户抬起动作的识别结果,并提示用户是否正常识别。Specifically, when the lifting action initiated by the user is detected and the preset lifting condition is satisfied, the time length for identifying the lifting action is saved, and the saved time length is used as the time basis for the next identification of the user lifting action. For example, after detecting that the user demonstrates the lifting action, the algorithm can return the recognition result of the user's lifting action, and prompt the user whether the recognition is normal.

步骤806:若所述用户的抬起动作不能唤醒终端屏幕,则调整识别所述用户抬起动作的时长,直到能够识别所述用户的抬起动作并唤醒所述终端屏幕。Step 806: If the user's lifting action cannot wake up the terminal screen, adjust the duration of recognizing the user's lifting action until the user's lifting action can be recognized and the terminal screen can be woken up.

具体地,若检测到用户发起的抬起动作不能在预设时长内达到预设抬起条件,则需要对识别抬手动作的时长进行调整,并重复执行步骤802的操作,直至满足步骤804的条件。Specifically, if it is detected that the lifting action initiated by the user cannot meet the preset lifting condition within the preset time period, it is necessary to adjust the time period for recognizing the hand-raising action, and repeat the operation of step 802 until the condition of step 804 is met. condition.

本实施例提供的屏幕唤醒方法,通过对不同使用用户的动作数据进行采集和学习,设置适合用户的识别时间,增加识别精确度,提升用户的使用体验。The screen wake-up method provided in this embodiment collects and learns action data of different users, sets a recognition time suitable for the user, increases recognition accuracy, and improves user experience.

应该理解的是,虽然图3-8的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3-8中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow charts in FIGS. 3-8 are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 3-8 may include a plurality of sub-steps or stages, these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

如图9所示,在一个实施例中,提供一种屏幕唤醒装置,该装置包括:启动模块910、检测模块920、唤醒模块930。As shown in FIG. 9 , in one embodiment, a device for waking up a screen is provided, and the device includes: a starting module 910 , a detection module 920 , and a waking up module 930 .

启动模块910,用于当所述终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能。The starting module 910 is configured to enable the motion detection function of the acceleration sensor when the wake-up function of the terminal is enabled.

检测模块920,用于在检测到所述终端的运动状态发生变化后,向主芯片发送中断请求,请求所述主芯片开启关联传感器。The detection module 920 is configured to send an interrupt request to the main chip to request the main chip to turn on the associated sensor after detecting that the motion state of the terminal changes.

唤醒模块930,用于当所述关联传感器检测的数据达到预设唤醒条件时,唤醒终端屏幕。A wake-up module 930, configured to wake up the terminal screen when the data detected by the associated sensor reaches a preset wake-up condition.

上述屏幕唤醒装置,当终端的抬起唤醒功能开启时,启动模块910开启加速度传感器的运动检测功能,若检测模块920检测到所述终端的运动状态发生变化,则所述加速度传感器向主芯片发送中断请求,请求所述主芯片开启关联传感器,唤醒模块930当所述关联传感器检测的数据达到预设唤醒条件时,唤醒终端屏幕,能够根据终端的运动状态自动开关传感器与主芯片,在实现智能唤醒终端屏幕的同时降低终端的功耗,增加终端的待机时长。In the above-mentioned screen wake-up device, when the lift-up wake-up function of the terminal is turned on, the startup module 910 turns on the motion detection function of the acceleration sensor, and if the detection module 920 detects that the motion state of the terminal changes, the acceleration sensor sends a message to the main chip Interrupt request, requesting the main chip to turn on the associated sensor, and the wake-up module 930 wakes up the terminal screen when the data detected by the associated sensor reaches the preset wake-up condition, and can automatically switch the sensor and the main chip according to the motion state of the terminal. While waking up the terminal screen, reduce the power consumption of the terminal and increase the standby time of the terminal.

在一个实施例中,启动模块910还用于当所述终端处于息屏状态时,使加速度传感器进入待机检测模式,并检测所述终端的加速度值是否大于预设加速度阈值;若是,则判定为所述终端由稳定状态变为移动状态。其中,所述加速度传感器获取X、Y、Z三个坐标轴的加速度值,若至少一个坐标轴上的加速度值大于预设加速度阈值,则判定为所述终端发生移动。In one embodiment, the starting module 910 is further configured to enable the acceleration sensor to enter the standby detection mode when the terminal is in the off-screen state, and detect whether the acceleration value of the terminal is greater than a preset acceleration threshold; if so, determine as The terminal changes from a stable state to a moving state. Wherein, the acceleration sensor acquires acceleration values of three coordinate axes X, Y, and Z, and if the acceleration value on at least one coordinate axis is greater than a preset acceleration threshold, it is determined that the terminal is moving.

在一个实施例中,检测模块920还用于当所述加速度传感器检测到所述终端发生移动后,向所述主芯片发送用于指示所述主芯片进行抬起唤醒检测工作的中断请求;所述主芯片根据所述中断请求开启与所述关联传感器的数据传输通道;其中,所述关联传感器包括加速度传感器、陀螺仪、红外线传感器、地磁传感器中的至少一种。In one embodiment, the detection module 920 is further configured to send an interrupt request to the main chip for instructing the main chip to perform wake-up detection when the acceleration sensor detects that the terminal moves; The main chip opens a data transmission channel with the associated sensor according to the interrupt request; wherein the associated sensor includes at least one of an acceleration sensor, a gyroscope, an infrared sensor, and a geomagnetic sensor.

在一个实施例中,唤醒模块930还用于获取所述终端处于稳定状态的第一位置数据;在预设时长内持续获取所述终端的第二位置数据;当所述第一位置数据处于第一预设阈值范围且所述第二位置数据处于第二预设阈值范围时,唤醒所述终端屏幕。In one embodiment, the wake-up module 930 is also used to obtain the first location data of the terminal in a stable state; continue to obtain the second location data of the terminal within a preset time period; when the first location data is in the first position When a preset threshold range and the second location data are within the second preset threshold range, wake up the terminal screen.

在一个实施例中,唤醒模块930还用于获取所述终端在X、Y、Z三个坐标轴的转动角度,并获取所述终端的位置数据;当所述终端的至少一个坐标轴大于预设转动角度且所述终端的位置数据处于预设阈值范围时,唤醒所述终端屏幕。In one embodiment, the wake-up module 930 is also used to obtain the rotation angle of the terminal on the three coordinate axes of X, Y, and Z, and obtain the position data of the terminal; when at least one coordinate axis of the terminal is larger than the predetermined When the rotation angle is set and the position data of the terminal is within a preset threshold range, the screen of the terminal is woken up.

在一个实施例中,屏幕唤醒装置还包括调整模块,用于当开启抬起亮屏功能时,提示用户示范抬起动作;当所述用户的抬起动作能够唤醒终端屏幕时,则保存所述抬起动作的识别时长;若所述用户的抬起动作不能唤醒终端屏幕,则调整识别所述用户抬起动作的时长,直到能够识别所述用户的抬起动作并唤醒所述终端屏幕。In one embodiment, the device for waking up the screen further includes an adjustment module, configured to prompt the user to demonstrate the lifting action when the function of lifting and brightening the screen is turned on; when the user's lifting action can wake up the terminal screen, save the described The recognition duration of the lifting action; if the user’s lifting action cannot wake up the terminal screen, then adjust the time period for recognizing the user’s lifting action until the user’s lifting action can be recognized and the terminal screen can be woken up.

上述屏幕唤醒装置中各个模块的划分仅用于举例说明,在其他实施例中,可将屏幕唤醒装置按照需要划分为不同的模块,以完成上述屏幕唤醒装置的全部或部分功能。The division of each module in the above-mentioned screen wake-up device is only for illustration. In other embodiments, the screen wake-up device can be divided into different modules according to needs, so as to complete all or part of the functions of the above-mentioned screen wake-up device.

关于屏幕唤醒装置的具体限定可以参见上文中对于屏幕唤醒方法的限定,在此不再赘述。上述屏幕唤醒装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on the screen wakeup device, refer to the above-mentioned limitations on the screen wakeup method, which will not be repeated here. Each module in the above-mentioned screen wake-up device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.

本申请实施例中提供的屏幕唤醒装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the screen wake-up device provided in the embodiment of the present application may be in the form of a computer program. The computer program can run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or server. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are realized.

本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如上述各实施例中所描述的屏幕唤醒方法。The embodiment of the present application also provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the Describes the screen wakeup method.

本申请实施例还提供了一种计算机程序产品。一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各实施例中所描述的屏幕唤醒方法。The embodiment of the present application also provides a computer program product. A computer program product containing instructions, when running on a computer, causes the computer to execute the method for waking up the screen described in the above embodiments.

本申请实施例还提供了一种终端设备。如图10所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该终端设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以终端设备为手机为例:The embodiment of the present application also provides a terminal device. As shown in FIG. 10 , for ease of description, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The terminal device can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, wearable device, etc., taking the terminal device as a mobile phone as an example :

图10为与本申请实施例提供的终端相关的手机的部分结构的框图。参考图10,手机包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图10所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 10 is a block diagram of a partial structure of a mobile phone related to the terminal provided by the embodiment of the present application. Referring to FIG. 10 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (wireless fidelity, WiFi) module 1070, and a processor 1080 , and power supply 1090 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 10 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

其中,RF电路1010可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1080处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 1010 can be used for sending and receiving information or receiving and sending signals during a call. After receiving the downlink information from the base station, it can be processed by the processor 1080; it can also send uplink data to the base station. Generally, an RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020 . The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.); The data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.) and the like. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 1030 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 1000 . Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032 . The touch panel 1031, which can also be referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 1031 or near the touch panel 1031 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 1031 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1031 , the input unit 1030 may also include other input devices 1032 . Specifically, other input devices 1032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.

显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。在一个实施例中,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。The display unit 1040 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041 . In one embodiment, the display panel 1041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, the touch operation is sent to the processor 1080 to determine the type of the touch event, and then the processor 1080 according to the The type of touch event provides a corresponding visual output on the display panel 1041 . Although in FIG. 10, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.

手机1000还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 1000 may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and/or when the mobile phone is moved to the ear. or backlight. The motion sensor can include an acceleration sensor, through which the magnitude of acceleration in various directions can be detected, and the magnitude and direction of gravity can be detected when stationary, and can be used for applications that recognize the attitude of a mobile phone (such as switching between horizontal and vertical screens), vibration recognition related functions (such as pedometer, tap), etc.; in addition, the mobile phone can also be equipped with gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors.

音频电路1060、扬声器1061和传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010可以发送给另一手机,或者将音频数据输出至存储器1020以便后续处理。Audio circuitry 1060, speaker 1061 and microphone 1062 may provide an audio interface between the user and the handset. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the speaker 1061 converts it into an audio signal for output; After being received, it is converted into audio data, and after being processed by the output processor 1080, the audio data can be sent to another mobile phone through the RF circuit 1010, or the audio data can be output to the memory 1020 for subsequent processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机1000的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1070, which provides users with wireless broadband Internet access. Although FIG. 10 shows the WiFi module 1070, it can be understood that it is not an essential component of the mobile phone 1000 and can be omitted as required.

处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器1080可包括一个或多个处理单元。在一个实施例中,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1080中。The processor 1080 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 1020, and calling data stored in the memory 1020, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, processor 1080 may include one or more processing units. In one embodiment, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, application programs, etc.; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1080 .

手机1000还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 1000 also includes a power supply 1090 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1080 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.

在一个实施例中,手机1000还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 1000 may also include a camera, a Bluetooth module, and the like.

在本申请实施例中,该终端设备所包括的处理器1080执行存储在存储器上的计算机程序时实现实现上述各实施例中所描述的屏幕唤醒方法。In the embodiment of the present application, when the processor 1080 included in the terminal device executes the computer program stored in the memory, the method for waking up the screen described in the foregoing embodiments is realized.

在处理器上运行的计算机程序的执行时,能够根据终端的运动状态自动开关传感器与主芯片,在实现智能唤醒终端屏幕的同时降低终端的功耗,增加终端的待机时长。When the computer program running on the processor is executed, it can automatically switch the sensor and the main chip according to the motion state of the terminal, realize intelligent wake-up of the terminal screen, reduce the power consumption of the terminal, and increase the standby time of the terminal.

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

1.一种屏幕唤醒方法,用于抬起唤醒终端屏幕,其特征在于,包括:1. A method for waking up the screen, used to lift up and wake up the terminal screen, characterized in that, comprising: 当所述终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能;When the wake-up function of the terminal is turned on, turn on the motion detection function of the acceleration sensor; 若检测到所述终端的运动状态发生变化,则所述加速度传感器向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器;If it is detected that the motion state of the terminal changes, the acceleration sensor sends an interrupt request to the main chip, and the main chip turns on the associated sensor according to the interrupt request; 当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕。When the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen. 2.根据权利要求1所述的方法,其特征在于,在所述当终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能之后,还包括:2. The method according to claim 1, further comprising: 当所述终端处于息屏状态时,所述加速度传感器进入待机检测模式,并检测所述终端的加速度值是否大于预设加速度阈值;When the terminal is in the off-screen state, the acceleration sensor enters a standby detection mode, and detects whether the acceleration value of the terminal is greater than a preset acceleration threshold; 若是,则判定为所述终端由稳定状态变为移动状态。If yes, it is determined that the terminal has changed from a stable state to a moving state. 3.根据权利要求2所述的方法,其特征在于,所述检测所述终端的加速度值是否大于预设加速度阈值,包括:3. The method according to claim 2, wherein the detecting whether the acceleration value of the terminal is greater than a preset acceleration threshold comprises: 所述加速度传感器获取X、Y、Z三个坐标轴的加速度值,若至少一个坐标轴上的加速度值大于预设加速度阈值,则判定为所述终端发生移动。The acceleration sensor acquires acceleration values of three coordinate axes X, Y, and Z, and if the acceleration value on at least one coordinate axis is greater than a preset acceleration threshold, it is determined that the terminal is moving. 4.根据权利要求3所述的方法,其特征在于,所述加速度传感器向主芯片发送中断请求,所述主芯片根据所述中断请求开启关联传感器,包括:4. The method according to claim 3, wherein the acceleration sensor sends an interrupt request to the main chip, and the main chip enables the associated sensor according to the interrupt request, comprising: 当所述加速度传感器检测到所述终端发生移动后,向所述主芯片发送用于指示所述主芯片进行抬起唤醒检测工作的中断请求;When the acceleration sensor detects that the terminal moves, send an interrupt request to the main chip for instructing the main chip to perform lift-up and wake-up detection; 所述主芯片根据所述中断请求开启与所述关联传感器的数据传输通道;其中,所述关联传感器包括加速度传感器、陀螺仪、红外线传感器、地磁传感器中的至少一种。The main chip opens a data transmission channel with the associated sensor according to the interrupt request; wherein the associated sensor includes at least one of an acceleration sensor, a gyroscope, an infrared sensor, and a geomagnetic sensor. 5.根据权利要求1所述的方法,其特征在于,所述当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕,包括:5. The method according to claim 1, wherein when the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen, comprising: 获取所述终端处于稳定状态的第一位置数据;Acquiring first location data of the terminal in a stable state; 在预设时长内持续获取所述终端的第二位置数据;continuously acquiring the second location data of the terminal within a preset duration; 当所述第一位置数据处于第一预设阈值范围且所述第二位置数据处于第二预设阈值范围时,唤醒所述终端屏幕。When the first location data is within a first preset threshold range and the second location data is within a second preset threshold range, wake up the terminal screen. 6.根据权利要求1所述的方法,其特征在于,所述当所述关联传感器检测的数据达到预设唤醒条件时,所述主芯片唤醒终端屏幕,还包括:6. The method according to claim 1, wherein when the data detected by the associated sensor reaches a preset wake-up condition, the main chip wakes up the terminal screen, further comprising: 获取所述终端在X、Y、Z三个坐标轴的转动角度,并获取所述终端的位置数据;Obtain the rotation angle of the terminal on the three coordinate axes of X, Y, and Z, and obtain the position data of the terminal; 当所述终端的至少一个坐标轴大于预设转动角度且所述终端的位置数据处于预设阈值范围时,唤醒所述终端屏幕。When at least one coordinate axis of the terminal is greater than a preset rotation angle and the location data of the terminal is within a preset threshold range, wake up the screen of the terminal. 7.根据权利要求1至6任一项所述的方法,其特征在于,所述方法还包括:7. The method according to any one of claims 1 to 6, wherein the method further comprises: 当开启抬起亮屏功能时,提示用户示范抬起动作;When the function of lifting and brightening is turned on, the user is prompted to demonstrate the lifting action; 当所述用户的抬起动作能够唤醒终端屏幕时,则保存所述抬起动作的识别时长;When the user's lifting action can wake up the terminal screen, save the recognition duration of the lifting action; 若所述用户的抬起动作不能唤醒终端屏幕,则调整识别所述用户抬起动作的时长,直到能够识别所述用户的抬起动作并唤醒所述终端屏幕。If the user's lifting action cannot wake up the terminal screen, adjust the duration of recognizing the user's lifting action until the user's lifting action can be recognized and the terminal screen can be woken up. 8.一种屏幕唤醒装置,其特征在于,包括:8. A screen wake-up device, characterized in that, comprising: 启动模块,用于当所述终端的抬起唤醒功能开启时,开启加速度传感器的运动检测功能;The starting module is used to start the motion detection function of the acceleration sensor when the lift-up wake-up function of the terminal is turned on; 检测模块,用于在检测到所述终端的运动状态发生变化后,向主芯片发送中断请求,请求所述主芯片开启关联传感器;The detection module is configured to send an interrupt request to the main chip after detecting that the motion state of the terminal changes, requesting the main chip to turn on the associated sensor; 唤醒模块,用于当所述关联传感器检测的数据达到预设唤醒条件时,唤醒终端屏幕。A wake-up module, configured to wake up the terminal screen when the data detected by the associated sensor reaches a preset wake-up condition. 9.一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至7中任一项所述的屏幕唤醒方法的步骤。9. A terminal, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is executed as described in any one of claims 1 to 7. Steps in the screen wake-up method described above. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的方法的步骤。10. A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are realized.
CN201810114241.7A 2018-02-05 2018-02-05 Screen wake-up method and device, terminal, computer-readable storage medium Pending CN108347758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810114241.7A CN108347758A (en) 2018-02-05 2018-02-05 Screen wake-up method and device, terminal, computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810114241.7A CN108347758A (en) 2018-02-05 2018-02-05 Screen wake-up method and device, terminal, computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN108347758A true CN108347758A (en) 2018-07-31

Family

ID=62958888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810114241.7A Pending CN108347758A (en) 2018-02-05 2018-02-05 Screen wake-up method and device, terminal, computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108347758A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714471A (en) * 2018-11-27 2019-05-03 维沃移动通信有限公司 A kind of start-up control method and device
CN111397111A (en) * 2020-04-13 2020-07-10 宁波奥克斯电气股份有限公司 Remote controller misoperation preventing method and device, remote controller and air conditioner
CN111538373A (en) * 2020-04-23 2020-08-14 北京小米移动软件有限公司 Motion monitoring method, device and terminal device
CN113126737A (en) * 2021-04-19 2021-07-16 无锡宇宁智能科技有限公司 Screen awakening method and device, terminal equipment and computer readable storage medium
CN114281415A (en) * 2020-10-01 2022-04-05 上海商米科技集团股份有限公司 Wake-up method, device, electronic device and readable storage medium for mobile device
CN114338874A (en) * 2021-12-28 2022-04-12 维沃移动通信有限公司 Image display method of electronic device, image processing circuit and electronic device
CN114928412A (en) * 2022-05-27 2022-08-19 深圳市智慧海洋科技有限公司 Underwater acoustic communication control method and device, motion detection sensor and communication system
CN116578227A (en) * 2023-07-10 2023-08-11 深圳市易赛通信技术有限公司 Screen control method, device and equipment of intelligent watch and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024183A (en) * 2012-12-14 2013-04-03 广东欧珀移动通信有限公司 A method and system for waking up mobile phone
CN104052857A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Mobile device control device and method
CN106850962A (en) * 2016-12-23 2017-06-13 歌尔股份有限公司 The implementation method and device of starting up of terminal, terminal
CN107277257A (en) * 2017-06-30 2017-10-20 深圳天珑无线科技有限公司 Mobile terminal and its screen lighting method, the device with store function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024183A (en) * 2012-12-14 2013-04-03 广东欧珀移动通信有限公司 A method and system for waking up mobile phone
CN104052857A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Mobile device control device and method
CN106850962A (en) * 2016-12-23 2017-06-13 歌尔股份有限公司 The implementation method and device of starting up of terminal, terminal
CN107277257A (en) * 2017-06-30 2017-10-20 深圳天珑无线科技有限公司 Mobile terminal and its screen lighting method, the device with store function

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714471A (en) * 2018-11-27 2019-05-03 维沃移动通信有限公司 A kind of start-up control method and device
CN111397111A (en) * 2020-04-13 2020-07-10 宁波奥克斯电气股份有限公司 Remote controller misoperation preventing method and device, remote controller and air conditioner
CN111397111B (en) * 2020-04-13 2021-10-26 宁波奥克斯电气股份有限公司 Remote controller misoperation preventing method and device, remote controller and air conditioner
CN111538373A (en) * 2020-04-23 2020-08-14 北京小米移动软件有限公司 Motion monitoring method, device and terminal device
CN111538373B (en) * 2020-04-23 2022-05-06 北京小米移动软件有限公司 Motion monitoring method, device and terminal device
CN114281415A (en) * 2020-10-01 2022-04-05 上海商米科技集团股份有限公司 Wake-up method, device, electronic device and readable storage medium for mobile device
CN113126737B (en) * 2021-04-19 2022-06-07 无锡宇宁智能科技有限公司 Screen awakening method and device, terminal equipment and computer readable storage medium
CN113126737A (en) * 2021-04-19 2021-07-16 无锡宇宁智能科技有限公司 Screen awakening method and device, terminal equipment and computer readable storage medium
CN114338874A (en) * 2021-12-28 2022-04-12 维沃移动通信有限公司 Image display method of electronic device, image processing circuit and electronic device
CN114928412A (en) * 2022-05-27 2022-08-19 深圳市智慧海洋科技有限公司 Underwater acoustic communication control method and device, motion detection sensor and communication system
CN114928412B (en) * 2022-05-27 2024-03-19 深圳市智慧海洋科技有限公司 Underwater sound communication control method and device, motion detection sensor and communication system
CN116578227A (en) * 2023-07-10 2023-08-11 深圳市易赛通信技术有限公司 Screen control method, device and equipment of intelligent watch and storage medium
CN116578227B (en) * 2023-07-10 2024-01-16 深圳市易赛通信技术有限公司 Screen control method, device and equipment of intelligent watch and storage medium

Similar Documents

Publication Publication Date Title
CN108307074A (en) Display control method and device, terminal and computer readable storage medium
CN108376086A (en) Display control method and device, terminal and computer readable storage medium
CN108347758A (en) Screen wake-up method and device, terminal, computer-readable storage medium
CN108536377A (en) Display control method and device, terminal and computer readable storage medium
CN108563387A (en) Display control method and device, terminal, computer-readable storage medium
CN108430100B (en) Screen control method and device for terminal, readable storage medium, and terminal
EP3719612B1 (en) Processing method for reducing power consumption and mobile terminal
CN108366170A (en) Display control method and device, terminal and computer readable storage medium
CN108388413A (en) Terminal screen control method and device, readable storage medium, terminal
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN108391002A (en) Display control method and device, terminal and computer readable storage medium
CN108462986A (en) Screen control method and device of terminal, readable storage medium and terminal
CN108418953A (en) Terminal screen control method and device, readable storage medium, terminal
CN108391001A (en) Screen control method and device of terminal, readable storage medium and terminal
WO2017128639A1 (en) Terminal device
CN105739699B (en) Message prompt control method and terminal equipment
CN106020782A (en) Fingerprint unlocking control method and mobile terminal
WO2016045027A1 (en) Screen sensitivity adjustment method and mobile terminal
WO2018099043A1 (en) Terminal behavior triggering method and terminal
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
CN106250223A (en) A kind of background process management method and terminal unit
CN106055237B (en) One kind slides booster response method and equipment
CN106055400A (en) Terminal accelerated wake-up method and device
CN107613095A (en) Incoming call processing method and mobile terminal
CN108566490A (en) Screen control method and device of terminal, readable storage medium and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180731