[go: up one dir, main page]

CN107743169A - The control method and mobile terminal of a kind of mobile terminal - Google Patents

The control method and mobile terminal of a kind of mobile terminal Download PDF

Info

Publication number
CN107743169A
CN107743169A CN201710827154.1A CN201710827154A CN107743169A CN 107743169 A CN107743169 A CN 107743169A CN 201710827154 A CN201710827154 A CN 201710827154A CN 107743169 A CN107743169 A CN 107743169A
Authority
CN
China
Prior art keywords
mobile terminal
vibration
screen
displacement
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710827154.1A
Other languages
Chinese (zh)
Other versions
CN107743169B (en
Inventor
葛颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710827154.1A priority Critical patent/CN107743169B/en
Publication of CN107743169A publication Critical patent/CN107743169A/en
Application granted granted Critical
Publication of CN107743169B publication Critical patent/CN107743169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • 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

Landscapes

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

Abstract

本发明提供一种移动终端的控制方法及移动终端,其中方法包括:当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移;当检测到移动终端发生位移,且位移的位移值大于预设位移阈值时,控制移动终端关闭振动。本发明实施例解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。

The present invention provides a method for controlling a mobile terminal and the mobile terminal, wherein the method includes: when detecting the vibration of the mobile terminal, detecting whether the mobile terminal is displaced relative to the position where the vibration occurs; when detecting the displacement of the mobile terminal, and When the displacement value of the displacement is greater than the preset displacement threshold, the mobile terminal is controlled to turn off the vibration. The embodiment of the present invention solves the problem in the prior art that the mobile terminal is easily dropped from a high place due to the vibration reminder of the mobile terminal, causing the screen to be broken.

Description

一种移动终端的控制方法及移动终端Method for controlling mobile terminal and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其是涉及一种移动终端的控制方法及移动终端。The present invention relates to the technical field of communications, and in particular to a mobile terminal control method and the mobile terminal.

背景技术Background technique

现在越来越多的手机屏幕设计为5寸以上的大尺寸屏幕,且大多手机屏幕为主动矩阵有机发光二极体面板(Active Matrix/Organic Light Emitting Diode,AMOLED)屏幕或者INCELL屏幕,由于屏幕的易碎性,用户通常都会采用各种各样的方式来保护手机屏幕,但是还是会遇到一些突发情况致使手机从较高的地方摔落,导致手机屏幕碎裂。例如,用户在生活或工作中有时会将手机反面(手机屏幕面)放置在洗手间或浴室的台面上,并且手机距离台面的边缘较近,如果台面较为光滑或者台面上有水,若此时手机突然来电,由于手机屏幕在有水或者光滑的地方会比较润滑,在手机振动的情况下,手机会由于振动力而左右移动,这样就会很容易导致手机从台面滑落并导致屏幕碎裂的情况的发生,影响了用户对手机的使用。Nowadays, more and more mobile phone screens are designed as large-size screens of more than 5 inches, and most of the mobile phone screens are active matrix organic light emitting diode (Active Matrix/Organic Light Emitting Diode, AMOLED) screens or INCELL screens. Fragility, users usually use various methods to protect the screen of the mobile phone, but some unexpected situations may cause the mobile phone to fall from a higher place, causing the screen of the mobile phone to shatter. For example, in life or work, users sometimes place the reverse side of the mobile phone (the screen surface of the mobile phone) on the countertop in the toilet or bathroom, and the mobile phone is relatively close to the edge of the countertop. If the countertop is relatively smooth or there is water on the countertop, if the mobile phone Sudden call, because the screen of the mobile phone will be more lubricated in the place where there is water or slippery, when the mobile phone vibrates, the mobile phone will move left and right due to the vibration force, which will easily cause the mobile phone to slip off the table and cause the screen to break The occurrence of this has affected the use of mobile phones by users.

综上所述,现有技术中存在着由于移动终端振动提醒导致移动终端很容易从高处摔落致使屏幕碎裂的问题。To sum up, in the prior art, there is a problem that the mobile terminal is easily dropped from a high place due to the vibration reminder of the mobile terminal, causing the screen to be broken.

发明内容Contents of the invention

本发明实施例提供一种移动终端的控制方法及移动终端,以解决现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。Embodiments of the present invention provide a method for controlling a mobile terminal and the mobile terminal, so as to solve the problem in the prior art that the mobile terminal is easily dropped from a height and the screen is broken due to the vibration reminder of the mobile terminal.

第一方面,本发明实施例提供一种移动终端的控制方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling a mobile terminal, the method including:

当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移;When the vibration of the mobile terminal is detected, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurs;

当检测到移动终端发生位移,且所述位移的位移值大于预设位移阈值时,控制移动终端关闭振动。When it is detected that the mobile terminal is displaced, and the displacement value of the displacement is greater than a preset displacement threshold, the mobile terminal is controlled to turn off vibration.

第二方面,本发明实施例提供一种移动终端,所述移动终端包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:

第一检测模块,用于当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移;The first detection module is used to detect whether the mobile terminal is displaced relative to the position where the vibration occurs when the vibration of the mobile terminal is detected;

第一控制模块,用于当检测到移动终端发生位移,且所述位移的位移值大于预设位移阈值时,控制移动终端关闭振动。The first control module is configured to control the mobile terminal to turn off vibration when it is detected that the mobile terminal is displaced, and the displacement value of the displacement is greater than a preset displacement threshold.

第三方面,本发明实施例提供一种移动终端,所述移动终端包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述的移动终端的控制方法的步骤。In the third aspect, an embodiment of the present invention provides a mobile terminal, the mobile terminal includes a processor, a memory, and a computer program stored in the memory and operable on the processor, the computer program is controlled by the The processor implements the steps of the mobile terminal control method when executed.

在本发明实施例中,通过在检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位置,并在检测到移动终端发生位移,且位移值大于预设位移阈值时,控制移动终端关闭振动,使得移动终端不会再因为振动时的振动作用力而再增大位移,从而防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全,解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。In the embodiment of the present invention, when the vibration of the mobile terminal is detected, it is detected whether the position of the mobile terminal is relative to the position when the vibration occurs, and when the displacement of the mobile terminal is detected, and the displacement value is greater than the preset displacement threshold, Control the mobile terminal to turn off the vibration, so that the mobile terminal will no longer increase the displacement due to the vibration force during vibration, thereby preventing the mobile terminal from sliding off the table due to the large displacement when it is placed on the edge of a higher table The occurrence of the situation reduces the occurrence of the screen of the mobile terminal being broken, protects the safety of the screen of the mobile terminal, and solves the problem in the prior art that the mobile terminal is easily dropped from a height due to the vibration reminder of the mobile terminal. The problem of cracking the screen due to falling.

附图说明Description of drawings

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

图1表示本发明的实施例中移动终端的控制方法的步骤流程图;Fig. 1 shows the flow chart of the steps of the control method of the mobile terminal in the embodiment of the present invention;

图2表示本发明的实施例中移动终端的结构框图之一;Fig. 2 represents one of the structural block diagrams of the mobile terminal in the embodiment of the present invention;

图3表示本发明的实施例中移动终端的结构框图之二;Fig. 3 shows the second structural block diagram of the mobile terminal in the embodiment of the present invention;

图4表示本发明的实施例中移动终端的结构框图之三;Fig. 4 shows the third structural block diagram of the mobile terminal in the embodiment of the present invention;

图5表示本发明的实施例中移动终端的结构框图之四。Fig. 5 shows the fourth structural block diagram of the mobile terminal in the embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

如图1所示,为本发明的实施例中移动终端的控制方法的步骤流程图,该方法包括如下步骤:As shown in Figure 1, it is a flow chart of the steps of the control method of the mobile terminal in the embodiment of the present invention, the method includes the following steps:

步骤101,当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移。Step 101, when a vibration of the mobile terminal is detected, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurs.

在本步骤中,具体的,若检测到移动终端产生振动,则检测移动终端相对于振动发生时所在的位置是否发生了位移。In this step, specifically, if it is detected that the mobile terminal is vibrating, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurred.

具体的,在检测到移动终端振动时,可以检测移动终端是否接收到来电呼叫,当检测接收到来电呼叫,且检测到移动终端启动针对来电呼叫的来电振动时,确定检测到移动终端振动。这样,在检测到移动终端接收到来电呼叫且产生振动时,检测移动终端是否发生位移,使得移动终端能够针对突发事件而产生的突发振动做出响应,从而防止了移动终端因突发振动而导致的从高处摔落的情况的发生,保护了移动终端的屏幕。Specifically, when the vibration of the mobile terminal is detected, it may be detected whether the mobile terminal receives an incoming call, and when the incoming call is detected and the mobile terminal starts the incoming vibration for the incoming call, it is determined that the mobile terminal vibration is detected. In this way, when it is detected that the mobile terminal receives an incoming call and generates vibration, it is detected whether the mobile terminal is displaced, so that the mobile terminal can respond to the sudden vibration caused by the emergency, thereby preventing the mobile terminal from being affected by sudden vibration. The resulting fall from a high place protects the screen of the mobile terminal.

此外,具体的,在检测移动终端相对于振动发生时所在的位置是否发生位移时,可以通过移动终端内设置的陀螺仪传感器检测移动终端相对于振动发生时所在的位置是否发生角度偏移。具体的,陀螺仪传感器检测移动终端在X轴和Y轴所确定的平面上是否发生角度偏移。这样,由于移动终端在振动时,移动终端会左右摆动,因此通过陀螺仪传感器检测移动终端是否发生角度偏移,使得移动终端能够获取到准确的位移偏移量,从而为根据位移值控制移动终端是否停止振动提供了基础。In addition, specifically, when detecting whether the mobile terminal is displaced relative to the position where the vibration occurs, a gyro sensor provided in the mobile terminal may be used to detect whether the mobile terminal has an angular offset relative to the position where the vibration occurs. Specifically, the gyro sensor detects whether the mobile terminal is angularly displaced on the plane determined by the X-axis and the Y-axis. In this way, when the mobile terminal vibrates, the mobile terminal will swing left and right, so the gyroscope sensor detects whether the mobile terminal has an angular offset, so that the mobile terminal can obtain an accurate displacement offset, so as to control the mobile terminal according to the displacement value. Whether to stop the vibration provides the basis.

步骤102,当检测到移动终端发生位移,且位移的位移值大于预设位移阈值时,控制移动终端关闭振动。Step 102, when it is detected that the mobile terminal is displaced, and the displacement value of the displacement is greater than a preset displacement threshold, control the mobile terminal to turn off the vibration.

在本步骤中,当检测到位移值大于预设位移阈值时,控制移动终端关闭振动,从而使得移动终端不会再因为振动时的振动作用力而再增大位移,防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全。In this step, when it is detected that the displacement value is greater than the preset displacement threshold, the mobile terminal is controlled to turn off the vibration, so that the mobile terminal will no longer increase the displacement due to the vibration force during vibration, preventing the mobile terminal from being placed in a relatively When the edge of the table is high, due to the large amount of displacement, the occurrence of slipping from the table surface reduces the occurrence of the screen of the mobile terminal being broken and protects the safety of the screen of the mobile terminal.

具体的,若在检测移动终端相对于振动发生时所在的位置是否发生位移时,通过移动终端内设置的陀螺仪传感器检测移动终端相对于振动发生时所在的位置是否发生角度偏移,则在当检测到移动终端发生位移,且位移的位移值大于预设位移阈值时,控制移动终端关闭振动时,可以当检测到移动终端发生角度偏移,且偏移角度大于预设角度阈值时,控制移动终端关闭振动。这样,由于移动终端在振动时,移动终端会左右摆动,因此通过陀螺仪传感器检测移动终端是否发生角度偏移,使得移动终端能够获取到准确的位移偏移量;此外,使得移动终端因振动产生的偏移角度较大时,能够停止振动,从而使得移动终端不会再因为振动时的振动作用力而再增大偏移角度,从而防止了移动终端放置在较高的台面的边缘时,由于偏移角度较大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全。Specifically, if when detecting whether the mobile terminal is displaced relative to the position where the vibration occurs, the gyroscope sensor installed in the mobile terminal detects whether the mobile terminal has an angular offset relative to the position where the vibration occurs, then at that time When the displacement of the mobile terminal is detected, and the displacement value is greater than the preset displacement threshold, when the mobile terminal is controlled to turn off the vibration, the mobile terminal can be controlled to move Terminal turns off vibration. In this way, when the mobile terminal is vibrating, the mobile terminal will swing left and right, so the gyro sensor detects whether the mobile terminal has an angular offset, so that the mobile terminal can obtain an accurate displacement offset; in addition, the mobile terminal is caused by vibration. When the offset angle is large, the vibration can be stopped, so that the mobile terminal will no longer increase the offset angle due to the vibration force during vibration, thereby preventing the mobile terminal from being damaged due to Occurrence of slipping from the table due to a large offset angle further reduces the occurrence of the screen of the mobile terminal being broken and protects the safety of the screen of the mobile terminal.

此外,具体的,预设角度阈值的范围可以为3度~7度。具体的,预设角度阈值可以为4度。下面对此预设角度阈值的设置进行说明。In addition, specifically, the preset angle threshold may range from 3 degrees to 7 degrees. Specifically, the preset angle threshold may be 4 degrees. The setting of the preset angle threshold is described below.

具体的,移动终端因振动而发生角度偏移时,正常情况下的偏移角度大概为1度至2度,但是在移动终端所处的物体表面较为润滑时,例如移动终端处在有水渍的光滑台面上时,移动终端因振动产生的偏移角度可以达到4度至5度以上。此时假设移动终端的长度尺寸为5.5寸,即移动终端的长度为155mm,则4至5度对应的最大偏移范围为155×tan4°至155×tan5°,即10.8mm至13.5mm,由此可以看出即使移动终端处于台面的边缘,移动终端的偏移角度对应的偏移范围也不会致使移动终端从台面上掉落,因此可以将预设角度阈值设置为3度至7度,或者将预设角度阈值设置为4度,以防止移动终端在振动的作用力下而产生较大的角度偏移,从而避免了移动终端因较大的角度偏移而从台面上滑落。此外,用户从正在做的事情中离开至拿起开始振动的移动终端的时间一般不少于6s至7s,由于移动终端的马达振动是逐渐加速的,且2s为一个振动周期,因此在用户拿到移动终端之前,移动终端因振动产生的偏移角度远远大于4度至5度,因此将预设角度阈值的范围设置为3度至7度,或者设置为4度,能够使得移动终端在振动时产生的偏移角度达到预设角度阈值时,控制移动终端关闭振动,即在用户拿起移动终端之前就提前控制了移动终端停止振动,从而避免了移动终端因较大的角度偏移而从台面上滑落。Specifically, when the angle of the mobile terminal is shifted due to vibration, the deviation angle is about 1 degree to 2 degrees under normal circumstances, but when the surface of the object where the mobile terminal is located is relatively lubricated, for example, there is water on the mobile terminal. When the mobile terminal is placed on a smooth surface, the deflection angle of the mobile terminal due to vibration can reach more than 4 degrees to 5 degrees. At this time, assuming that the length of the mobile terminal is 5.5 inches, that is, the length of the mobile terminal is 155mm, then the maximum offset range corresponding to 4 to 5 degrees is 155×tan4° to 155×tan5°, that is, 10.8mm to 13.5mm, by It can be seen that even if the mobile terminal is on the edge of the table, the offset range corresponding to the offset angle of the mobile terminal will not cause the mobile terminal to fall from the table, so the preset angle threshold can be set to 3 degrees to 7 degrees, Alternatively, the preset angle threshold is set to 4 degrees, so as to prevent the mobile terminal from generating a large angular deviation under the force of the vibration, thereby preventing the mobile terminal from sliding off the table due to the large angular deviation. In addition, the time it takes for the user to leave from what he is doing to pick up the vibrating mobile terminal is generally no less than 6s to 7s. Since the vibration of the motor of the mobile terminal is gradually accelerated, and 2s is a vibration cycle, so when the user picks up the vibrating mobile terminal Before reaching the mobile terminal, the deflection angle of the mobile terminal due to vibration is much greater than 4 to 5 degrees, so setting the range of the preset angle threshold to 3 to 7 degrees, or to 4 degrees, can make the mobile terminal When the offset angle generated during vibration reaches the preset angle threshold, the mobile terminal is controlled to turn off the vibration, that is, the mobile terminal is controlled to stop the vibration before the user picks up the mobile terminal, thereby preventing the mobile terminal from being damaged due to a large angular offset. Slips off the countertop.

这样,本实施例通过在检测到移动终端振动,且移动终端相对于振动发生时所在的位置发生的位移值大于预设位移阈值时,控制移动终端关闭振动,使得移动终端不会再因为振动时的振动作用力而再增大位移,从而防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全,解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。In this way, in this embodiment, when the vibration of the mobile terminal is detected, and the displacement value of the mobile terminal relative to the position where the vibration occurs is greater than the preset displacement threshold, the mobile terminal is controlled to turn off the vibration, so that the mobile terminal will no longer be caused by vibration. The vibration force increases the displacement, thereby preventing the mobile terminal from sliding off the table due to the large displacement when it is placed on the edge of a higher table, thereby reducing the chance of the screen of the mobile terminal being broken The occurrence of the situation protects the security of the screen of the mobile terminal, and solves the problem in the prior art that the mobile terminal is easily dropped from a height and the screen is broken due to the vibration reminder of the mobile terminal.

此外,进一步地,在检测移动终端相对于振动发生时所在的位置是否发生位移时,可以检测移动终端的屏幕是否放置在物体的表面上;当检测到移动终端的屏幕放置在物体的表面上时,检测移动终端相对于振动发生时所在的位置是否发生位移。这样,由于移动终端的屏幕相对于移动终端的后盖较为光滑,因振动而产生的位移较大,因此在检测到移动终端的屏幕放置在物体的表面上时,再检测移动终端是否发生位移,能够使得移动终端在移动终端的后盖放置在物体的表面上时不会启动检测移动终端是否发生位移功能,即不会控制移动终端关闭振动,避免了用户因移动终端停止振动而错过消息;此外,能够使得移动终端在屏幕放置在物体的表面上时检测移动终端是否发生位移,减少了移动终端因较大的位移量而从较高的台面上滑落的情况的发生,保护了移动终端的屏幕。In addition, further, when detecting whether the mobile terminal is displaced relative to the position where the vibration occurs, it can be detected whether the screen of the mobile terminal is placed on the surface of the object; when it is detected that the screen of the mobile terminal is placed on the surface of the object , to detect whether the mobile terminal is displaced relative to the position where the vibration occurs. In this way, since the screen of the mobile terminal is relatively smooth relative to the back cover of the mobile terminal, the displacement due to vibration is relatively large. Therefore, when it is detected that the screen of the mobile terminal is placed on the surface of the object, it is detected whether the mobile terminal is displaced. It can make the mobile terminal not start the function of detecting whether the mobile terminal is displaced when the back cover of the mobile terminal is placed on the surface of the object, that is, it will not control the mobile terminal to turn off the vibration, which prevents the user from missing the message because the mobile terminal stops vibrating; in addition , enabling the mobile terminal to detect whether the mobile terminal is displaced when the screen is placed on the surface of the object, reducing the occurrence of the mobile terminal slipping from a higher table due to a large displacement, and protecting the screen of the mobile terminal .

具体的,在检测移动终端的屏幕是否放置在物体的表面上时,可以获取移动终端的三维坐标,其中三维坐标包括X轴坐标值、Y轴坐标值和Z轴坐标值;当检测到X轴坐标值的变化值和Y轴坐标值的变化值均小于预设值,且检测到Z轴坐标值为负值时,判定移动终端的屏幕放置在物体的表面上。此外,具体的,可以通过陀螺仪传感器获取移动终端的三维坐标。或者,通过陀螺仪传感器和重力传感器获取移动终端的三维坐标。这样,由于移动终端在正放的情况下为校准状态,此时三维坐标均为零,但是当移动终端反面放置在物体的表面上时,Z轴坐标值为负值,因此在检测到X轴坐标值的变化值和Y轴坐标值的变化值均小于预设值,则能够说明移动终端处于一个平面上,而不是处于手持状态;此外,在检测到Z轴坐标值为负值时,能够判定移动终端的屏幕朝下,因此综上可以判定移动中的屏幕放置在物体的表面上,从而使得能够进入检测移动终端是否发生位移的步骤,为移动终端控制关闭振动提供了基础,防止了移动终端因位移量较大而从物体的表面上滑落的情况的发生,保护了移动终端的屏幕。Specifically, when detecting whether the screen of the mobile terminal is placed on the surface of the object, the three-dimensional coordinates of the mobile terminal can be obtained, wherein the three-dimensional coordinates include X-axis coordinate values, Y-axis coordinate values and Z-axis coordinate values; The change value of the coordinate value and the change value of the Y-axis coordinate value are both smaller than the preset value, and when it is detected that the Z-axis coordinate value is negative, it is determined that the screen of the mobile terminal is placed on the surface of the object. In addition, specifically, the three-dimensional coordinates of the mobile terminal may be acquired through a gyroscope sensor. Alternatively, the three-dimensional coordinates of the mobile terminal are acquired through a gyroscope sensor and a gravity sensor. In this way, since the mobile terminal is in the calibration state when it is placed upright, the three-dimensional coordinates are all zero at this time, but when the mobile terminal is placed on the surface of the object on the reverse side, the Z-axis coordinate value is negative, so when the X-axis is detected If the change value of the coordinate value and the change value of the Y-axis coordinate value are both smaller than the preset value, it can indicate that the mobile terminal is on a plane instead of being in a hand-held state; in addition, when the Z-axis coordinate value is detected to be negative, it can It is determined that the screen of the mobile terminal is facing down, so in summary, it can be determined that the moving screen is placed on the surface of the object, so that the step of detecting whether the mobile terminal is displaced can be entered, which provides a basis for the mobile terminal to control and close the vibration, preventing movement When the terminal slips off the surface of the object due to a large amount of displacement, the screen of the mobile terminal is protected.

此外,进一步地,在检测移动终端相对于振动发生时所在的位置是否发生位移时,还可以当检测到移动终端的屏幕放置在物体的表面上时,检测移动终端的触摸屏上是否附着有水珠;当检测到触摸屏上附着有水珠时,检测移动终端相对于振动发生时所在的位置是否发生位移。这样,由于触摸屏上附着有水珠时,将增加触摸屏的润滑度,因此在检测到触摸屏上附着有水珠时,再检测移动终端是否发生位移,能够使得移动终端在屏幕上没有水珠时不会启动检测移动终端是否发生位移功能,即不会控制移动终端关闭振动,避免了用户因移动终端停止振动而错过消息;此外,能够使得移动终端在屏幕上有水珠时检测移动终端是否发生位移,防止了移动终端因较大的位移量而从较高的台面上滑落的情况的发生,保护了移动终端的屏幕。In addition, further, when detecting whether the mobile terminal is displaced relative to the position where the vibration occurs, it is also possible to detect whether there are water droplets attached to the touch screen of the mobile terminal when it is detected that the screen of the mobile terminal is placed on the surface of the object. ; When it is detected that water drops are attached to the touch screen, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurs. In this way, when water drops are attached to the touch screen, the lubricity of the touch screen will be increased. Therefore, when it is detected that water drops are attached to the touch screen, it is detected whether the mobile terminal is displaced, so that the mobile terminal will not move when there are no water drops on the screen. It will start the function of detecting whether the mobile terminal is displaced, that is, it will not control the mobile terminal to turn off the vibration, which prevents the user from missing the message because the mobile terminal stops vibrating; in addition, it can make the mobile terminal detect whether the mobile terminal is displaced when there are water drops on the screen , preventing the mobile terminal from slipping from a higher table due to a larger displacement, and protecting the screen of the mobile terminal.

具体的,在检测移动终端的触摸屏上是否附着有水珠时,可以采集移动终端的触摸屏横向和纵向电极交汇点的感应值;当检测到存在感应值大于预设阈值时,判定移动终端的触摸屏上附着有水珠。具体的,感应值可以为电容值。这样,由于手指触摸触摸屏时的感应值和屏幕上附着有水珠时的感应值是不同的,例如当手指触摸触摸屏时,电容值会变小,而有水汽附着在触摸屏上时,电容值会变大,且移动终端放置在物体的表面上时,电容值为一定值,因此可以通过检测是否存在感应值大于预设阈值来判断移动终端的屏幕上是否附着有水珠,从而使得能够进入检测移动终端是否发生位移的步骤,为移动终端控制关闭振动提供了基础,防止了移动终端因位移量较大而从物体的表面上滑落的情况的发生,保护了移动终端的屏幕。此外,具体的,还可以检测是否存在触摸屏上的目标区域上的多个感应值与其他区域上的感应值的差值大于一预设值,且该多个感应值大于预设阈值,来判断移动终端的屏幕上是否附着有水珠,从而增加判断的准确性。Specifically, when detecting whether water droplets are attached to the touch screen of the mobile terminal, the sensing value of the intersection point of the horizontal and vertical electrodes of the touch screen of the mobile terminal can be collected; Drops of water are attached to it. Specifically, the sensing value may be a capacitance value. In this way, since the sensing value when the finger touches the touch screen is different from the sensing value when water droplets are attached to the screen, for example, when the finger touches the touch screen, the capacitance value will become smaller, but when there is water vapor attached to the touch screen, the capacitance value will decrease. becomes larger, and when the mobile terminal is placed on the surface of the object, the capacitance value is a certain value, so it can be judged whether there is water droplet attached to the screen of the mobile terminal by detecting whether the sensing value is greater than the preset threshold value, so that it can enter the detection The step of whether the mobile terminal is displaced provides a basis for the mobile terminal to control and close the vibration, prevents the mobile terminal from slipping from the surface of the object due to a large displacement, and protects the screen of the mobile terminal. In addition, specifically, it is also possible to detect whether the difference between the multiple sensing values on the target area on the touch screen and the sensing values on other areas is greater than a preset value, and the multiple sensing values are greater than a preset threshold, to determine Whether there are water droplets attached to the screen of the mobile terminal, thereby increasing the accuracy of judgment.

另外,进一步地,当检测接收到来电呼叫,且检测到移动终端未启动针对来电呼叫的来电铃声时,控制移动终端关闭振动之后,还可以控制移动终端启动来电铃声。这样,使得用户能够根据来电铃声的提醒而接听到来电,从而避免了用户因移动终端关闭振动而错漏来电,提高了用户的使用体验。In addition, further, when it is detected that an incoming call is received and the mobile terminal does not activate the incoming ringtone for the incoming call, after controlling the mobile terminal to turn off the vibration, the mobile terminal may also be controlled to activate the incoming ringtone. In this way, the user can answer the incoming call according to the reminder of the ringtone of the incoming call, thereby preventing the user from missing an incoming call due to the vibration of the mobile terminal being turned off, and improving user experience.

这样,本实施例通过在检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位置,并在检测到移动终端发生位移,且位移值大于预设位移阈值时,控制移动终端关闭振动,使得移动终端不会再因为振动时的振动作用力而再增大位移,从而防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全,解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。In this way, in this embodiment, when the vibration of the mobile terminal is detected, whether the position of the mobile terminal is detected relative to the position when the vibration occurs, and when the displacement of the mobile terminal is detected, and the displacement value is greater than the preset displacement threshold, the mobile terminal is controlled to move The terminal turns off the vibration, so that the mobile terminal will no longer increase the displacement due to the vibration force during vibration, thereby preventing the mobile terminal from sliding off the table due to the large displacement when it is placed on the edge of a higher table. occurrence, thereby reducing the occurrence of the screen of the mobile terminal being broken, protecting the screen safety of the mobile terminal, and solving the problem in the prior art that the mobile terminal is easily dropped from a height due to the vibration reminder of the mobile terminal. Problem with broken screen.

如图2所示,本发明实施例提供一种移动终端,所述移动终端包括:As shown in FIG. 2, an embodiment of the present invention provides a mobile terminal, and the mobile terminal includes:

第一检测模块201,用于当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移;The first detection module 201 is used to detect whether the mobile terminal is displaced relative to the position where the vibration occurs when the vibration of the mobile terminal is detected;

第一控制模块202,用于当检测到移动终端发生位移,且所述位移的位移值大于预设位移阈值时,控制移动终端关闭振动。The first control module 202 is configured to control the mobile terminal to turn off vibration when it is detected that the mobile terminal is displaced, and the displacement value of the displacement is greater than a preset displacement threshold.

这样,本实施例通过第一检测模块在当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移,并通过第一控制模块在当检测到移动终端发生位移,且位移的位移值大于预设位移阈值时,控制移动终端关闭振动,使得移动终端不会再因为振动时的振动作用力而再增大位移,从而防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全,解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。In this way, in this embodiment, when the vibration of the mobile terminal is detected by the first detection module, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurs, and when the displacement of the mobile terminal is detected by the first control module, and When the displacement value of the displacement is greater than the preset displacement threshold, the mobile terminal is controlled to turn off the vibration, so that the mobile terminal will no longer increase the displacement due to the vibration force during vibration, thereby preventing the mobile terminal from being placed on the edge of a higher table. , due to the large amount of displacement and the occurrence of slipping from the table, thereby reducing the occurrence of the situation where the screen of the mobile terminal is broken, protecting the screen safety of the mobile terminal, and solving the problem existing in the prior art due to the vibration of the mobile terminal The problem caused by the reminder is that the mobile terminal is easy to fall from a high place and the screen is broken.

此外,如图3所示,可选地,所述移动终端还包括:In addition, as shown in FIG. 3, optionally, the mobile terminal further includes:

第二检测模块203,用于检测移动终端是否接收到来电呼叫;The second detection module 203 is used to detect whether the mobile terminal receives an incoming call;

确定模块204,用于当检测接收到来电呼叫,且检测到移动终端启动针对所述来电呼叫的来电振动时,确定检测到移动终端振动。The determining module 204 is configured to determine that the vibration of the mobile terminal is detected when it is detected that an incoming call is received and that the mobile terminal starts an incoming vibration for the incoming call.

可选地,所述第一检测模块201包括:Optionally, the first detection module 201 includes:

第一检测单元2011,用于检测移动终端的屏幕是否放置在物体的表面上;The first detection unit 2011 is used to detect whether the screen of the mobile terminal is placed on the surface of the object;

第二检测单元2012,用于当检测到所述移动终端的屏幕放置在物体的表面上时,检测所述移动终端相对于振动发生时所在的位置是否发生位移。The second detection unit 2012 is configured to detect whether the mobile terminal is displaced relative to the position where the vibration occurs when it is detected that the screen of the mobile terminal is placed on the surface of the object.

可选地,所述第一检测单元2011包括:Optionally, the first detection unit 2011 includes:

获取子单元20111,用于获取移动终端的三维坐标,其中三维坐标包括X轴坐标值、Y轴坐标值和Z轴坐标值;The obtaining subunit 20111 is used to obtain the three-dimensional coordinates of the mobile terminal, wherein the three-dimensional coordinates include X-axis coordinate values, Y-axis coordinate values and Z-axis coordinate values;

第一判定子单元20112,用于当检测到所述X轴坐标值的变化值和Y轴坐标值的变化值均小于预设值,且检测到所述Z轴坐标值为负值时,判定所述移动终端的屏幕放置在物体的表面上。The first determination subunit 20112 is used to determine when it is detected that the change value of the X-axis coordinate value and the change value of the Y-axis coordinate value are less than a preset value, and that the Z-axis coordinate value is negative. The screen of the mobile terminal is placed on the surface of the object.

可选地,所述第一检测模块201包括:Optionally, the first detection module 201 includes:

第三检测单元2013,用于当检测到移动终端的屏幕放置在物体的表面上时,检测移动终端的触摸屏上是否附着有水珠;The third detection unit 2013 is used to detect whether water drops are attached to the touch screen of the mobile terminal when it is detected that the screen of the mobile terminal is placed on the surface of the object;

第四检测单元2014,用于当检测到触摸屏上附着有水珠时,检测移动终端相对于振动发生时所在的位置是否发生位移。The fourth detection unit 2014 is configured to detect whether the mobile terminal is displaced relative to the position where the vibration occurs when it is detected that water droplets are attached to the touch screen.

可选地,所述第三检测单元2013包括:Optionally, the third detection unit 2013 includes:

采集子单元20131,用于采集移动终端的触摸屏横向和纵向电极交汇点的感应值;The collection subunit 20131 is used to collect the sensing value of the intersection of the horizontal and vertical electrodes of the touch screen of the mobile terminal;

第二判定子单元20132,用于当检测到存在感应值大于预设阈值时,判定移动终端的触摸屏上附着有水珠。The second determining subunit 20132 is configured to determine that water droplets are attached to the touch screen of the mobile terminal when it is detected that the presence sensing value is greater than a preset threshold.

可选地,所述第一检测模块201用于,通过移动终端内设置的陀螺仪传感器检测移动终端相对于振动发生时所在的位置是否发生角度偏移;Optionally, the first detection module 201 is configured to detect whether the mobile terminal has an angular offset relative to the position where the vibration occurs through a gyro sensor provided in the mobile terminal;

所述第一控制模块202用于,当检测到移动终端发生角度偏移,且偏移角度大于预设角度阈值时,控制移动终端关闭振动。The first control module 202 is configured to control the mobile terminal to turn off the vibration when it is detected that the mobile terminal has an angular deviation and the deviation angle is greater than a preset angle threshold.

可选地,当检测接收到来电呼叫,且检测到移动终端未启动针对所述来电呼叫的来电铃声时,所述移动终端还包括:Optionally, when it is detected that an incoming call is received, and it is detected that the mobile terminal does not start an incoming ringtone for the incoming call, the mobile terminal further includes:

第二控制模块205,用于控制移动终端启动所述来电铃声。The second control module 205 is configured to control the mobile terminal to activate the ringtone for the incoming call.

这样,本实施例提供的移动终端通过在检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位置,并在检测到移动终端发生位移,且位移值大于预设位移阈值时,控制移动终端关闭振动,使得移动终端不会再因为振动时的振动作用力而再增大位移,从而防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全,解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。In this way, the mobile terminal provided in this embodiment detects whether the mobile terminal has a position relative to the position when the vibration occurs when the mobile terminal is detected to be vibrated, and detects that the mobile terminal is displaced, and the displacement value is greater than the preset displacement threshold When the mobile terminal is controlled to turn off the vibration, the mobile terminal will no longer increase its displacement due to the vibration force during vibration, thereby preventing the mobile terminal from being dropped from the table due to the large amount of displacement when it is placed on the edge of a higher table. The occurrence of the slipping situation reduces the occurrence of the screen of the mobile terminal being broken, protects the safety of the screen of the mobile terminal, and solves the problem in the prior art that the mobile terminal is easy to fall from the height due to the vibration reminder of the mobile terminal. The problem of screen cracking caused by falling everywhere.

本发明实施例还提供一种移动终端,所述移动终端包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述移动终端的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides a mobile terminal, the mobile terminal includes a processor, a memory, a computer program stored on the memory and operable on the processor, and the computer program is executed by the processor Each process of the above mobile terminal control method embodiment can be realized at the same time, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述移动终端的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned mobile terminal control method embodiment is implemented, and can achieve The same technical effects are not repeated here to avoid repetition. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

此外,如图4所示,本发明实施例提供一种移动终端,移动终端包括:至少一个处理器401、存储器402、至少一个网络接口404和用户接口403。移动终端400中的各个组件通过总线系统405耦合在一起。可理解,总线系统405用于实现这些组件之间的连接通信。总线系统405除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图4中将各种总线都标为总线系统405。其中,用户接口403可以包括键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。In addition, as shown in FIG. 4 , an embodiment of the present invention provides a mobile terminal, and the mobile terminal includes: at least one processor 401 , a memory 402 , at least one network interface 404 and a user interface 403 . Various components in the mobile terminal 400 are coupled together through the bus system 405 . It can be understood that the bus system 405 is used to realize connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 405 in FIG. 4 . Wherein, the user interface 403 may include a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch panel or a touch screen, and the like.

可以理解,本发明实施例中的存储器402可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本发明实施例描述的系统和方法的存储器402旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 402 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 402 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器402存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统4021和应用程序4022。具体的,存储器402中存储有设置模块及配置文件。In some implementations, the memory 402 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 4021 and an application program 4022 . Specifically, the memory 402 stores setting modules and configuration files.

其中,操作系统4021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序4022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序4022中。Among them, the operating system 4021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 4022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 4022 .

在本发明实施例中,移动终端400还包括:存储在存储器402上并可在处理器401上运行的计算机程序,计算机程序被处理器401执行时实现如下步骤:当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移;当检测到移动终端发生位移,且所述位移的位移值大于预设位移阈值时,控制移动终端关闭振动。In the embodiment of the present invention, the mobile terminal 400 further includes: a computer program stored in the memory 402 and operable on the processor 401. When the computer program is executed by the processor 401, the following steps are implemented: when the vibration of the mobile terminal is detected, Detect whether the mobile terminal is displaced relative to the position where the vibration occurs; when it is detected that the mobile terminal is displaced, and the displacement value of the displacement is greater than a preset displacement threshold, control the mobile terminal to turn off the vibration.

上述本发明实施例揭示的方法可以应用于处理器401中,或者由处理器401实现。处理器401可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器401中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器401可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的计算机可读存储介质中。该计算机可读存储介质位于存储器402,处理器401读取存储器402中的信息,结合其硬件完成上述方法的步骤。具体地,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器401执行时实现如上述移动终端的控制方法实施例中的各步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 401 or implemented by the processor 401 . The processor 401 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 401 or instructions in the form of software. The above-mentioned processor 401 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a computer-readable storage medium mature in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, and the like. The computer-readable storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402, and completes the steps of the above method in combination with its hardware. Specifically, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor 401, various steps in the foregoing embodiment of the mobile terminal control method are implemented.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital SignalProcessor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(ProgrammableLogic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Equipment (ProgrammableLogic Device, PLD), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions of this application, or a combination thereof middle.

对于软件实现,可通过执行本发明实施例功能的模块(例如过程、函数等)来实现本发明实施例的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the technology of the embodiments of the present invention can be implemented through modules (such as procedures, functions, etc.) that execute the functions of the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,计算机程序被处理器401执行时还可实现如下步骤:检测移动终端是否接收到来电呼叫;当检测接收到来电呼叫,且检测到移动终端启动针对所述来电呼叫的来电振动时,确定检测到移动终端振动。Optionally, when the computer program is executed by the processor 401, the following steps can also be implemented: detecting whether the mobile terminal receives an incoming call; Make sure that vibration of the mobile terminal is detected.

可选地,计算机程序被处理器401执行时还可实现如下步骤:检测移动终端的屏幕是否放置在物体的表面上;当检测到移动终端的屏幕放置在物体的表面上时,检测移动终端相对于振动发生时所在的位置是否发生位移。Optionally, when the computer program is executed by the processor 401, the following steps can also be implemented: detecting whether the screen of the mobile terminal is placed on the surface of the object; Whether there is displacement in the position where the vibration occurs.

可选地,计算机程序被处理器401执行时还可实现如下步骤:获取移动终端的三维坐标,其中三维坐标包括X轴坐标值、Y轴坐标值和Z轴坐标值;当检测到所述X轴坐标值的变化值和Y轴坐标值的变化值均小于预设值,且检测到所述Z轴坐标值为负值时,判定所述移动终端的屏幕放置在物体的表面上。Optionally, when the computer program is executed by the processor 401, the following steps can also be implemented: acquiring the three-dimensional coordinates of the mobile terminal, wherein the three-dimensional coordinates include X-axis coordinate values, Y-axis coordinate values and Z-axis coordinate values; The change value of the axis coordinate value and the change value of the Y axis coordinate value are both smaller than the preset value, and when it is detected that the Z axis coordinate value is negative, it is determined that the screen of the mobile terminal is placed on the surface of the object.

可选地,计算机程序被处理器401执行时还可实现如下步骤:当检测到移动终端的屏幕放置在物体的表面上时,检测移动终端的触摸屏上是否附着有水珠;当检测到触摸屏上附着有水珠时,检测移动终端相对于振动发生时所在的位置是否发生位移。Optionally, when the computer program is executed by the processor 401, the following steps can also be implemented: when it is detected that the screen of the mobile terminal is placed on the surface of the object, it is detected whether there are water droplets attached to the touch screen of the mobile terminal; When water drops are attached, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurred.

可选地,计算机程序被处理器401执行时还可实现如下步骤:采集移动终端的触摸屏横向和纵向电极交汇点的感应值;当检测到存在感应值大于预设阈值时,判定移动终端的触摸屏上附着有水珠。Optionally, when the computer program is executed by the processor 401, the following steps can also be implemented: collecting the sensing value of the intersection point of the horizontal and vertical electrodes of the touch screen of the mobile terminal; Drops of water are attached to it.

可选地,计算机程序被处理器401执行时还可实现如下步骤:通过移动终端内设置的陀螺仪传感器检测移动终端相对于振动发生时所在的位置是否发生角度偏移;当检测到移动终端发生角度偏移,且偏移角度大于预设角度阈值时,控制移动终端关闭振动。Optionally, when the computer program is executed by the processor 401, the following steps can also be implemented: using a gyroscope sensor set in the mobile terminal to detect whether the mobile terminal has an angular offset relative to the position where the vibration occurs; Angle offset, and when the offset angle is greater than the preset angle threshold, the mobile terminal is controlled to turn off the vibration.

可选地,当检测接收到来电呼叫,且检测到移动终端未启动针对所述来电呼叫的来电铃声时,计算机程序被处理器401执行时还可实现如下步骤:控制移动终端启动所述来电铃声。Optionally, when an incoming call is detected and it is detected that the mobile terminal does not activate the incoming ringtone for the incoming call, when the computer program is executed by the processor 401, the following steps may also be implemented: controlling the mobile terminal to activate the incoming ringtone .

移动终端400能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 400 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not described here to avoid repetition.

本发明的上述实施例中提供的移动终端,通过在检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位置,并在检测到移动终端发生位移,且位移值大于预设位移阈值时,控制移动终端关闭振动,使得移动终端不会再因为振动时的振动作用力而再增大位移,从而防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全,解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。The mobile terminal provided in the above-mentioned embodiments of the present invention detects whether the position of the mobile terminal relative to the position when the vibration occurs when the vibration of the mobile terminal is detected, and detects that the mobile terminal is displaced, and the displacement value is greater than the preset value. When the displacement threshold is set, the mobile terminal is controlled to turn off the vibration, so that the mobile terminal will no longer increase the displacement due to the vibration force during vibration, thereby preventing the mobile terminal from being damaged due to the large displacement when the mobile terminal is placed on the edge of a higher table. The occurrence of the situation of slipping from the table surface reduces the occurrence of the screen of the mobile terminal being broken, protects the screen safety of the mobile terminal, and solves the problem of the mobile terminal caused by the vibration reminder of the mobile terminal existing in the prior art. It is easy to drop from a high place and cause the screen to break.

如图5所示,为本发明另一个实施例中的移动终端,具体地,移动终端500可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。As shown in FIG. 5 , it is a mobile terminal in another embodiment of the present invention. Specifically, the mobile terminal 500 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图5中的移动终端500包括射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、处理器560、音频电路570、WiFi(Wireless Fidelity)模块580和电源590。Mobile terminal 500 in FIG.

其中,输入单元530可用于接收用户输入的数字或字符信息,以及产生与移动终端500的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元530可以包括触控面板531。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上的操作),并根据预先设定的程式驱动相应的连接装置。可选地,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器560,并能接收处理器560发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。其中,显示单元540可用于显示由用户输入的信息或提供给用户的信息以及移动终端500的各种菜单界面。显示单元540可包括显示面板541,可选地,可以采用LCD或有机发光二极管(OrganicLight-Emitting Diode,OLED)等形式来配置显示面板541。Wherein, the input unit 530 can be used for receiving number or character information input by the user, and generating signal input related to the user setting and function control of the mobile terminal 500 . Specifically, in the embodiment of the present invention, the input unit 530 may include a touch panel 531 . The touch panel 531, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 531 using any suitable object or accessory such as a finger and a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 531 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 560, and can receive and execute commands sent by the processor 560. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 531, the input unit 530 may also include other input devices 532, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of. Wherein, the display unit 540 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 500 . The display unit 540 may include a display panel 541, and optionally, the display panel 541 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板531可以覆盖显示面板541,形成触摸显示屏。当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器560以确定触摸事件的类型,随后处理器560根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 531 can cover the display panel 541 to form a touch display screen. When the touch screen detects a touch operation on or near it, it is sent to the processor 560 to determine the type of the touch event, and then the processor 560 provides corresponding visual output on the touch screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中,处理器560是移动终端500的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器521内的软件程序和/或模块,以及调用存储在第二存储器522内的数据,执行移动终端500的各种功能和处理数据,从而对移动终端500进行整体监控。可选地,处理器560可包括一个或多个处理单元。Wherein, the processor 560 is the control center of the mobile terminal 500, which uses various interfaces and lines to connect various parts of the entire mobile phone, and runs or executes the software programs and/or modules stored in the first memory 521, and calls the software programs stored in the first memory 521. The data in the second memory 522 executes various functions of the mobile terminal 500 and processes data, so as to monitor the mobile terminal 500 as a whole. Optionally, processor 560 may include one or more processing units.

在本发明实施例中,移动终端500还包括:存储在存储器上520并可在处理器560上运行的计算机程序,计算机程序被处理器560执行时实现如下步骤:In the embodiment of the present invention, the mobile terminal 500 also includes: a computer program stored in the memory 520 and operable on the processor 560, and the computer program is executed by the processor 560 to implement the following steps:

当检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位移;当检测到移动终端发生位移,且所述位移的位移值大于预设位移阈值时,控制移动终端关闭振动。When the vibration of the mobile terminal is detected, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurs; when the displacement of the mobile terminal is detected, and the displacement value of the displacement is greater than the preset displacement threshold, the mobile terminal is controlled to turn off the vibration .

可选地,计算机程序被处理器560执行时还可实现如下步骤:检测移动终端是否接收到来电呼叫;当检测接收到来电呼叫,且检测到移动终端启动针对所述来电呼叫的来电振动时,确定检测到移动终端振动。Optionally, when the computer program is executed by the processor 560, the following steps can also be implemented: detecting whether the mobile terminal receives an incoming call; Make sure that vibration of the mobile terminal is detected.

可选地,计算机程序被处理器560执行时还可实现如下步骤:检测移动终端的屏幕是否放置在物体的表面上;当检测到移动终端的屏幕放置在物体的表面上时,检测移动终端相对于振动发生时所在的位置是否发生位移。Optionally, when the computer program is executed by the processor 560, the following steps can also be implemented: detecting whether the screen of the mobile terminal is placed on the surface of the object; Whether there is displacement in the position where the vibration occurs.

可选地,计算机程序被处理器560执行时还可实现如下步骤:获取移动终端的三维坐标,其中三维坐标包括X轴坐标值、Y轴坐标值和Z轴坐标值;当检测到所述X轴坐标值的变化值和Y轴坐标值的变化值均小于预设值,且检测到所述Z轴坐标值为负值时,判定所述移动终端的屏幕放置在物体的表面上。Optionally, when the computer program is executed by the processor 560, the following steps can also be implemented: acquiring the three-dimensional coordinates of the mobile terminal, wherein the three-dimensional coordinates include X-axis coordinate values, Y-axis coordinate values and Z-axis coordinate values; The change value of the axis coordinate value and the change value of the Y axis coordinate value are both smaller than the preset value, and when it is detected that the Z axis coordinate value is negative, it is determined that the screen of the mobile terminal is placed on the surface of the object.

可选地,计算机程序被处理器560执行时还可实现如下步骤:当检测到移动终端的屏幕放置在物体的表面上时,检测移动终端的触摸屏上是否附着有水珠;当检测到触摸屏上附着有水珠时,检测移动终端相对于振动发生时所在的位置是否发生位移。Optionally, when the computer program is executed by the processor 560, the following steps can also be implemented: when it is detected that the screen of the mobile terminal is placed on the surface of the object, it is detected whether water drops are attached to the touch screen of the mobile terminal; When water drops are attached, it is detected whether the mobile terminal is displaced relative to the position where the vibration occurred.

可选地,计算机程序被处理器560执行时还可实现如下步骤:采集移动终端的触摸屏横向和纵向电极交汇点的感应值;当检测到存在感应值大于预设阈值时,判定移动终端的触摸屏上附着有水珠。Optionally, when the computer program is executed by the processor 560, the following steps can also be implemented: collecting the sensing value of the intersection point of the horizontal and vertical electrodes of the touch screen of the mobile terminal; Drops of water are attached to it.

可选地,计算机程序被处理器560执行时还可实现如下步骤:通过移动终端内设置的陀螺仪传感器检测移动终端相对于振动发生时所在的位置是否发生角度偏移;当检测到移动终端发生角度偏移,且偏移角度大于预设角度阈值时,控制移动终端关闭振动。Optionally, when the computer program is executed by the processor 560, the following steps can also be implemented: through the gyroscope sensor provided in the mobile terminal, it is detected whether the mobile terminal has an angular offset relative to the position where the vibration occurs; Angle offset, and when the offset angle is greater than the preset angle threshold, the mobile terminal is controlled to turn off the vibration.

可选地,当检测接收到来电呼叫,且检测到移动终端未启动针对所述来电呼叫的来电铃声时,计算机程序被处理器560执行时还可实现如下步骤:控制移动终端启动所述来电铃声。Optionally, when an incoming call is detected and it is detected that the mobile terminal does not activate the incoming ringtone for the incoming call, when the computer program is executed by the processor 560, the following steps may also be implemented: controlling the mobile terminal to activate the incoming ringtone .

本发明的上述实施例中提供的移动终端,通过在检测到移动终端振动时,检测移动终端相对于振动发生时所在的位置是否发生位置,并在检测到移动终端发生位移,且位移值大于预设位移阈值时,控制移动终端关闭振动,使得移动终端不会再因为振动时的振动作用力而再增大位移,从而防止了移动终端放置在较高的台面的边缘时,由于位移量大而从台面上滑落的情况的发生,进而减少了移动终端的屏幕被摔裂的情况的发生,保护了移动终端的屏幕安全,解决了现有技术中存在的由于移动终端振动提醒导致的移动终端很容易从高处摔落致使屏幕碎裂的问题。The mobile terminal provided in the above-mentioned embodiments of the present invention detects whether the position of the mobile terminal relative to the position when the vibration occurs when the vibration of the mobile terminal is detected, and detects that the mobile terminal is displaced, and the displacement value is greater than the preset value. When the displacement threshold is set, the mobile terminal is controlled to turn off the vibration, so that the mobile terminal will no longer increase the displacement due to the vibration force during vibration, thereby preventing the mobile terminal from being damaged due to the large displacement when the mobile terminal is placed on the edge of a higher table. The occurrence of the situation of slipping from the table surface reduces the occurrence of the screen of the mobile terminal being broken, protects the screen safety of the mobile terminal, and solves the problem of the mobile terminal caused by the vibration reminder of the mobile terminal existing in the prior art. It is easy to drop from a high place and cause the screen to break.

移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

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

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present invention, and should cover Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (17)

1. a kind of control method of mobile terminal, it is characterised in that methods described includes:
When detecting mobile terminal vibration, whether the position where when detection mobile terminal occurs relative to vibration occurs position Move;
When detecting that mobile terminal is subjected to displacement, and when the shift value of the displacement is more than preset displacement threshold value, control it is mobile eventually Vibration is closed at end.
2. according to the method for claim 1, it is characterised in that when detect mobile terminal vibration the step of, including:
Whether detection mobile terminal receives incoming call;
When detection receives incoming call, and detects that mobile terminal starts the calling vibration for the incoming call, really Regular inspection measures mobile terminal vibration.
3. according to the method for claim 1, it is characterised in that where when the detection mobile terminal occurs relative to vibration Position the step of whether being subjected to displacement, including:
Whether the screen of detection mobile terminal is placed on the surface of object;
When the screen for detecting the mobile terminal is placed on the surface of the object, detect the mobile terminal relative to Whether the position where when vibration occurs is subjected to displacement.
4. according to the method for claim 3, it is characterised in that whether the screen of the detection mobile terminal is placed on object Surface on step, including:
The three-dimensional coordinate of mobile terminal is obtained, wherein three-dimensional coordinate includes X-axis coordinate value, Y-axis coordinate value and Z axis coordinate value;
When detecting that the changing value of the X-axis coordinate value and the changing value of Y-axis coordinate value be respectively less than preset value, and detect described When Z axis coordinate value is negative value, judge that the screen of the mobile terminal is placed on the surface of object.
5. according to the method for claim 3, it is characterised in that the position where when detection mobile terminal occurs relative to vibration The step of whether being subjected to displacement is put, including:
When the screen for detecting mobile terminal is placed on the surface of object, detects and whether adhere on the touch-screen of mobile terminal There is the globule;
When detect be attached with the globule on touch-screen when, detection mobile terminal relative to vibration occur when where position whether send out Raw displacement.
6. according to the method for claim 5, it is characterised in that whether be attached with the touch-screen of the detection mobile terminal The step of globule, including:
Gather the influence value of the horizontal and vertical electrode joint of touch-screen of mobile terminal;
When detecting the presence of influence value and being more than predetermined threshold value, judge to be attached with the globule on the touch-screen of mobile terminal.
7. according to the method for claim 1, it is characterised in that where when the detection mobile terminal occurs relative to vibration Position the step of whether being subjected to displacement, including:
Position where being detected by the gyro sensor set in mobile terminal when mobile terminal occurs relative to vibration is No generation angle skew;
It is described when detecting that mobile terminal is subjected to displacement, and when the shift value of the displacement is more than preset displacement threshold value, control shifting The step of dynamic terminal closes vibration, including:
When detecting that angle skew occurs for mobile terminal, and when deviation angle is more than predetermined angle threshold value, control mobile terminal pass Close vibration.
8. according to the method for claim 2, it is characterised in that when detection receives incoming call, and detect it is mobile eventually When holding not actuated incoming ring tone for the incoming call, after the step of control mobile terminal closes vibration, also wrap Include:
Mobile terminal is controlled to start the incoming ring tone.
A kind of 9. mobile terminal, it is characterised in that including:
First detection module, for when detecting mobile terminal vibration, detection mobile terminal to be relative to place during vibration generation Position whether be subjected to displacement;
First control module, detect that mobile terminal is subjected to displacement for working as, and the shift value of the displacement is more than preset displacement During threshold value, control mobile terminal closes vibration.
10. mobile terminal according to claim 9, it is characterised in that the mobile terminal also includes:
Second detection module, for detecting whether mobile terminal receives incoming call;
Determining module, for receiving incoming call when detection, and detect that mobile terminal starts for the incoming call During calling vibration, it is determined that detecting mobile terminal vibration.
11. mobile terminal according to claim 9, it is characterised in that the first detection module includes:
Whether the first detection unit, the screen for detecting mobile terminal are placed on the surface of object;
Second detection unit, for when the screen for detecting the mobile terminal is placed on the surface of object, described in detection Whether the position where when mobile terminal occurs relative to vibration is subjected to displacement.
12. mobile terminal according to claim 11, it is characterised in that first detection unit includes:
Subelement is obtained, for obtaining the three-dimensional coordinate of mobile terminal, wherein three-dimensional coordinate includes X-axis coordinate value, Y-axis coordinate value With Z axis coordinate value;
First judges subelement, detects that the changing value of the X-axis coordinate value and the changing value of Y-axis coordinate value are respectively less than for working as Preset value, and when to detect the Z axis coordinate value be negative value, judge that the screen of the mobile terminal is placed on the surface of object On.
13. mobile terminal according to claim 11, it is characterised in that the first detection module includes:
3rd detection unit, for when the screen for detecting mobile terminal is placed on the surface of object, detecting mobile terminal Touch-screen on whether be attached with the globule;
4th detection unit, for when detect be attached with the globule on touch-screen when, detection mobile terminal relative to vibration occur When where position whether be subjected to displacement.
14. mobile terminal according to claim 13, it is characterised in that the 3rd detection unit includes:
Gather subelement, the influence value of the horizontal and vertical electrode joint of touch-screen for gathering mobile terminal;
Second judges subelement, for when detecting the presence of influence value and being more than predetermined threshold value, judging the touch-screen of mobile terminal On be attached with the globule.
15. mobile terminal according to claim 9, it is characterised in that the first detection module is used for, by mobile whole Whether the position where when the gyro sensor detection mobile terminal set in end occurs relative to vibration occurs angle skew;
First control module is used for, and when detecting that angle skew occurs for mobile terminal, and deviation angle is more than predetermined angle During threshold value, control mobile terminal closes vibration.
16. mobile terminal according to claim 10, it is characterised in that when detection receives incoming call, and detect During the not actuated incoming ring tone for the incoming call of mobile terminal, the mobile terminal also includes:
Second control module, for controlling mobile terminal to start the incoming ring tone.
17. a kind of mobile terminal, it is characterised in that the mobile terminal includes processor, memory and is stored in the storage On device and the computer program that can run on the processor, the computer program are realized such as during the computing device The step of control method of mobile terminal any one of claim 1 to 8.
CN201710827154.1A 2017-09-14 2017-09-14 Control method of a mobile terminal and mobile terminal Active CN107743169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710827154.1A CN107743169B (en) 2017-09-14 2017-09-14 Control method of a mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710827154.1A CN107743169B (en) 2017-09-14 2017-09-14 Control method of a mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN107743169A true CN107743169A (en) 2018-02-27
CN107743169B CN107743169B (en) 2020-01-21

Family

ID=61235739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710827154.1A Active CN107743169B (en) 2017-09-14 2017-09-14 Control method of a mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN107743169B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109915996A (en) * 2019-02-20 2019-06-21 珠海格力电器股份有限公司 Protection method and device for air sensor, air sensor and storage medium
CN109946090A (en) * 2019-03-05 2019-06-28 浙江吉利汽车研究院有限公司 Vehicle bench test system and its test method
CN110138956A (en) * 2019-03-27 2019-08-16 努比亚技术有限公司 A kind of terminal device detection method, terminal device and computer readable storage medium
CN115933915A (en) * 2023-01-03 2023-04-07 广东小天才科技有限公司 A control method, control device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005277973A (en) * 2004-03-25 2005-10-06 Aruze Corp Mode automatic switching system for mobile communication terminals
US8385849B2 (en) * 2010-10-08 2013-02-26 Hon Hai Precision Industry Co., Ltd. Standby mode switch system and communication device having same
CN104135570A (en) * 2014-07-29 2014-11-05 广州视源电子科技股份有限公司 Method for preventing mobile phone from falling off due to incoming call vibration and mobile phone
CN104519193A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 A terminal and fall protection method
CN104980588A (en) * 2015-06-29 2015-10-14 努比亚技术有限公司 Method and apparatus for detecting state of mobile terminal
CN105100469A (en) * 2015-07-21 2015-11-25 京东方科技集团股份有限公司 a mobile device
CN105373748A (en) * 2015-12-22 2016-03-02 广东小天才科技有限公司 Equipment anti-falling method and device
CN105472157A (en) * 2015-12-09 2016-04-06 小米科技有限责任公司 Method and device for monitoring terminal motion state
CN106210376A (en) * 2016-07-29 2016-12-07 努比亚技术有限公司 mobile terminal, vibration prompt control device and method
CN106603868A (en) * 2016-12-30 2017-04-26 河源市美晨联合智能硬件电子研究院 Vibration control method and apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005277973A (en) * 2004-03-25 2005-10-06 Aruze Corp Mode automatic switching system for mobile communication terminals
US8385849B2 (en) * 2010-10-08 2013-02-26 Hon Hai Precision Industry Co., Ltd. Standby mode switch system and communication device having same
CN104519193A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 A terminal and fall protection method
CN104135570A (en) * 2014-07-29 2014-11-05 广州视源电子科技股份有限公司 Method for preventing mobile phone from falling off due to incoming call vibration and mobile phone
CN104980588A (en) * 2015-06-29 2015-10-14 努比亚技术有限公司 Method and apparatus for detecting state of mobile terminal
CN105100469A (en) * 2015-07-21 2015-11-25 京东方科技集团股份有限公司 a mobile device
CN105472157A (en) * 2015-12-09 2016-04-06 小米科技有限责任公司 Method and device for monitoring terminal motion state
CN105373748A (en) * 2015-12-22 2016-03-02 广东小天才科技有限公司 Equipment anti-falling method and device
CN106210376A (en) * 2016-07-29 2016-12-07 努比亚技术有限公司 mobile terminal, vibration prompt control device and method
CN106603868A (en) * 2016-12-30 2017-04-26 河源市美晨联合智能硬件电子研究院 Vibration control method and apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109915996A (en) * 2019-02-20 2019-06-21 珠海格力电器股份有限公司 Protection method and device for air sensor, air sensor and storage medium
CN109915996B (en) * 2019-02-20 2021-02-19 珠海格力电器股份有限公司 Protection method and device for air sensor, air sensor and storage medium
CN109946090A (en) * 2019-03-05 2019-06-28 浙江吉利汽车研究院有限公司 Vehicle bench test system and its test method
CN110138956A (en) * 2019-03-27 2019-08-16 努比亚技术有限公司 A kind of terminal device detection method, terminal device and computer readable storage medium
CN110138956B (en) * 2019-03-27 2022-01-14 努比亚技术有限公司 Terminal device detection method, terminal device and computer readable storage medium
CN115933915A (en) * 2023-01-03 2023-04-07 广东小天才科技有限公司 A control method, control device, electronic equipment and storage medium
CN115933915B (en) * 2023-01-03 2025-10-24 广东小天才科技有限公司 Control method, control device, electronic device and storage medium

Also Published As

Publication number Publication date
CN107743169B (en) 2020-01-21

Similar Documents

Publication Publication Date Title
US8963875B2 (en) Touch screen device with wet detection and control method thereof
JP5578386B2 (en) Pseudo hardware button operation method and touch screen terminal
EP3299938A1 (en) Touch-sensitive button with two levels
KR20190064637A (en) False touch prevention method and terminal
US10254879B1 (en) Touch screen proximity sensing with accelerometer/gyroscope and finger grip suppression to prevent false ear touch
US20130278547A1 (en) Electronic device
CN106469011A (en) A kind of method for information display and mobile terminal
WO2018107903A1 (en) Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
CN102047209A (en) Touch button false activation suppression
CN107506109A (en) A kind of method and mobile terminal for starting application program
CN107045470B (en) Safety prompting method of mobile terminal and mobile terminal
CN107743169A (en) The control method and mobile terminal of a kind of mobile terminal
TWI510976B (en) Touching input source selection method and electronic device
CN106527802A (en) Detection method and mobile terminal
CN106557240A (en) A kind of detection method and mobile terminal
CN106648242A (en) Control method of touch-control operation and mobile terminal
CN106201073B (en) A kind of signal processing method and mobile terminal of capacitance touch screen
CN107390854A (en) A kind of fingerprint detection open method and electronic equipment
CN106445299A (en) Control method and mobile terminal
CN106953986A (en) A kind of call handover method and mobile terminal
CN106598408A (en) Method for switching navigation bar and mobile terminal
JP2014109883A (en) Electronic apparatus and method of controlling the same
CN107980116A (en) Suspension touch sensing method, suspension touch sensing system and suspension touch electronic device
CN106371748A (en) Touch parameter setting method and mobile terminal
CN107390996B (en) Handling method and mobile terminal for false touch of power button

Legal Events

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