技术领域technical field
本发明涉及通信领域,具体而言,涉及一种锁定终端的处理方法及装置。The present invention relates to the communication field, in particular, to a processing method and device for locking a terminal.
背景技术Background technique
目前人们日常生活中的大多数移动终端,比如手机、MP4等,为了避免误操作和保护隐私,一般都支持屏幕锁定,如根据待机时间进行自动锁屏,或者用户手动按键锁屏等。由于锁屏的频繁,导致每个终端用户需要经常进行解锁操作。尽管各种终端在简化用户解锁操作上都下了大量的功夫,但是不可否认解锁操作本身就是用户的一个负担。At present, most of the mobile terminals in people's daily life, such as mobile phones, MP4, etc., generally support screen locking in order to avoid misuse and protect privacy, such as automatically locking the screen according to the standby time, or the user manually presses the key to lock the screen. Due to frequent screen locks, each terminal user needs to frequently perform unlocking operations. Although various terminals have put a lot of effort into simplifying the user's unlocking operation, it is undeniable that the unlocking operation itself is a burden on the user.
现有的终端自动锁屏基于待机时间,不区分终端所处的位置状态,存在一些不必要的锁屏场景。比如一般手机的自动锁屏时间是5秒到20秒,那么如果用户把手机平放在桌面上,每隔一段时间来查看手机中的内容,或者听到短消息提示音后去查看短消息,就会发现如果已经锁屏,那么必须每次首先进行解锁操作。但从生活常识可知,放在裤袋中不断运动的手机容易出现误操作,而水平放置并处于静止状态的手机是不可能出现误操作的,所以此时的自动锁屏其实是不必要的。The existing terminal automatic screen lock is based on the standby time and does not distinguish the location and state of the terminal, and there are some unnecessary screen lock scenarios. For example, the automatic lock screen time of a general mobile phone is 5 seconds to 20 seconds, so if the user puts the mobile phone flat on the table, checks the content in the mobile phone every once in a while, or checks the short message after hearing the short message prompt tone, You will find that if the screen is already locked, you must first unlock it every time. However, we know from the common sense of life that a mobile phone that is constantly moving in a trouser pocket is prone to misuse, while a mobile phone that is placed horizontally and in a static state is unlikely to be misoperated, so the automatic screen lock at this time is actually unnecessary.
针对相关技术中存在不必要的终端锁屏场景,导致终端频繁锁屏和解锁的问题,目前尚未提出有效的解决方案。Aiming at the problem that unnecessary terminal lock screen scenarios exist in related technologies, resulting in frequent terminal screen lock and unlock, no effective solution has been proposed yet.
发明内容Contents of the invention
针对生活中存在不必要的终端锁屏场景,导致不必要的频繁自动锁屏和解锁的问题,本发明提供了一种锁定终端的处理方法及装置,以至少解决上述问题。Aiming at the problem that there are unnecessary terminal lock screen scenes in daily life, resulting in unnecessary frequent automatic screen lock and unlock, the present invention provides a processing method and device for locking a terminal, so as to at least solve the above problems.
根据本发明的一个方面,提供了一种锁定终端的处理方法,该方法包括:检测终端待机时间是否达到锁定状态时间;如果是,判断该终端是否处于静止状态;如果处于静止状态,禁止该终端进入锁定状态;如果未处于静止状态,设置该终端进入锁定状态。According to one aspect of the present invention, a processing method for locking a terminal is provided. The method includes: detecting whether the standby time of the terminal reaches the locked state time; if so, judging whether the terminal is in a static state; if in a static state, prohibiting the terminal Enter the locked state; if not in the static state, set the terminal to enter the locked state.
优选地,禁止上述终端进入锁定状态之后还包括:监测到该终端处于运动状态之后,判断该终端的背光是否打开;如果背光已关闭,设置该终端进入锁定状态。Preferably, after prohibiting the above-mentioned terminal from entering the locked state, the method further includes: after detecting that the terminal is in a motion state, judging whether the backlight of the terminal is turned on; if the backlight is turned off, setting the terminal to enter the locked state.
优选地,禁止上述终端进入锁定状态之后还包括:设置该终端处于休眠模式。Preferably, after prohibiting the terminal from entering the locked state, the method further includes: setting the terminal in a dormant mode.
优选地,可以通过加速度传感器或陀螺仪判断终端是否处于静止状态。Preferably, whether the terminal is in a static state can be judged by an acceleration sensor or a gyroscope.
优选地,锁定状态包括:锁屏或锁键盘。Preferably, the locked state includes: locking the screen or locking the keyboard.
根据本发明的另一方面,提供了一种锁定终端的处理装置,该装置包括:检测模块,用于检测终端待机时间是否达到锁定状态时间;状态判断模块,用于检测模块的检测结果为是时,判断终端是否处于静止状态;第一处理模块,用于状态判断模块的判断结果为终端处于静止状态时,禁止终端进入锁定状态;第二处理模块,用于状态判断模块的判断结果为终端未处于静止状态时,设置终端进入锁定状态。According to another aspect of the present invention, a processing device for locking a terminal is provided, the device includes: a detection module, used to detect whether the terminal standby time reaches the locked state time; a state judgment module, used to detect whether the detection result of the module is yes , judging whether the terminal is in a static state; the first processing module is used to prohibit the terminal from entering the locked state when the judgment result of the state judging module is that the terminal is in a static state; the second processing module is used to judge that the judgment result of the state judging module is that the terminal When not in a static state, set the terminal to enter a locked state.
优选地,上述装置还包括:监测模块,用于上述第一处理模块禁止上述终端进入锁定状态之后,监测到该终端是否处于运动状态;背光判断模块,用于上述监测模块的监测结果为是时,判断该终端的背光是否打开;第三处理模块,用于上述背光判断模块的判断结果为背光已关闭时,设置该终端进入锁定状态。Preferably, the above-mentioned device further includes: a monitoring module, used for monitoring whether the terminal is in a motion state after the first processing module forbids the above-mentioned terminal from entering the locked state; a backlight judgment module, used for when the monitoring result of the above-mentioned monitoring module is yes , judging whether the backlight of the terminal is turned on; the third processing module is used to set the terminal to enter the locked state when the judging result of the backlight judging module is that the backlight is turned off.
优选地,上述装置还包括:休眠模式设置模块,用于上述第一处理模块禁止上述终端进入锁定状态之后,设置该终端处于休眠模式。Preferably, the device further includes: a sleep mode setting module, configured to set the terminal in a sleep mode after the first processing module prohibits the terminal from entering the locked state.
优选地,上述状态判断模块可以通过加速度传感器或陀螺仪判断该终端是否处于静止状态。Preferably, the above state judging module can judge whether the terminal is in a static state through an acceleration sensor or a gyroscope.
优选地,上述终端可以为移动终端。Preferably, the above-mentioned terminal may be a mobile terminal.
通过本发明,采用在终端达到锁定状态时间时,不是直接进入锁定状态,而是先进行终端是否处于静止状态的判断,并在处于静止状态的情况下,禁止终端进入锁定状态,进而减少了锁定终端的次数,解决了相关技术中存在不必要的终端锁屏场景,导致终端频繁锁屏和解锁的问题,该方式使用户不需要频繁地进行解锁操作,提升了用户的体验。Through the present invention, when the terminal reaches the locked state time, it does not directly enter the locked state, but first judges whether the terminal is in the static state, and in the static state, prohibits the terminal from entering the locked state, thereby reducing the locking time. The number of times of the terminal solves the problem of unnecessary terminal lock screen scenarios in related technologies, resulting in frequent lock screen and unlocking of the terminal. This method eliminates the need for the user to perform frequent unlocking operations and improves the user experience.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是根据本发明实施例的锁定终端的处理方法的流程图;FIG. 1 is a flowchart of a processing method for locking a terminal according to an embodiment of the present invention;
图2是根据本发明实施例的锁定终端的处理装置的结构框图;FIG. 2 is a structural block diagram of a processing device for locking a terminal according to an embodiment of the present invention;
图3是根据本发明优选实施例的锁定终端的处理装置的具体结构框图;Fig. 3 is a specific structural block diagram of a processing device for locking a terminal according to a preferred embodiment of the present invention;
图4是根据本发明优选实施例的锁定终端的处理装置的另一种结构框图;Fig. 4 is another structural block diagram of a processing device for locking a terminal according to a preferred embodiment of the present invention;
图5是根据本发明实施例的终端自动锁屏的方法流程图;FIG. 5 is a flowchart of a method for automatically locking the screen of a terminal according to an embodiment of the present invention;
图6是根据本发明实施例的终端自动锁屏的方法的具体流程图。Fig. 6 is a specific flowchart of a method for automatically locking a screen of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
本发明实施例中的终端可以是手机、MP4等移动终端,这些设备在用户不操作的情况下,会自动进入锁定状态,该锁定状态可以是锁屏或锁键盘等,以防止对设备的功能进行误操作。然而这种自动进入锁定状态的方式有时也会使用户的操作繁琐化,例如:用户在某段时间会频繁查看手机中的信息时,需要每次对手机进行解锁操作。基于此,本发明实施例提供了一种锁定终端的处理方法和装置。下面通过实施例进行详细说明。The terminals in the embodiments of the present invention can be mobile terminals such as mobile phones and MP4s. These devices will automatically enter the locked state when the user does not operate them. Make a mistake. However, this way of automatically entering the locked state sometimes also makes the user's operations cumbersome. For example, when the user frequently checks the information in the mobile phone during a certain period of time, the mobile phone needs to be unlocked every time. Based on this, embodiments of the present invention provide a processing method and device for locking a terminal. The following will be described in detail through examples.
在以下实施例中,提供了一种锁定终端的处理方法,如图1所示的锁定终端的处理方法流程图,该方法包括以下步骤(步骤S102-步骤S108):In the following embodiments, a processing method for locking a terminal is provided, as shown in FIG.
步骤S102,检测终端待机时间是否达到锁定状态时间;如果是,则执行步骤S104;Step S102, detecting whether the standby time of the terminal reaches the locked state time; if yes, then execute step S104;
如果终端待机时间没有达到锁定状态时间,则继续待机;该锁定状态时间指设定的终端自动进入锁定状态的时间;If the terminal standby time does not reach the locked state time, it will continue to stand by; the locked state time refers to the set time for the terminal to automatically enter the locked state;
步骤S104,判断终端是否处于静止状态;如果是,执行步骤S106,否则,执行步骤S108;Step S104, judging whether the terminal is in a static state; if yes, execute step S106, otherwise, execute step S108;
步骤S106,禁止终端进入锁定状态;Step S106, prohibiting the terminal from entering the locked state;
步骤S108,设置终端进入锁定状态。Step S108, setting the terminal into a locked state.
通过在终端达到锁定状态时间时,不是直接进入锁定状态,而是先进行终端是否处于静止状态的判断,并在处于静止状态的情况下,禁止终端进入锁定状态,进而减少了锁定终端的次数,解决了相关技术中存在不必要的终端锁屏场景,导致终端频繁锁屏和解锁的问题,该方式使用户不需要频繁地进行解锁操作,提升了用户的体验。When the terminal reaches the locked state time, it does not directly enter the locked state, but first judges whether the terminal is in a static state, and prohibits the terminal from entering the locked state when it is in a static state, thereby reducing the number of times to lock the terminal. It solves the problem that unnecessary terminal lock screen scenarios exist in the related art, resulting in frequent lock screen and unlocking of the terminal. This method eliminates the need for the user to perform frequent unlocking operations and improves the user experience.
在此之后,如果终端从静止状态再次切换到运动状态,此时用户可能对终端进行操作(例如,用户查看手机中的内容)或不进行操作(例如,用户把置于桌面的终端拿起然后放入裤袋),因采用上述方法,此时终端未进入锁定状态,为了防止这种情况下,发生误操作,上述禁止所述终端进入锁定状态之后,该方法还包括:监测到终端处于运动状态之后,判断终端的背光是否打开;如果背光已关闭,设置终端进入锁定状态,如果背光打开,说明用户对终端进行了操作,设置终端恢复到原有的操作方式,即用户可以自行进行手动锁屏或者等待锁屏定时器到时后进行自动锁屏。After that, if the terminal switches from the stationary state to the moving state again, the user may operate the terminal (for example, the user checks the content in the mobile phone) or not (for example, the user picks up the terminal placed on the desktop and then Pants pocket), because the above method is adopted, the terminal does not enter the locked state at this time. In order to prevent misuse in this situation, after the above-mentioned prohibition of the terminal entering the locked state, the method also includes: monitoring that the terminal is in motion After the status, judge whether the backlight of the terminal is turned on; if the backlight is turned off, set the terminal to enter the locked state, if the backlight is turned on, it means that the user has operated the terminal, and set the terminal to return to the original operation mode, that is, the user can manually lock the terminal by himself. automatically lock the screen or wait for the lock screen timer to expire.
由上述方式可以看出,在终端静止一段时间后,发现终端处于运动状态时,则需要通过判断背光的方式再次确认用户是否对该终端正在进行操作,如果背光已经关闭,则说明用户此时未对终端进行操作,仅是对终端进行了位置移动,因此采取自动锁屏操作;如果背光打开,则说明用户正在对终端进行正常操作,此时终端将恢复到原有的操作方式,该方式下,用户可以自行进行手动锁屏或者等待锁屏定时器到时后进行自动锁屏。通过这种方式,可以避免用户将终端放入裤袋等动作而导致误操作。It can be seen from the above method that when the terminal is found to be in motion after the terminal has been stationary for a period of time, it is necessary to reconfirm whether the user is operating the terminal by judging the backlight. If the backlight has been turned off, it means that the user has not The operation of the terminal is only to move the position of the terminal, so the automatic lock screen operation is adopted; if the backlight is turned on, it means that the user is operating the terminal normally, and the terminal will return to the original operation mode at this time. , the user can lock the screen manually or automatically lock the screen after the lock screen timer expires. In this way, it is possible to avoid misoperations caused by the user putting the terminal into the trouser pocket and the like.
一般终端进入锁屏状态后会进入休眠模式以减少电量的消耗,本方法生效时仅仅是不进行锁屏操作,不会影响休眠操作。基于此,当检测到终端处于静止状态时,禁止终端进入锁定状态,终端处于静止状态说明用户未对手机进行操作,因此可以设置终端进入休眠模式。这种方式保证了在减少锁定状态次数的基础上,还可以进一步达到减少电量消耗的目的。Generally, after the terminal enters the lock screen state, it will enter the sleep mode to reduce power consumption. When this method takes effect, the lock screen operation will not be performed, and the sleep operation will not be affected. Based on this, when the terminal is detected to be in a static state, the terminal is prohibited from entering the locked state. The terminal being in a static state indicates that the user has not operated the mobile phone, so the terminal can be set to enter the sleep mode. This method ensures that on the basis of reducing the number of locked states, the purpose of reducing power consumption can be further achieved.
本实施例判断终端是否处于静止状态的装置包括但不限于加速度传感器或陀螺仪等。其它一些物理装置,只要能判断物体是否静止和运动,都可以替代上述的加速度传感器或者陀螺仪。目前越来越多的终端都已经内置加速度传感器,本实施例硬件条件要求不高,对终端生产厂家的开发工作影响也很小,只需少量修改终端软件,能与现有终端兼容。The device for judging whether the terminal is in a static state in this embodiment includes but is not limited to an acceleration sensor or a gyroscope. Some other physical devices can replace the above-mentioned acceleration sensor or gyroscope as long as they can determine whether the object is still or moving. At present, more and more terminals have built-in acceleration sensors. The hardware requirements of this embodiment are not high, and the impact on the development work of terminal manufacturers is also small. Only a small amount of terminal software modification is required to be compatible with existing terminals.
上述锁定状态可以包括:锁屏或锁键盘。The aforementioned locked state may include: locking the screen or locking the keyboard.
对应于上述方法,本实施例还提供了一种锁定终端的处理装置,该装置用于实现上述实施例。图2是根据本实施例的锁定终端的处理装置的结构框图,如图2所示,该装置包括:检测模块20、状态判断模块22、第一处理模块24和第二处理模块26。下面对该结构进行说明。Corresponding to the above method, this embodiment further provides a processing device for locking a terminal, which is used to implement the above embodiment. FIG. 2 is a structural block diagram of a processing device for locking a terminal according to this embodiment. As shown in FIG. 2 , the device includes: a detection module 20 , a status judgment module 22 , a first processing module 24 and a second processing module 26 . This structure will be described below.
检测模块20,用于检测终端待机时间是否达到锁定状态时间;The detection module 20 is used to detect whether the standby time of the terminal reaches the locked state time;
状态判断模块22,连接至检测模块20,用于在检测模块20的检测结果为是时,判断终端是否处于静止状态;A state judgment module 22, connected to the detection module 20, is used to determine whether the terminal is in a static state when the detection result of the detection module 20 is yes;
第一处理模块24,连接至状态判断模块22,用于在状态判断模块22的判断结果为终端处于静止状态时,禁止终端进入锁定状态;The first processing module 24 is connected to the state judging module 22, and is used to prohibit the terminal from entering the locked state when the judging result of the state judging module 22 is that the terminal is in a static state;
第二处理模块26,连接至状态判断模块22,用于在状态判断模块22的判断结果为终端未处于静止状态时,设置终端进入锁定状态。The second processing module 26 is connected to the state judging module 22, and is used for setting the terminal to enter the locked state when the judging result of the state judging module 22 is that the terminal is not in the static state.
通过上述装置,在检测模块20检测到终端待机时间达到锁定状态时间的前提下,根据状态判断模块22对终端是否处于静止状态的判断结果,由第一处理模块24或第二处理模块26对终端的锁定状态进行设置,并在处于静止状态的情况下,禁止终端进入锁定状态,进而减少了锁定终端的次数,解决了相关技术中存在不必要的终端锁屏场景,导致终端频繁锁屏和解锁的问题,该方式使用户不需要频繁地进行解锁操作,提升了用户的体验。Through the above-mentioned device, under the premise that the detection module 20 detects that the terminal standby time has reached the locked state time, according to the judgment result of the state judgment module 22 whether the terminal is in a static state, the first processing module 24 or the second processing module 26. Set the locked state of the terminal, and prohibit the terminal from entering the locked state when it is in a static state, thereby reducing the number of times to lock the terminal, and solving the unnecessary terminal lock screen scene in the related technology, which leads to frequent lock screen and unlock of the terminal In this way, the user does not need to perform frequent unlocking operations, which improves the user experience.
图3是根据本发明优选实施例的锁定终端的处理装置的具体结构框图,如图3所示,该装置除了包括上述图2中的各个模块之外,还包括:监测模块30、背光判断模块32和第三处理模块34。下面对该结构进行说明。Fig. 3 is a specific structural block diagram of a processing device for locking a terminal according to a preferred embodiment of the present invention. As shown in Fig. 3 , in addition to the above-mentioned modules in Fig. 2, the device also includes: a monitoring module 30, a backlight judging module 32 and a third processing module 34. This structure will be described below.
监测模块30,连接至第一处理模块24,用于在第一处理模块24禁止终端进入锁定状态之后,监测终端是否处于运动状态;The monitoring module 30 is connected to the first processing module 24, and is used to monitor whether the terminal is in a motion state after the first processing module 24 prohibits the terminal from entering the locked state;
背光判断模块32,连接至监测模块30,用于在监测模块30的监测结果为是时,判断终端的背光是否打开;A backlight judging module 32, connected to the monitoring module 30, is used to determine whether the backlight of the terminal is turned on when the monitoring result of the monitoring module 30 is yes;
第三处理模块34,连接至背光判断模块32,用于在背光判断模块32的判断结果为背光已关闭时,设置终端进入锁定状态。The third processing module 34 is connected to the backlight judging module 32, and is used for setting the terminal to enter the locked state when the judging result of the backlight judging module 32 is that the backlight is turned off.
图4是根据本发明优选实施例的锁定终端的处理装置的另一个具体结构框图,如图4所示除了包括上述图3中的各个模块之外,该装置还包括:休眠模式设置模块40,连接至第一处理模块24,用于在第一处理模块24禁止终端进入锁定状态之后,设置终端处于休眠模式。FIG. 4 is another specific structural block diagram of a processing device for locking a terminal according to a preferred embodiment of the present invention. As shown in FIG. It is connected to the first processing module 24, and is used for setting the terminal in the sleep mode after the first processing module 24 prohibits the terminal from entering the locked state.
本优选实施例的状态判断模块22判断终端是否处于静止状态的装置包括但不限于加速度传感器或陀螺仪等。其它一些物理装置,只要能判断物体是否静止和运动,都可以替代上述的加速度传感器或者陀螺仪。目前越来越多的终端都已经内置加速度传感器,本实施例硬件条件要求不高,对终端生产厂家的开发工作影响也很小,只需少量修改终端软件。优选地,上述终端为移动终端。The device for judging whether the terminal is in a static state by the state judging module 22 in this preferred embodiment includes but is not limited to an acceleration sensor or a gyroscope. Some other physical devices can replace the above-mentioned acceleration sensor or gyroscope as long as they can determine whether the object is still or moving. At present, more and more terminals have built-in acceleration sensors. The hardware requirements of this embodiment are not high, and the impact on the development work of the terminal manufacturer is also small, and only a small amount of modification of the terminal software is required. Preferably, the above-mentioned terminal is a mobile terminal.
下面结合优选实施例和附图对上述实施例的实现过程进行详细说明。The implementation process of the above-mentioned embodiments will be described in detail below in conjunction with preferred embodiments and accompanying drawings.
实施例一Embodiment one
本实施例以锁屏为例进行说明,图5是根据本发明实施例的终端自动锁屏的方法流程图,如图5所示,该方法包括如下步骤:This embodiment is described by taking the lock screen as an example. FIG. 5 is a flowchart of a method for automatically locking the screen of a terminal according to an embodiment of the present invention. As shown in FIG. 5 , the method includes the following steps:
步骤S502,终端上无用户操作而进入待机状态;Step S502, the terminal enters a standby state without user operation;
步骤S504,检测终端待机时间达到锁屏状态时间;Step S504, detecting that the standby time of the terminal reaches the lock screen state time;
手机等终端工作在等待状态时称为待机,待机时间是指电池在终端待机状态下的连续使用时间,也可以解释为终端完全充满电量,在不通话、不关机的待机状态下,电池靠自身消耗一直到出现低电量警告之间所能维持的时间。待机时消耗的电流比较小,与网络几乎无关,根据机型不同,消耗电量几毫安到几十毫安不等。待机时间取决于电池的容量及手机消耗电流的大小,其待机时间的算法为:手机等终端的电池容量/待机时的工作电流=待机时间。When a terminal such as a mobile phone is working in a waiting state, it is called standby. The standby time refers to the continuous use time of the battery in the standby state of the terminal. It can also be interpreted as the terminal is fully charged. The amount of time between consumption until the low battery warning occurs. The current consumption in standby mode is relatively small, and has almost nothing to do with the network. Depending on the model, the power consumption varies from a few milliamperes to tens of milliamperes. The standby time depends on the capacity of the battery and the current consumption of the mobile phone. The algorithm for the standby time is: battery capacity of the terminal such as the mobile phone/operating current during standby = standby time.
步骤S506,判断终端是否处于静止状态;如果是,执行步骤S508,如果否,执行步骤S510;Step S506, judging whether the terminal is in a static state; if yes, execute step S508, if not, execute step S510;
本实施例可以通过加速度传感器或陀螺仪判断终端是否处于静止状态。对于内置加速度传感器或者陀螺仪的终端,可以实时获取当前终端所处三维空间X/Y/Z的加速度值。如果终端处于静止状态,将只受到重力加速度的影响,那么三个轴上的加速度矢量和为1g,g代表9.8m/s2。考虑到任何加速度传感器都存在一定的固有测量误差,则如果三个轴的加速度矢量和在1g的测试误差范围内变化,则可以认为此时终端处于静止状态。比如静止平放在水平桌面上的终端就是一个例子,其一个轴的加速度为1g,另外两个轴加速度为0。通过以上传感器判断物体是否静止可以参考相关技术实现,这里不再赘述。In this embodiment, it may be determined whether the terminal is in a static state through an acceleration sensor or a gyroscope. For a terminal with a built-in acceleration sensor or gyroscope, the acceleration value of the X/Y/Z three-dimensional space where the current terminal is located can be obtained in real time. If the terminal is in a static state, it will only be affected by the acceleration of gravity, then the sum of the acceleration vectors on the three axes is 1g, and g represents 9.8m/s2 . Considering that any acceleration sensor has a certain inherent measurement error, if the acceleration vector sum of the three axes changes within the test error range of 1g, it can be considered that the terminal is in a static state at this time. For example, a terminal placed flat on a horizontal desktop is an example. The acceleration of one axis is 1g, and the acceleration of the other two axes is 0. Judging whether an object is stationary through the above sensors can be implemented with reference to related technologies, and will not be repeated here.
步骤S508,禁止终端进入锁屏状态;Step S508, prohibiting the terminal from entering the lock screen state;
禁止终端进入锁定状态之后,可以设置终端处于休眠模式,这样,可以减少电量的消耗,采用本实施例的方法,仅仅是在终端处于静止状态时不进行锁屏操作,不会影响休眠操作。待机状态与休眠状态的区别是待机是将当前处于运行状态的数据保存在内存中,机器只对内存供电,而硬盘、屏幕等部件则停止供电。由于数据存储在速度快的内存中,因此进入等待状态和唤醒的速度比较快。休眠状态是将当前处于运行状态的数据保存在硬盘中,整机将完全停止供电,因为数据存储在硬盘中,而硬盘速度比内存要低,所以进入休眠状态和唤醒的速度都相对较慢。自动进入待机状态和休眠状态的时间可以根据用户需要自行设定。上述方法可以减少电量的消耗。After the terminal is prohibited from entering the locked state, the terminal can be set in the sleep mode, so that the power consumption can be reduced. Using the method of this embodiment, only when the terminal is in a static state, the screen lock operation is not performed, and the sleep operation will not be affected. The difference between the standby state and the hibernation state is that the standby state saves the currently running data in the memory, and the machine only supplies power to the memory, while the hard disk, screen and other components stop power supply. Because data is stored in fast memory, entering wait states and waking up is relatively fast. The hibernation state is to save the currently running data in the hard disk, and the whole machine will completely stop power supply, because the data is stored in the hard disk, and the speed of the hard disk is lower than that of the memory, so the speed of entering the hibernation state and waking up is relatively slow. The time for automatically entering the standby state and dormant state can be set according to user needs. The above method can reduce power consumption.
步骤S510,设置终端进入锁屏状态。如果终端已经锁屏,比如用户对手机进行锁屏操作,然后把手机置于桌上,此时手机处于静止状态,并且是锁定状态,本实施例即使在终端处于静止状态时,也不会主动解锁,以符合用户的操作意愿。Step S510, setting the terminal to enter a screen-locked state. If the terminal has locked the screen, for example, the user performs the lock screen operation on the mobile phone, and then puts the mobile phone on the table. At this time, the mobile phone is in a static state and is in a locked state. Unlock to comply with the user's operation wishes.
对于采用上述方法的终端,当终端一直处于静止状态时,该终端将一直不会被锁屏;当终端位置发生移动,处于运动状态时,为了防止误操作,本实施例还提供了一种具体的终端自动锁屏的方法,参见图6,在图5的基础上,该方法还包括以下步骤:For the terminal using the above method, when the terminal is in a static state, the terminal will not be locked; when the terminal moves and is in motion, in order to prevent misoperation, this embodiment also provides a specific The method for automatically locking the screen of the terminal is shown in Figure 6. On the basis of Figure 5, the method further includes the following steps:
步骤S602,监测终端是否依旧处于静止状态;如果监测到终端处于运动状态,即终端从静止状态切换到运动状态(例如,用户把置于桌面的终端拿起),执行步骤S606,否则,执行步骤S604;Step S602, monitor whether the terminal is still in the static state; if it is detected that the terminal is in the motion state, that is, the terminal switches from the static state to the motion state (for example, the user picks up the terminal placed on the desktop), perform step S606, otherwise, perform step S606 S604;
步骤S604,禁止终端进入锁定状态;Step S604, prohibiting the terminal from entering the locked state;
步骤S606,判断终端的背光是否打开;如果终端的背光打开,则进入步骤S608,如果背光未打开,则进入步骤S610;Step S606, judging whether the backlight of the terminal is turned on; if the backlight of the terminal is turned on, proceed to step S608, and if the backlight is not turned on, proceed to step S610;
背光显示是指当使用者使用电子设备时,机身上的显示屏能否发出背光,以便更清晰地显示内容。大部分的电子设备只要有显示屏,就有背光显示。背光关闭状态下,电流也能进入,但保持低耗状态,信号可以进入,可以通过点击屏幕或键盘发送激活信号,将显示屏退出低耗状态,进入正常模式,此时背光打开。Backlight display refers to whether the display screen on the fuselage can emit backlight when the user uses the electronic device, so as to display the content more clearly. As long as most electronic equipment has a display screen, it has a backlight display. When the backlight is off, the current can also enter, but keep the low power consumption state, the signal can enter, you can click the screen or keyboard to send an activation signal, the display will exit the low power consumption state and enter the normal mode, at this time the backlight is turned on.
步骤S608,终端恢复到原有的操作方式,该方式下,用户可以自行进行手动锁屏或者等锁屏定时器到时后进行自动锁屏;In step S608, the terminal returns to the original operation mode. In this mode, the user can manually lock the screen or automatically lock the screen after the lock screen timer expires;
步骤S610,设置终端进入锁屏状态。Step S610, setting the terminal to enter a screen-locked state.
禁止终端进入锁定状态之后,设置终端处于休眠模式。一般终端进入锁屏状态后会进入休眠模式以减少电量的消耗,当检测到终端处于静止状态时,禁止终端进入锁定状态,终端处于静止状态说明用户未对手机进行操作,因此可以设置终端进入休眠模式。上述方法可以减少电量的消耗。After prohibiting the terminal from entering the locked state, set the terminal to sleep mode. Generally, after the terminal enters the lock screen state, it will enter the sleep mode to reduce power consumption. When the terminal is detected to be in a static state, the terminal is prohibited from entering the locked state. If the terminal is in a static state, it means that the user has not operated the mobile phone, so the terminal can be set to enter sleep mode. model. The above method can reduce power consumption.
以上实施例中的锁屏处理方法,仅是针对自动锁屏方式进行的处理,对于用户的手动锁屏操作,依旧按照原有处理方式进行,即终端接收到终端的手动锁屏操作指令后,进行锁屏处理。当然,这种处理适用于锁键盘的形式。The lock screen processing method in the above embodiment is only for the processing of the automatic screen lock mode, and the manual lock screen operation of the user is still performed according to the original processing method, that is, after the terminal receives the manual lock screen operation instruction of the terminal, Perform lock screen processing. Of course, this processing is applicable to the form of locking the keypad.
从以上的描述中可以看出,上述实施例能够有效分辨出不必要的终端锁定(例如锁屏或锁键盘)场景,在终端自动锁定判断时,使处于静止状态的终端不进行锁定操作,以减少锁定的次数,有效减少频繁解锁操作对用户使用终端的干扰,提升用户体验,同时也不会增加终端的误操作。另外,该方法不需要对终端的硬件进行改动,可以通过软件实现,开发成本低,维护了终端厂商的利益。It can be seen from the above description that the above embodiments can effectively distinguish unnecessary terminal locking (such as locking the screen or locking the keyboard) scene, and when the terminal is automatically locked, the terminal in the static state is not locked. Reduce the number of times of locking, effectively reduce the interference of frequent unlocking operations on the user's use of the terminal, improve user experience, and at the same time will not increase the misoperation of the terminal. In addition, the method does not need to modify the hardware of the terminal, and can be realized through software, with low development cost and safeguarding the interests of terminal manufacturers.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases, in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110327366.6ACN102394974B (en) | 2011-10-25 | 2011-10-25 | The processing method of locking terminal and device |
| PCT/CN2011/085163WO2013060084A1 (en) | 2011-10-25 | 2011-12-31 | Processing method and device for locking terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110327366.6ACN102394974B (en) | 2011-10-25 | 2011-10-25 | The processing method of locking terminal and device |
| Publication Number | Publication Date |
|---|---|
| CN102394974A CN102394974A (en) | 2012-03-28 |
| CN102394974Btrue CN102394974B (en) | 2016-03-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110327366.6AActiveCN102394974B (en) | 2011-10-25 | 2011-10-25 | The processing method of locking terminal and device |
| Country | Link |
|---|---|
| CN (1) | CN102394974B (en) |
| WO (1) | WO2013060084A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103593163A (en)* | 2012-08-13 | 2014-02-19 | 宏达国际电子股份有限公司 | Automatic operation method and portable device |
| US10063680B2 (en)* | 2014-09-29 | 2018-08-28 | Sharp Kabushiki Kaisha | Portable terminal, and method for controlling portable terminal |
| CN104376239B (en)* | 2014-11-26 | 2019-02-12 | 小米科技有限责任公司 | The unlocking method and a device of terminal |
| CN105404382A (en)* | 2015-11-30 | 2016-03-16 | 小米科技有限责任公司 | Power saving mode setting method and apparatus |
| CN107087053B (en)* | 2017-03-15 | 2019-09-17 | Oppo广东移动通信有限公司 | A kind of screen backlight control method and mobile terminal |
| CN107643871A (en)* | 2017-10-13 | 2018-01-30 | 广东欧珀移动通信有限公司 | Screen display control method and device, storage medium and mobile terminal |
| CN108007433A (en)* | 2017-11-13 | 2018-05-08 | 青岛海信移动通信技术股份有限公司 | A kind of terminal determines the method and terminal at inclination angle |
| CN108470120B (en)* | 2018-03-28 | 2021-06-29 | 北京小米移动软件有限公司 | Lock screen control method, device and readable storage medium |
| CN109151159A (en)* | 2018-06-15 | 2019-01-04 | Oppo广东移动通信有限公司 | terminal control method, device and mobile terminal |
| CN109194834B (en)* | 2018-09-27 | 2021-07-13 | 重庆辉烨物联科技有限公司 | Mobile phone power saving method, device, equipment and storage medium |
| CN113205673A (en)* | 2021-04-23 | 2021-08-03 | 珠海格力电器股份有限公司 | Method and apparatus for controlling remote control apparatus, and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101601262A (en)* | 2007-01-12 | 2009-12-09 | 诺基亚公司 | Mobile communication terminal including motion sensor for locking and unlocking user interface |
| CN101827160A (en)* | 2009-12-29 | 2010-09-08 | 华为终端有限公司 | Locking/unlocking control method and device and mobile terminal |
| CN101931705A (en)* | 2010-08-31 | 2010-12-29 | 中兴通讯股份有限公司 | Method for locking input module of mobile terminal and mobile terminal |
| CN101945166A (en)* | 2010-08-31 | 2011-01-12 | 中兴通讯股份有限公司 | Mobile terminal and locking method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1704292A (en)* | 2004-05-31 | 2005-12-07 | 乐金电子(惠州)有限公司 | Apparatus and method for triggering, locking and controlling vehicle utilizing communication network |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101601262A (en)* | 2007-01-12 | 2009-12-09 | 诺基亚公司 | Mobile communication terminal including motion sensor for locking and unlocking user interface |
| CN101827160A (en)* | 2009-12-29 | 2010-09-08 | 华为终端有限公司 | Locking/unlocking control method and device and mobile terminal |
| CN101931705A (en)* | 2010-08-31 | 2010-12-29 | 中兴通讯股份有限公司 | Method for locking input module of mobile terminal and mobile terminal |
| CN101945166A (en)* | 2010-08-31 | 2011-01-12 | 中兴通讯股份有限公司 | Mobile terminal and locking method thereof |
| Publication number | Publication date |
|---|---|
| CN102394974A (en) | 2012-03-28 |
| WO2013060084A1 (en) | 2013-05-02 |
| Publication | Publication Date | Title |
|---|---|---|
| CN102394974B (en) | The processing method of locking terminal and device | |
| RU2618932C2 (en) | Method, installation and device of unblocking process for terminal | |
| EP2469965B1 (en) | Method, device and mobile terminal for locking/unlocking control | |
| US8335549B2 (en) | Method for power management of mobile communication terminal and mobile communication terminal using this method | |
| JP2012085031A (en) | Mobile terminal, control method and control program thereof | |
| CN105635483B (en) | A kind of processing method, device and storage medium operating mobile terminal | |
| CN106357880A (en) | Double-screen mobile terminal and system control method thereof | |
| CN103312876A (en) | Mobile terminal and rapid photographing realization method thereof | |
| US20140317429A1 (en) | Electronic device and method for resuming from hibernation for the same | |
| CN106339168A (en) | Screen control method and device | |
| CN103581407A (en) | Method and system for protecting screen against spurious triggering in conversation process | |
| US9542935B2 (en) | Voice recognition function realizing method and device | |
| CN103631494A (en) | Information processing method and electronic equipment | |
| CN103167128A (en) | System and method for achieving automatic sleep of mobile phone based on proximity sensor | |
| CN105262866A (en) | Anti-theft method, system and anti-theft handset | |
| US20150113301A1 (en) | Charging method and mobile electronic device | |
| US9996186B2 (en) | Portable device and method for defining restricted area within touch panel | |
| CN103869985A (en) | Information processing method and terminal device | |
| JP6155799B2 (en) | Mobile terminal device, screen lock control method, and program | |
| EP2530915B1 (en) | Method for locking mobile telephone keyboard and mobile telephone | |
| CN110958345B (en) | Method and device for detecting rear cover of mobile terminal and computer readable storage medium | |
| CN103762390A (en) | Charging method and action electronic device | |
| CN103853308B (en) | Method and apparatus for information processing | |
| CN105449784A (en) | Power supply device applied to mobile terminal and power supply method for power supply device | |
| CN106021008B (en) | A control method and terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |