[go: up one dir, main page]

CN107528958A - Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal - Google Patents

Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal Download PDF

Info

Publication number
CN107528958A
CN107528958A CN201710661266.4A CN201710661266A CN107528958A CN 107528958 A CN107528958 A CN 107528958A CN 201710661266 A CN201710661266 A CN 201710661266A CN 107528958 A CN107528958 A CN 107528958A
Authority
CN
China
Prior art keywords
threshold
mobile terminal
current
mode
output 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
CN201710661266.4A
Other languages
Chinese (zh)
Other versions
CN107528958B (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 CN201710661266.4A priority Critical patent/CN107528958B/en
Publication of CN107528958A publication Critical patent/CN107528958A/en
Application granted granted Critical
Publication of CN107528958B publication Critical patent/CN107528958B/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/24Arrangements for testing
    • 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)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

本发明涉及一种移动终端控制方法、装置、可读存储介质和移动终端。上述方法包括:若检测到接近传感器的输出值超出当前校准阈值的范围,根据所述输出值、所述当前校准阈值、第一阈值和第二阈值确定移动终端模式,所述第一阈值小于所述第二阈值;将所述当前校准阈值调整为所述移动终端模式对应的校准阈值。上述方法,通过将当前输出值与当前校准阈值、第一阈值和第二阈值比较,确定移动终端当前所处的移动终端模式,根据移动终端模式调整校准阈值。通过动态调整接近传感器的校准阈值,使得输出值不超量程,小量程器件不容易进入饱和状态,适用于小量程器件。

The invention relates to a mobile terminal control method, device, readable storage medium and mobile terminal. The above method includes: if it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, determining the mode of the mobile terminal according to the output value, the current calibration threshold, a first threshold and a second threshold, the first threshold is less than the specified the second threshold; and adjust the current calibration threshold to the calibration threshold corresponding to the mobile terminal mode. In the above method, by comparing the current output value with the current calibration threshold, the first threshold and the second threshold, the current mobile terminal mode of the mobile terminal is determined, and the calibration threshold is adjusted according to the mobile terminal mode. By dynamically adjusting the calibration threshold of the proximity sensor, the output value does not exceed the range, and the small-range device is not easy to enter the saturation state, which is suitable for small-range devices.

Description

移动终端控制方法、装置、可读存储介质和移动终端Mobile terminal control method, device, readable storage medium and mobile terminal

技术领域technical field

本发明涉及计算机技术领域,特别是涉及一种移动终端控制方法、装置、可读存储介质和移动终端。The present invention relates to the field of computer technology, in particular to a mobile terminal control method, device, readable storage medium and mobile terminal.

背景技术Background technique

随着智能移动终端的快速发展,智能移动终端成为集多种传感器于一体的装置。在智能移动终端中,采用接近传感器可判断用户是否接近智能移动终端屏幕。在用户接近智能移动终端屏幕,如用户接听电话脸靠近屏幕时,可关闭移动终端屏幕背光,以节省电量、防止用户误操作。通过多个接近传感器还可进行手势识别,使移动终端根据接收到的手势操作执行对应的指令。With the rapid development of smart mobile terminals, smart mobile terminals have become devices integrating multiple sensors. In the smart mobile terminal, a proximity sensor can be used to determine whether the user is close to the screen of the smart mobile terminal. When the user is close to the screen of the smart mobile terminal, such as when the user answers the phone and faces the screen close to the screen, the backlight of the mobile terminal screen can be turned off to save power and prevent user misoperation. Gesture recognition can also be performed through multiple proximity sensors, so that the mobile terminal can execute corresponding instructions according to the received gesture operations.

发明内容Contents of the invention

本发明实施例提供一种移动终端控制方法、装置、可读存储介质和移动终端,可以动态调整接近传感器的校准阈值。Embodiments of the present invention provide a mobile terminal control method, device, readable storage medium and mobile terminal, which can dynamically adjust the calibration threshold of a proximity sensor.

一种移动终端控制方法,包括:A method for controlling a mobile terminal, comprising:

若检测到接近传感器的输出值超出当前校准阈值的范围,根据所述输出值、所述当前校准阈值、第一阈值和第二阈值确定移动终端模式,所述第一阈值小于所述第二阈值;If it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, the mobile terminal mode is determined according to the output value, the current calibration threshold, the first threshold and the second threshold, and the first threshold is smaller than the second threshold ;

将所述当前校准阈值调整为所述移动终端模式对应的校准阈值。Adjusting the current calibration threshold to a calibration threshold corresponding to the mobile terminal mode.

一种移动终端控制装置,包括:A mobile terminal control device, comprising:

确定模块,用于若检测到接近传感器的输出值超出当前校准阈值的范围,根据所述输出值、所述当前校准阈值、第一阈值和第二阈值确定移动终端模式,所述第一阈值小于所述第二阈值;A determination module, configured to determine a mobile terminal mode according to the output value, the current calibration threshold, a first threshold, and a second threshold if it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, and the first threshold is less than said second threshold;

调整模块,将所述当前校准阈值调整为所述移动终端模式对应的校准阈值。An adjustment module, configured to adjust the current calibration threshold to the calibration threshold corresponding to the mobile terminal mode.

一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如上所述的移动终端控制方法。One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the mobile terminal control as described above method.

一种移动终端,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如上所述的移动终端控制方法。A mobile terminal includes a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the instructions are executed by the processor, the processor executes the mobile terminal control method as described above.

附图说明Description of drawings

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

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

图2为一个实施例中移动终端控制方法的流程图;Fig. 2 is a flowchart of a method for controlling a mobile terminal in an embodiment;

图3为一个实施例中移动终端模式示意图;Fig. 3 is a schematic diagram of a mobile terminal mode in an embodiment;

图4为另一个实施例中移动终端控制方法的流程图;FIG. 4 is a flowchart of a method for controlling a mobile terminal in another embodiment;

图5为另一个实施例中移动终端控制方法的流程图;FIG. 5 is a flowchart of a method for controlling a mobile terminal in another embodiment;

图6为另一个实施例中移动终端控制方法的流程图;FIG. 6 is a flowchart of a method for controlling a mobile terminal in another embodiment;

图7为另一个实施例中移动终端控制方法的流程图;FIG. 7 is a flowchart of a method for controlling a mobile terminal in another embodiment;

图8为另一个实施例中移动终端控制方法的流程图;FIG. 8 is a flowchart of a method for controlling a mobile terminal in another embodiment;

图9为一个实施例中移动终端控制装置的结构框图;Fig. 9 is a structural block diagram of a mobile terminal control device in an embodiment;

图10为一个实施例中移动终端控制装置的结构框图;Fig. 10 is a structural block diagram of a mobile terminal control device in an embodiment;

图11为一个实施例中移动终端控制装置的结构框图;Fig. 11 is a structural block diagram of a mobile terminal control device in an embodiment;

图12为与本发明实施例提供的移动终端相关的手机的部分结构的框图。Fig. 12 is a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present invention.

具体实施方式detailed description

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

可以理解,本发明所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本发明的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It can be understood that the terms "first", "second" and the like used in the present invention can be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first client could be termed a second client, and, similarly, a second client could be termed a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.

图1为一个实施例中移动终端10的内部结构示意图。如图1所示,该移动终端10包括通过系统总线连接的处理器、非易失性存储介质、内存储器、网络接口、显示屏和输入装置。其中,移动终端10的非易失性存储介质存储有操作系统和计算机可读指令。该计算机可读指令被处理器执行时以实现一种移动终端控制方法。该处理器用于提供计算和控制能力,支撑整个移动终端10的运行。移动终端10中的内存储器为非易失性存储介质中的计算机可读指令的运行提供环境。网络接口用于与服务器进行网络通信。移动终端10的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是移动终端10外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该移动终端10可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的移动终端10的限定,具体的移动终端10可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。FIG. 1 is a schematic diagram of the internal structure of a mobile terminal 10 in an embodiment. As shown in FIG. 1 , the mobile terminal 10 includes a processor connected through a system bus, a non-volatile storage medium, an internal memory, a network interface, a display screen and an input device. Wherein, the non-volatile storage medium of the mobile terminal 10 stores an operating system and computer-readable instructions. When the computer-readable instructions are executed by the processor, a mobile terminal control method is implemented. The processor is used to provide computing and control capabilities to support the operation of the entire mobile terminal 10 . The internal memory in the mobile terminal 10 provides an environment for the execution of computer readable instructions stored in the non-volatile storage medium. The network interface is used for network communication with the server. The display screen of the mobile terminal 10 may be a liquid crystal display screen or an electronic ink display screen, etc., and the input device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the mobile terminal 10, or It can be an external keyboard, touchpad or mouse. The mobile terminal 10 may be a mobile phone, a tablet computer, a personal digital assistant, or a wearable device. Those skilled in the art can understand that the structure shown in FIG. 1 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the mobile terminal 10 to which the solution of this application is applied. The specific mobile terminal 10 may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

图2为一个实施例中移动终端控制方法的流程图。如图2所示,一种移动终端控制方法,包括步骤202至步骤204。其中:Fig. 2 is a flowchart of a method for controlling a mobile terminal in an embodiment. As shown in FIG. 2 , a mobile terminal control method includes step 202 to step 204 . in:

步骤202,若检测到接近传感器的输出值超出当前校准阈值的范围,根据输出值、当前校准阈值、第一阈值和第二阈值确定移动终端模式,第一阈值小于第二阈值。Step 202, if it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, determine the mobile terminal mode according to the output value, the current calibration threshold, the first threshold and the second threshold, the first threshold being smaller than the second threshold.

在移动终端上设置有接近传感器,上述接近传感器中内置有红外发生管和红外接收管,上述红外发生管用户发射红外线,上述红外接收管用于接收被反射回的红外线。当用户接近移动终端,如用户手部或脸部接近移动终端屏幕时,红外发生管发射的红外线被用户手部或脸部阻挡而反射,部分反射红外线可被上述红外接收管接收。其中,用户与移动终端之间距离越近,用户反射的红外线越多,红外接收管所接收到的红外线越多,即接收到红外线强度越大,接近传感器输出值越大。移动终端可根据接近传感器输出值的大小判断用户与移动终端的远近,上述输出值越大,代表用户距离移动终端越近;上述输出值越小,代表用户距离移动终端越远。移动终端中接近传感器对应的有校准阈值,上述校准阈值中包括接近阈值和远离阈值,上述接近阈值大于上述远离阈值。当输出值大于接近阈值时,判定移动终端处于接近状态;当输出值小于远离阈值时,判定移动终端处于远离状态。当移动终端处于接近状态时,移动终端可控制显示屏熄屏;当移动终端处于远离状态时,移动终端可控制显示屏亮屏。A proximity sensor is provided on the mobile terminal. The proximity sensor is built with an infrared generating tube and an infrared receiving tube. The infrared generating tube emits infrared rays, and the infrared receiving tube is used to receive reflected infrared rays. When the user approaches the mobile terminal, such as when the user's hand or face approaches the mobile terminal screen, the infrared rays emitted by the infrared generating tube are blocked by the user's hand or face and reflected, and part of the reflected infrared rays can be received by the above-mentioned infrared receiving tube. Wherein, the closer the distance between the user and the mobile terminal, the more infrared rays reflected by the user, and the more infrared rays received by the infrared receiving tube, that is, the greater the intensity of the received infrared rays, the greater the output value of the proximity sensor. The mobile terminal can judge the distance between the user and the mobile terminal according to the output value of the proximity sensor. The larger the output value, the closer the user is to the mobile terminal; the smaller the output value, the farther the user is from the mobile terminal. The proximity sensor in the mobile terminal corresponds to a calibration threshold, the calibration threshold includes a proximity threshold and a distance threshold, and the proximity threshold is greater than the distance threshold. When the output value is greater than the proximity threshold, it is determined that the mobile terminal is in the proximity state; when the output value is smaller than the distance threshold, it is determined that the mobile terminal is in the far state. When the mobile terminal is in the close state, the mobile terminal can control the display screen to turn off; when the mobile terminal is in the far away state, the mobile terminal can control the display screen to turn on the screen.

当接近传感器的输出值大于当前校准阈值中接近阈值,或输出值小于当前校准阈值中远离阈值时,判定接近传感器的输出值超出当前校准阈值的范围。获取上述输出值、当前校准阈值中接近阈值和远离阈值、预设的第一阈值和预设的第二阈值。其中,第一阈值小于第二阈值。根据上述输出值与当前校准阈值的大小关系、输出值与第一阈值的大小关系、输出值与第二阈值的大小关系可确定移动终端模式。上述移动终端模式包括:标准模式、油污模式、第一过渡模式和第二过渡模式。标准模式是指用户完全远离移动终端时移动终端所处的模式,当接近传感器的输出值小于第一阈值时,判定用户距离移动终端较远,移动终端处于标准模式。油污模式是指用户距离移动终端非常近时(如用户在耳边接听电话)移动终端所处的模式,当接近传感器的输出值大于第二阈值时,判定用户距离移动终端非常近,移动终端处于油污模式。第一过渡模式是移动终端从退出油污模式到进入标准模式之间的过渡模式,当移动终端检测到接近传感器的输出值由大于第二阈值减小到小于第二阈值时,判定移动终端处于第一过渡模式,当移动终端处于第一过渡模式时接近传感器的输出值大于第一阈值且小于第二阈值。第二过渡模式是移动终端由退出标准模式到进入油污模式之间的过渡模式,当移动终端检测到接近传感器的输出值由小于第一阈值增大到大于第一阈值时,判定移动终端处于第二过渡模式,当移动终端处于第二过渡模式时接近传感器的输出值大于第一阈值且小于第二阈值。第一阈值为标准模式对应的接近阈值,第二阈值为第二过渡模式对应的接近阈值,优选的,第一阈值可为80,第二阈值可为250。其中,第一过渡模式的远离阈值小于标准模式的接近阈值,第一过渡模式的接近阈值大于油污模式的远离阈值。第二过渡模式的远离阈值小于标准模式的接近阈值,第二过渡模式的接近阈值大于油污模式的远离阈值。When the output value of the proximity sensor is greater than the close threshold in the current calibration threshold, or the output value is smaller than the far threshold in the current calibration threshold, it is determined that the output value of the proximity sensor exceeds the range of the current calibration threshold. The above output value, the approaching threshold and the faring threshold among the current calibration thresholds, a preset first threshold and a preset second threshold are obtained. Wherein, the first threshold is smaller than the second threshold. The mobile terminal mode can be determined according to the magnitude relationship between the output value and the current calibration threshold, the magnitude relationship between the output value and the first threshold, and the magnitude relationship between the output value and the second threshold. The aforementioned modes of the mobile terminal include: a standard mode, an oil pollution mode, a first transitional mode and a second transitional mode. The standard mode refers to the mode that the mobile terminal is in when the user is completely away from the mobile terminal. When the output value of the proximity sensor is less than the first threshold, it is determined that the user is far away from the mobile terminal, and the mobile terminal is in the standard mode. The greasy mode refers to the mode that the mobile terminal is in when the user is very close to the mobile terminal (such as the user is answering the phone by the ear). When the output value of the proximity sensor is greater than the second threshold, it is determined that the user is very close to the mobile terminal, and the mobile terminal is in Grease pattern. The first transition mode is the transition mode between the mobile terminal exiting the oil pollution mode and entering the standard mode. When the mobile terminal detects that the output value of the proximity sensor decreases from greater than the second threshold to less than the second threshold, it is determined that the mobile terminal is in the first transition mode. A transition mode, when the mobile terminal is in the first transition mode, the output value of the proximity sensor is greater than the first threshold and less than the second threshold. The second transition mode is the transition mode between the mobile terminal exiting the standard mode and entering the oil pollution mode. When the mobile terminal detects that the output value of the proximity sensor increases from less than the first threshold to greater than the first threshold, it is determined that the mobile terminal is in the first threshold. In the second transition mode, when the mobile terminal is in the second transition mode, the output value of the proximity sensor is greater than the first threshold and less than the second threshold. The first threshold is an approach threshold corresponding to the standard mode, and the second threshold is an approach threshold corresponding to the second transition mode. Preferably, the first threshold may be 80, and the second threshold may be 250. Wherein, the away threshold of the first transitional mode is smaller than the approaching threshold of the standard mode, and the approaching threshold of the first transitional mode is greater than the away threshold of the oil pollution mode. The away threshold of the second transition mode is smaller than the approach threshold of the standard mode, and the approach threshold of the second transition mode is greater than the away threshold of the oil pollution mode.

如图3所示,当移动终端由油污模式退出进入标准模式前移动终端会进入第一过渡模式;例如,用户在耳边接听电话时移动终端处于油污模式,当用户接听完电话后将手机放远时,移动终端先进入第一过渡模式再进入标准模式。当移动终端由标准模式退出进入油污模式前移动终端会进入第二过渡模式;例如,用户将手机从桌子上拿起放到耳边接听电话的过程,移动终端由标准模式进入第二过渡模式再进入油污模式。As shown in Figure 3, when the mobile terminal exits from the greasy mode and enters the standard mode, the mobile terminal will enter the first transitional mode; When remote, the mobile terminal first enters the first transition mode and then enters the standard mode. When the mobile terminal exits from the standard mode and enters the oil pollution mode, the mobile terminal will enter the second transition mode; for example, when the user picks up the mobile phone from the table and puts it to the ear to answer the call, the mobile terminal enters the second transition mode from the standard mode and then enters the second transition mode. Enter Grease Mode.

步骤204,将当前校准阈值调整为移动终端模式对应的校准阈值。Step 204, adjusting the current calibration threshold to the calibration threshold corresponding to the mobile terminal model.

移动终端中预存有移动终端模式对应的校准阈值。根据接近传感器的输出值可判定移动终端当前对应的移动终端模式。在获取移动终端当前对应的移动终端模式后,可将当前校准阈值调整为移动终端模式对应的校准阈值。具体地,将当前接近阈值调整为移动终端模式对应的接近阈值,将当前远离阈值调整为移动终端模式对应的远离阈值。The calibration threshold corresponding to the mobile terminal mode is pre-stored in the mobile terminal. The current mobile terminal mode corresponding to the mobile terminal can be determined according to the output value of the proximity sensor. After acquiring the current mobile terminal mode corresponding to the mobile terminal, the current calibration threshold may be adjusted to the calibration threshold corresponding to the mobile terminal mode. Specifically, the current proximity threshold is adjusted to the proximity threshold corresponding to the mobile terminal mode, and the current distance threshold is adjusted to the distance threshold corresponding to the mobile terminal mode.

传统技术中,在获取到接近传感器的输出值后,以当前输出值为基准添加预设值作为接近阈值,以当前输出值为基准减去预设值作为远离阈值。当输出值大于接近阈值时,判定移动终端为接近状态;当输出值小于远离阈值时,判定移动终端为远离状态。现有算法基于当前输出值,在移动终端接近传感器为小量程器件时,容易造成输出值超量程。In the traditional technology, after the output value of the proximity sensor is obtained, a preset value is added based on the current output value as the approach threshold, and the preset value is subtracted from the current output value as the reference value as the far threshold. When the output value is greater than the proximity threshold, it is determined that the mobile terminal is in the proximity state; when the output value is smaller than the distance threshold, it is determined that the mobile terminal is in the far state. The existing algorithm is based on the current output value, and when the proximity sensor of the mobile terminal is a small-range device, it is easy to cause the output value to exceed the range.

本发明实施例中移动终端控制方法,通过将当前输出值与当前校准阈值、第一阈值和第二阈值比较,确定移动终端当前所处的移动终端模式,根据移动终端模式调整校准阈值。通过动态调整接近传感器的校准阈值,使得输出值不超量程,小量程器件不容易进入饱和状态,适用于小量程器件。其中,移动终端模式中油污模式提高了移动终端的检测精度,第一过渡模式可避免从油污模式退出时,超出校准能力导致的闪屏,也避免了传统方法中在远离状态时,将输出值基准导致基准值过低而影响校准性能。The mobile terminal control method in the embodiment of the present invention determines the current mobile terminal mode of the mobile terminal by comparing the current output value with the current calibration threshold, the first threshold and the second threshold, and adjusts the calibration threshold according to the mobile terminal mode. By dynamically adjusting the calibration threshold of the proximity sensor, the output value does not exceed the range, and the small-range device is not easy to enter the saturation state, which is suitable for small-range devices. Among them, the oil pollution mode in the mobile terminal mode improves the detection accuracy of the mobile terminal. The first transition mode can avoid the flicker screen caused by exceeding the calibration capability when exiting from the oil pollution mode, and also avoids the output value when the traditional method is far away from the state. Baseline results in low baseline values affecting calibration performance.

在一个实施例中,移动终端模式可包括:油污模式、标准模式和过渡模式。其中,油污模式与步骤202中油污模式相同,标准模式与步骤202中标准模式相同,在此不再赘述。过渡模式是指移动终端由退出油污模式到进入标准模式或移动终端由退出标准模式到进入油污模式之间的过渡模式。当移动终端检测到接近传感器的输出值由大于第二阈值减小到小于第二阈值时,或当移动终端检测到接近传感器的输出值由小于第一阈值增大到大于第一阈值时,移动终端杆进入过渡模式。当移动终端处于过渡模式时接近传感器的输出值大于第一阈值且小于第二阈值。In one embodiment, the modes of the mobile terminal may include: oily mode, standard mode and transition mode. Wherein, the oil pollution mode is the same as the oil pollution mode in step 202, and the standard mode is the same as the standard mode in step 202, which will not be repeated here. The transition mode refers to a transition mode between when the mobile terminal exits the oil pollution mode and enters the standard mode, or when the mobile terminal exits the standard mode and enters the oil pollution mode. When the mobile terminal detects that the output value of the proximity sensor decreases from greater than the second threshold to less than the second threshold, or when the mobile terminal detects that the output value of the proximity sensor increases from less than the first threshold to greater than the first threshold, the mobile Terminal stick enters transition mode. When the mobile terminal is in the transition mode, the output value of the proximity sensor is greater than the first threshold and less than the second threshold.

在一个实施例中,在步骤202若检测到接近传感器的输出值超出当前校准阈值的范围之前,上述移动终端控制方法还包括:将当前校准阈值调整为标准模式对应的校准阈值。In one embodiment, before step 202, if it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, the mobile terminal control method further includes: adjusting the current calibration threshold to the calibration threshold corresponding to the standard mode.

在首次获取接近传感器输出值之前,可将移动终端模式设置为标准模式,将当前校准阈值调整为标准模式对应的校准阈值,包括:将当前接近阈值调整为标准模式对应的接近阈值,将当前远离阈值调整为标准模式对应的远离阈值。例如,将当前接近阈值调整为80,将当前远离阈值调整为1。Before obtaining the output value of the proximity sensor for the first time, the mobile terminal mode can be set to the standard mode, and the current calibration threshold can be adjusted to the calibration threshold corresponding to the standard mode, including: adjusting the current proximity threshold to the proximity threshold corresponding to the standard mode, and the current distance The threshold is adjusted to the farthest threshold corresponding to the standard mode. For example, adjust the current approach threshold to 80, and adjust the current far threshold to 1.

本发明实施例中移动终端控制方法,在首次获取接近传感器输出值前,将移动终端模式默认为标准模式,将校准阈值调整为标准模式对应的校准阈值,可以保证较小的校准阈值,能够对移动终端模式进行实时校准。In the mobile terminal control method in the embodiment of the present invention, before acquiring the output value of the proximity sensor for the first time, the mobile terminal mode is defaulted to the standard mode, and the calibration threshold is adjusted to the calibration threshold corresponding to the standard mode, which can ensure a smaller calibration threshold and can control the mobile terminal. Terminal mode for real-time calibration.

在一个实施例中,上述移动终端控制方法还包括步骤402至步骤404。其中:In one embodiment, the above mobile terminal control method further includes step 402 to step 404 . in:

步骤402,若检测到输出值首次超出当前校准阈值范围,根据输出值、第一阈值和第二阈值确定移动终端模式。Step 402, if it is detected that the output value exceeds the current calibration threshold range for the first time, determine the mobile terminal mode according to the output value, the first threshold and the second threshold.

在移动终端首次获取接近传感器输出值之前,可将移动终端模式设置为标准模式,即用户完全远离移动终端时移动终端所处的模式。若接近传感器输出值首次超出标准模式的校准阈值范围,即首次中断后获取当前输出值、第一阈值和第二阈值。若当前输出值大于第一阈值且小于第二阈值,则移动终端模式为第一过渡模式,例如,若80<输出值<250,则移动终端模式为第一过渡模式。若当前输出值大于第二阈值,则移动终端模式为油污模式,例如,若输出值>250,则移动终端模式为油污模式。Before the mobile terminal obtains the output value of the proximity sensor for the first time, the mode of the mobile terminal can be set to the standard mode, that is, the mode that the mobile terminal is in when the user is completely away from the mobile terminal. If the output value of the proximity sensor exceeds the calibration threshold range of the standard mode for the first time, the current output value, the first threshold and the second threshold are acquired after the first interruption. If the current output value is greater than the first threshold and smaller than the second threshold, the mobile terminal mode is the first transition mode, for example, if 80<output value<250, the mobile terminal mode is the first transition mode. If the current output value is greater than the second threshold, the mobile terminal mode is the oil pollution mode, for example, if the output value>250, the mobile terminal mode is the oil pollution mode.

步骤404,将当前校准阈值调整为移动终端模式对应的校准阈值。Step 404, adjusting the current calibration threshold to the calibration threshold corresponding to the mobile terminal mode.

在获取移动终端当前对应的移动终端模式后,可将当前校准阈值调整为移动终端模式对应的校准阈值。具体地,将当前接近阈值调整为移动终端模式对应的接近阈值,将当前远离阈值调整为移动终端模式对应的远离阈值。After acquiring the current mobile terminal mode corresponding to the mobile terminal, the current calibration threshold may be adjusted to the calibration threshold corresponding to the mobile terminal mode. Specifically, the current proximity threshold is adjusted to the proximity threshold corresponding to the mobile terminal mode, and the current distance threshold is adjusted to the distance threshold corresponding to the mobile terminal mode.

本发明实施例中移动终端控制方法,在输出值首次超出校准阈值范围后,确定输出值对应的移动终端模式,并将当前校准阈值调整为移动终端模式对应的校准阈值,能够动态调整移动终端模式对应的校准阈值。In the mobile terminal control method in the embodiment of the present invention, after the output value exceeds the calibration threshold range for the first time, the mobile terminal mode corresponding to the output value is determined, and the current calibration threshold is adjusted to the calibration threshold corresponding to the mobile terminal mode, which can dynamically adjust the corresponding mobile terminal mode. Calibration threshold.

在一个实施例中,当前校准阈值包括当前远离阈值;上述移动终端控制方法还包括步骤502至步骤504。其中:In one embodiment, the current calibration threshold includes the current distance threshold; the above mobile terminal control method further includes steps 502 to 504 . in:

步骤502,在移动终端处于接近状态时,若检测到输出值小于当前远离阈值,检测当前远离阈值是否大于第一阈值。Step 502, when the mobile terminal is in the approach state, if it is detected that the output value is smaller than the current distance threshold, detect whether the current distance threshold is greater than the first threshold.

步骤504,若是,将当前校准阈值调整为第一过渡模式对应的校准阈值。Step 504, if yes, adjust the current calibration threshold to the calibration threshold corresponding to the first transition mode.

移动终端处于接近状态是指接近传感器输出值大于当前接近阈值时状态,当移动终端处于接近状态时,移动终端会控制移动终端显示屏熄屏。在移动终端处于接近状态时,若检测到接近传感器的当前输出值小于当前远离阈值,将移动终端由接近状态修改为远离状态。例如,用户在耳边接听电话时,移动终端处于接近状态,移动终端熄屏。当用户接听电话后放下移动终端的过程,移动终端与用户距离逐渐增加,接近传感器的当前输出值小于当前远离阈值时,将移动终端状态修改为远离状态,检测当前远离阈值是否大于第一阈值。若当前远离阈值大于第一阈值,即当前移动终端模式为油污模式且移动终端处于远离状态,将移动终端模式调整为第一过渡模式。例如,油污模式校准阈值为【150,255】,150为油污模式远离阈值,255为油污模式接近阈值;第一过渡模式校准阈值为【70,160】;标准模式校准阈值为【1,80】;第一阈值为80。若检测到出输出值为66,当前远离阈值为150>80,则判定移动终端正在远离用户,即移动终端由油污模式退出,将移动终端由油污模式切换到第一过渡模式,将当前校准阈值调整为第一过渡模式对应的校准阈值。若当前远离阈值不大于第一阈值,即移动终端由第一过渡模式切换到标准模式,将当前校准阈值调整为标准模式对应的校准阈值。The mobile terminal is in the approaching state refers to the state when the output value of the proximity sensor is greater than the current approaching threshold. When the mobile terminal is in the approaching state, the mobile terminal will control the display screen of the mobile terminal to turn off. When the mobile terminal is in the close state, if it is detected that the current output value of the proximity sensor is less than the current distance threshold, the mobile terminal is changed from the close state to the far away state. For example, when the user is answering a call by the ear, the mobile terminal is in a close state, and the screen of the mobile terminal is turned off. When the user puts down the mobile terminal after answering the call, the distance between the mobile terminal and the user gradually increases, and when the current output value of the proximity sensor is less than the current distance threshold, modify the state of the mobile terminal to the distance state, and detect whether the current distance threshold is greater than the first threshold. If the current away threshold is greater than the first threshold, that is, the current mobile terminal mode is the oil pollution mode and the mobile terminal is in the far away state, adjust the mobile terminal mode to the first transition mode. For example, the oil pollution mode calibration threshold is [150, 255], 150 is the oil pollution mode away from the threshold, 255 is the oil pollution mode close threshold; the first transition mode calibration threshold is [70, 160]; the standard mode calibration threshold is [1, 80] ; The first threshold is 80. If it is detected that the output value is 66 and the current distance threshold is 150>80, it is determined that the mobile terminal is moving away from the user, that is, the mobile terminal is exiting from the oil pollution mode, and the mobile terminal is switched from the oil pollution mode to the first transition mode, and the current calibration threshold Adjust to the calibration threshold corresponding to the first transition mode. If the current distance threshold is not greater than the first threshold, that is, the mobile terminal switches from the first transition mode to the standard mode, the current calibration threshold is adjusted to the calibration threshold corresponding to the standard mode.

在一个实施例中,上述移动终端控制方法还包括:在移动终端处于接近状态时,若检测到输出值大于第二阈值,将当前校准阈值调整为油污模式对应的校准阈值。In one embodiment, the mobile terminal control method further includes: when the mobile terminal is in an approaching state, if it is detected that the output value is greater than the second threshold, adjusting the current calibration threshold to the calibration threshold corresponding to the oil pollution mode.

移动终端处于接近状态即移动终端当前输出值大于当前接近阈值。当移动终端处于接近状态时,若检测到输出值大于第二阈值,即判定移动终端由于第二过渡模式进入油污模式,将移动终端模式切换到油污模式,并将当前校准阈值调整为油污模式对应的校准阈值。例如,油污模式校准阈值为【150,255】,150为油污模式远离阈值,255为油污模式接近阈值;第二过渡模式校准阈值为【510,250】;第二阈值为250。若检测到移动终端处于接近状态,且输出值大于250,判定移动终端处于油污模式。The mobile terminal is in the proximity state, that is, the current output value of the mobile terminal is greater than the current proximity threshold. When the mobile terminal is in the close state, if the detected output value is greater than the second threshold, it is determined that the mobile terminal has entered the oil pollution mode due to the second transition mode, and the mobile terminal mode is switched to the oil pollution mode, and the current calibration threshold is adjusted to correspond to the oil pollution mode. Calibration threshold. For example, the oil pollution mode calibration threshold is [150, 255], 150 is the oil pollution mode away from the threshold, 255 is the oil pollution mode close threshold; the second transition mode calibration threshold is [510, 250]; the second threshold is 250. If it is detected that the mobile terminal is in an approaching state and the output value is greater than 250, it is determined that the mobile terminal is in the oil pollution mode.

在一个实施例中,当前校准阈值包括当前接近阈值;上述移动终端控制方法还包括步骤602至步骤604。其中:In one embodiment, the current calibration threshold includes the current proximity threshold; the above mobile terminal control method further includes steps 602 to 604 . in:

步骤602,在移动终端处于远离状态时,若检测到输出值大于当前接近阈值,检测当前接近阈值是否大于第一阈值。Step 602, when the mobile terminal is in the far away state, if it is detected that the output value is greater than the current proximity threshold, detect whether the current proximity threshold is greater than the first threshold.

步骤604,若否,将当前校准阈值调整为第二过渡模式对应的校准阈值。Step 604, if not, adjust the current calibration threshold to the calibration threshold corresponding to the second transition mode.

移动终端处于远离状态是指接近传感器输出值小于当前远离阈值时状态。当移动终端处于远离状态时,移动终端会控制移动终端显示屏亮屏。在移动终端处于远离状态时,若检测到接近传感器输出值大于当前接近阈值,将移动终端由远离状态修改为接近状态。若接近阈值不大于第一阈值,即当前移动终端模式为标准模式且移动终端处于接近状态,将移动终端模式调整为第二过渡模式。例如,标准模式校准阈值【1,80】;第二过渡模式校准阈值【150,255】。移动终端当前输出值为90,大于当前接近阈值80,且当前接近阈值80等于第一阈值80,即当前移动终端模式为标准模式且移动终端处于接近状态,则将移动终端模式切换为第二过渡模式,将当前校准阈值调整为第二过渡模式对应的校准阈值,即调整当前接近阈值为255,调整当前远离阈值为150。The mobile terminal being in the far away state refers to the state when the output value of the proximity sensor is less than the current far away threshold. When the mobile terminal is in the far away state, the mobile terminal controls the display screen of the mobile terminal to turn on the screen. When the mobile terminal is in the far away state, if it is detected that the output value of the proximity sensor is greater than the current proximity threshold, the mobile terminal is changed from the far away state to the close state. If the proximity threshold is not greater than the first threshold, that is, the current mobile terminal mode is the standard mode and the mobile terminal is in the proximity state, adjust the mobile terminal mode to the second transition mode. For example, the standard mode calibrates the threshold [1, 80]; the second transition mode calibrates the threshold [150, 255]. The current output value of the mobile terminal is 90, which is greater than the current proximity threshold 80, and the current proximity threshold 80 is equal to the first threshold 80, that is, the current mobile terminal mode is the standard mode and the mobile terminal is in the proximity state, then the mobile terminal mode is switched to the second transition mode, adjust the current calibration threshold to the calibration threshold corresponding to the second transition mode, that is, adjust the current close threshold to 255, and adjust the current far threshold to 150.

图7为另一个实施例中移动终端控制方法的流程图。如图7所示,一种移动终端控制方法,包括步骤702至步骤716。Fig. 7 is a flowchart of a mobile terminal control method in another embodiment. As shown in FIG. 7 , a mobile terminal control method includes step 702 to step 716 .

步骤702,将当前校准阈值调整为标准模式对应的校准阈值。Step 702, adjusting the current calibration threshold to the calibration threshold corresponding to the standard mode.

步骤704,若检测到输出值首次超出当前校准阈值范围,根据输出值、第一阈值和第二阈值确定移动终端模式。Step 704, if it is detected that the output value exceeds the current calibration threshold range for the first time, determine the mobile terminal mode according to the output value, the first threshold and the second threshold.

步骤706,将当前校准阈值调整为移动终端模式对应的校准阈值。Step 706, adjusting the current calibration threshold to the calibration threshold corresponding to the mobile terminal mode.

步骤708,若检测到输出值不是首次超出当前校准阈值范围,在移动终端处于接近状态时,若检测到输出值小于当前远离阈值,检测当前远离阈值是否大于第一阈值。Step 708, if it is detected that the output value is not outside the current calibration threshold range for the first time, when the mobile terminal is in the close state, if it is detected that the output value is smaller than the current distance threshold, check whether the current distance threshold is greater than the first threshold.

步骤710,若是,将当前校准阈值调整为第一过渡模式对应的校准阈值。Step 710, if yes, adjust the current calibration threshold to the calibration threshold corresponding to the first transition mode.

步骤712,若检测到输出值不是首次超出当前校准阈值范围,在移动终端处于接近状态时,若检测到输出值大于第二阈值,将当前校准阈值调整为油污模式对应的校准阈值。Step 712, if it is detected that the output value is not beyond the current calibration threshold range for the first time, when the mobile terminal is in the approach state, if it is detected that the output value is greater than the second threshold, adjust the current calibration threshold to the calibration threshold corresponding to the oil pollution mode.

步骤714,在移动终端处于远离状态时,若检测到输出值大于当前接近阈值,检测当前接近阈值是否大于第一阈值。Step 714, when the mobile terminal is in the far away state, if it is detected that the output value is greater than the current proximity threshold, detect whether the current proximity threshold is greater than the first threshold.

步骤716,若否,将当前校准阈值调整为第二过渡模式对应的校准阈值。Step 716, if not, adjust the current calibration threshold to the calibration threshold corresponding to the second transition mode.

图8为另一个实施例中移动终端控制方法的流程图,如图8所示,一种移动终端控制方法,包括步骤802至步骤834。其中,标准模式对应校准阈值为【1,80】,1为远离阈值,80为接近阈值。第一过渡模式对应校准阈值为【70,160】,第二过渡模式对应校准阈值为【50,250】,油污模式对应校准阈值为【150,255】,第一阈值为80,第二阈值为250。High值为校准阈值中接近阈值,Low值为校准阈值中远离阈值。FIG. 8 is a flowchart of a method for controlling a mobile terminal in another embodiment. As shown in FIG. 8 , a method for controlling a mobile terminal includes steps 802 to 834 . Among them, the calibration threshold corresponding to the standard mode is [1, 80], 1 is far from the threshold, and 80 is close to the threshold. The first transition mode corresponds to a calibration threshold of [70, 160], the second transition mode corresponds to a calibration threshold of [50, 250], the oil pollution mode corresponds to a calibration threshold of [150, 255], the first threshold is 80, and the second threshold is 250. The High value is close to the threshold in the calibration threshold, and the Low value is far from the threshold in the calibration threshold.

步骤802,判断移动终端是否第一次触发中断。上述触发中断是指接近传感器输出值超出当前校准阈值范围,包括输出值大于当前接近阈值或输出值小于当前远离阈值。若移动终端第一次触发中断,进入步骤804;若移动终端不是第一次触发中断,进入步骤814。Step 802, judging whether the mobile terminal triggers an interruption for the first time. The above-mentioned trigger interruption means that the output value of the proximity sensor exceeds the range of the current calibration threshold, including that the output value is greater than the current approach threshold or the output value is smaller than the current distance threshold. If the mobile terminal triggers the interruption for the first time, go to step 804; if it is not the first time the mobile terminal triggers the interruption, go to step 814.

步骤804,检测接近传感器输出值是否大于第一阈值80。若是,表示移动终端不处于标准模式,进入步骤806;若否,表示移动终端处于标准模式,进入步骤808。Step 804 , detecting whether the output value of the proximity sensor is greater than the first threshold 80 . If yes, it means that the mobile terminal is not in the standard mode, and go to step 806; if not, it means that the mobile terminal is in the standard mode, and go to step 808.

步骤806,检测接近传感器输出值是否小于第二阈值250。若是,表示移动终端处于第二过渡模式,进入步骤810。若否,标识移动终端处于油污模式,进入步骤812。Step 806 , detecting whether the output value of the proximity sensor is smaller than the second threshold 250 . If yes, it means that the mobile terminal is in the second transition mode, and go to step 810 . If not, indicate that the mobile terminal is in the oil pollution mode, and go to step 812 .

步骤808,将接近阈值调整为80,远离阈值调整为1。Step 808, adjust the proximity threshold to 80, and the distance threshold to 1.

步骤810,将接近阈值调整为250,远离阈值调整为50。Step 810, adjust the proximity threshold to 250, and the distance threshold to 50.

步骤812,将接近阈值调整为255,远离阈值调整为150。Step 812 , adjust the approach threshold to 255, and adjust the far threshold to 150.

步骤814,检测移动终端是否处于接近状态。移动终端处于接近状态是指接近传感器输出值大于当前接近阈值。若是,进入步骤816,若否,移动终端处于远离状态,进入步骤826。Step 814, detecting whether the mobile terminal is in an approaching state. The mobile terminal being in the proximity state means that the output value of the proximity sensor is greater than the current proximity threshold. If yes, go to step 816; if not, the mobile terminal is in the far away state, go to step 826.

步骤816,检测接近传感器输出值是否小于当前校准阈值中远离阈值。若是,将移动终端状态修改为远离状态,进入步骤818。若否,进入步骤824。Step 816, detecting whether the output value of the proximity sensor is smaller than the distance threshold in the current calibration threshold. If yes, modify the status of the mobile terminal to the remote status, and enter step 818 . If not, go to step 824 .

步骤818,检测当前校准阈值中远离阈值是否大于80。若是,移动终端由油污模式退出,进入到第一过渡模式,进入步骤820。若否,移动终端由第一过渡模式退出,进入到标准模式,进入步骤822。Step 818 , detecting whether the distance threshold among the current calibration thresholds is greater than 80. If so, the mobile terminal exits from the oil pollution mode, enters into the first transition mode, and enters step 820 . If not, the mobile terminal exits from the first transitional mode and enters into the standard mode, and enters step 822 .

步骤820,将接近阈值调整为160,远离阈值调整为70。Step 820 , adjust the approach threshold to 160, and adjust the far threshold to 70.

步骤822,将接近阈值调整为80,远离阈值调整为1。Step 822 , adjust the approach threshold to 80, and adjust the far threshold to 1.

步骤824,检测到接近传感器输出值大于250时,将接近阈值调整为255,将远离阈值调整为150。Step 824 , when it is detected that the output value of the proximity sensor is greater than 250, the proximity threshold is adjusted to 255, and the distance threshold is adjusted to 150.

步骤826,检测接近传感器输出值是否大于当前校准阈值中接近阈值。若否,进入步骤828,若是,进入步骤830。Step 826, detecting whether the output value of the proximity sensor is greater than the proximity threshold in the current calibration threshold. If not, go to step 828 , if yes, go to step 830 .

步骤828,检测到接近传感器输出值小于当前校准阈值中远离阈值时,移动终端进入标准模式,将接近阈值调整为80,远离阈值调整为1。Step 828, when it is detected that the output value of the proximity sensor is less than the far threshold in the current calibration threshold, the mobile terminal enters the standard mode, and the proximity threshold is adjusted to 80, and the far threshold is adjusted to 1.

步骤830,检测当前校准阈值中接近阈值是否大于第一阈值80。若是,移动终端进入油污模式,进入步骤834;若否,移动终端进入第二过渡模式,进入步骤832。Step 830 , detecting whether the proximity threshold among the current calibration thresholds is greater than the first threshold 80 . If yes, the mobile terminal enters the oil pollution mode, and enters step 834; if not, the mobile terminal enters the second transition mode, and enters step 832.

步骤832,将接近阈值调整为250,远离阈值调整为50。Step 832 , adjust the proximity threshold to 250, and the distance threshold to 50.

步骤834,将接近阈值调整为255,远离阈值调整为150。Step 834 , adjust the approach threshold to 255, and adjust the far threshold to 150.

图9为一个实施例中移动终端控制装置的结构框图。如图9所示,一种移动终端控制方法,包括:Fig. 9 is a structural block diagram of a mobile terminal control device in an embodiment. As shown in Figure 9, a method for controlling a mobile terminal includes:

确定模块902,用于若检测到接近传感器的输出值超出当前校准阈值的范围,根据输出值、当前校准阈值、第一阈值和第二阈值确定移动终端模式,第一阈值小于第二阈值;The determining module 902 is configured to determine the mobile terminal mode according to the output value, the current calibration threshold, the first threshold and the second threshold if it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, and the first threshold is smaller than the second threshold;

调整模块904,将当前校准阈值调整为移动终端模式对应的校准阈值。The adjustment module 904 adjusts the current calibration threshold to the calibration threshold corresponding to the mobile terminal mode.

在一个实施例中,调整模块904还用于在若检测到接近传感器的输出值超出当前校准阈值的范围之前,将当前校准阈值调整为标准模式对应的校准阈值。In one embodiment, the adjustment module 904 is further configured to adjust the current calibration threshold to the calibration threshold corresponding to the standard mode before it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold.

在一个实施例中,调整模块904还用于在移动终端处于接近状态时,若检测到输出值大于第二阈值,将当前校准阈值调整为油污模式对应的校准阈值。In one embodiment, the adjustment module 904 is further configured to adjust the current calibration threshold to the calibration threshold corresponding to the oil pollution mode if it is detected that the output value is greater than the second threshold when the mobile terminal is in an approaching state.

在一个实施例中,当前校准阈值包括当前远离阈值;图10为另一个实施例中移动终端控制装置的结构框图。如图10所示,一种移动终端控制装置,包括确定模块1002、调整模块1004和第一检测模块1006。其中,确定模块1002、调整模块1004与图9中对应的模块功能相同。In one embodiment, the current calibration threshold includes the current distance threshold; FIG. 10 is a structural block diagram of a mobile terminal control device in another embodiment. As shown in FIG. 10 , an apparatus for controlling a mobile terminal includes a determination module 1002 , an adjustment module 1004 and a first detection module 1006 . Wherein, the determination module 1002 and the adjustment module 1004 have the same functions as the corresponding modules in FIG. 9 .

第一检测模块1006,用于在移动终端处于接近状态时,若检测到输出值小于当前远离阈值,检测当前远离阈值是否大于第一阈值;The first detection module 1006 is configured to detect whether the current distance threshold is greater than the first threshold if the detected output value is less than the current distance threshold when the mobile terminal is in the proximity state;

调整模块1004还用于若是,将当前校准阈值调整为第一过渡模式对应的校准阈值。The adjustment module 1004 is further configured to, if yes, adjust the current calibration threshold to the calibration threshold corresponding to the first transition mode.

在一个实施例中,当前校准阈值包括当前接近阈值;图11为另一个实施例中移动终端控制装置的结构框图。如图11所示,一种移动终端控制装置,包括确定模块1102、调整模块1104和第二检测模块1106。其中,确定模块1102、调整模块1104与图9中对应的模块功能相同。In one embodiment, the current calibration threshold includes the current proximity threshold; FIG. 11 is a structural block diagram of a mobile terminal control device in another embodiment. As shown in FIG. 11 , an apparatus for controlling a mobile terminal includes a determination module 1102 , an adjustment module 1104 and a second detection module 1106 . Wherein, the determination module 1102 and the adjustment module 1104 have the same functions as the corresponding modules in FIG. 9 .

第二检测模块1106,用于在移动终端处于远离状态时,若检测到输出值大于当前接近阈值,检测当前接近阈值是否大于第一阈值;The second detection module 1106 is configured to detect whether the current proximity threshold is greater than the first threshold if it is detected that the output value is greater than the current proximity threshold when the mobile terminal is in the far away state;

调整模块1104还用于若否,将当前校准阈值调整为第二过渡模式对应的校准阈值。The adjustment module 1104 is further configured to, if not, adjust the current calibration threshold to the calibration threshold corresponding to the second transition mode.

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

本发明实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如上所述的移动终端控制方法。The embodiment of the present invention also provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the mobile terminal control as described above method.

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

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

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

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

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

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

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

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

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

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

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

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

在本发明实施例中,该移动终端所包括的处理器1280执行存储在存储器上的计算机程序时实现如上所述的移动终端控制方法。In the embodiment of the present invention, the processor 1280 included in the mobile terminal implements the above mobile terminal control method when executing the computer program stored in the memory.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) and the like.

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

Claims (12)

1.一种移动终端控制方法,其特征在于,包括:1. A method for controlling a mobile terminal, comprising: 若检测到接近传感器的输出值超出当前校准阈值的范围,根据所述输出值、所述当前校准阈值、第一阈值和第二阈值确定移动终端模式,所述第一阈值小于所述第二阈值;If it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, the mobile terminal mode is determined according to the output value, the current calibration threshold, the first threshold and the second threshold, and the first threshold is smaller than the second threshold ; 将所述当前校准阈值调整为所述移动终端模式对应的校准阈值。Adjusting the current calibration threshold to a calibration threshold corresponding to the mobile terminal mode. 2.根据权利要求1所述的移动终端控制方法,其特征在于,在所述若检测到接近传感器的输出值超出当前校准阈值的范围之前,所述方法还包括:2. The mobile terminal control method according to claim 1, characterized in that, before it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, the method further comprises: 将所述当前校准阈值调整为标准模式对应的校准阈值。The current calibration threshold is adjusted to the calibration threshold corresponding to the standard mode. 3.根据权利要求1或2所述的移动终端控制方法,其特征在于,所述当前校准阈值包括当前远离阈值;3. The mobile terminal control method according to claim 1 or 2, wherein the current calibration threshold comprises a current distance threshold; 所述方法还包括:The method also includes: 在移动终端处于接近状态时,若检测到所述输出值小于所述当前远离阈值,检测所述当前远离阈值是否大于所述第一阈值;When the mobile terminal is in the proximity state, if it is detected that the output value is less than the current distance threshold, detecting whether the current distance threshold is greater than the first threshold; 若是,将所述当前校准阈值调整为第一过渡模式对应的校准阈值。If yes, adjust the current calibration threshold to the calibration threshold corresponding to the first transition mode. 4.根据权利要求1或2所述的移动终端控制方法,其特征在于,所述方法还包括:4. The mobile terminal control method according to claim 1 or 2, wherein the method further comprises: 在移动终端处于接近状态时,若检测到所述输出值大于所述第二阈值,将所述当前校准阈值调整为油污模式对应的校准阈值。When the mobile terminal is in an approaching state, if it is detected that the output value is greater than the second threshold, the current calibration threshold is adjusted to a calibration threshold corresponding to the oil pollution mode. 5.根据权利要求1或2所述的移动终端控制方法,其特征在于,所述当前校准阈值包括当前接近阈值;5. The mobile terminal control method according to claim 1 or 2, wherein the current calibration threshold comprises a current proximity threshold; 所述方法还包括:The method also includes: 在移动终端处于远离状态时,若检测到所述输出值大于所述当前接近阈值,检测所述当前接近阈值是否大于第一阈值;When the mobile terminal is in the far away state, if it is detected that the output value is greater than the current proximity threshold, detecting whether the current proximity threshold is greater than the first threshold; 若否,将所述当前校准阈值调整为第二过渡模式对应的校准阈值。If not, the current calibration threshold is adjusted to the calibration threshold corresponding to the second transition mode. 6.一种移动终端控制装置,其特征在于,包括:6. A mobile terminal control device, characterized in that it comprises: 确定模块,用于若检测到接近传感器的输出值超出当前校准阈值的范围,根据所述输出值、所述当前校准阈值、第一阈值和第二阈值确定移动终端模式,所述第一阈值小于所述第二阈值;A determination module, configured to determine a mobile terminal mode according to the output value, the current calibration threshold, a first threshold, and a second threshold if it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold, and the first threshold is less than said second threshold; 调整模块,将所述当前校准阈值调整为所述移动终端模式对应的校准阈值。An adjustment module, configured to adjust the current calibration threshold to the calibration threshold corresponding to the mobile terminal mode. 7.根据权利要求6所述的移动终端控制装置,其特征在于:7. The mobile terminal control device according to claim 6, characterized in that: 所述调整模块还用于在所述若检测到接近传感器的输出值超出当前校准阈值的范围之前,将所述当前校准阈值调整为标准模式对应的校准阈值。The adjustment module is further configured to adjust the current calibration threshold to the calibration threshold corresponding to the standard mode before it is detected that the output value of the proximity sensor exceeds the range of the current calibration threshold. 8.根据权利要求6或7所述的移动终端控制装置,其特征在于,所述当前校准阈值包括当前远离阈值;8. The mobile terminal control device according to claim 6 or 7, wherein the current calibration threshold includes a current distance threshold; 所述装置还包括:The device also includes: 第一检测模块,用于在移动终端处于接近状态时,若检测到所述输出值小于所述当前远离阈值,检测所述当前远离阈值是否大于所述第一阈值;A first detection module, configured to detect whether the current distance threshold is greater than the first threshold if it is detected that the output value is smaller than the current distance threshold when the mobile terminal is in the proximity state; 所述调整模块还用于若是,将所述当前校准阈值调整为第一过渡模式对应的校准阈值。The adjustment module is further configured to, if yes, adjust the current calibration threshold to the calibration threshold corresponding to the first transition mode. 9.根据权利要求6或7所述的移动终端控制装置,其特征在于,所述装置还包括:9. The mobile terminal control device according to claim 6 or 7, wherein the device further comprises: 所述调整模块还用于在移动终端处于接近状态时,若检测到所述输出值大于所述第二阈值,将所述当前校准阈值调整为油污模式对应的校准阈值。The adjustment module is further configured to adjust the current calibration threshold to a calibration threshold corresponding to the oil pollution mode if it is detected that the output value is greater than the second threshold when the mobile terminal is in an approaching state. 10.根据权利要求6或7所述的移动终端控制装置,其特征在于,所述当前校准阈值包括当前接近阈值;10. The mobile terminal control device according to claim 6 or 7, wherein the current calibration threshold comprises a current proximity threshold; 所述装置还包括:The device also includes: 第二检测模块,用于在移动终端处于远离状态时,若检测到所述输出值大于所述当前接近阈值,检测所述当前接近阈值是否大于第一阈值;The second detection module is used to detect whether the current proximity threshold is greater than the first threshold if it is detected that the output value is greater than the current proximity threshold when the mobile terminal is in the far away state; 所述调整模块还用于若否,将所述当前校准阈值调整为第二过渡模式对应的校准阈值。The adjustment module is further configured to, if not, adjust the current calibration threshold to a calibration threshold corresponding to the second transition mode. 11.一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如权利要求1至5中任一项所述的移动终端控制方法。11. One or more non-transitory computer-readable storage media containing computer-executable instructions which, when executed by one or more processors, cause the processors to perform The mobile terminal control method described in any one of 5. 12.一种移动终端,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如权利要求1至5中任一项所述的移动终端控制方法。12. A mobile terminal, comprising a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the instructions are executed by the processor, the processor executes any one of claims 1 to 5. The mobile terminal control method described in the item.
CN201710661266.4A 2017-08-04 2017-08-04 Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal Expired - Fee Related CN107528958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710661266.4A CN107528958B (en) 2017-08-04 2017-08-04 Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710661266.4A CN107528958B (en) 2017-08-04 2017-08-04 Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal

Publications (2)

Publication Number Publication Date
CN107528958A true CN107528958A (en) 2017-12-29
CN107528958B CN107528958B (en) 2019-03-12

Family

ID=60680738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710661266.4A Expired - Fee Related CN107528958B (en) 2017-08-04 2017-08-04 Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal

Country Status (1)

Country Link
CN (1) CN107528958B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375855A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 Terminal state determination method and device, terminal equipment and storage medium
CN111366939A (en) * 2020-02-20 2020-07-03 Oppo(重庆)智能科技有限公司 Calibration method and device of distance sensor, terminal and storage medium
CN111625129A (en) * 2020-05-14 2020-09-04 维沃移动通信有限公司 Screen control method and device, electronic equipment and readable storage medium
CN112035050A (en) * 2020-09-10 2020-12-04 Oppo(重庆)智能科技有限公司 Control method, control device, storage medium and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2284658A2 (en) * 2003-11-25 2011-02-16 Apple Inc. Touch pad for a handheld device
CN102833419A (en) * 2012-08-31 2012-12-19 华为终端有限公司 Method and terminal for controlling screen state
CN104683598A (en) * 2015-03-25 2015-06-03 深圳市欧珀通信软件有限公司 Proximity sensor threshold adjustment method, device and intelligent device
CN106201019A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 The threshold value control method of a kind of proximity transducer and mobile terminal
CN106791053A (en) * 2016-12-07 2017-05-31 北京小米移动软件有限公司 The sensing threshold calibration method and device of range sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2284658A2 (en) * 2003-11-25 2011-02-16 Apple Inc. Touch pad for a handheld device
CN102833419A (en) * 2012-08-31 2012-12-19 华为终端有限公司 Method and terminal for controlling screen state
CN104683598A (en) * 2015-03-25 2015-06-03 深圳市欧珀通信软件有限公司 Proximity sensor threshold adjustment method, device and intelligent device
CN106201019A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 The threshold value control method of a kind of proximity transducer and mobile terminal
CN106791053A (en) * 2016-12-07 2017-05-31 北京小米移动软件有限公司 The sensing threshold calibration method and device of range sensor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375855A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 Terminal state determination method and device, terminal equipment and storage medium
CN111366939A (en) * 2020-02-20 2020-07-03 Oppo(重庆)智能科技有限公司 Calibration method and device of distance sensor, terminal and storage medium
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
CN112035050A (en) * 2020-09-10 2020-12-04 Oppo(重庆)智能科技有限公司 Control method, control device, storage medium and terminal device

Also Published As

Publication number Publication date
CN107528958B (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN106131345B (en) Control method and device of proximity sensor and mobile terminal
CN106357897B (en) Method and device for acquiring falling information
CN108900231B (en) Dynamic antenna adjustment method and related products
CN105469775A (en) Method for adjusting brightness of display screen and terminal equipment
CN109240551B (en) Method for controlling electronic device by using gestures and related product
CN106412249A (en) Detection method and device of drop information
CN106982097A (en) Radio frequency interference elimination method, device, storage medium and terminal
CN106357925A (en) Method, device and terminal for switching screen brightness adjusting modes
CN106936516B (en) Display state control method, storage medium and terminal
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN108958606A (en) Multi-screen display method, device, storage medium and electronic equipment
CN106131930A (en) A WiFi network access control method, device and terminal
CN107801201A (en) Network recovery method and device
CN110266323A (en) A signal control circuit, terminal equipment and signal control method
CN106200970A (en) A kind of method of split screen display available and terminal
CN107528958A (en) Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal
TW201541337A (en) Method, device and system for displaying messages in mobile terminal
WO2019042478A1 (en) Control method for input method soft keyboard of mobile terminal, storage medium, and mobile terminal
CN106126170A (en) A terminal sound effect setting method and terminal
CN108810261B (en) Antenna switching method in call and related product
CN106254673A (en) Terminal fall detection method and device
CN106851806A (en) A transmission power control method and mobile terminal
CN110022600B (en) Driving current adjusting method and device, storage medium and mobile terminal
CN106227337A (en) Method, device and terminal for adjusting screen brightness

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
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.

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

Granted publication date: 20190312