[go: up one dir, main page]

CN106790978A - The control method of mobile terminal screen state, device and mobile terminal - Google Patents

The control method of mobile terminal screen state, device and mobile terminal Download PDF

Info

Publication number
CN106790978A
CN106790978A CN201611028458.3A CN201611028458A CN106790978A CN 106790978 A CN106790978 A CN 106790978A CN 201611028458 A CN201611028458 A CN 201611028458A CN 106790978 A CN106790978 A CN 106790978A
Authority
CN
China
Prior art keywords
threshold
proximity
value
current terminal
adjustment
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
CN201611028458.3A
Other languages
Chinese (zh)
Other versions
CN106790978B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611028458.3A priority Critical patent/CN106790978B/en
Publication of CN106790978A publication Critical patent/CN106790978A/en
Application granted granted Critical
Publication of CN106790978B publication Critical patent/CN106790978B/en
Expired - Fee Related 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
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种移动终端屏幕状态的控制方法、装置和移动终端。所述方法包括:确定当前终端的异物干扰事件被触发;按照设定调整规则调整当前终端的接近传感器的接近阈值和远离阈值;根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。本发明实施例提供的技术方案,通过在确定当前终端受到油污等异物的干扰后,按照设定调整规则调整接近传感器的接近阈值和远离阈值,根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态,避免了移动终端在受到异物干扰后依旧采用原始的接近阈值和远离阈值,导致的移动终端不能准确的控制屏幕状态的问题,优化了现有的屏幕状态控制方法,提升了屏幕状态控制的准确度。

The embodiment of the invention discloses a method, a device and a mobile terminal for controlling the screen state of a mobile terminal. The method includes: determining that the foreign object interference event of the current terminal is triggered; adjusting the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule; controlling the current terminal according to the adjusted proximity threshold and the adjusted distance threshold screen status. In the technical solution provided by the embodiments of the present invention, after determining that the current terminal is disturbed by foreign matter such as oil, adjust the proximity threshold and the distance threshold of the proximity sensor according to the set adjustment rules, and control the terminal according to the adjusted proximity threshold and the adjusted distance threshold. The current screen state of the terminal avoids the problem that the mobile terminal still adopts the original proximity threshold and distance threshold after being interfered by foreign objects, resulting in the mobile terminal being unable to accurately control the screen state, and optimizes the existing screen state control method. Improved the accuracy of screen state controls.

Description

移动终端屏幕状态的控制方法、装置和移动终端Method and device for controlling screen state of mobile terminal, and mobile terminal

技术领域technical field

本发明实施例涉及终端技术领域,尤其涉及一种移动终端屏幕状态的控制方法、装置和移动终端。The embodiments of the present invention relate to the technical field of terminals, and in particular, to a method and device for controlling a screen state of a mobile terminal, and a mobile terminal.

背景技术Background technique

手机等移动终端中集成了各种传感器,用于辅助手机各项功能的实现。例如,在通话过程中,当接近传感器检测到脸接触手机时,屏幕灯将会熄灭,当检测到脸离开屏幕时,屏幕灯会自动开启,这一方面节省了电量,另一方面也防止了通话过程中的误操作,为用户带来了较好的体验。Various sensors are integrated in mobile terminals such as mobile phones to assist in the realization of various functions of the mobile phone. For example, during a call, when the proximity sensor detects that the face touches the phone, the screen light will turn off, and when the face is detected to leave the screen, the screen light will automatically turn on, which saves power on the one hand and prevents the call from Misoperation in the process brings a better experience for users.

但是,在用户使用手机通话的过程中,由于皮肤与手机的接触,难免会将油污等异物弄到手机上,干扰接近传感器对熄屏和亮屏的检测。例如由于油污的存在,在用户结束通话后本应该亮屏的时候,手机没有亮屏,导致移动终端不能准确的控制移动终端的屏幕状态。However, when the user is using the mobile phone to talk, due to the contact between the skin and the mobile phone, it is inevitable that foreign matter such as oil will get on the mobile phone, which will interfere with the proximity sensor's detection of the off-screen and on-screen. For example, due to the existence of oil stains, when the screen should be turned on after the user ends the call, the mobile phone does not turn on the screen, causing the mobile terminal to be unable to accurately control the screen status of the mobile terminal.

发明内容Contents of the invention

本发明实施例提供一种移动终端屏幕状态的控制方法、装置和移动终端,以使移动终端受到异物干扰后,能够准确的控制移动终端的屏幕状态。Embodiments of the present invention provide a method and device for controlling the screen state of a mobile terminal, and a mobile terminal, so that the screen state of the mobile terminal can be accurately controlled after the mobile terminal is interfered by a foreign object.

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

确定当前终端的异物干扰事件被触发;Determine that the foreign object interference event of the current terminal is triggered;

按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;Adjusting the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule;

根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。The screen state of the current terminal is controlled according to the adjusted proximity threshold and the adjusted distance threshold.

在第二方面,本发明实施例提供了一种移动终端屏幕状态的控制装置,包括:In a second aspect, an embodiment of the present invention provides a device for controlling the screen state of a mobile terminal, including:

异物干扰事件确定模块,用于确定当前终端的异物干扰事件被触发;A foreign object interference event determination module, configured to determine that the foreign object interference event of the current terminal is triggered;

阈值调整模块,用于按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;A threshold adjustment module, configured to adjust the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule;

屏幕状态控制模块,用于根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。A screen state control module, configured to control the screen state of the current terminal according to the adjusted proximity threshold and the adjusted distance threshold.

在第三方面,本发明实施例提供了一种移动终端,包括壳体、处理器、存储器、电路板和电源电路;In a third aspect, an embodiment of the present invention provides a mobile terminal, including a housing, a processor, a memory, a circuit board, and a power supply circuit;

所述电路板安置在所述壳体围成的空间内部;The circuit board is placed inside the space enclosed by the housing;

所述处理器和所述存储器设置在所述电路板上;The processor and the memory are arranged on the circuit board;

所述电源电路,用于为所述移动终端的各个电路或器件供电;The power supply circuit is used to supply power to each circuit or device of the mobile terminal;

所述存储器,用于存储可执行程序代码;The memory is used to store executable program codes;

所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:The processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to perform:

确定当前终端的异物干扰事件被触发;Determine that the foreign object interference event of the current terminal is triggered;

按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;Adjusting the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule;

根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。The screen state of the current terminal is controlled according to the adjusted proximity threshold and the adjusted distance threshold.

本发明实施例提供的技术方案,通过在确定当前终端受到油污等异物的干扰后,按照设定调整规则调整接近传感器的接近阈值和远离阈值,根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态,避免了移动终端在受到异物干扰后依旧采用原始的接近阈值和远离阈值,导致的移动终端不能准确的控制屏幕状态的问题,优化了现有的屏幕状态控制方法,提升了屏幕状态控制的准确度。In the technical solution provided by the embodiments of the present invention, after determining that the current terminal is interfered by foreign matter such as oil, adjust the proximity threshold and the distance threshold of the proximity sensor according to the set adjustment rules, and control the terminal according to the adjusted proximity threshold and the adjusted distance threshold. The current screen state of the terminal avoids the problem that the mobile terminal still adopts the original proximity threshold and distance threshold after being interfered by foreign objects, resulting in the mobile terminal being unable to accurately control the screen state, and optimizes the existing screen state control method. Improved the accuracy of screen state controls.

附图说明Description of drawings

图1是本发明实施例一提供的移动终端屏幕状态的控制方法的流程图;FIG. 1 is a flow chart of a method for controlling a screen state of a mobile terminal provided in Embodiment 1 of the present invention;

图2是本发明实施例二提供的移动终端屏幕状态的控制方法的流程图;FIG. 2 is a flowchart of a method for controlling a screen state of a mobile terminal provided in Embodiment 2 of the present invention;

图3是本发明实施例三提供的移动终端屏幕状态的控制方法的流程图;FIG. 3 is a flow chart of a method for controlling a screen state of a mobile terminal provided in Embodiment 3 of the present invention;

图4a是本发明实施例四提供的移动终端屏幕状态的控制装置的结构示意图;FIG. 4a is a schematic structural diagram of an apparatus for controlling the screen state of a mobile terminal provided in Embodiment 4 of the present invention;

图4b是本发明实施例四提供的异物干扰事件确定模块的结构示意图;FIG. 4b is a schematic structural diagram of a foreign object interference event determination module provided in Embodiment 4 of the present invention;

图4c是本发明实施例四提供的阈值调整模块的结构示意图;FIG. 4c is a schematic structural diagram of a threshold adjustment module provided in Embodiment 4 of the present invention;

图5是本发明实施例五提供的一种移动终端的结构示意图。FIG. 5 is a schematic structural diagram of a mobile terminal provided by Embodiment 5 of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

实施例一Embodiment one

图1给出了本发明实施例一提供的移动终端屏幕状态的控制方法的流程图,本实施例的方法可以由移动终端屏幕状态的控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端的一部分设置在所述移动终端内部。Fig. 1 has provided the flow chart of the control method of the mobile terminal screen state provided by Embodiment 1 of the present invention, the method of this embodiment can be carried out by the control device of mobile terminal screen state, and this device can be through hardware and/or software In this way, the device can be set inside the mobile terminal as a part of the mobile terminal.

如图1所示,本实施例提供的移动终端屏幕状态的控制方法具体包括以下步骤:As shown in Figure 1, the method for controlling the screen state of a mobile terminal provided in this embodiment specifically includes the following steps:

步骤101、确定当前终端的异物干扰事件被触发。Step 101, determine that the foreign object interference event of the current terminal is triggered.

本实施例中所述的终端包括但不限定于手机、笔记本、平板电脑等设置有接近传感器的设备。The terminals described in this embodiment include but are not limited to mobile phones, notebooks, tablet computers and other devices provided with proximity sensors.

在终端通话或者防误触的过程中,难免会有异物弄到终端的屏幕上,如果终端的接近传感器对应的屏幕上贴有保护膜或者由于用户皮肤的接触使终端的接近传感器对应的屏幕沾上了油污、汗液、化妆品等,则会影响终端对屏幕状态的控制。所述屏幕状态包括熄屏状态和亮屏状态。During the process of talking on the terminal or preventing false touches, it is inevitable that foreign objects will get on the screen of the terminal. If there is a protective film on the screen corresponding to the proximity sensor of the terminal or the screen corresponding to the proximity sensor of the terminal Oil, sweat, cosmetics, etc., will affect the terminal's control of the screen status. The screen state includes a screen off state and a screen on state.

在检测到当前终端接近传感器的屏幕上存在异物时,即可确定当前终端的异物干扰事件被触发。When it is detected that there is a foreign object on the screen of the proximity sensor of the current terminal, it can be determined that the foreign object interference event of the current terminal is triggered.

步骤102、按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值。Step 102, adjust the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule.

移动终端中配置的最常见的接近传感器包括红外接近传感器。红外接近传感器向外发射红外线,然后通过测量物体反射回来的红外线强度来判断物体与传感器之间的距离,接收到的红外光强度越强,则表示其与物体之间的距离越小。红外接近传感器会将测量到的红外线强度转化为与其呈正比例关系的测量值,可将该测量值称为接近值,红外接近传感器得出的接近值越大,表示其与物体之间的距离越小。一般的,接近值可为红外接近传感器中的模数转换器(Analog-to-Digital Converter,ADC)的输出值,简称ADC值或AD值。The most common proximity sensors configured in mobile terminals include infrared proximity sensors. The infrared proximity sensor emits infrared rays outward, and then judges the distance between the object and the sensor by measuring the intensity of the infrared rays reflected back by the object. The stronger the intensity of the received infrared light, the smaller the distance between it and the object. The infrared proximity sensor will convert the measured infrared intensity into a measurement value that is directly proportional to it. This measurement value can be called the proximity value. The larger the proximity value obtained by the infrared proximity sensor, the closer the distance between it and the object. small. Generally, the proximity value may be an output value of an analog-to-digital converter (Analog-to-Digital Converter, ADC) in the infrared proximity sensor, referred to as an ADC value or an AD value.

在终端利用接近传感器进行屏幕状态的控制之前会预先设置接近阈值和远离阈值,当接近传感器的接近值大于该接近阈值时,判断为接近状态,熄灭触模屏;当接近传感器的接近值小于远离阈值时,判断为远离状态,点亮触模屏。Before the terminal uses the proximity sensor to control the screen state, the proximity threshold and the distance threshold will be preset. When the proximity value of the proximity sensor is greater than the proximity threshold, it will be judged as a proximity state and the touch screen will be turned off; When the threshold is reached, it is judged to be far away, and the touch screen is lit.

当前终端受到异物干扰后,接近传感器的接近值会产生变化。示例性的,远离阈值为400,接近阈值为450,在终端受到油污干扰后,接近传感器的接近值会增加油污值100,那么,若无油污干扰的标准接近值为320时,由于小于远离阈值则会点亮屏幕,但是在受到油污干扰后实际接近值变为420,由于420不小于远离阈值,则不会点亮屏幕,那么就会导致应该点亮屏幕的情况下屏幕不亮的问题,这将严重影响用户的体验;若无油污干扰的标准接近值为380时,由于不大于接近阈值450则不会熄灭屏幕,但是在受到油污干扰后实际接近值变为480,由于480大于接近阈值450则会熄灭屏幕,那么就会导致本不应该熄灭屏幕的情况下将屏幕熄灭了,严重影响用户体验。When the current terminal is disturbed by foreign objects, the proximity value of the proximity sensor will change. For example, the distance threshold is 400, and the proximity threshold is 450. After the terminal is disturbed by oil pollution, the proximity value of the proximity sensor will increase the oil pollution value by 100. Then, if the standard proximity value without oil pollution interference is 320, because it is less than the distance threshold The screen will be turned on, but the actual proximity value becomes 420 after being disturbed by oil pollution. Since 420 is not less than the distance threshold, the screen will not be turned on, which will lead to the problem that the screen is not turned on when the screen should be turned on. This will seriously affect the user experience; if the standard proximity value without oil pollution interference is 380, the screen will not be turned off because it is not greater than the proximity threshold of 450, but the actual proximity value becomes 480 after being disturbed by oil pollution, because 480 is greater than the proximity threshold 450 will turn off the screen, which will cause the screen to be turned off when it should not be turned off, seriously affecting the user experience.

在确定当前终端受到异物干扰后,按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值,以使调整后的接近阈值和远离阈值适用于存在异物干扰的移动终端对屏幕状态的控制。After determining that the current terminal is interfered by foreign objects, adjust the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to the set adjustment rules, so that the adjusted proximity threshold and distance threshold are suitable for the screen state of the mobile terminal with foreign object interference control.

步骤103、根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。Step 103. Control the screen state of the current terminal according to the adjusted proximity threshold and the adjusted distance threshold.

将获取的接近传感器的接近值与调整后的接近阈值和调整后的远离阈值进行比较,在接近值大于接近阈值时,点亮屏幕;在接近值小于远离阈值时,熄灭屏幕。The acquired proximity value of the proximity sensor is compared with the adjusted proximity threshold and the adjusted distance threshold, and when the proximity value is greater than the proximity threshold, the screen is turned on; when the proximity value is smaller than the distance threshold, the screen is turned off.

本实施例提供的方法,通过在确定当前终端受到油污等异物的干扰后,按照设定调整规则调整接近传感器的接近阈值和远离阈值,根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态,避免了移动终端在受到异物干扰后依旧采用原始的接近阈值和远离阈值,导致的移动终端不能准确的控制屏幕状态的问题,优化了现有的屏幕状态控制方法,提升了屏幕状态控制的准确度。In the method provided in this embodiment, after determining that the current terminal is interfered by foreign matter such as oil, adjust the proximity threshold and the distance threshold of the proximity sensor according to the set adjustment rules, and control the terminal according to the adjusted proximity threshold and the adjusted distance threshold. The current screen state of the terminal avoids the problem that the mobile terminal still adopts the original approach threshold and far away threshold after being interfered by foreign objects, which leads to the problem that the mobile terminal cannot accurately control the screen state, optimizes the existing screen state control method, and improves The accuracy of the screen state control.

在上述技术方案的基础上,还包括:若检测到当前终端的异物干扰事件未被触发,则保持原始的接近阈值和原始的远离阈值。On the basis of the above technical solution, it further includes: if it is detected that the foreign object interference event of the current terminal is not triggered, maintaining the original proximity threshold and the original distance threshold.

实施例二Embodiment two

图2给出了本发明实施例二提供的移动终端屏幕状态的控制方法的流程图。本实施例以上述实施例一为基础进行优化。在本实施例中,将“确定当前终端的异物干扰事件被触发”优化为:确定当前终端的接近传感器最大值获取事件被触发;获取接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间;若所述第二时间与所述第一时间的差值大于标准误差值,则确定当前终端的异物干扰事件被触发。FIG. 2 shows a flowchart of a method for controlling a screen state of a mobile terminal provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the first embodiment above. In this embodiment, the optimization of "determining that the foreign object interference event of the current terminal is triggered" is: determining that the acquisition event of the maximum value of the proximity sensor of the current terminal is triggered; Time and the second time from the maximum value of the proximity sensor to the set value in the away state; if the difference between the second time and the first time is greater than the standard error value, it is determined that the foreign object interference event of the current terminal is triggered.

相应的,如图2所示,本实施例提供的方法包括以下步骤:Correspondingly, as shown in Figure 2, the method provided in this embodiment includes the following steps:

步骤201、确定当前终端的接近传感器最大值获取事件被触发。Step 201. Determine that the event of acquiring the maximum value of the proximity sensor of the current terminal is triggered.

当终端贴近用户皮肤的时候,接近传感器的值最大,如果在通话过程中,接近传感器的值取得最大值,那么可能就会受到油污等异物的干扰,否则,就没有受到油污等异物的干扰。When the terminal is close to the user's skin, the value of the proximity sensor is the largest. If the value of the proximity sensor reaches the maximum value during the call, it may be interfered by foreign objects such as oil, otherwise, it will not be interfered by foreign objects such as oil.

步骤202、获取接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间。Step 202. Obtain the first time from the set value to the maximum value of the proximity sensor in the close state and the second time from the maximum value of the proximity sensor to the set value in the far away state.

其中,所述设定值为预先设置的靠近接近传感器最大值的值,例如,接近传感器的最大值为1023,则所述设定值可取800-900之间的任一数值,例如取值900。只要终端有距离的变化,那么接近传感器就容易达到该设定值。Wherein, the set value is a preset value close to the maximum value of the proximity sensor, for example, the maximum value of the proximity sensor is 1023, then the set value can be any value between 800-900, for example, the value is 900 . As long as the terminal has a change in distance, the proximity sensor can easily reach the set value.

所述接近状态为接近传感器接近值处于从设定值到最大值的变化过程中所处的状态,所述远离状态为接近传感器接近值处于从最大值到设定值的变化过程中所处的状态。示例性的,接近传感器接近值在从900逐渐变化到1023的过程中终端处于接近状态,接近传感器接近值在从1023逐渐变化到900的过程中终端处于远离状态。The close state is the state in which the proximity value of the proximity sensor is in the process of changing from the set value to the maximum value, and the far state is the state in which the proximity value of the proximity sensor is in the process of changing from the maximum value to the set value. state. Exemplarily, the terminal is in the proximity state during the process of gradually changing the proximity value of the proximity sensor from 900 to 1023, and the terminal is in the far state of the process of gradually changing the proximity value of the proximity sensor from 1023 to 900.

步骤203、判断所述第二时间与所述第一时间的差值是否大于标准误差值,若是,则执行步骤204,否则执行步骤207。Step 203 , judging whether the difference between the second time and the first time is greater than the standard error value, if yes, execute step 204 , otherwise execute step 207 .

步骤204、确定当前终端的异物干扰事件被触发。Step 204, determine that the foreign object interference event of the current terminal is triggered.

一般的,若终端不存在异物干扰,那么第一时间与第二时间的差值应该在标准误差范围内,若所述第二时间与所述第一时间的差值大于标准误差值,则说明终端受到了异物的干扰。并进一步的,可根据第二时间与第一时间的关系,确定终端受到干扰的程度。Generally, if there is no foreign object interference in the terminal, the difference between the first time and the second time should be within the standard error range, and if the difference between the second time and the first time is greater than the standard error value, it means The terminal has been interfered by a foreign object. Furthermore, according to the relationship between the second time and the first time, the degree to which the terminal is interfered can be determined.

步骤205、按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值。Step 205, adjust the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to the set adjustment rule.

具体可以根据第二时间与第一时间的关系,调整所述当前终端的接近传感器的接近阈值和远离阈值。Specifically, the proximity threshold and the distance threshold of the proximity sensor of the current terminal may be adjusted according to the relationship between the second time and the first time.

步骤206、根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。Step 206: Control the screen state of the current terminal according to the adjusted proximity threshold and the adjusted distance threshold.

步骤207、保持当前终端原始的接近阈值和原始的远离阈值。Step 207. Keep the original proximity threshold and the original distance threshold of the current terminal.

本实施例提供的方法,首先确定当前终端的接近传感器达到了最大值,然后根据接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间的差值,确定当前终端受到异物干扰,最后按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值,并根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态,避免了移动终端在受到异物干扰后依旧采用原始的接近阈值和远离阈值,导致的移动终端不能准确的控制屏幕状态的问题,优化了现有的屏幕状态控制方法,提升了屏幕状态控制的准确度。The method provided in this embodiment first determines that the proximity sensor of the current terminal has reached the maximum value, and then according to the first time from the set value to the maximum value of the proximity sensor in the close state and from the maximum value of the proximity sensor to the set value in the far away state to determine that the current terminal is interfered by a foreign object, and finally adjust the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to the set adjustment rules, and control the terminal according to the adjusted proximity threshold and the adjusted distance threshold The current screen state of the terminal avoids the problem that the mobile terminal still adopts the original proximity threshold and distance threshold after being interfered by foreign objects, resulting in the mobile terminal being unable to accurately control the screen state, and optimizes the existing screen state control method. Improved the accuracy of screen state controls.

实施例三Embodiment three

图3给出了本发明实施例三提供的移动终端屏幕状态的控制方法的流程图。本实施例以上述实施例二为基础进行优化。在本实施例中,将“按照设定调整规则调整接近传感器的接近阈值和远离阈值”优化为:根据所述第二时间和所述第一时间之间的比值或者差值,确定所述接近阈值的第一调整值和所述远离阈值的第二调整值;将所述接近阈值增加第一调整值,以及将所述远离阈值增加第二调整值。FIG. 3 shows a flowchart of a method for controlling a screen state of a mobile terminal provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the second embodiment above. In this embodiment, the optimization of "adjusting the proximity threshold and the distance threshold of the proximity sensor according to the set adjustment rule" is: according to the ratio or difference between the second time and the first time, determine the proximity A first adjustment value for the threshold and a second adjustment value for the distance threshold; increasing the proximity threshold by the first adjustment value, and increasing the distance threshold by the second adjustment value.

相应的,如图3所示,本实施例提供的方法,包括以下步骤:Correspondingly, as shown in Figure 3, the method provided in this embodiment includes the following steps:

步骤301、确定当前终端的接近传感器最大值获取事件被触发。Step 301. Determine that the event of acquiring the maximum value of the proximity sensor of the current terminal is triggered.

步骤302、获取接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间。Step 302. Obtain the first time from the set value to the maximum value of the proximity sensor in the close state and the second time from the maximum value of the proximity sensor to the set value in the far away state.

步骤303、判断所述第二时间与所述第一时间的差值是否大于标准误差值,若是,则执行步骤304,否则执行步骤308。Step 303 , judging whether the difference between the second time and the first time is greater than a standard error value, if yes, execute step 304 , otherwise execute step 308 .

步骤304、确定当前终端的异物干扰事件被触发。Step 304, determine that the foreign object interference event of the current terminal is triggered.

步骤305、根据所述第二时间和所述第一时间之间的比值或者差值,确定所述接近阈值的第一调整值和所述远离阈值的第二调整值。Step 305: Determine a first adjustment value close to the threshold and a second adjustment value far away from the threshold according to the ratio or difference between the second time and the first time.

其中,所述第一调整值和第二调整值可以为相同的值,也可以为不同的值。所述第一调整值和第二调整值的取值范围可以为100~200。Wherein, the first adjustment value and the second adjustment value may be the same value or different values. The value range of the first adjustment value and the second adjustment value may be 100-200.

在第二时间和第一时间的差值或者比值比较大时,则说明终端受到异物干扰的程度比较大,则可将第一调整值和第二调整值设置为大一些的值,例如150,在第二时间和第一时间的差值或者比值比较小时,则说明终端受到异物干扰的程度比较小,则可将第一调整值和第二调整值设置为小一些的值,例如100。该步骤通过第二时间和第一时间之间的比值或者差值,来确定接近阈值的第一调整值和远离阈值的第二调整值,可以快速准确的确定接近阈值和远离阈值的调整值。When the difference or ratio between the second time and the first time is relatively large, it means that the terminal is greatly disturbed by foreign objects, and the first adjustment value and the second adjustment value can be set to a larger value, such as 150, If the difference or ratio between the second time and the first time is relatively small, it means that the degree of foreign object interference to the terminal is relatively small, and the first adjustment value and the second adjustment value may be set to smaller values, such as 100. In this step, the first adjustment value close to the threshold and the second adjustment value away from the threshold are determined through the ratio or difference between the second time and the first time, and the adjustment values close to the threshold and away from the threshold can be determined quickly and accurately.

步骤306、将所述接近阈值增加第一调整值,以及将所述远离阈值增加第二调整值。Step 306: Increase the proximity threshold by a first adjustment value, and increase the distance threshold by a second adjustment value.

步骤307、根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。Step 307. Control the screen state of the current terminal according to the adjusted proximity threshold and the adjusted distance threshold.

步骤308、保持当前终端原始的接近阈值和原始的远离阈值。Step 308: Maintain the original proximity threshold and the original distance threshold of the current terminal.

本实施例提供的方法,通过在确定了当前终端受到异物干扰之后,根据接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间的比值或者差值,确定所述接近阈值的第一调整值和所述远离阈值的第二调整值,将所述接近阈值增加第一调整值,以及将所述远离阈值增加第二调整值,根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态,避免了移动终端在受到异物干扰后依旧采用原始的接近阈值和远离阈值,导致的移动终端不能准确的控制屏幕状态的问题,优化了现有的屏幕状态控制方法,提升了屏幕状态控制的准确度。In the method provided in this embodiment, after determining that the current terminal is interfered by a foreign object, according to the first time from the set value to the maximum value of the proximity sensor in the approaching state and the first time from the maximum value of the proximity sensor to the set value in the far away state A ratio or difference between two times, determining a first adjustment value for the proximity threshold and a second adjustment value for the distance threshold, increasing the proximity threshold by the first adjustment value, and increasing the distance threshold by a second adjustment value, according to the adjusted proximity threshold and the adjusted distance threshold to control the screen state of the current terminal, avoiding the mobile terminal still using the original proximity threshold and distance threshold after being interfered by foreign objects, resulting in the mobile terminal being unable to accurately control The problem of screen state optimizes the existing screen state control method and improves the accuracy of screen state control.

实施例四Embodiment four

图4a为本发明实施例四提供的移动终端屏幕状态的控制装置的结构示意图,该装置可由软件和/或硬件实现,一般集成在移动终端中。如图4a所示,该装置包括异物干扰事件确定模块41、阈值调整模块42和屏幕状态控制模块43。Fig. 4a is a schematic structural diagram of an apparatus for controlling a screen state of a mobile terminal according to Embodiment 4 of the present invention. The apparatus can be implemented by software and/or hardware, and is generally integrated in a mobile terminal. As shown in FIG. 4 a , the device includes a foreign object interference event determination module 41 , a threshold adjustment module 42 and a screen state control module 43 .

所述异物干扰事件确定模块41,用于确定当前终端的异物干扰事件被触发;The foreign object interference event determining module 41 is configured to determine that the foreign object interference event of the current terminal is triggered;

所述阈值调整模块42,用于按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;The threshold adjustment module 42 is configured to adjust the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule;

所述屏幕状态控制模块43,用于根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。The screen state control module 43 is configured to control the screen state of the current terminal according to the adjusted proximity threshold and the adjusted distance threshold.

本实施例提供的技术方案,通过在确定当前终端受到油污等异物的干扰后,按照设定调整规则调整接近传感器的接近阈值和远离阈值,根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态,避免了移动终端在受到异物干扰后依旧采用原始的接近阈值和远离阈值,导致的移动终端不能准确的控制屏幕状态的问题,优化了现有的屏幕状态控制方法,提升了屏幕状态控制的准确度。In the technical solution provided by this embodiment, after determining that the current terminal is disturbed by foreign matter such as oil, adjust the proximity threshold and the distance threshold of the proximity sensor according to the set adjustment rules, and control the terminal according to the adjusted proximity threshold and the adjusted distance threshold. Describe the current screen state of the terminal, avoiding the problem that the mobile terminal still adopts the original approach threshold and far away threshold after being interfered by foreign objects, resulting in the mobile terminal being unable to accurately control the screen state, optimizing the existing screen state control method, and improving The accuracy of the screen state control is improved.

图4b给出了本发明实施例四提供的异物干扰事件确定模块的结构示意图。如图4b所示,在上述技术方案的基础上,所述异物干扰事件确定模块41包括:Fig. 4b shows a schematic structural diagram of a foreign object interference event determination module provided by Embodiment 4 of the present invention. As shown in Figure 4b, on the basis of the above technical solution, the foreign object interference event determination module 41 includes:

最大值获取确定单元411,用于确定当前终端的接近传感器最大值获取事件被触发;The maximum value acquisition determination unit 411 is configured to determine that the maximum value acquisition event of the proximity sensor of the current terminal is triggered;

时间获取模块412,用于获取接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间;The time acquisition module 412 is used to obtain the first time from the set value to the maximum value of the proximity sensor in the approaching state and the second time from the maximum value of the proximity sensor to the set value in the far away state;

异物干扰事件确定单元413,用于若所述第二时间与所述第一时间的差值大于标准误差值,则确定当前终端的异物干扰事件被触发。The foreign object interference event determining unit 413 is configured to determine that a foreign object interference event of the current terminal is triggered if the difference between the second time and the first time is greater than a standard error value.

图4c给出了本发明实施例四提供的阈值调整模块的结构示意图。如图4c所示,在上述技术方案的基础上,所述阈值调整模块42包括:FIG. 4c shows a schematic structural diagram of a threshold adjustment module provided by Embodiment 4 of the present invention. As shown in Figure 4c, on the basis of the above technical solution, the threshold adjustment module 42 includes:

调整值确定单元421,用于确定所述接近阈值的第一调整值和所述远离阈值的第二调整值;An adjustment value determining unit 421, configured to determine a first adjustment value close to the threshold and a second adjustment value far from the threshold;

阈值调整单元422,用于将所述接近阈值增加第一调整值,以及将所述远离阈值增加第二调整值。The threshold adjustment unit 422 is configured to increase the proximity threshold by a first adjustment value, and increase the distance threshold by a second adjustment value.

在上述技术方案的基础上,所述调整值确定单元421具体用于:On the basis of the above technical solution, the adjustment value determining unit 421 is specifically used for:

根据所述第二时间和所述第一时间之间的比值或者差值,确定所述接近阈值的第一调整值和所述远离阈值的第二调整值。According to a ratio or a difference between the second time and the first time, a first adjustment value close to the threshold and a second adjustment value far away from the threshold are determined.

在上述技术方案的基础上,所述第一调整值和第二调整值的取值范围是100~200。On the basis of the above technical solution, the value ranges of the first adjustment value and the second adjustment value are 100-200.

本发明实施例提供的移动终端屏幕状态的控制装置可执行本发明任意实施例提供的移动终端屏幕状态的控制方法,具备执行方法相应的功能模块和有益效果。The device for controlling the screen state of a mobile terminal provided in an embodiment of the present invention can execute the method for controlling the screen state of a mobile terminal provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

实施例五Embodiment five

本实施例提供了一种移动终端,该移动终端可以包括本发明实施例四提供的移动终端屏幕状态的控制装置。图5为本发明实施例五提供的一种移动终端的结构示意图,如图5所示,该移动终端包括:壳体(图中未示出)、存储器501、中央处理器(Central ProcessingUnit,CPU)502(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出),所述电路板安置在所述壳体围成的空间内部;所述处理器502和所述存储器501设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器501,用于存储可执行程序代码;所述处理器502通过读取所述存储器501中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:确定当前终端的异物干扰事件被触发;按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。This embodiment provides a mobile terminal, and the mobile terminal may include the device for controlling the screen state of the mobile terminal provided in Embodiment 4 of the present invention. FIG. 5 is a schematic structural diagram of a mobile terminal provided by Embodiment 5 of the present invention. As shown in FIG. ) 502 (also known as processor, hereinafter referred to as CPU), a circuit board (not shown in the figure) and a power circuit (not shown in the figure), the circuit board is placed inside the space surrounded by the housing; the The processor 502 and the memory 501 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the mobile terminal; the memory 501 is used to store executable program codes; The processor 502 executes the program corresponding to the executable program code by reading the executable program code stored in the memory 501, so as to perform: determine that the foreign object interference event of the current terminal is triggered; adjust according to the setting Adjusting the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a rule; controlling the screen state of the current terminal according to the adjusted proximity threshold and the adjusted distance threshold.

所述移动终端还包括:外设接口503、RF(Radio Frequency,射频)电路505、音频电路506、扬声器511、电源管理芯片508、输入/输出(I/O)子系统509、触摸屏512、其他输入/控制设备510以及外部端口504,移动终端的上述部件通过一个或多个通信总线或信号线507来通信。The mobile terminal also includes: peripheral interface 503, RF (Radio Frequency, radio frequency) circuit 505, audio circuit 506, speaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other Input/control device 510 and external port 504 , the aforementioned components of the mobile terminal communicate through one or more communication buses or signal lines 507 .

应该理解的是,图示移动终端500仅仅是移动终端的一个范例,并且移动终端500可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 500 is only an example of a mobile terminal, and the mobile terminal 500 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于控制移动终端屏幕状态的移动终端进行详细的描述,该移动终端以手机为例。The mobile terminal for controlling the screen state of the mobile terminal provided in this embodiment will be described in detail below, and the mobile terminal is a mobile phone as an example.

存储器501,所述存储器501可以被CPU502、外设接口503等访问,所述存储器501可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 501, the memory 501 can be accessed by the CPU 502, the peripheral interface 503, etc., the memory 501 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口503,所述外设接口503可以将设备的输入和输出外设连接到CPU502和存储器501。Peripheral interface 503 , which can connect the input and output peripherals of the device to CPU 502 and memory 501 .

I/O子系统509,所述I/O子系统509可以将设备上的输入输出外设,例如触摸屏512和其他输入/控制设备510,连接到外设接口503。I/O子系统509可以包括显示控制器5091和用于控制其他输入/控制设备510的一个或多个输入控制器5092。其中,一个或多个输入控制器5092从其他输入/控制设备510接收电信号或者向其他输入/控制设备510发送电信号,其他输入/控制设备510可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器5092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 509 , the I/O subsystem 509 can connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510 , to the peripheral interface 503 . I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510 . Among them, one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It should be noted that the input controller 5092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏512,所述触摸屏512是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 512, the touch screen 512 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like.

I/O子系统509中的显示控制器5091从触摸屏512接收电信号或者向触摸屏512发送电信号。触摸屏512检测触摸屏上的接触,显示控制器5091将检测到的接触转换为与显示在触摸屏512上的用户界面对象的交互,即实现人机交互,显示在触摸屏512上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or sends electrical signals to the touch screen 512 . The touch screen 512 detects the contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 512, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 512 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touchscreen.

RF电路505,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件、通话等。具体地,RF电路505接收并发送RF信号,RF信号也称为电磁信号,RF电路505将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路505可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, calls, etc. Specifically, the RF circuit 505 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 505 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.

音频电路506,主要用于从外设接口503接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器511。The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503 , convert the audio data into electrical signals, and send the electrical signals to the speaker 511 .

扬声器511,用于将手机通过RF电路505从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 511 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 505 into sound and play the sound to the user.

电源管理芯片508,用于为CPU502、I/O子系统及外设接口503所连接的硬件进行供电及电源管理。The power management chip 508 is used for power supply and power management for the hardware connected to the CPU 502 , the I/O subsystem and the peripheral interface 503 .

上述移动终端可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的移动终端屏幕状态的控制方法。The above-mentioned mobile terminal can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the method for controlling the screen state of a mobile terminal provided in any embodiment of the present invention.

上述仅为本发明的较佳实施例及所运用的技术原理。本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由权利要求的范围决定。The foregoing are only preferred embodiments of the present invention and the applied technical principles. The present invention is not limited to the specific embodiments described here, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the claims.

Claims (11)

1.一种移动终端屏幕状态的控制方法,其特征在于,包括:1. a control method of mobile terminal screen state, is characterized in that, comprises: 确定当前终端的异物干扰事件被触发;Determine that the foreign object interference event of the current terminal is triggered; 按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;Adjusting the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule; 根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。The screen state of the current terminal is controlled according to the adjusted proximity threshold and the adjusted distance threshold. 2.根据权利要求1所述的方法,其特征在于,所述确定当前终端的异物干扰事件被触发包括:2. The method according to claim 1, wherein the determining that the foreign object interference event of the current terminal is triggered comprises: 确定当前终端的接近传感器最大值获取事件被触发;Determine that the maximum value acquisition event of the proximity sensor of the current terminal is triggered; 获取接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间;Obtain the first time from the set value to the maximum value of the proximity sensor in the approaching state and the second time from the maximum value of the proximity sensor to the set value in the far away state; 若所述第二时间与所述第一时间的差值大于标准误差值,则确定当前终端的异物干扰事件被触发。If the difference between the second time and the first time is greater than a standard error value, it is determined that a foreign object interference event of the current terminal is triggered. 3.根据权利要求2所述的方法,其特征在于,所述按照设定调整规则调整接近传感器的接近阈值和远离阈值包括:3. The method according to claim 2, wherein said adjusting the proximity threshold and the distance threshold of the proximity sensor according to the set adjustment rule comprises: 确定所述接近阈值的第一调整值和所述远离阈值的第二调整值;determining a first adjustment value for the proximity threshold and a second adjustment value for the distance threshold; 将所述接近阈值增加第一调整值,以及将所述远离阈值增加第二调整值。The proximity threshold is increased by a first adjustment value, and the distance threshold is increased by a second adjustment value. 4.根据权利要求3所述的方法,其特征在于,所述确定所述接近阈值的第一调整值和所述远离阈值的第二调整值包括:4. The method according to claim 3, wherein said determining the first adjustment value close to the threshold and the second adjustment value far away from the threshold comprises: 根据所述第二时间和所述第一时间之间的比值或者差值,确定所述接近阈值的第一调整值和所述远离阈值的第二调整值。According to a ratio or a difference between the second time and the first time, a first adjustment value close to the threshold and a second adjustment value far away from the threshold are determined. 5.根据权利要求3或4所述的方法,其特征在于,所述第一调整值和第二调整值的取值范围是100~200。5. The method according to claim 3 or 4, characterized in that the value ranges of the first adjustment value and the second adjustment value are 100-200. 6.一种移动终端屏幕状态的控制装置,其特征在于,包括:6. A control device for a mobile terminal screen state, characterized in that it comprises: 异物干扰事件确定模块,用于确定当前终端的异物干扰事件被触发;A foreign object interference event determination module, configured to determine that the foreign object interference event of the current terminal is triggered; 阈值调整模块,用于按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;A threshold adjustment module, configured to adjust the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule; 屏幕状态控制模块,用于根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。A screen state control module, configured to control the screen state of the current terminal according to the adjusted proximity threshold and the adjusted distance threshold. 7.根据权利要求6所述的装置,其特征在于,所述异物干扰事件确定模块包括:7. The device according to claim 6, wherein the foreign object interference event determining module comprises: 最大值获取确定单元,用于确定当前终端的接近传感器最大值获取事件被触发;The maximum value acquisition determination unit is configured to determine that the maximum value acquisition event of the proximity sensor of the current terminal is triggered; 时间获取模块,用于获取接近状态下从设定值到接近传感器最大值的第一时间和远离状态下从接近传感器最大值到设定值的第二时间;The time acquisition module is used to obtain the first time from the set value to the maximum value of the proximity sensor in the approaching state and the second time from the maximum value of the proximity sensor to the set value in the far away state; 异物干扰事件确定单元,用于若所述第二时间与所述第一时间的差值大于标准误差值,则确定当前终端的异物干扰事件被触发。The foreign object interference event determining unit is configured to determine that the foreign object interference event of the current terminal is triggered if the difference between the second time and the first time is greater than a standard error value. 8.根据权利要求7所述的装置,其特征在于,所述阈值调整模块包括:8. The device according to claim 7, wherein the threshold adjustment module comprises: 调整值确定单元,用于确定所述接近阈值的第一调整值和所述远离阈值的第二调整值;an adjustment value determining unit, configured to determine a first adjustment value close to the threshold and a second adjustment value far from the threshold; 阈值调整单元,用于将所述接近阈值增加第一调整值,以及将所述远离阈值增加第二调整值。A threshold adjustment unit, configured to increase the proximity threshold by a first adjustment value, and increase the distance threshold by a second adjustment value. 9.根据权利要求8所述的装置,其特征在于,所述调整值确定单元具体用于:9. The device according to claim 8, wherein the adjustment value determining unit is specifically used for: 根据所述第二时间和所述第一时间之间的比值或者差值,确定所述接近阈值的第一调整值和所述远离阈值的第二调整值。According to a ratio or a difference between the second time and the first time, a first adjustment value close to the threshold and a second adjustment value far away from the threshold are determined. 10.根据权利要求8或9所述的装置,其特征在于,所述第一调整值和第二调整值的取值范围是100~200。10. The device according to claim 8 or 9, characterized in that the value range of the first adjustment value and the second adjustment value is 100-200. 11.一种移动终端,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路;11. A mobile terminal, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit; 所述电路板安置在所述壳体围成的空间内部;The circuit board is placed inside the space enclosed by the housing; 所述处理器和所述存储器设置在所述电路板上;The processor and the memory are arranged on the circuit board; 所述电源电路,用于为所述移动终端的各个电路或器件供电;The power supply circuit is used to supply power to each circuit or device of the mobile terminal; 所述存储器,用于存储可执行程序代码;The memory is used to store executable program codes; 所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:The processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute: 确定当前终端的异物干扰事件被触发;Determine that the foreign object interference event of the current terminal is triggered; 按照设定调整规则调整所述当前终端的接近传感器的接近阈值和远离阈值;Adjusting the proximity threshold and the distance threshold of the proximity sensor of the current terminal according to a set adjustment rule; 根据调整后的接近阈值和调整后的远离阈值控制所述当前终端的屏幕状态。The screen state of the current terminal is controlled according to the adjusted proximity threshold and the adjusted distance threshold.
CN201611028458.3A 2016-11-18 2016-11-18 Method, device and mobile terminal for controlling screen state of mobile terminal Expired - Fee Related CN106790978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611028458.3A CN106790978B (en) 2016-11-18 2016-11-18 Method, device and mobile terminal for controlling screen state of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611028458.3A CN106790978B (en) 2016-11-18 2016-11-18 Method, device and mobile terminal for controlling screen state of mobile terminal

Publications (2)

Publication Number Publication Date
CN106790978A true CN106790978A (en) 2017-05-31
CN106790978B CN106790978B (en) 2019-08-06

Family

ID=58971299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611028458.3A Expired - Fee Related CN106790978B (en) 2016-11-18 2016-11-18 Method, device and mobile terminal for controlling screen state of mobile terminal

Country Status (1)

Country Link
CN (1) CN106790978B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621990A (en) * 2017-09-25 2018-01-23 北京小米移动软件有限公司 Control method, device and the terminal of terminal push
CN107682101A (en) * 2017-09-25 2018-02-09 北京小米移动软件有限公司 Noise detecting method, device and electronic equipment
CN108924360A (en) * 2018-07-10 2018-11-30 Oppo广东移动通信有限公司 display method, storage medium, and electronic device
CN109862169A (en) * 2017-11-30 2019-06-07 北京小米移动软件有限公司 Electronic equipment control method and device
CN111625129A (en) * 2020-05-14 2020-09-04 维沃移动通信有限公司 Screen control method and device, electronic equipment and readable storage medium
US11115930B2 (en) 2019-02-26 2021-09-07 Asustek Computer Inc. Electronic device and controlling method thereof
CN113488002A (en) * 2021-06-25 2021-10-08 无锡闻泰信息技术有限公司 Abnormal screen brightness adjusting method and device, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and device for adjusting the perception threshold of an infrared proximity sensor
CN105939427A (en) * 2016-07-06 2016-09-14 广东欧珀移动通信有限公司 A control method, device and mobile terminal of an infrared proximity sensor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and device for adjusting the perception threshold of an infrared proximity sensor
CN105939427A (en) * 2016-07-06 2016-09-14 广东欧珀移动通信有限公司 A control method, device and mobile terminal of an infrared proximity sensor

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621990A (en) * 2017-09-25 2018-01-23 北京小米移动软件有限公司 Control method, device and the terminal of terminal push
CN107682101A (en) * 2017-09-25 2018-02-09 北京小米移动软件有限公司 Noise detecting method, device and electronic equipment
CN107682101B (en) * 2017-09-25 2021-09-21 北京小米移动软件有限公司 Noise detection method and device and electronic equipment
CN109862169A (en) * 2017-11-30 2019-06-07 北京小米移动软件有限公司 Electronic equipment control method and device
CN109862169B (en) * 2017-11-30 2022-03-01 北京小米移动软件有限公司 Electronic equipment control method, device and storage medium
CN108924360A (en) * 2018-07-10 2018-11-30 Oppo广东移动通信有限公司 display method, storage medium, and electronic device
CN108924360B (en) * 2018-07-10 2021-03-02 Oppo广东移动通信有限公司 Display method, storage medium and electronic device
US11115930B2 (en) 2019-02-26 2021-09-07 Asustek Computer Inc. Electronic device and controlling method thereof
CN111625129A (en) * 2020-05-14 2020-09-04 维沃移动通信有限公司 Screen control method and device, electronic equipment and readable storage medium
CN111625129B (en) * 2020-05-14 2022-09-27 维沃移动通信有限公司 Screen control method and device, electronic equipment and readable storage medium
CN113488002A (en) * 2021-06-25 2021-10-08 无锡闻泰信息技术有限公司 Abnormal screen brightness adjusting method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN106790978B (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN106790978B (en) Method, device and mobile terminal for controlling screen state of mobile terminal
CN106598335B (en) A kind of touch screen control method, device and mobile terminal of mobile terminal
CN106782431B (en) Screen backlight brightness adjusting method and device and mobile terminal
US10884550B2 (en) Method, mobile terminal and non-transitory computer-readable storage medium for response control of touch screen
CN106775087B (en) A touch screen control method, device and mobile terminal of a mobile terminal
CN106681637B (en) Touch screen display method and device and mobile terminal
US10466849B2 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
CN106775407A (en) Method and device for controlling touch screen of mobile terminal and mobile terminal
CN106225806B (en) Method, device and mobile terminal for calibrating magnetic sensor
CN106681555A (en) Touch screen control method and device of mobile terminal and mobile terminal
CN106710535B (en) Screen backlight adjusting method and device and mobile terminal
CN106681554A (en) Mobile terminal touch screen control method and device and mobile terminal
CN106502461B (en) Method, device and mobile terminal for restoring touch screen state before electrostatic reset
CN106060284A (en) Method, device and mobile terminal for backlight control
CN106506825A (en) Touch screen control method, device and mobile terminal
CN109343066B (en) Control method and device of proximity sensor, storage medium and mobile terminal
CN106850983A (en) Screen off control method, device and terminal
CN106547638B (en) Method and device for preventing abnormal approaching state and mobile terminal
CN106097984A (en) Method, device and mobile terminal for turning on proximity sensor during backlight adjustment
CN106768311B (en) A kind of environment light detection method, device and terminal
CN107566161A (en) Parameter configuration method and related products
CN106708332B (en) threshold setting method and device of proximity sensor and terminal
CN106791047B (en) Foreign matter detection method and device of mobile terminal and mobile terminal
CN106598521B (en) Screen state control method, device and mobile terminal of mobile terminal
CN106708410A (en) Method and device for preventing spurious triggering of touch keys and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190806

CF01 Termination of patent right due to non-payment of annual fee