CN107277211A - Screen wake-up control method and device, mobile terminal and storage medium - Google Patents
Screen wake-up control method and device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN107277211A CN107277211A CN201710470079.8A CN201710470079A CN107277211A CN 107277211 A CN107277211 A CN 107277211A CN 201710470079 A CN201710470079 A CN 201710470079A CN 107277211 A CN107277211 A CN 107277211A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- screen
- distance
- range
- speed
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000001133 acceleration Effects 0.000 claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 18
- 230000002618 waking effect Effects 0.000 claims description 9
- 230000015654 memory Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 claims description 7
- 230000004888 barrier function Effects 0.000 claims 12
- 230000008569 process Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 7
- 230000005484 gravity Effects 0.000 description 7
- 230000004913 activation Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
本发明适用计算机技术领域,提供了一种屏幕唤醒的控制方法、装置、移动终端及存储介质,该方法包括:当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器,通过预设的传感器对移动终端的状态进行监测,当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕,从而提高了屏幕自动唤醒的准确性,优化了屏幕唤醒过程,进而提高了用户体验。
The present invention is applicable to the field of computer technology, and provides a screen wake-up control method, device, mobile terminal and storage medium. The method includes: when a screen-off operation of a mobile terminal is detected, a preset sensor on the mobile terminal is started, and the state of the mobile terminal is monitored by the preset sensor. When it is monitored that the acceleration of the mobile terminal is greater than a preset threshold, the distance between the obstacle and the mobile terminal screen is detected. When the distance between the obstacle and the mobile terminal screen is within a first preset distance range, the screen of the mobile terminal is woken up, thereby improving the accuracy of automatic screen wake-up, optimizing the screen wake-up process, and thus improving the user experience.
Description
技术领域technical field
本发明属于计算机技术领域,尤其涉及一种屏幕唤醒的控制方法、装置、移动终端及存储介质。The invention belongs to the technical field of computers, and in particular relates to a screen wake-up control method, device, mobile terminal and storage medium.
背景技术Background technique
随着移动终端越来越普及,移动终端的功能也越来越强大。目前移动终端最频繁的操作是锁屏和解锁,每次使用移动终端的时候都要先唤醒屏幕,然后再对移动终端进行指纹或密码解锁。用得最多的唤醒手机的方式为按下开/关机键或HOME按键将手机屏幕唤醒,但这样会让解锁屏幕的操作复杂了,降低了效率。还有其他手机屏幕唤醒方式是通过接触屏幕后,手机屏幕自动唤醒,但这种解决方案很容易产生误操作,放在衣服裤子口袋容易发生误操作唤醒屏幕或耗电量过大。As mobile terminals become more and more popular, the functions of the mobile terminals become more and more powerful. At present, the most frequent operation of the mobile terminal is to lock and unlock the screen. Every time the mobile terminal is used, the screen must be woken up first, and then the mobile terminal is unlocked with a fingerprint or a password. The most commonly used way to wake up the mobile phone is to press the on/off key or the HOME key to wake up the mobile phone screen, but this will make the operation of unlocking the screen complicated and reduce the efficiency. There are other ways to wake up the mobile phone screen by touching the screen, and the mobile phone screen automatically wakes up, but this solution is prone to misoperation, and it is easy to wake up the screen by misoperation or consume too much power when it is placed in the pocket of clothes and trousers.
发明内容Contents of the invention
本发明的目的在于提供一种屏幕唤醒的控制方法、装置、移动终端及存储介质,旨在解决由于现有技术无法提供一种有效便捷的屏幕唤醒的控制方法,导致屏幕唤醒的控制步骤繁琐、不准确、用户体验不佳的问题。The purpose of the present invention is to provide a screen wake-up control method, device, mobile terminal and storage medium, aiming to solve the problem of cumbersome screen wake-up control steps due to the inability of the prior art to provide an effective and convenient screen wake-up control method. Inaccurate, poor user experience issues.
一方面,本发明提供了一种屏幕唤醒的控制方法,所述方法包括下述步骤:In one aspect, the present invention provides a method for controlling screen wakeup, the method comprising the following steps:
当检测到移动终端的熄屏操作时,启动所述移动终端上预设的传感器;When detecting the screen-off operation of the mobile terminal, start a preset sensor on the mobile terminal;
通过所述预设的传感器对所述移动终端的状态进行监测;monitoring the state of the mobile terminal through the preset sensor;
当监测到所述移动终端的加速度大于预设的阈值时,检测障碍物与所述移动终端屏幕之间的距离;When it is detected that the acceleration of the mobile terminal is greater than a preset threshold, the distance between the obstacle and the screen of the mobile terminal is detected;
当所述障碍物与所述移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒所述移动终端的屏幕。When the distance between the obstacle and the screen of the mobile terminal is within a first preset distance range, wake up the screen of the mobile terminal.
另一方面,本发明提供了一种屏幕唤醒的控制装置,所述装置包括:In another aspect, the present invention provides a screen wake-up control device, the device comprising:
传感器启动单元,用于当检测到移动终端的熄屏操作时,启动所述移动终端上预设的传感器;A sensor activation unit, configured to activate a preset sensor on the mobile terminal when a screen-off operation of the mobile terminal is detected;
状态监测单元,用于通过所述预设的传感器对所述移动终端的状态进行监测;A state monitoring unit, configured to monitor the state of the mobile terminal through the preset sensor;
距离检测单元,用于当监测到所述移动终端的加速度大于预设的阈值时,检测障碍物与所述移动终端屏幕之间的距离;以及a distance detection unit, configured to detect the distance between an obstacle and the screen of the mobile terminal when the acceleration of the mobile terminal is detected to be greater than a preset threshold; and
屏幕唤醒单元,用于当所述障碍物与所述移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒所述移动终端的屏幕。A screen wake-up unit, configured to wake up the screen of the mobile terminal when the distance between the obstacle and the screen of the mobile terminal is within a first preset distance range.
另一方面,本发明还提供了一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述屏幕唤醒的控制方法的步骤。On the other hand, the present invention also provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the The steps of the method for controlling wake-up of the screen are as described above.
另一方面,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述屏幕唤醒的控制方法的步骤。On the other hand, the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned screen wake-up control method are realized.
本发明当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器,通过预设的传感器对移动终端的状态进行监测,当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕,从而提高了屏幕自动唤醒的准确性,优化了屏幕唤醒过程,进而提高了用户体验。When detecting the screen-off operation of the mobile terminal, the present invention starts the preset sensor on the mobile terminal, monitors the state of the mobile terminal through the preset sensor, and detects that the acceleration of the mobile terminal is greater than the preset threshold. The distance between the obstacle and the screen of the mobile terminal. When the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range, the screen of the mobile terminal will be woken up, thereby improving the accuracy of the automatic wake-up of the screen and optimizing the The screen wake-up process improves the user experience.
附图说明Description of drawings
图1是本发明实施例一提供的屏幕唤醒的控制方法的实现流程图;FIG. 1 is an implementation flowchart of a screen wake-up control method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的屏幕唤醒的控制装置的结构示意图;FIG. 2 is a schematic structural diagram of a screen wake-up control device provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的屏幕唤醒的控制装置的结构示意图;以及FIG. 3 is a schematic structural diagram of a screen wake-up control device provided by Embodiment 3 of the present invention; and
图4是本发明实施例四提供的移动终端的结构示意图。FIG. 4 is a schematic structural diagram of a mobile terminal provided by Embodiment 4 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention 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 invention, not to limit the present invention.
以下结合具体实施例对本发明的具体实现进行详细描述:The specific realization of the present invention is described in detail below in conjunction with specific embodiment:
实施例一:Embodiment one:
图1示出了本发明实施例一提供的屏幕唤醒的控制方法的实现流程,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:Figure 1 shows the implementation flow of the screen wake-up control method provided by Embodiment 1 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
在步骤S101中,当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器。In step S101, when a screen-off operation of the mobile terminal is detected, a preset sensor on the mobile terminal is activated.
在本发明实施例中,预设的传感器可以为重力加速度传感器、距离传感器等。实时对移动终端的熄屏操作进行检测,当检测到熄屏操作时,启动这些预设的传感器,以获取移动终端的当前状态参数。In the embodiment of the present invention, the preset sensor may be a gravitational acceleration sensor, a distance sensor, and the like. The screen-off operation of the mobile terminal is detected in real time, and when the screen-off operation is detected, these preset sensors are activated to obtain the current state parameters of the mobile terminal.
优选地,在检测移动终端的熄屏操作之前,判断移动终端的屏幕自动唤醒模式是否开启,如果屏幕自动唤醒模式已开启,则在移动终端熄屏时启动重力加速度传感器和距离传感器等预设的传感器,否则在移动终端熄屏时不启动预设的传感器,从而在降低移动终端功耗的同时实现传感器的及时启动。Preferably, before detecting the screen-off operation of the mobile terminal, it is judged whether the screen automatic wake-up mode of the mobile terminal is turned on, and if the screen automatic wake-up mode is turned on, then when the mobile terminal turns off the screen, start the preset functions such as the gravity acceleration sensor and the distance sensor. sensor, otherwise the preset sensor will not be activated when the screen of the mobile terminal is turned off, so that the sensor can be activated in time while reducing the power consumption of the mobile terminal.
作为示例地,当移动终端为手机时,首先判断手机的屏幕自动唤醒模式是否开启,如果屏幕自动唤醒模式已开启,则在手机熄屏时,启动手机上的重力加速度传感器和距离传感器,如果屏幕自动唤醒模式未开启,则说明用户不需要手机屏幕的自动唤醒,此时,在手机熄屏时,不启动手机上的重力加速度传感器和距离传感器。As an example, when the mobile terminal is a mobile phone, it is first judged whether the screen automatic wake-up mode of the mobile phone is turned on, and if the screen automatic wake-up mode is turned on, then when the mobile phone is turned off, the gravity acceleration sensor and the distance sensor on the mobile phone are activated. If the automatic wake-up mode is not turned on, it means that the user does not need the automatic wake-up of the mobile phone screen. At this time, when the mobile phone screen is turned off, the gravity acceleration sensor and the distance sensor on the mobile phone are not activated.
在步骤S102中,通过预设的传感器对移动终端的状态进行监测。In step S102, the state of the mobile terminal is monitored through preset sensors.
在本发明实施例中,可以通过重力加速度传感器和距离传感器分别获取移动终端的运动加速度和障碍物与距离传感器之间的距离等状态参数,对移动终端的状态进行监测。In the embodiment of the present invention, the status parameters of the mobile terminal can be monitored by acquiring the motion acceleration of the mobile terminal and the distance between the obstacle and the distance sensor through the acceleration of gravity sensor and the distance sensor respectively.
在步骤S103中,当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离。In step S103, when it is detected that the acceleration of the mobile terminal is greater than a preset threshold, the distance between the obstacle and the screen of the mobile terminal is detected.
在本发明实施例中,如果监测到移动终端的加速度大于预设的阈值,则说明移动终端正在被移动,此时进一步判断障碍物与移动终端屏幕之间的距离是否位于第一预设距离范围内,如果监测到移动终端的加速度不大于预设的阈值,则说明移动终端没有被移动或只是小幅度范围内抖动,此时不进行距离的判断,以避免不必要的计算。In the embodiment of the present invention, if it is detected that the acceleration of the mobile terminal is greater than the preset threshold value, it means that the mobile terminal is being moved. At this time, it is further determined whether the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range If it is detected that the acceleration of the mobile terminal is not greater than the preset threshold, it means that the mobile terminal has not been moved or is only shaking within a small range. At this time, no distance judgment is performed to avoid unnecessary calculations.
在步骤S104中,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕。In step S104, when the distance between the obstacle and the screen of the mobile terminal is within a first preset distance range, the screen of the mobile terminal is woken up.
在本发明实施例中,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围(例如大于10cm且小于40cm)内时,说明用户需要使用移动终端,此时,唤醒移动终端的屏幕,以方便用户使用移动终端。In the embodiment of the present invention, when the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range (for example, greater than 10cm and less than 40cm), it means that the user needs to use the mobile terminal. screen for the convenience of the user in using the mobile terminal.
优选地,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,接着判断移动终端的速度是否位于第一预设速度范围内,当移动终端的速度位于第一预设速度范围内时,才唤醒移动终端的屏幕,如果移动终端的速度不位于第一预设速度范围(例如,小于10cm或大于40cm)内,则不唤醒移动终端的屏幕,从而提高了自动唤醒移动终端屏幕的准确性。Preferably, when the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range, then it is judged whether the speed of the mobile terminal is within the first preset speed range, and when the speed of the mobile terminal is within the first preset When within the speed range, the screen of the mobile terminal is awakened, and if the speed of the mobile terminal is not within the first preset speed range (for example, less than 10cm or greater than 40cm), the screen of the mobile terminal is not awakened, thereby improving the automatic wake-up of the mobile terminal. The accuracy of the terminal screen.
进一步优选地,在唤醒移动终端的屏幕后,首先判断障碍物与移动终端屏幕之间的距离是否位于第二预设距离范围(例如,小于10cm)内,当障碍物与移动终端屏幕之间的距离位于第二预设距离范围内时,接着判断移动终端的速度是否位于第二预设速度范围(例如,速度接近于零)内,如果移动终端的速度位于第二预设速度范围内,则说明移动终端处于需要关闭屏幕的状态,此时,关闭移动终端的屏幕,从而实现了屏幕在自动唤醒后的自动关闭,提高了移动终端用户的使用体验。Further preferably, after waking up the screen of the mobile terminal, it is first judged whether the distance between the obstacle and the screen of the mobile terminal is within a second preset distance range (for example, less than 10cm), when the distance between the obstacle and the screen of the mobile terminal When the distance is within the second preset distance range, then it is judged whether the speed of the mobile terminal is within the second preset speed range (for example, the speed is close to zero), and if the speed of the mobile terminal is within the second preset speed range, then It shows that the mobile terminal is in a state where the screen needs to be turned off. At this time, the screen of the mobile terminal is turned off, so that the screen can be automatically turned off after the automatic wake-up, and the user experience of the mobile terminal is improved.
在本发明实施例中,当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器,通过预设的传感器对移动终端的状态进行监测,当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕,从而提高了屏幕自动唤醒的准确性,优化了屏幕唤醒过程,进而提高了用户体验。In the embodiment of the present invention, when the screen-off operation of the mobile terminal is detected, the preset sensor on the mobile terminal is activated, and the status of the mobile terminal is monitored through the preset sensor. When the acceleration of the mobile terminal is detected to be greater than the preset When the threshold is set, the distance between the obstacle and the screen of the mobile terminal is detected, and when the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range, the screen of the mobile terminal is woken up, thereby improving the automatic wake-up of the screen. Accuracy, optimize the screen wake-up process, thereby improving the user experience.
实施例二:Embodiment two:
图2示出了本发明实施例二提供的屏幕唤醒的控制装置的结构,为了便于说明,仅示出了与本发明实施例相关的部分,其中包括:Fig. 2 shows the structure of the screen wake-up control device provided by Embodiment 2 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:
传感器启动单元21,用于当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器。The sensor activation unit 21 is configured to activate a preset sensor on the mobile terminal when an operation of turning off the screen of the mobile terminal is detected.
在本发明实施例中,预设的传感器可以为重力加速度传感器、距离传感器等。实时对移动终端的熄屏操作进行检测,当检测到熄屏操作时,启动这些预设的传感器,以获取移动终端的当前状态参数。In the embodiment of the present invention, the preset sensor may be a gravitational acceleration sensor, a distance sensor, and the like. The screen-off operation of the mobile terminal is detected in real time, and when the screen-off operation is detected, these preset sensors are activated to obtain the current state parameters of the mobile terminal.
状态监测单元22,用于通过预设的传感器对移动终端的状态进行监测。The state monitoring unit 22 is configured to monitor the state of the mobile terminal through preset sensors.
在本发明实施例中,可以通过重力加速度传感器和距离传感器分别获取移动终端的运动加速度和障碍物与距离传感器之间的距离等状态参数,对移动终端的状态进行监测。In the embodiment of the present invention, the status parameters of the mobile terminal can be monitored by acquiring the motion acceleration of the mobile terminal and the distance between the obstacle and the distance sensor through the acceleration of gravity sensor and the distance sensor respectively.
距离检测单元23,用于当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离。The distance detection unit 23 is configured to detect the distance between the obstacle and the screen of the mobile terminal when it is detected that the acceleration of the mobile terminal is greater than a preset threshold.
在本发明实施例中,如果监测到移动终端的加速度大于预设的阈值,则说明移动终端正在被移动,此时进一步判断障碍物与移动终端屏幕之间的距离是否位于第一预设距离范围内,如果监测到移动终端的加速度不大于预设的阈值,则说明移动终端没有被移动或只是小幅度范围内抖动,此时不进行距离的判断,以避免不必要的计算。In the embodiment of the present invention, if it is detected that the acceleration of the mobile terminal is greater than the preset threshold value, it means that the mobile terminal is being moved. At this time, it is further determined whether the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range If it is detected that the acceleration of the mobile terminal is not greater than the preset threshold, it means that the mobile terminal has not been moved or is only shaking within a small range. At this time, no distance judgment is performed to avoid unnecessary calculations.
屏幕唤醒单元24,用于当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕。The screen wake-up unit 24 is configured to wake up the screen of the mobile terminal when the distance between the obstacle and the screen of the mobile terminal is within a first preset distance range.
在本发明实施例中,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围(例如大于10cm且小于40cm)内时,说明用户需要使用移动终端,此时,唤醒移动终端的屏幕,以方便用户使用移动终端。In the embodiment of the present invention, when the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range (for example, greater than 10cm and less than 40cm), it means that the user needs to use the mobile terminal. screen for the convenience of the user in using the mobile terminal.
在本发明实施例中,屏幕唤醒的控制装置的各单元可由相应的硬件或软件单元实现,各单元可以为独立的软、硬件单元,也可以集成为一个软、硬件单元,在此不用以限制本发明。In the embodiment of the present invention, each unit of the screen wake-up control device can be realized by corresponding hardware or software units, and each unit can be an independent software and hardware unit, or can be integrated into a software and hardware unit, which is not limited here. this invention.
实施例三:Embodiment three:
图3示出了本发明实施例三提供的屏幕唤醒的控制装置的结构,为了便于说明,仅示出了与本发明实施例相关的部分,其中包括:Fig. 3 shows the structure of the screen wake-up control device provided by the third embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:
模式判断单元31,用于判断移动终端的屏幕自动唤醒模式是否开启。The mode judging unit 31 is used to judge whether the screen automatic wake-up mode of the mobile terminal is turned on.
操作检测单元32,用于当屏幕自动唤醒模式已开启时,检测移动终端是否执行熄屏操作。The operation detection unit 32 is configured to detect whether the mobile terminal performs a screen-off operation when the screen automatic wake-up mode is turned on.
在本发明实施例中,在检测移动终端的熄屏操作之前,判断移动终端的屏幕自动唤醒模式是否开启,如果屏幕自动唤醒模式已开启,则在移动终端熄屏时启动重力加速度传感器和距离传感器等预设的传感器,否则在移动终端熄屏时不启动预设的传感器,从而在降低移动终端功耗的同时实现传感器的及时启动。In the embodiment of the present invention, before detecting the screen-off operation of the mobile terminal, it is judged whether the screen automatic wake-up mode of the mobile terminal is turned on, and if the screen automatic wake-up mode is turned on, the gravity acceleration sensor and the distance sensor are activated when the mobile terminal is turned off. Wait for the preset sensor, otherwise the preset sensor will not be activated when the screen of the mobile terminal is turned off, thereby realizing timely activation of the sensor while reducing the power consumption of the mobile terminal.
传感器启动单元33,用于当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器。The sensor activation unit 33 is configured to activate a preset sensor on the mobile terminal when an operation of turning off the screen of the mobile terminal is detected.
在本发明实施例中,预设的传感器可以为重力加速度传感器、距离传感器等。实时对移动终端的熄屏操作进行检测,当检测到熄屏操作时,启动这些预设的传感器,以获取移动终端的当前状态参数。In the embodiment of the present invention, the preset sensor may be a gravitational acceleration sensor, a distance sensor, and the like. The screen-off operation of the mobile terminal is detected in real time, and when the screen-off operation is detected, these preset sensors are activated to obtain the current state parameters of the mobile terminal.
状态监测单元34,用于通过预设的传感器对移动终端的状态进行监测。The state monitoring unit 34 is configured to monitor the state of the mobile terminal through preset sensors.
在本发明实施例中,可以通过重力加速度传感器和距离传感器分别获取移动终端的运动加速度和障碍物与距离传感器之间的距离等状态参数,对移动终端的状态进行监测。In the embodiment of the present invention, the status parameters of the mobile terminal can be monitored by acquiring the motion acceleration of the mobile terminal and the distance between the obstacle and the distance sensor through the acceleration of gravity sensor and the distance sensor respectively.
距离检测单元35,用于当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离。The distance detection unit 35 is configured to detect the distance between the obstacle and the screen of the mobile terminal when it is detected that the acceleration of the mobile terminal is greater than a preset threshold.
在本发明实施例中,如果监测到移动终端的加速度大于预设的阈值,则说明移动终端正在被移动,此时进一步判断障碍物与移动终端屏幕之间的距离是否位于第一预设距离范围内,如果监测到移动终端的加速度不大于预设的阈值,则说明移动终端没有被移动或只是小幅度范围内抖动,此时不进行距离的判断,以避免不必要的计算。In the embodiment of the present invention, if it is detected that the acceleration of the mobile terminal is greater than the preset threshold value, it means that the mobile terminal is being moved. At this time, it is further determined whether the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range If it is detected that the acceleration of the mobile terminal is not greater than the preset threshold, it means that the mobile terminal has not been moved or is only shaking within a small range. At this time, no distance judgment is performed to avoid unnecessary calculations.
屏幕唤醒单元36,用于当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕。The screen wake-up unit 36 is configured to wake up the screen of the mobile terminal when the distance between the obstacle and the screen of the mobile terminal is within a first preset distance range.
在本发明实施例中,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围(例如大于10cm且小于40cm)内时,说明用户需要使用移动终端,此时,唤醒移动终端的屏幕,以方便用户使用移动终端。In the embodiment of the present invention, when the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range (for example, greater than 10cm and less than 40cm), it means that the user needs to use the mobile terminal. screen for the convenience of the user in using the mobile terminal.
优选地,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,接着判断移动终端的速度是否位于第一预设速度范围内,当移动终端的速度范围内时,才唤醒移动终端的屏幕,如果移动终端的速度不位于第一预设速度范围(例如,小于10cm或大于40cm)内,则不唤醒移动终端的屏幕,从而提高了自动唤醒移动终端屏幕的准确性。Preferably, when the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range, then it is judged whether the speed of the mobile terminal is within the first preset speed range, and only when the speed of the mobile terminal is within the speed range Wake up the screen of the mobile terminal, if the speed of the mobile terminal is not within the first preset speed range (for example, less than 10cm or greater than 40cm), the screen of the mobile terminal will not be woken up, thereby improving the accuracy of automatically waking up the screen of the mobile terminal.
距离判断单元37,用于唤醒移动终端的屏幕后,判断障碍物与移动终端屏幕之间的距离是否为第二预设距离。The distance judging unit 37 is configured to judge whether the distance between the obstacle and the screen of the mobile terminal is a second preset distance after waking up the screen of the mobile terminal.
第二速度判断单元38,用于当障碍物与移动终端屏幕之间的距离为第二预设距离时,判断移动终端的速度是否为第二预设速度。The second speed judging unit 38 is configured to judge whether the speed of the mobile terminal is the second preset speed when the distance between the obstacle and the screen of the mobile terminal is the second preset distance.
屏幕关闭单元39,用于当移动终端的速度为第二预设速度时,关闭移动终端的屏幕。The screen closing unit 39 is configured to close the screen of the mobile terminal when the speed of the mobile terminal is the second preset speed.
在本发明实施例中,在唤醒移动终端的屏幕后,首先判断障碍物与移动终端屏幕之间的距离是否位于第二预设距离范围(例如,小于10cm)内,当障碍物与移动终端屏幕之间的距离位于第二预设距离范围内时,接着判断移动终端的速度是否位于第二预设速度范围(例如,速度接近于零)内,如果移动终端的速度位于第二预设速度范围内,则说明移动终端处于需要关闭屏幕的状态,此时,关闭移动终端的屏幕,从而实现了屏幕在自动唤醒后的自动关闭,提高了移动终端用户的使用体验。In the embodiment of the present invention, after waking up the screen of the mobile terminal, it is first judged whether the distance between the obstacle and the screen of the mobile terminal is within the second preset distance range (for example, less than 10cm). When the distance between them is within the second preset distance range, then it is judged whether the speed of the mobile terminal is within the second preset speed range (for example, the speed is close to zero), if the speed of the mobile terminal is within the second preset speed range , it indicates that the mobile terminal is in a state where the screen needs to be turned off. At this time, the screen of the mobile terminal is turned off, so that the screen can be automatically turned off after the automatic wake-up, and the user experience of the mobile terminal is improved.
因此,优选地,该屏幕唤醒单元36包括:Therefore, preferably, the screen wake-up unit 36 includes:
第一速度判断单元361,用于当障碍物与移动终端屏幕之间的距离为第一预设距离时,判断移动终端的速度是否为第一预设速度;以及The first speed judging unit 361 is used to judge whether the speed of the mobile terminal is the first preset speed when the distance between the obstacle and the screen of the mobile terminal is the first preset distance; and
屏幕唤醒子单元362,用于当移动终端的速度为第一预设速度时,唤醒移动终端的屏幕。The screen wake-up subunit 362 is configured to wake up the screen of the mobile terminal when the speed of the mobile terminal is the first preset speed.
在本发明实施例中,屏幕唤醒的控制装置的各单元可由相应的硬件或软件单元实现,各单元可以为独立的软、硬件单元,也可以集成为一个软、硬件单元,在此不用以限制本发明。In the embodiment of the present invention, each unit of the screen wake-up control device can be realized by corresponding hardware or software units, and each unit can be an independent software and hardware unit, or can be integrated into a software and hardware unit, which is not limited here. this invention.
实施例四:Embodiment four:
图4示出了本发明实施例四提供的移动终端的结构,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 4 shows the structure of the mobile terminal provided by Embodiment 4 of the present invention. For convenience of description, only the parts related to the embodiment of the present invention are shown.
本发明实施例的移动终端4包括处理器40、存储器41以及存储在存储器41中并可在处理器40上运行的计算机程序42。该处理器40执行计算机程序42时实现上述屏幕唤醒的控制方法实施例中的步骤,例如图1所示的步骤101至104。或者,处理器40执行计算机程序42时实现上述各装置实施例中各单元的功能,例如图2所示模块21至24的功能。The mobile terminal 4 of the embodiment of the present invention includes a processor 40 , a memory 41 and a computer program 42 stored in the memory 41 and operable on the processor 40 . When the processor 40 executes the computer program 42 , the steps in the above embodiment of the method for controlling the wake-up of the screen are realized, such as steps 101 to 104 shown in FIG. 1 . Alternatively, when the processor 40 executes the computer program 42, it realizes the functions of the units in the above-mentioned device embodiments, such as the functions of the modules 21 to 24 shown in FIG. 2 .
在本发明实施例中,该处理器40执行计算机程序42时实现上述各个屏幕唤醒的控制方法实施例中的步骤时,当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器,通过预设的传感器对移动终端的状态进行监测,当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕。In the embodiment of the present invention, when the processor 40 executes the computer program 42 to implement the steps in the above-mentioned embodiments of the various screen wake-up control methods, when the screen-off operation of the mobile terminal is detected, the preset sensor on the mobile terminal is activated. , monitor the state of the mobile terminal through the preset sensor, when the acceleration of the mobile terminal is detected to be greater than the preset threshold, detect the distance between the obstacle and the screen of the mobile terminal, when the distance between the obstacle and the screen of the mobile terminal When the distance is within the first preset distance range, wake up the screen of the mobile terminal.
本发明实施例的移动终端可以为手机、平板电脑、学习机。该移动终端3中处理器40在执行计算机程序42时实现的步骤具体可参考实施例一中方法的描述,在此不再赘述。The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, or a learning machine. For the steps implemented by the processor 40 in the mobile terminal 3 when executing the computer program 42 , please refer to the description of the method in the first embodiment, which will not be repeated here.
实施例五:Embodiment five:
在本发明实施例中,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述屏幕唤醒的控制方法实施例中的步骤,例如,图1所示的步骤101至104。或者,该计算机程序被处理器执行时实现上述各装置实施例中各单元的功能,例如图2所示模块21至24的功能、图3所示模块31至39的功能。In an embodiment of the present invention, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps in the above embodiment of the control method for screen wakeup are implemented, for example , steps 101 to 104 shown in FIG. 1 . Alternatively, when the computer program is executed by the processor, the functions of the units in the above-mentioned device embodiments are realized, such as the functions of the modules 21 to 24 shown in FIG. 2 and the functions of the modules 31 to 39 shown in FIG. 3 .
在本发明实施例中,当检测到移动终端的熄屏操作时,启动移动终端上预设的传感器,通过预设的传感器对移动终端的状态进行监测,当监测到移动终端的加速度大于预设的阈值时,检测障碍物与移动终端屏幕之间的距离,当障碍物与移动终端屏幕之间的距离位于第一预设距离范围内时,唤醒移动终端的屏幕。该计算机程序被处理器执行时实现的屏幕唤醒的控制方法进一步可参考前述方法实施例中步骤的描述,在此不再赘述。In the embodiment of the present invention, when the screen-off operation of the mobile terminal is detected, the preset sensor on the mobile terminal is activated, and the status of the mobile terminal is monitored through the preset sensor. When the acceleration of the mobile terminal is detected to be greater than the preset When the threshold is , the distance between the obstacle and the screen of the mobile terminal is detected, and when the distance between the obstacle and the screen of the mobile terminal is within the first preset distance range, the screen of the mobile terminal is awakened. For the method for controlling screen wakeup implemented when the computer program is executed by the processor, further reference may be made to the description of the steps in the foregoing method embodiments, and details are not repeated here.
本发明实施例的计算机可读存储介质可以包括能够携带计算机程序代码的任何实体或装置、记录介质,例如,ROM/RAM、磁盘、光盘、闪存等存储器。The computer-readable storage medium in the embodiments of the present invention may include any entity or device or recording medium capable of carrying computer program codes, such as ROM/RAM, magnetic disk, optical disk, flash memory and other memories.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710470079.8A CN107277211A (en) | 2017-06-20 | 2017-06-20 | Screen wake-up control method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710470079.8A CN107277211A (en) | 2017-06-20 | 2017-06-20 | Screen wake-up control method and device, mobile terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107277211A true CN107277211A (en) | 2017-10-20 |
Family
ID=60067998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710470079.8A Pending CN107277211A (en) | 2017-06-20 | 2017-06-20 | Screen wake-up control method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107277211A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908983A (en) * | 2017-11-14 | 2018-04-13 | 维沃移动通信有限公司 | A kind of method and mobile terminal for controlling mobile terminal screen |
CN108279776A (en) * | 2018-02-07 | 2018-07-13 | 联想(北京)有限公司 | Method and electronic equipment for control electronics |
CN108307074A (en) * | 2018-02-05 | 2018-07-20 | 广东欧珀移动通信有限公司 | Display control method and device, terminal and computer readable storage medium |
CN108366170A (en) * | 2018-02-05 | 2018-08-03 | 广东欧珀移动通信有限公司 | Display control method and device, terminal and computer readable storage medium |
CN108536377A (en) * | 2018-04-11 | 2018-09-14 | Oppo广东移动通信有限公司 | Display control method and device, terminal and computer readable storage medium |
CN108647047A (en) * | 2018-03-28 | 2018-10-12 | 上海与德科技有限公司 | A kind of awakening method and system based on mobile terminal |
CN108881620A (en) * | 2018-05-29 | 2018-11-23 | 奇酷互联网络科技(深圳)有限公司 | Mobile terminal awakening method, device and mobile terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102937866A (en) * | 2012-11-12 | 2013-02-20 | 北京小米科技有限责任公司 | Screen control method and terminal |
CN102984372A (en) * | 2012-11-21 | 2013-03-20 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for turning off screen and turning on screen |
US20140013143A1 (en) * | 2012-07-06 | 2014-01-09 | Samsung Electronics Co. Ltd. | Apparatus and method for performing user authentication in terminal |
CN104298446A (en) * | 2014-09-30 | 2015-01-21 | 北京金山安全软件有限公司 | Screen control method and device of mobile terminal and mobile terminal |
CN104731490A (en) * | 2015-04-20 | 2015-06-24 | 深圳市欧珀通信软件有限公司 | Screen control method and screen control device |
-
2017
- 2017-06-20 CN CN201710470079.8A patent/CN107277211A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140013143A1 (en) * | 2012-07-06 | 2014-01-09 | Samsung Electronics Co. Ltd. | Apparatus and method for performing user authentication in terminal |
CN102937866A (en) * | 2012-11-12 | 2013-02-20 | 北京小米科技有限责任公司 | Screen control method and terminal |
CN102984372A (en) * | 2012-11-21 | 2013-03-20 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for turning off screen and turning on screen |
CN104298446A (en) * | 2014-09-30 | 2015-01-21 | 北京金山安全软件有限公司 | Screen control method and device of mobile terminal and mobile terminal |
CN104731490A (en) * | 2015-04-20 | 2015-06-24 | 深圳市欧珀通信软件有限公司 | Screen control method and screen control device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908983A (en) * | 2017-11-14 | 2018-04-13 | 维沃移动通信有限公司 | A kind of method and mobile terminal for controlling mobile terminal screen |
CN108307074A (en) * | 2018-02-05 | 2018-07-20 | 广东欧珀移动通信有限公司 | Display control method and device, terminal and computer readable storage medium |
CN108366170A (en) * | 2018-02-05 | 2018-08-03 | 广东欧珀移动通信有限公司 | Display control method and device, terminal and computer readable storage medium |
CN108279776A (en) * | 2018-02-07 | 2018-07-13 | 联想(北京)有限公司 | Method and electronic equipment for control electronics |
CN108647047A (en) * | 2018-03-28 | 2018-10-12 | 上海与德科技有限公司 | A kind of awakening method and system based on mobile terminal |
CN108536377A (en) * | 2018-04-11 | 2018-09-14 | Oppo广东移动通信有限公司 | Display control method and device, terminal and computer readable storage medium |
CN108881620A (en) * | 2018-05-29 | 2018-11-23 | 奇酷互联网络科技(深圳)有限公司 | Mobile terminal awakening method, device and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107277211A (en) | Screen wake-up control method and device, mobile terminal and storage medium | |
US12271245B2 (en) | Apparatus and method for waking up a processor | |
CN106020418B (en) | Reduce the method, apparatus and mobile terminal of mobile terminal power consumption | |
CN105549721B (en) | Intelligent terminal dormancy method and device | |
CN104850214B (en) | A method of it is intended to shorten mobile terminal wakeup time by predicting that user wakes up | |
WO2014134930A1 (en) | Method and system for unlocking touch screen and electronic device | |
CN104598151B (en) | A kind of recognition methods of blank screen gesture and identifying device | |
CN104281799A (en) | Electronic device and method for selectively enabling face unlock function | |
US20180203568A1 (en) | Method for Enabling Function Module of Terminal, and Terminal Device | |
CN104284004A (en) | Screen unlocking method and mobile terminal | |
CN105843358B (en) | Information processing method and terminal | |
CN106020419A (en) | Method, device and mobile terminal for reducing power consumption of mobile terminal | |
CN104123081A (en) | Electronic device and sleep awakening method thereof | |
TW201523443A (en) | System and method for waking up an operating system of an electronic device | |
WO2014101488A1 (en) | Switch triggering error preventing method and device thereof | |
CN104346482B (en) | A kind of acquisition method and electronic equipment | |
WO2015103840A1 (en) | Automatic sleep method, mobile terminal and computer storage medium | |
CN108845727A (en) | Awakening method and device based on mutual capacitance type touch screen | |
WO2017012205A1 (en) | Method and device for controlling screen, terminal, and storage medium | |
CN106462335A (en) | Dormancy awakening system, method and device for terminal | |
CN112698744A (en) | Fingerprint module control method and device and electronic equipment | |
CN106557247B (en) | Method and system for rapidly controlling opening and closing of screen based on protective shell | |
CN107357406A (en) | Computer shutdown processing method, processor and computer | |
WO2021262149A1 (en) | Touch based computing devices |
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 |
Application publication date: 20171020 |
|
RJ01 | Rejection of invention patent application after publication |