[go: up one dir, main page]

CN106851012A - Proximity detection method, device and terminal - Google Patents

Proximity detection method, device and terminal Download PDF

Info

Publication number
CN106851012A
CN106851012A CN201710132076.3A CN201710132076A CN106851012A CN 106851012 A CN106851012 A CN 106851012A CN 201710132076 A CN201710132076 A CN 201710132076A CN 106851012 A CN106851012 A CN 106851012A
Authority
CN
China
Prior art keywords
terminal
temperature
preset
value
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710132076.3A
Other languages
Chinese (zh)
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 CN201710132076.3A priority Critical patent/CN106851012A/en
Publication of CN106851012A publication Critical patent/CN106851012A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The embodiment of the invention discloses a proximity detection method, a proximity detection device and a terminal. The approach detection method is applied to a terminal, the terminal comprises a display screen, a shell and a temperature sensor, a functional hole is formed in the frame of the shell, the temperature sensor is contained in the functional hole, and the approach detection method comprises the following steps: when the terminal is detected to enter a call state, acquiring a first temperature value through a temperature sensor; judging whether the first temperature value is in a preset temperature range, wherein the preset temperature range is the temperature range of the body surface of the human body; and if the first temperature value is within the preset temperature range, controlling the display screen of the terminal to enter a dormant state. According to the embodiment of the invention, the proximity detection can be realized by using the temperature sensor instead of the proximity sensor, and the temperature sensor can be arranged on the terminal frame instead of the display screen, so that the occupation of the area of the display screen can be reduced, and the screen occupation ratio of the display screen can be improved.

Description

接近检测方法、装置及终端Proximity detection method, device and terminal

技术领域technical field

本发明属于传感器技术领域,尤其涉及一种接近检测方法、装置及终端。The invention belongs to the technical field of sensors, and in particular relates to a proximity detection method, device and terminal.

背景技术Background technique

大多数终端上都设置有接近传感器。接近传感器的设置是为了在用户将终端显示屏靠近耳部进行通话时,防止用户的脸部误触发显示屏。当终端处于通话状态时,若接近传感器判断出用户将显示屏靠近耳部,那么终端会控制显示屏进入休眠状态。Proximity sensors are provided on most terminals. The proximity sensor is set to prevent the user's face from accidentally triggering the display when the user holds the terminal display close to the ear for a call. When the terminal is in a call state, if the proximity sensor determines that the user brings the display screen close to the ear, the terminal will control the display screen to enter a sleep state.

终端显示屏包括显示区域和非显示区域。接近传感器一般设置在终端显示屏顶部的非显示区域。然而,由于接近传感器包括信号发射器和信号接收器,因此接近传感器的体积较大。这就要求在终端显示屏上预留较大面积的非显示区域。这会降低终端显示屏的屏占比。The terminal display screen includes a display area and a non-display area. The proximity sensor is generally arranged in a non-display area at the top of the display screen of the terminal. However, since the proximity sensor includes a signal transmitter and a signal receiver, the proximity sensor has a large volume. This requires a larger non-display area to be reserved on the terminal display screen. This reduces the screen-to-body ratio of the terminal display.

发明内容Contents of the invention

本发明实施例提供一种接近检测方法、装置及终端,能提高终端显示屏的屏占比。Embodiments of the present invention provide a proximity detection method, device, and terminal, which can increase the screen-to-body ratio of a terminal display screen.

本发明实施例提供以下技术方案:Embodiments of the present invention provide the following technical solutions:

一种接近检测方法,所述方法应用于终端,所述终端包括显示屏、外壳以及温度传感器,在所述外壳的边框处开设有功能孔,所述温度传感器容纳于所述功能孔,所述方法包括:A proximity detection method, the method is applied to a terminal, the terminal includes a display screen, a casing, and a temperature sensor, a functional hole is opened at the frame of the casing, the temperature sensor is accommodated in the functional hole, the Methods include:

当检测到终端进入通话状态时,通过温度传感器获取第一温度值;When it is detected that the terminal enters the call state, the first temperature value is obtained through the temperature sensor;

判断所述第一温度值是否处于预设温度范围,所述预设温度范围为人体体表的温度范围;judging whether the first temperature value is within a preset temperature range, and the preset temperature range is the temperature range of the human body surface;

若判断出所述第一温度值处于预设温度范围,则控制终端显示屏进入休眠状态。If it is determined that the first temperature value is within the preset temperature range, the display screen of the control terminal enters a sleep state.

本发明实施例还提供以下技术方案:Embodiments of the present invention also provide the following technical solutions:

一种接近检测装置,所述装置应用于终端,所述终端包括显示屏、外壳以及温度传感器,在所述外壳的边框处开设有功能孔,所述温度传感器容纳于所述功能孔,所述装置包括:A proximity detection device, the device is applied to a terminal, the terminal includes a display screen, a housing, and a temperature sensor, a functional hole is opened at the frame of the housing, the temperature sensor is accommodated in the functional hole, the Devices include:

第一获取模块,用于当检测到终端进入通话状态时,通过温度传感器获取第一温度值;The first obtaining module is used to obtain the first temperature value through the temperature sensor when it is detected that the terminal enters the call state;

判断模块,用于判断所述第一温度值是否处于预设温度范围,所述预设温度范围为人体体表的温度范围;A judging module, configured to judge whether the first temperature value is within a preset temperature range, and the preset temperature range is the temperature range of the human body surface;

第一控制模块,用于若判断出所述第一温度值处于预设温度范围,则控制终端显示屏进入休眠状态。The first control module is configured to control the display screen of the terminal to enter a sleep state if it is determined that the first temperature value is within a preset temperature range.

本发明实施例还提供一种终端,包括显示屏、外壳、温度传感器以及处理器,在所述外壳的边框处开设有功能孔,所述温度传感器容纳于所述功能孔;所述温度传感器用于在终端进入通话状态时,获取第一温度值;所述处理器用于当判断出所述第一温度值处于预设温度范围时,控制所述显示屏进入休眠状态,所述预设温度范围为人体体表的温度范围。An embodiment of the present invention also provides a terminal, including a display screen, a housing, a temperature sensor, and a processor. A functional hole is opened at the frame of the housing, and the temperature sensor is accommodated in the functional hole; the temperature sensor is used When the terminal enters a call state, acquire a first temperature value; the processor is used to control the display screen to enter a sleep state when it is determined that the first temperature value is in a preset temperature range, and the preset temperature range The temperature range of the human body surface.

本发明实施例提供的接近检测方法、装置及终端,当检测到终端进入通话状态时,终端可以通过温度传感器获取第一温度值。该温度传感器容纳在外壳的边框处开设的功能孔。此后,终端可以判断该第一温度值是否处于预设温度范围,该预设温度范围是人体体表的温度范围。若判断出该第一温度值处于该预设温度范围内,那么终端可以控制显示屏进入休眠状态,从而防止用户对显示屏的误触发。本发明实施例通过使用温度传感器可以在终端处于通话状态时实现接近判断。本发明实施例可以使用温度传感器代替接近传感器实现接近检测,而该温度传感器可以设置在终端边框上,而不需设置在显示屏上,从而可以减少对显示屏面积的占用,因此本发明实施例可以提高终端显示屏的屏占比。In the proximity detection method, device and terminal provided by the embodiments of the present invention, when it is detected that the terminal enters a call state, the terminal can acquire a first temperature value through a temperature sensor. The temperature sensor is accommodated in a functional hole opened at the frame of the housing. Thereafter, the terminal may determine whether the first temperature value is within a preset temperature range, and the preset temperature range is a temperature range of a human body surface. If it is determined that the first temperature value is within the preset temperature range, the terminal may control the display screen to enter a sleep state, thereby preventing the user from falsely triggering the display screen. In the embodiment of the present invention, the proximity judgment can be realized when the terminal is in a talking state by using a temperature sensor. In this embodiment of the present invention, a temperature sensor can be used instead of a proximity sensor to realize proximity detection, and the temperature sensor can be arranged on the frame of the terminal instead of on the display screen, thereby reducing the occupation of the display area. Therefore, the embodiment of the present invention The screen-to-body ratio of the terminal display can be increased.

附图说明Description of drawings

下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其有益效果显而易见。The technical solution and beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.

图1是本发明实施例提供的终端中功能孔的位置示意图。Fig. 1 is a schematic diagram of the positions of functional holes in a terminal provided by an embodiment of the present invention.

图2是本发明实施例提供的终端中功能孔的另一位置示意图。Fig. 2 is a schematic diagram of another position of a functional hole in a terminal provided by an embodiment of the present invention.

图3是本发明实施例提供的终端中功能孔的又一位置示意图。Fig. 3 is another schematic diagram of the position of the functional hole in the terminal provided by the embodiment of the present invention.

图4是本发明实施例提供的终端中功能孔的再一位置示意图。Fig. 4 is another schematic diagram of the position of the functional hole in the terminal provided by the embodiment of the present invention.

图5是本发明实施例提供的接近检测方法的流程示意图。Fig. 5 is a schematic flowchart of an approach detection method provided by an embodiment of the present invention.

图6是本发明实施例提供的接近检测方法的另一流程示意图。Fig. 6 is another schematic flowchart of the approach detection method provided by the embodiment of the present invention.

图7是本发明实施例提供的接近检测装置的结构示意图。Fig. 7 is a schematic structural diagram of an approach detection device provided by an embodiment of the present invention.

图8是本发明实施例提供的接近检测装置的另一结构示意图。Fig. 8 is another schematic structural diagram of the proximity detection device provided by the embodiment of the present invention.

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

具体实施方式detailed description

请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.

以下将详细说明。Details will be given below.

本发明实施例提供一种接近检测方法,该接近检测方法应用于终端,该终端包括显示屏、外壳以及温度传感器,在该外壳的边框处开设有功能孔,该温度传感器容纳于该功能孔中。An embodiment of the present invention provides a proximity detection method, which is applied to a terminal. The terminal includes a display screen, a casing, and a temperature sensor. A functional hole is opened at the frame of the casing, and the temperature sensor is accommodated in the functional hole. .

请参阅图1,图1为本发明实施例提供的终端中功能孔的位置示意图。在一种实施方式中,用于容纳温度传感器的功能孔可以开设在外壳上边框靠近终端受话器(听筒)的位置,如图1中的位置A。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of a position of a functional hole in a terminal provided by an embodiment of the present invention. In one embodiment, the functional hole for accommodating the temperature sensor can be opened at a position near the terminal receiver (earpiece) on the upper frame of the housing, as in position A in FIG. 1 .

当然,在其它实施方式中,用于容纳温度传感器的功能孔也可以开设在对应于显示屏上端的外壳上边框的其他位置,如图2中所示的位置B或C。Of course, in other embodiments, the functional hole for accommodating the temperature sensor can also be opened at other positions corresponding to the upper frame of the housing at the upper end of the display screen, such as position B or C shown in FIG. 2 .

或者,用于容纳温度传感器的功能孔也可以开设在外壳的右侧边框(以显示屏面向用户的方向为终端的正面方向)上,如图3中所示的位置D。Alternatively, the functional hole for accommodating the temperature sensor may also be provided on the right frame of the housing (with the direction of the display screen facing the user as the front direction of the terminal), as shown in position D in FIG. 3 .

又或者,用于容纳温度传感器的功能孔也可以开设在外壳的左侧边框上,如图4中终端左边框所示的位置E。Alternatively, the functional hole for accommodating the temperature sensor can also be opened on the left side frame of the housing, as shown at position E on the left side frame of the terminal in FIG. 4 .

请参阅图5,图5是本发明实施例提供的接近检测方法的流程示意图,流程可以包括:Please refer to FIG. 5. FIG. 5 is a schematic flow diagram of an approach detection method provided by an embodiment of the present invention. The flow may include:

在步骤S101中,当检测到终端进入通话状态时,通过温度传感器获取第一温度值。In step S101, when it is detected that the terminal is in a talking state, a first temperature value is acquired through a temperature sensor.

可以理解的是,本发明实施例的执行主体可以是手机或者平板电脑等终端设备。It can be understood that the execution subject of this embodiment of the present invention may be a terminal device such as a mobile phone or a tablet computer.

比如,终端显示屏包括显示区域和非显示区域。终端的接近传感器一般设置在显示屏顶部的非显示区域。例如,将接近传感器设置在受话器周围,如左侧或右侧等。然而,由于接近传感器包括信号发射器和信号接收器,因此接近传感器的体积较大。这就要求在显示屏上预留较大面积的非显示区域。这会降低终端显示屏的屏占比。For example, a terminal display screen includes a display area and a non-display area. The proximity sensor of the terminal is generally arranged in a non-display area at the top of the display screen. For example, the proximity sensor is placed around the receiver, such as on the left or right side. However, since the proximity sensor includes a signal transmitter and a signal receiver, the proximity sensor has a large volume. This requires a larger non-display area to be reserved on the display screen. This reduces the screen-to-body ratio of the terminal display.

在本发明实施例的步骤S101中,当检测到终端进入通话状态时,终端可以通过容纳于功能孔中的温度传感器获取第一温度值。例如,该功能孔可以开设在对应于显示屏上端的外壳上边框并且靠近受话器的位置,如图1所示。该第一温度值也就是该温度传感器获取到的其周围环境温度值。In step S101 of the embodiment of the present invention, when it is detected that the terminal is in a talking state, the terminal may obtain a first temperature value through a temperature sensor accommodated in the function hole. For example, the functional hole may be opened at a position corresponding to the upper frame of the housing at the upper end of the display screen and close to the receiver, as shown in FIG. 1 . The first temperature value is also the ambient temperature value acquired by the temperature sensor.

在步骤S102中,判断该第一温度值是否处于预设温度范围,该预设温度范围为人体体表的温度范围。In step S102, it is determined whether the first temperature value is within a preset temperature range, and the preset temperature range is a temperature range of a human body surface.

比如,在获取到第一温度值之后,终端可以判断该第一温度值是否处于预设温度范围。该预设温度范围为人体体表的温度范围。For example, after acquiring the first temperature value, the terminal may determine whether the first temperature value is within a preset temperature range. The preset temperature range is the temperature range of the human body surface.

在一种实施方式中,上述预设温度范围可以是人体耳部的温度范围,例如为36.2°~37.2°。比如,终端可以预先获取多个人体耳部的温度值样本,然后根据这些温度值样本,生成一个温度区间,并将该温度区间确定为预设温度范围,等等。In an implementation manner, the preset temperature range may be a temperature range of a human ear, for example, 36.2°-37.2°. For example, the terminal may acquire multiple temperature value samples of human ears in advance, and then generate a temperature range according to these temperature value samples, and determine the temperature range as a preset temperature range, and so on.

当然,在其他实施方式中,上述预设温度范围也可以是人体其它部位的温度范围。例如,该预设温度范围为人体脸部的温度范围,等等,此处举例不构成对本发明的限定。Of course, in other implementation manners, the preset temperature range may also be the temperature range of other parts of the human body. For example, the preset temperature range is the temperature range of the face of a human body, etc., and the example here does not constitute a limitation to the present invention.

若判断出该第一温度值不处于预设温度范围,那么终端可以控制显示屏进入亮屏状态,即步骤S104。If it is determined that the first temperature value is not within the preset temperature range, the terminal may control the display screen to enter a bright screen state, ie step S104.

在步骤S103中,若判断出该第一温度值处于预设温度范围,则控制终端显示屏进入休眠状态。In step S103, if it is determined that the first temperature value is within a preset temperature range, the display screen of the control terminal enters a sleep state.

比如,如果判断出该第一温度值处于预设温度范围,也即该第一温度值处于用户耳部的温度范围内,那么可以认为是用户将终端靠近耳部进行通话,此时终端可以控制显示屏进入休眠状态(即息屏状态),从而避免用户脸部误触发终端显示屏。For example, if it is determined that the first temperature value is within the preset temperature range, that is, the first temperature value is within the temperature range of the user's ear, then it can be considered that the user puts the terminal close to the ear to make a call, and the terminal can control the The display screen enters a dormant state (that is, the screen off state), so as to prevent the user's face from accidentally triggering the terminal display screen.

例如,当终端进入通话状态时,终端获取到的第一温度值为36.5°,而预设温度范围为36.2°~37.2°,那么终端会判断出第一温度值进入预设温度范围。此时,可以认为用户将终端显示屏贴近耳部进行通话。在这种情况下,终端可以控制显示屏进入休眠状态,从而防止用户脸部误触发显示屏。For example, when the terminal enters the call state, the first temperature value acquired by the terminal is 36.5°, and the preset temperature range is 36.2°-37.2°, then the terminal will determine that the first temperature value enters the preset temperature range. At this time, it can be considered that the user puts the terminal display screen close to the ear to make a call. In this case, the terminal can control the display to enter a sleep state, so as to prevent the user's face from triggering the display by mistake.

在一种实施方式中,步骤S103中若判断出该第一温度值处于预设温度范围,则控制终端显示屏进入休眠状态,可以包括:In one embodiment, if it is determined in step S103 that the first temperature value is within the preset temperature range, controlling the display screen of the terminal to enter a sleep state may include:

若判断出该第一温度值处于预设温度范围,则获取终端进入通话状态前预设时间范围内通过温度传感器获取的第二温度值,该温度传感器按照预设时间间隔获取温度值;If it is determined that the first temperature value is within a preset temperature range, then obtain a second temperature value obtained by a temperature sensor within a preset time range before the terminal enters a call state, and the temperature sensor obtains a temperature value according to a preset time interval;

若检测出该第二温度值不处于预设温度范围,则控制终端显示屏进入休眠状态。If it is detected that the second temperature value is not within the preset temperature range, the display screen of the control terminal enters a sleep state.

比如,终端获取到的第一温度值为36.5°,该第一温度值处于预设温度范围36.2°~37.2°内。在这种情况下,终端还可以获取进入通话状态前预设时间范围内通过温度传感器获取的第二温度值。例如,终端获取进入通话状态前2秒或3秒内通过温度传感器获取的第二温度值。在一种实施方式中,该温度传感器可以按照预设时间间隔获取温度值,例如该预设时间间隔为1.5秒,即温度传感器每隔1.5秒获取一次温度值。在一种实施方式中,上述预设时间范围大于上述预设时间间隔。For example, the first temperature value acquired by the terminal is 36.5°, and the first temperature value is within a preset temperature range of 36.2°-37.2°. In this case, the terminal may also obtain the second temperature value obtained by the temperature sensor within a preset time range before entering the call state. For example, the terminal acquires the second temperature value acquired through the temperature sensor within 2 seconds or 3 seconds before entering the call state. In one embodiment, the temperature sensor can acquire the temperature value at a preset time interval, for example, the preset time interval is 1.5 seconds, that is, the temperature sensor acquires the temperature value every 1.5 seconds. In an implementation manner, the preset time range is greater than the preset time interval.

在获取到第二温度值之后,若检测出该第二温度值不在预设温度范围,那么终端可以控制显示屏进入休眠状态。例如,第二温度值为25°。After acquiring the second temperature value, if it is detected that the second temperature value is not within the preset temperature range, the terminal may control the display screen to enter a sleep state. For example, the second temperature value is 25°.

也就是说,如果在终端由未通话状态进入通话状态的过程中,通过温度传感器获取的温度值由25°变为36.5°,也即温度传感器获取到的温度值由不处于耳部温度范围变为处于耳部温度范围,那么可以认为是用户在接听电话时,将终端贴近耳部。在这种情况下,可以控制显示屏进入休眠状态。That is to say, if the temperature value obtained by the temperature sensor changes from 25° to 36.5° during the process of the terminal entering the call state from the non-call state, that is, the temperature value obtained by the temperature sensor changes from not being in the ear temperature range to 36.5°. If it is within the temperature range of the ear, it can be considered that the user puts the terminal close to the ear when answering the call. In this case, the display can be controlled to sleep.

可以理解的是,通过获取终端进入通话状态前后的温度值(即第二温度值和第一温度值),并检测这两个温度值是否处于预设温度范围的方式,可以使得终端更准确地去判断用户是否将终端贴近耳部进行通话,防止出现误判。It can be understood that, by acquiring the temperature values (that is, the second temperature value and the first temperature value) before and after the terminal enters the call state, and detecting whether the two temperature values are within the preset temperature range, the terminal can be more accurately To judge whether the user is talking with the terminal close to the ear to prevent misjudgment.

可以理解的是,本发明实施例通过使用温度传感器可以在终端处于通话状态时实现接近判断,即本发明实施例可以使用温度传感器代替接近传感器。由于本发明实施例中的温度传感器可以设置在终端边框上,而不需设置在显示屏上,从而可以减少对显示屏面积的占用,因此本发明实施例可以在实现接近检测的同时,提高终端显示屏的屏占比。It can be understood that the embodiment of the present invention can realize the proximity judgment when the terminal is in the talking state by using the temperature sensor, that is, the embodiment of the present invention can use the temperature sensor instead of the proximity sensor. Since the temperature sensor in the embodiment of the present invention can be arranged on the frame of the terminal instead of on the display screen, the area occupied by the display screen can be reduced. Therefore, the embodiment of the present invention can achieve proximity detection while improving the efficiency of the terminal. The screen-to-body ratio of the display.

请参阅图6,图6为本发明实施例提供的接近检测方法的另一流程示意图,流程可以包括:Please refer to FIG. 6. FIG. 6 is another schematic flow diagram of the approach detection method provided by the embodiment of the present invention. The flow may include:

在步骤S201中,当检测到终端进入通话状态时,终端通过温度传感器获取第一温度值。In step S201, when it is detected that the terminal is in a call state, the terminal obtains a first temperature value through a temperature sensor.

比如,当检测到终端进入通话状态时,终端可以触发容纳于功能孔中的温度传感器,并获取第一温度值。例如,该功能孔可以开设在对应于显示屏上端的外壳上边框,并且靠近受话器的位置,如图1所示。For example, when it is detected that the terminal is in a call state, the terminal may trigger the temperature sensor accommodated in the function hole, and obtain the first temperature value. For example, the functional hole may be provided on the upper frame of the housing corresponding to the upper end of the display screen and close to the receiver, as shown in FIG. 1 .

在步骤S202中,终端判断该第一温度值是否处于预设温度范围,该预设温度范围为人体体表的温度范围。In step S202, the terminal determines whether the first temperature value is within a preset temperature range, and the preset temperature range is a temperature range of a human body surface.

比如,在获取到第一温度值之后,终端可以判断该第一温度值是否处于预设温度范围。该预设温度范围为人体体表的温度范围。例如,在一种实施方式中,该预设温度范围为人体耳部的温度范围,如36.2°~37.2°。For example, after acquiring the first temperature value, the terminal may determine whether the first temperature value is within a preset temperature range. The preset temperature range is the temperature range of the human body surface. For example, in one embodiment, the preset temperature range is the temperature range of the human ear, such as 36.2°-37.2°.

如果终端判断出该第一温度值不处于预设温度范围,例如终端获取到的第一温度值为26°,那么可以认为用户并未将终端贴近耳部通话。在这种情况下,终端可以控制显示屏进入亮屏状态,即步骤S207。If the terminal determines that the first temperature value is not within the preset temperature range, for example, the first temperature value obtained by the terminal is 26°, it may be considered that the user does not put the terminal close to the ear to make a call. In this case, the terminal may control the display screen to enter a bright screen state, that is, step S207.

如果终端判断出该第一温度值处于预设温度范围,那么进入步骤S203。If the terminal determines that the first temperature value is within the preset temperature range, then enter step S203.

在步骤S203中,若判断出该第一温度值处于预设温度范围,则终端获取进入通话状态前预设时间范围内通过该温度传感器获取的第二温度值,该温度传感器按照预设时间间隔获取温度值。In step S203, if it is determined that the first temperature value is within the preset temperature range, the terminal obtains the second temperature value obtained through the temperature sensor within the preset time range before entering the call state, and the temperature sensor is set at a preset time interval Get the temperature value.

比如,终端获取到的第一温度值为36.5°,并判断出该第一温度值36.5°处于预设温度范围36.2°~37.2°。此时,终端还可以获取其进入通话状态前预设时间范围内通过温度传感器获取到的第二温度值。例如,终端获取进入通话状态前2秒或3秒内通过温度传感器获取的第二温度值。在一种实施方式中,该温度传感器可以按照预设时间间隔获取温度值,例如该预设时间间隔为1.5秒,即温度传感器每隔1.5秒获取一次温度值。在一种实施方式中,上述预设时间范围大于上述预设时间间隔。For example, the terminal acquires a first temperature value of 36.5°, and determines that the first temperature value of 36.5° is within a preset temperature range of 36.2°-37.2°. At this time, the terminal may also obtain the second temperature value obtained through the temperature sensor within a preset time range before the terminal enters the call state. For example, the terminal acquires the second temperature value acquired through the temperature sensor within 2 seconds or 3 seconds before entering the call state. In one embodiment, the temperature sensor can acquire the temperature value at a preset time interval, for example, the preset time interval is 1.5 seconds, that is, the temperature sensor acquires the temperature value every 1.5 seconds. In an implementation manner, the preset time range is greater than the preset time interval.

在获取到第二温度值之后,终端可以检测该第二温度值是否处于预设温度范围。After acquiring the second temperature value, the terminal may detect whether the second temperature value is within a preset temperature range.

若终端检测出该第二温度值不处于预设温度范围,那么进入步骤S204。If the terminal detects that the second temperature value is not within the preset temperature range, then enter step S204.

若终端检测出该第二温度值处于预设温度范围,那么进入步骤S205。If the terminal detects that the second temperature value is within the preset temperature range, then enter step S205.

在步骤S204中,若终端检测出该第二温度值不处于预设温度范围,则终端控制显示屏进入休眠状态。In step S204, if the terminal detects that the second temperature value is not within the preset temperature range, the terminal controls the display screen to enter a sleep state.

例如,终端获取到的其进入通话状态前2秒内通过温度传感器获取的第二温度值为25°,而第一温度值为36.5°。也就是说,在终端由未通话状态进入通话状态的过程中,通过温度传感器获取的温度值由25°变为36.5°,也即温度传感器获取到的温度值由不处于耳部温度范围变为处于耳部温度范围,那么可以认为是用户在接听电话时,将终端贴近耳部。在这种情况下,可以控制显示屏进入休眠状态。For example, the second temperature value acquired by the terminal through the temperature sensor within 2 seconds before it enters the call state is 25°, and the first temperature value is 36.5°. That is to say, when the terminal enters the call state from the non-call state, the temperature value obtained by the temperature sensor changes from 25° to 36.5°, that is, the temperature value obtained by the temperature sensor changes from not in the ear temperature range to If it is in the ear temperature range, it can be considered that the user puts the terminal close to the ear when answering the call. In this case, the display can be controlled to sleep.

在步骤S205中,若终端检测出该第二温度值处于预设温度范围,则终端获取陀螺仪传感器的输出数据。In step S205, if the terminal detects that the second temperature value is within a preset temperature range, the terminal acquires the output data of the gyroscope sensor.

比如,终端获取到的第二温度值为36.3°,并检测出该第二温度值同样处于预设温度范围36.2°~37.2°。例如,用户处于室外,并且室外环境温度较高,那么在终端未进入通话状态时获取的第二温度值即为当时的室外环境温度。在这种情况下,由于第一温度值和第二温度值非常接近,因此不容易判断出用户是否将终端贴近耳部进行通话。For example, the terminal acquires a second temperature value of 36.3°, and detects that the second temperature value is also within a preset temperature range of 36.2°-37.2°. For example, if the user is outside and the outdoor ambient temperature is relatively high, then the second temperature value obtained when the terminal is not in a call state is the current outdoor ambient temperature. In this case, since the first temperature value is very close to the second temperature value, it is not easy to determine whether the user puts the terminal close to the ear to make a call.

在这种情况下,终端还可以触发并获取陀螺仪传感器的输出数据。需要说明的是,陀螺仪传感器是基于空间移动和手势的定位和控制系统。陀螺仪传感器的输出数据是X、Y、Z三个轴的角加速度数据。通过陀螺仪传感器可以测出用户握持终端的手势。In this case, the terminal can also trigger and obtain the output data of the gyroscope sensor. It should be noted that the gyro sensor is a positioning and control system based on spatial movement and gestures. The output data of the gyro sensor is the angular acceleration data of the X, Y, and Z axes. The gesture of the user holding the terminal can be detected by the gyroscope sensor.

在步骤S206中,当检测到该陀螺仪传感器的输出数据处于预设数据的预设范围时,终端控制显示屏进入休眠状态,该预设数据为预先在用户将终端贴近耳部时获取的陀螺仪传感器输出的数据。In step S206, when it is detected that the output data of the gyroscope sensor is within the preset range of the preset data, the terminal controls the display screen to enter a sleep state. The preset data is the gyroscope acquired in advance when the user puts the terminal against the ear. The data output by the instrument sensor.

比如,在获取到陀螺仪传感器的输出数据后,例如此时陀螺仪传感器的输出数据为(x1,y1,z1),终端可以检测该陀螺仪传感器(x1,y1,z1)是否处于预设数据的预设范围。该预设数据为预先在用户将终端贴近耳部时获取的陀螺仪传感器输出的数据。For example, after obtaining the output data of the gyroscope sensor, for example, the output data of the gyroscope sensor at this time is (x1, y1, z1), the terminal can detect whether the gyroscope sensor (x1, y1, z1) is in the preset data preset range. The preset data is the data output by the gyro sensor acquired in advance when the user puts the terminal close to the ear.

在一种实施方式中,终端可以预先提示用户将终端贴近耳部模拟进行通话的手势动作,然后,终端可以获取在该手势动作下陀螺仪的输出数据,例如为(x0,y0,z0)。In an implementation manner, the terminal may pre-prompt the user to put the terminal close to the ear to simulate a gesture of making a call, and then the terminal may acquire the output data of the gyroscope under the gesture, for example (x0, y0, z0).

如果终端检测出陀螺仪传感器的输出数据(x1,y1,z1)处于预设数据(x0,y0,z0)的预设范围内,那么可以认为此时用户的手势动作为将终端贴近耳部时的手势动作。在这种情况下,终端可以控制显示屏进入休眠状态。If the terminal detects that the output data (x1, y1, z1) of the gyro sensor is within the preset range of the preset data (x0, y0, z0), then it can be considered that the user's gesture at this time is when the terminal is close to the ear. gestures. In this case, the terminal can control the display screen to enter a sleep state.

如果终端检测出陀螺仪传感器的输出数据(x1,y1,z1)不处于预设数据(x0,y0,z0)的预设范围内,那么可以认为此时用户的手势动作不是将终端贴近耳部时的手势动作。在这种情况下,终端可以控制显示屏进入亮屏状态。If the terminal detects that the output data (x1, y1, z1) of the gyro sensor is not within the preset range of the preset data (x0, y0, z0), then it can be considered that the user's gesture at this time is not putting the terminal close to the ear time gestures. In this case, the terminal can control the display screen to enter the bright screen state.

在另一种实施方式中,终端还可以通过如下步骤来判断用户是否将终端贴近耳部进行通话,即在步骤S201中检测到终端进入通话状态之后,终端还可以执行如下步骤:In another embodiment, the terminal may also use the following steps to determine whether the user puts the terminal close to the ear for a call, that is, after detecting in step S201 that the terminal enters the call state, the terminal may also perform the following steps:

终端通过光线感应传感器,获取第一光强值,以及终端进入通话状态前预设时间范围内的第二光强值,该光线传感器按照预设时间间隔获取光强值。The terminal acquires the first light intensity value and the second light intensity value within a preset time range before the terminal enters the call state through the light sensing sensor, and the light sensor acquires the light intensity value at preset time intervals.

在一种实施方式中,光线传感器可以按照预设时间间隔获取温度值,例如该预设时间间隔为1.5秒,即光线传感器每隔1.5秒获取一次温度值。在一种实施方式中,上述预设时间范围大于上述预设时间间隔。例如,预设时间范围为2秒内,而预设时间间隔为1.5秒。In one embodiment, the light sensor can acquire the temperature value at a preset time interval, for example, the preset time interval is 1.5 seconds, that is, the light sensor acquires the temperature value every 1.5 seconds. In an implementation manner, the preset time range is greater than the preset time interval. For example, the preset time range is within 2 seconds, and the preset time interval is 1.5 seconds.

基于此,在终端判断出第一温度值处于预设温度范围时,终端可以计算第二光强值和第一光强值的差值,并检测该差值是否大于或等于预设光强差值阈值。Based on this, when the terminal determines that the first temperature value is within the preset temperature range, the terminal can calculate the difference between the second light intensity value and the first light intensity value, and detect whether the difference is greater than or equal to the preset light intensity difference value threshold.

如果在判断出第一温度值处于预设温度范围时,终端检测出第二光强值和第一光强值的差值大于或等于预设光强差值阈值,那么终端可以控制显示屏进入休眠状态。If the terminal detects that the difference between the second light intensity value and the first light intensity value is greater than or equal to the preset light intensity difference threshold when it is determined that the first temperature value is within the preset temperature range, the terminal can control the display screen to enter dormant state.

也就是说,在检测到终端进入通话状态时,终端除了触发温度传感器获取第一温度值之外,还可以通过触发光线传感器获取此时的第一光强值,以及终端进入通话状态前预设时间范围内的第二光强值。例如,终端进入通话状态前2秒或3秒内的光强值,即第二光强值。That is to say, when it is detected that the terminal enters the call state, in addition to triggering the temperature sensor to obtain the first temperature value, the terminal can also obtain the first light intensity value at this time by triggering the light sensor, and the preset value before the terminal enters the call state. The second light intensity value in the time range. For example, the light intensity value within 2 seconds or 3 seconds before the terminal enters the talking state, that is, the second light intensity value.

之后,若终端判断出第一温度值处于预设温度范围,即终端判断出第一温度值处于预设的人体耳部温度范围内,那么终端可以计算第二光强值和第一光强值的差值,并判断该差值是否大于或等于预设光强差值阈值。Afterwards, if the terminal determines that the first temperature value is within the preset temperature range, that is, the terminal determines that the first temperature value is within the preset human ear temperature range, then the terminal can calculate the second light intensity value and the first light intensity value and judge whether the difference is greater than or equal to the preset light intensity difference threshold.

由于光线传感器一般也设置在显示屏上端受话器的周围,因此在用户未将终端贴近耳部时,光线传感器所处的环境较亮,其检测到的光强值较大。而在用户将终端贴近耳部时,由于耳部遮挡在光线传感器的前方,那么光线传感器会进入到较暗的环境,其检测到的光强值也会相应变得较小。Since the light sensor is generally also arranged around the receiver on the upper end of the display screen, when the user does not put the terminal close to the ear, the environment where the light sensor is located is brighter, and the light intensity value detected by it is larger. When the user puts the terminal close to the ear, since the ear is blocked in front of the light sensor, the light sensor will enter a darker environment, and the light intensity value detected by it will correspondingly become smaller.

因此,如果判断出第二光强值和第一光强值的差值大于或等于预设光强差值阈值,那么可以认为在终端由未通话状态进入到通话状态时,终端光线传感器所处的环境由较亮变为较暗,并且环境亮度的变化较大。在这种情况下,可以认为是用户将终端贴近耳部,此时可以控制显示屏进入休眠状态。Therefore, if it is determined that the difference between the second light intensity value and the first light intensity value is greater than or equal to the preset light intensity difference threshold, it can be considered that when the terminal enters the call state from the non-call state, the light sensor of the terminal The environment changes from brighter to darker, and the change in ambient brightness is large. In this case, it can be considered that the user puts the terminal close to the ear, and at this time, the display screen can be controlled to enter the sleep state.

如果在判断出第一温度值处于预设温度范围时,终端检测出第二光强值和第一光强值的差值小于预设光强差值阈值,那么终端可以控制显示屏进入亮屏状态。If the terminal detects that the difference between the second light intensity value and the first light intensity value is less than the preset light intensity difference threshold when it is determined that the first temperature value is within the preset temperature range, the terminal can control the display screen to enter the bright screen state.

可以理解的是,通过使用光线传感器来辅助温度传感器用于判断用户是否将终端贴近耳部,可以降低终端对接近判断的误判。It can be understood that by using the light sensor to assist the temperature sensor in judging whether the user puts the terminal close to the ear, misjudgment by the terminal on proximity judgment can be reduced.

在一种实施方式中,在终端控制显示屏进入休眠状态的步骤之后,还可以包括如下步骤:In one embodiment, after the step of the terminal controlling the display screen to enter the dormant state, the following steps may also be included:

终端通过温度传感器获取第三温度值;The terminal obtains the third temperature value through the temperature sensor;

若检测到该第三温度值不处于预设温度范围,则终端控制显示屏进入亮屏状态。If it is detected that the third temperature value is not within the preset temperature range, the terminal controls the display screen to enter a bright screen state.

比如,在控制显示屏进入休眠状态之后,终端还可以通过温度传感器获取温度传感器所处的环境的温度值,即第三温度值,并检测该第三温度值是否仍然处于预设温度范围。For example, after controlling the display screen to enter the dormant state, the terminal can also obtain the temperature value of the environment where the temperature sensor is located, that is, the third temperature value through the temperature sensor, and detect whether the third temperature value is still within the preset temperature range.

若检测到该第三温度值仍然处于预设温度范围,那么终端可以继续保持显示屏处于休眠状态。If it is detected that the third temperature value is still within the preset temperature range, the terminal may continue to keep the display screen in a dormant state.

若检测到该第三温度值脱离预设温度范围,那么终端可以控制显示屏进入亮屏状态。例如,由于用户不再将终端贴近耳部,那么终端通过温度传感器获取到的温度值就不再处于预设温度范围,此时终端可以控制显示屏进入亮屏状态。If it is detected that the third temperature value deviates from the preset temperature range, the terminal may control the display screen to enter a bright screen state. For example, since the user no longer puts the terminal close to the ear, the temperature value acquired by the terminal through the temperature sensor is no longer in the preset temperature range, and at this time the terminal can control the display to enter the bright screen state.

需要说明的是,在另一种实施方式中,当终端检测到通过温度传感器获取的第一温度值处于预设温度范围时,终端还可以直接获取陀螺仪传感器的输出数据,并在检测出该陀螺仪的输出数据处于预设数据的预设范围时,控制终端显示屏进入休眠状态。而不需要获取终端进入通话状态前预设时间范围内通过温度传感器获取第二温度值。It should be noted that, in another implementation manner, when the terminal detects that the first temperature value acquired by the temperature sensor is within the preset temperature range, the terminal may also directly acquire the output data of the gyroscope sensor, and upon detecting the When the output data of the gyroscope is within the preset range of the preset data, the display screen of the control terminal enters a sleep state. It is not necessary to obtain the second temperature value through the temperature sensor within a preset time range before the terminal enters the call state.

请参阅图7,图7为本发明实施例提供的接近检测装置的结构示意图。该接近检测装置应用于终端,该终端包括显示屏、外壳以及温度传感器,在该外壳的边框处开设有功能孔,该温度传感器容纳于该功能孔中,接近检测装置300可以包括:第一获取模块301,判断模块302,第一控制模块303。Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of an approach detection device provided by an embodiment of the present invention. The proximity detection device is applied to a terminal, and the terminal includes a display screen, a housing, and a temperature sensor. A functional hole is opened at the frame of the housing, and the temperature sensor is accommodated in the functional hole. The proximity detection device 300 may include: a first acquiring A module 301 , a judging module 302 , and a first control module 303 .

第一获取模块301,用于当检测到终端进入通话状态时,通过温度传感器获取第一温度值。The first obtaining module 301 is configured to obtain a first temperature value through a temperature sensor when it is detected that the terminal enters a call state.

比如,当检测到终端进入通话状态时,终端的第一获取模块301可以通过容纳于功能孔中的温度传感器获取第一温度值。例如,该功能孔可以开设在对应于显示屏上端的外壳上边框,并且靠近受话器的位置,如图1所示。For example, when it is detected that the terminal enters a call state, the first acquisition module 301 of the terminal may acquire the first temperature value through the temperature sensor accommodated in the function hole. For example, the functional hole may be provided on the upper frame of the housing corresponding to the upper end of the display screen and close to the receiver, as shown in FIG. 1 .

判断模块302,用于判断所述第一温度值是否处于预设温度范围,所述预设温度范围为人体体表的温度范围。A judging module 302, configured to judge whether the first temperature value is within a preset temperature range, and the preset temperature range is a temperature range of a human body surface.

比如,在第一获取模块301获取到第一温度值之后,判断模块302可以判断该第一温度值是否处于预设温度范围。该预设温度范围为人体体表的温度范围。For example, after the first acquiring module 301 acquires the first temperature value, the judging module 302 can judge whether the first temperature value is within a preset temperature range. The preset temperature range is the temperature range of the human body surface.

在一种实施方式中,上述预设温度范围可以是人体耳部的温度范围,例如为36.2°~37.2°。In an implementation manner, the preset temperature range may be a temperature range of a human ear, for example, 36.2°-37.2°.

第一控制模块303,用于若判断出所述第一温度值处于预设温度范围,则控制终端显示屏进入休眠状态。The first control module 303 is configured to control the display screen of the terminal to enter a sleep state if it is determined that the first temperature value is within a preset temperature range.

比如,如果判断模块302判断出该第一温度值处于预设温度范围,也即该第一温度值处于用户耳部的温度范围内,那么可以认为是用户将终端靠近耳部进行通话,此时第一控制模块303可以控制显示屏进入休眠状态(即息屏状态),从而避免用户脸部误触发终端显示屏。For example, if the judging module 302 judges that the first temperature value is within the preset temperature range, that is, the first temperature value is within the temperature range of the user's ear, then it can be considered that the user puts the terminal close to the ear to make a call. The first control module 303 can control the display screen to enter a dormant state (that is, a screen-off state), so as to prevent the user's face from accidentally triggering the terminal display screen.

例如,当终端进入通话状态时,第一获取模块301获取到的第一温度值为36.5°,而预设温度范围为36.2°~37.2°,那么判断模块302会判断出第一温度值进入预设温度范围。此时,可以认为用户将终端显示屏贴近耳部进行通话。在这种情况下,第一控制模块303可以控制显示屏进入休眠状态,从而防止用户脸部误触发显示屏。For example, when the terminal enters the call state, the first temperature value acquired by the first acquisition module 301 is 36.5°, and the preset temperature range is 36.2°-37.2°, then the judging module 302 will judge that the first temperature value has entered the preset temperature range. Set temperature range. At this time, it can be considered that the user puts the terminal display screen close to the ear to make a call. In this case, the first control module 303 may control the display screen to enter a sleep state, so as to prevent the user's face from triggering the display screen by mistake.

在一种实施方式中,第一控制模块303可以用于:In one embodiment, the first control module 303 can be used for:

若判断出该第一温度值处于预设温度范围,则获取终端进入通话状态前预设时间范围内通过温度传感器获取的第二温度值,所述温度传感器按照预设时间间隔获取温度值;If it is determined that the first temperature value is within a preset temperature range, then obtain a second temperature value obtained by a temperature sensor within a preset time range before the terminal enters a call state, and the temperature sensor obtains a temperature value according to a preset time interval;

若检测出该第二温度值不处于预设温度范围,则控制终端显示屏进入休眠状态。If it is detected that the second temperature value is not within the preset temperature range, the display screen of the control terminal enters a sleep state.

比如,第一获取模块301获取到的第一温度值为36.5°,该第一温度值处于预设温度范围36.2°~37.2°内。在这种情况下,第一控制模块303还可以获取终端进入通话状态前预设时间范围内通过温度传感器获取的第二温度值。例如,第一控制模块303获取终端进入通话状态前2秒或3秒内通过温度传感器获取的第二温度值。在一种实施方式中,该温度传感器可以按照预设时间间隔获取温度值,例如该预设时间间隔为1.5秒,即温度传感器每隔1.5秒获取一次温度值。在一种实施方式中,上述预设时间范围大于上述预设时间间隔。例如,预设时间范围为2秒,而预设时间间隔为1.5秒。For example, the first temperature value acquired by the first acquisition module 301 is 36.5°, and the first temperature value is within the preset temperature range of 36.2°˜37.2°. In this case, the first control module 303 may also obtain the second temperature value obtained by the temperature sensor within a preset time range before the terminal enters the talking state. For example, the first control module 303 acquires the second temperature value obtained by the temperature sensor within 2 seconds or 3 seconds before the terminal enters the talking state. In one embodiment, the temperature sensor can acquire the temperature value at a preset time interval, for example, the preset time interval is 1.5 seconds, that is, the temperature sensor acquires the temperature value every 1.5 seconds. In an implementation manner, the preset time range is greater than the preset time interval. For example, the preset time range is 2 seconds, and the preset time interval is 1.5 seconds.

在获取到第二温度值之后,若第一控制模块303检测出该第二温度值不在预设温度范围,那么第一控制模块303可以控制显示屏进入休眠状态。例如,第二温度值为25°。After acquiring the second temperature value, if the first control module 303 detects that the second temperature value is not within the preset temperature range, the first control module 303 may control the display screen to enter a sleep state. For example, the second temperature value is 25°.

也就是说,如果在终端由未通话状态进入通话状态的过程中,通过温度传感器获取的温度值由25°变为36.5°,也即温度传感器获取到的温度值由不处于耳部温度范围变为处于耳部温度范围,那么可以认为是用户在接听电话时,将终端贴近耳部。在这种情况下,第一控制模块303可以控制显示屏进入休眠状态。That is to say, if the temperature value obtained by the temperature sensor changes from 25° to 36.5° during the process of the terminal entering the call state from the non-call state, that is, the temperature value obtained by the temperature sensor changes from not being in the ear temperature range to 36.5°. If it is within the temperature range of the ear, it can be considered that the user puts the terminal close to the ear when answering the call. In this case, the first control module 303 may control the display screen to enter a sleep state.

请一并参阅图8,图8为本发明实施例提供的接近检测装置的另一结构示意图。在一种实施例中,接近检测装置300还可以包括:第二控制模块304,第二获取模块305,以及第三获取模块306。Please refer to FIG. 8 together. FIG. 8 is another schematic structural diagram of the proximity detection device provided by the embodiment of the present invention. In an embodiment, the approach detection device 300 may further include: a second control module 304 , a second acquisition module 305 , and a third acquisition module 306 .

第二控制模块304,用于若检测出所述第二温度值处于所述预设温度范围,则获取终端陀螺仪传感器的输出数据;当检测到所述陀螺仪传感器的输出数据处于预设数据的预设范围时,控制终端显示屏进入休眠状态,所述预设数据为预先在用户将终端贴近耳部时获取的陀螺仪传感器输出的数据。The second control module 304 is configured to acquire the output data of the terminal gyroscope sensor if it is detected that the second temperature value is in the preset temperature range; when it is detected that the output data of the gyroscope sensor is in the preset data range When within the preset range, the terminal display screen is controlled to enter a sleep state, and the preset data is the data output by the gyroscope sensor acquired in advance when the user puts the terminal close to the ear.

比如,第一控制模块303获取到的第二温度值为36.3°,并检测出该第二温度值同样处于预设温度范围36.2°~37.2°。例如,用户处于室外,并且室外环境温度较高,那么在终端未进入通话状态时获取的第二温度值即为当时的室外环境温度。在这种情况下,由于第一温度值和第二温度值非常接近,因此不容易判断出用户是否将终端贴近耳部进行通话。For example, the second temperature value acquired by the first control module 303 is 36.3°, and detects that the second temperature value is also within the preset temperature range of 36.2°-37.2°. For example, if the user is outside and the outdoor ambient temperature is relatively high, then the second temperature value obtained when the terminal is not in a call state is the current outdoor ambient temperature. In this case, since the first temperature value is very close to the second temperature value, it is not easy to determine whether the user puts the terminal close to the ear to make a call.

在这种情况下,可以由第二控制模块304获取陀螺仪传感器的输出数据。需要说明的是,陀螺仪传感器是基于空间移动和手势的定位和控制系统。陀螺仪传感器的输出数据是X、Y、Z三个轴的角加速度数据。通过陀螺仪传感器可以测出用户握持终端的手势。In this case, the output data of the gyro sensor can be acquired by the second control module 304 . It should be noted that the gyro sensor is a positioning and control system based on spatial movement and gestures. The output data of the gyro sensor is the angular acceleration data of the X, Y, and Z axes. The gesture of the user holding the terminal can be detected by the gyroscope sensor.

比如,在第二控制模块304获取到陀螺仪传感器的输出数据后,例如此时陀螺仪传感器的输出数据为(x1,y1,z1),第二控制模块304可以检测该陀螺仪传感器(x1,y1,z1)是否处于预设数据的预设范围。该预设数据为预先在用户将终端贴近耳部时获取的陀螺仪传感器输出的数据。For example, after the second control module 304 acquires the output data of the gyro sensor, for example, the output data of the gyro sensor is (x1, y1, z1), the second control module 304 can detect the gyro sensor (x1, y1, z1) is in the preset range of the preset data. The preset data is the data output by the gyro sensor acquired in advance when the user puts the terminal close to the ear.

在一种实施方式中,终端可以预先提示用户将终端贴近耳部模拟进行通话的手势动作,然后,终端可以获取在该手势动作下陀螺仪的输出数据,例如为(x0,y0,z0)。In an implementation manner, the terminal may pre-prompt the user to put the terminal close to the ear to simulate a gesture of making a call, and then the terminal may acquire the output data of the gyroscope under the gesture, for example (x0, y0, z0).

如果第二控制模块304检测出陀螺仪传感器的输出数据(x1,y1,z1)处于预设数据(x0,y0,z0)的预设范围内,那么可以认为此时用户的手势动作为将终端贴近耳部时的手势动作。在这种情况下,第二控制模块304可以控制显示屏进入休眠状态。If the second control module 304 detects that the output data (x1, y1, z1) of the gyro sensor is within the preset range of the preset data (x0, y0, z0), then it can be considered that the user's gesture at this time is to turn the terminal Gestures when placed close to the ear. In this case, the second control module 304 may control the display screen to enter a sleep state.

如果终端检测出陀螺仪传感器的输出数据(x1,y1,z1)不处于预设数据(x0,y0,z0)的预设范围内,那么可以认为此时用户的手势动作不是将终端贴近耳部时的手势动作。在这种情况下,终端可以控制显示屏进入亮屏状态。If the terminal detects that the output data (x1, y1, z1) of the gyro sensor is not within the preset range of the preset data (x0, y0, z0), then it can be considered that the user's gesture at this time is not putting the terminal close to the ear time gestures. In this case, the terminal can control the display screen to enter the bright screen state.

第二获取模块305,用于通过光线感应传感器,获取第一光强值,以及终端进入通话状态前预设时间范围内的第二光强值,所述光线传感器按照预设时间间隔获取光强值。The second acquisition module 305 is configured to acquire the first light intensity value and the second light intensity value within the preset time range before the terminal enters the call state through the light sensor sensor, and the light sensor acquires the light intensity at preset time intervals value.

基于此,所述第一控制模块303用于若判断出所述第一温度值处于预设温度范围,则计算所述第二光强值和所述第一光强值的差值;若检测出所述差值大于或等于预设光强差值阈值,则控制终端显示屏进入休眠状态。Based on this, the first control module 303 is configured to calculate the difference between the second light intensity value and the first light intensity value if it is determined that the first temperature value is within a preset temperature range; If the difference is greater than or equal to the preset light intensity difference threshold, the display screen of the control terminal enters a dormant state.

比如,在检测到终端进入通话状态时,除了触发第一获取模块301通过温度传感器获取第一温度值之外,还可以触发第二获取模块305通过光线传感器获取此时的第一光强值,以及终端进入通话状态前预设时间范围内的第二光强值。例如,终端进入通话状态前2秒或3秒内的光强值,即第二光强值。在一种实施方式中,光线传感器可以按照预设时间间隔获取温度值,例如该预设时间间隔为1.5秒,即光线传感器每隔1.5秒获取一次温度值。在一种实施方式中,上述预设时间范围大于上述预设时间间隔。例如,预设时间范围为2秒,而预设时间间隔为1.5秒。For example, when it is detected that the terminal enters the call state, in addition to triggering the first acquisition module 301 to acquire the first temperature value through the temperature sensor, the second acquisition module 305 can also be triggered to acquire the first light intensity value at this time through the light sensor, And the second light intensity value within the preset time range before the terminal enters the talking state. For example, the light intensity value within 2 seconds or 3 seconds before the terminal enters the talking state, that is, the second light intensity value. In one embodiment, the light sensor can acquire the temperature value at a preset time interval, for example, the preset time interval is 1.5 seconds, that is, the light sensor acquires the temperature value every 1.5 seconds. In an implementation manner, the preset time range is greater than the preset time interval. For example, the preset time range is 2 seconds, and the preset time interval is 1.5 seconds.

之后,若终端判断出第一温度值处于预设温度范围,即终端判断出第一温度值处于预设的人体耳部温度范围内,那么第一控制模块303可以计算第二光强值和第一光强值的差值,并判断该差值是否大于或等于预设光强差值阈值。Afterwards, if the terminal determines that the first temperature value is within the preset temperature range, that is, the terminal determines that the first temperature value is within the preset human ear temperature range, then the first control module 303 may calculate the second light intensity value and the second light intensity value. a light intensity difference, and determine whether the difference is greater than or equal to a preset light intensity difference threshold.

由于光线传感器一般也设置在显示屏上端受话器的周围,因此在用户未将终端贴近耳部时,光线传感器所处的环境较亮,其检测到的光强值较大。而在用户将终端贴近耳部时,由于耳部遮挡在光线传感器的前方,那么光线传感器会进入到较暗的环境,其检测到的光强值也会相应变得较小。Since the light sensor is generally also arranged around the receiver on the upper end of the display screen, when the user does not put the terminal close to the ear, the environment where the light sensor is located is brighter, and the light intensity value detected by it is larger. When the user puts the terminal close to the ear, since the ear is blocked in front of the light sensor, the light sensor will enter a darker environment, and the light intensity value detected by it will correspondingly become smaller.

因此,如果判断出第二光强值和第一光强值的差值大于或等于预设光强差值阈值,那么可以认为在终端由未通话状态进入到通话状态时,终端光线传感器所处的环境由较亮变为较暗,并且环境亮度的变化较大。在这种情况下,可以认为是用户将终端贴近耳部,此时第一控制模块303可以控制显示屏进入休眠状态。Therefore, if it is determined that the difference between the second light intensity value and the first light intensity value is greater than or equal to the preset light intensity difference threshold, it can be considered that when the terminal enters the call state from the non-call state, the light sensor of the terminal The environment changes from brighter to darker, and the change in ambient brightness is large. In this case, it can be considered that the user puts the terminal close to the ear, and at this time the first control module 303 can control the display screen to enter a sleep state.

如果在判断出第一温度值处于预设温度范围时,终端检测出第二光强值和第一光强值的差值小于预设光强差值阈值,那么终端可以控制显示屏进入亮屏状态。If the terminal detects that the difference between the second light intensity value and the first light intensity value is less than the preset light intensity difference threshold when it is determined that the first temperature value is within the preset temperature range, the terminal can control the display screen to enter the bright screen state.

第三获取模块306,用于通过所述温度传感器获取第三温度值;若检测到所述第三温度值不处于所述预设温度范围,则控制终端显示屏进入亮屏状态。The third acquiring module 306 is configured to acquire a third temperature value through the temperature sensor; if it is detected that the third temperature value is not within the preset temperature range, control the display screen of the terminal to enter a bright screen state.

比如,在终端控制显示屏进入休眠状态之后,还可以触发第三获取模块306通过温度传感器获取温度传感器所处的环境的温度值,即第三温度值,并检测该第三温度值是否仍然处于预设温度范围。For example, after the terminal controls the display screen to enter the dormant state, the third obtaining module 306 may also be triggered to obtain the temperature value of the environment where the temperature sensor is located, that is, the third temperature value through the temperature sensor, and detect whether the third temperature value is still at Preset temperature range.

若检测到该第三温度值仍然处于预设温度范围,那么终端可以继续保持显示屏处于休眠状态。If it is detected that the third temperature value is still within the preset temperature range, the terminal may continue to keep the display screen in a dormant state.

若检测到该第三温度值脱离预设温度范围,那么第三获取模块306可以控制显示屏进入亮屏状态。例如,由于用户不再将终端贴近耳部,那么终端通过温度传感器获取到的温度值就不再处于预设温度范围,此时第三获取模块306可以控制显示屏进入亮屏状态。If it is detected that the third temperature value deviates from the preset temperature range, the third obtaining module 306 may control the display screen to enter a bright screen state. For example, since the user no longer puts the terminal close to the ear, the temperature value obtained by the terminal through the temperature sensor is no longer in the preset temperature range, and at this time the third obtaining module 306 can control the display screen to enter the bright screen state.

本发明实施例还提供一种终端,例如平板电脑、智能手机等移动终端。The embodiment of the present invention also provides a terminal, such as a mobile terminal such as a tablet computer and a smart phone.

请参阅图9,图9为本发明实施例提供的移动终端的结构示意图。移动终端400可以包括显示屏401、外壳402、温度传感器403、处理器404、射频电路405以及存储器406。Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. The mobile terminal 400 may include a display screen 401 , a housing 402 , a temperature sensor 403 , a processor 404 , a radio frequency circuit 405 and a memory 406 .

显示屏401可以用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。The display screen 401 can be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof.

外壳402可以用于形成移动终端400的外部轮廓。外壳402的材质可以为塑料或金属。外壳402可以一体成型。The case 402 may be used to form an outer outline of the mobile terminal 400 . The material of the housing 402 can be plastic or metal. The shell 402 can be integrally formed.

温度传感器403可以用于采集自身周围环境的温度值。The temperature sensor 403 can be used to collect the temperature value of its own surrounding environment.

处理器404是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分。通过运行或执行存储在存储器406中的应用程序,以及调用存储在存储器406中的数据,执行移动终端400的各种功能和处理数据,从而对移动终端400进行整体监控。在一种实施方式中,处理器404可以包括一个或多个处理核心。The processor 404 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal. By running or executing the application program stored in the memory 406 and calling the data stored in the memory 406, various functions of the mobile terminal 400 are executed and data is processed, so as to monitor the mobile terminal 400 as a whole. In one implementation, processor 404 may include one or more processing cores.

射频电路405可以用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器404处理;另外,将涉及上行的数据发送给基站。The radio frequency circuit 405 can be used to send and receive information, or to receive and send signals during a call. In particular, after receiving the downlink information from the base station, it is processed by one or more processors 404; in addition, the data related to the uplink is sent to base station.

存储器406可以用于存储移动终端400的各种应用程序和数据等。The memory 406 can be used to store various application programs and data of the mobile terminal 400 .

在一种实施方式中,在外壳402的边框处可以开设有功能孔,温度传感器403可以容纳于该功能孔。温度传感器403用于在移动终端400进入通话状态时,获取第一温度值。In one embodiment, a functional hole may be opened at the frame of the housing 402, and the temperature sensor 403 may be accommodated in the functional hole. The temperature sensor 403 is used to obtain a first temperature value when the mobile terminal 400 enters a call state.

处理器404用于当判断出所述第一温度值处于预设温度范围时,控制所述显示屏401进入休眠状态,所述预设温度范围为人体体表的温度范围。The processor 404 is configured to control the display screen 401 to enter a sleep state when it is determined that the first temperature value is within a preset temperature range, and the preset temperature range is a temperature range of a human body surface.

在一实施方式中,所述温度传感器403可以用于按照预设时间间隔获取温度值。另外,在获取到温度值之后,温度传感器403可以将获取到的温度值保存在存储器406中,供处理器404调用。In an implementation manner, the temperature sensor 403 may be used to acquire temperature values at preset time intervals. In addition, after acquiring the temperature value, the temperature sensor 403 may store the acquired temperature value in the memory 406 for calling by the processor 404 .

基于此,所述处理器404可以用于当判断出所述第一温度值处于预设温度范围时,在存储器406中获取所述温度传感器403在所述移动终端400进入通话状态前预设时间范围内获取的第二温度值,并在检测出所述第二温度值不处于预设温度范围时,控制所述显示屏401进入休眠状态。Based on this, the processor 404 may be configured to obtain, in the memory 406, a preset time before the mobile terminal 400 enters a call state by the temperature sensor 403 when it is determined that the first temperature value is within a preset temperature range. The second temperature value obtained within the range, and when it is detected that the second temperature value is not within the preset temperature range, the display screen 401 is controlled to enter a sleep state.

在一种实施方式中,所述移动终端400还可以包括陀螺仪传感器407。陀螺仪传感器407可以用于在终端进入通话状态时输出数据。In an implementation manner, the mobile terminal 400 may further include a gyroscope sensor 407 . The gyroscope sensor 407 may be used to output data when the terminal enters a call state.

基于此,所述处理器404可以用于当判断出所述第一温度值和所述第二温度值均处于预设温度范围时,获取所述陀螺仪传感器407的输出数据,并在检测出所述陀螺仪传感器407的输出数据处于预设数据的预设范围时,控制所述显示屏401进入休眠状态,所述预设数据为预先在用户将终端贴近耳部时获取的陀螺仪传感器407输出的数据。Based on this, the processor 404 may be configured to obtain the output data of the gyroscope sensor 407 when it is determined that the first temperature value and the second temperature value are both within the preset temperature range, and when it is detected that When the output data of the gyro sensor 407 is within the preset range of the preset data, the display screen 401 is controlled to enter the dormant state, and the preset data is the gyro sensor 407 obtained in advance when the user puts the terminal close to the ear. output data.

在另一种实施方式中,所述移动终端400还可以包括光线感应传感器408。所述光线感应传感器408可以用于按照预设时间间隔获取光强值。另外,在获取到光强值之后,光线感应传感器408可以将获取到的光强值保存在存储器406中,供处理器404调用。In another implementation manner, the mobile terminal 400 may further include a light sensing sensor 408 . The light sensing sensor 408 can be used to acquire light intensity values at preset time intervals. In addition, after acquiring the light intensity value, the light sensing sensor 408 may store the acquired light intensity value in the memory 406 for calling by the processor 404 .

基于此,所述处理器404可以用于在检测到所述移动终端400进入通话状态时,获取所述光线感应传感器407采集的第一光强值,及在存储器406中获取所述移动终端400进入通话状态前预设时间范围内的所述光线感应传感器408采集的第二光强值;在判断出所述第一温度值处于预设温度范围时,所述处理器404计算所述第二光强值和所述第一光强值的差值,并在检测出所述差值大于或等于预设光强差值阈值时,控制所述显示屏401进入休眠状态。Based on this, the processor 404 can be configured to obtain the first light intensity value collected by the light sensor 407 when detecting that the mobile terminal 400 enters a call state, and obtain the light intensity value of the mobile terminal 400 in the memory 406. The second light intensity value collected by the light sensor 408 within the preset time range before entering the call state; when it is determined that the first temperature value is in the preset temperature range, the processor 404 calculates the second The difference between the light intensity value and the first light intensity value, and when it is detected that the difference is greater than or equal to a preset light intensity difference threshold, control the display screen 401 to enter a sleep state.

在一实施方式中,所述温度传感器403还可以用于在所述处理器404控制所述显示屏401进入休眠状态时,获取第三温度值。In an implementation manner, the temperature sensor 403 may also be used to obtain a third temperature value when the processor 404 controls the display screen 401 to enter a sleep state.

所述处理器404可以用于当检测到所述第三温度值不处于预设温度范围时,控制所述显示屏401进入亮屏状态。The processor 404 may be configured to control the display screen 401 to enter a bright screen state when it is detected that the third temperature value is not within a preset temperature range.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对接近检测方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases. For the part that is not described in detail in a certain embodiment, refer to the detailed description of the approach detection method above, and will not be repeated here.

本发明实施例提供的所述接近检测装置与上文实施例中的接近检测方法属于同一构思,在所述接近检测装置上可以运行所述接近检测方法实施例中提供的任一方法,其具体实现过程详见所述接近检测方法实施例,此处不再赘述。The approach detection device provided in the embodiment of the present invention belongs to the same idea as the approach detection method in the above embodiment, and any method provided in the embodiment of the approach detection method can be run on the approach detection device, specifically For the implementation process, please refer to the embodiment of the approach detection method, which will not be repeated here.

需要说明的是,对本发明实施例所述接近检测方法而言,本领域普通测试人员可以理解实现本发明实施例所述接近检测方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述接近检测方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the proximity detection method described in the embodiment of the present invention, ordinary testers in the field can understand that all or part of the process of implementing the proximity detection method described in the embodiment of the present invention can be controlled by a computer program. To complete, the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the process of the embodiment of the approach detection method . Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.

对本发明实施例的所述接近检测装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the proximity detection device in the embodiment of the present invention, its various functional modules can be integrated into one processing chip, or each module can exist separately physically, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .

以上对本发明实施例所提供的一种接近检测方法、装置以及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The approach detection method, device and terminal provided by the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for helping understanding The method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood To limit the present invention.

Claims (15)

1. a kind of proximity test method, methods described is applied to terminal, and the terminal includes display screen, shell and TEMP Device, it is characterised in that functional hole is offered at the frame of the shell, the temperature sensor is contained in the functional hole, Methods described includes:
When terminal is detected into talking state, the first temperature value is obtained by temperature sensor;
Whether first temperature value is judged in preset temperature range, and the preset temperature range is the temperature model of body surface Enclose;
If judging, first temperature value is in preset temperature range, and control terminal display screen enters resting state.
2. proximity test method according to claim 1, it is characterised in that if described judge at first temperature value In preset temperature range, then control terminal display screen enters resting state, including:
If judging, first temperature value is in preset temperature range, obtains terminal and enters Preset Time model before talking state The second temperature value obtained by the temperature sensor in enclosing, the temperature sensor obtains temperature according to prefixed time interval Value;
If detecting, the second temperature value is not at the preset temperature range, and control terminal display screen enters dormancy shape State.
3. proximity test method according to claim 2, it is characterised in that before the acquisition terminal enters talking state After the step of second temperature value obtained by the temperature sensor in preset time range, also include:
If detecting, the second temperature value is in the preset temperature range, obtains the output number of terminal gyro sensor According to;
When the output data for detecting the gyro sensor is in the preset range of preset data, control terminal display screen Into resting state, the preset data is the gyro sensor output for being obtained when terminal is pressed close to ear by user in advance Data.
4. proximity test method according to claim 1, it is characterised in that enter talking state in the terminal that detects The step of after, also include:
By light sensing sensor, the first light intensity value is obtained, and terminal enters before talking state in preset time range Second light intensity value, the light sensor obtains light intensity value according to prefixed time interval;
If described judge that first temperature value is in preset temperature range, control terminal display screen enters resting state bag Include:If judging, first temperature value is in preset temperature range, calculates second light intensity value and first light intensity The difference of value;If detecting, the difference is more than or equal to default light intensity difference threshold, and control terminal display screen enters dormancy State.
5. according to any described proximity test method in Claims 1-4, it is characterised in that shown in the control terminal After the step of screen enters resting state, also include:
3rd temperature value is obtained by the temperature sensor;
If detecting the 3rd temperature value is not at the preset temperature range, control terminal display screen enters bright screen shape State.
6. a kind of proximity test device, described device is applied to terminal, and the terminal includes display screen, shell and TEMP Device, it is characterised in that functional hole is offered at the frame of the shell, the temperature sensor is contained in the functional hole, Described device includes:
First acquisition module, for when terminal is detected into talking state, the first temperature value being obtained by temperature sensor;
Judge module, whether for judging first temperature value in preset temperature range, the preset temperature range is behaved The temperature range of body body surface;
First control module, if for judging that first temperature value is in preset temperature range, control terminal display screen Into resting state.
7. proximity test device according to claim 6, it is characterised in that first control module is used for:
If judging, first temperature value is in preset temperature range, obtains terminal and enters Preset Time model before talking state The second temperature value obtained by the temperature sensor in enclosing, the temperature sensor obtains temperature according to prefixed time interval Value;
If detecting, the second temperature value is not at the preset temperature range, and control terminal display screen enters dormancy shape State.
8. proximity test device according to claim 7, it is characterised in that described device also includes:Second control module, For
If detecting, the second temperature value is in the preset temperature range, obtains the output number of terminal gyro sensor According to;
When the output data for detecting the gyro sensor is in the preset range of preset data, control terminal display screen Into resting state, the preset data is the gyro sensor output for being obtained when terminal is pressed close to ear by user in advance Data.
9. proximity test device according to claim 6, it is characterised in that described device also includes:
Second acquisition module, for by light sensing sensor, obtaining the first light intensity value, and before terminal enters talking state The second light intensity value in preset time range, the light sensor obtains light intensity value according to prefixed time interval;
First control module, if for judging that first temperature value is in preset temperature range, calculating described the The difference of two light intensity values and first light intensity value;If detecting, the difference is more than or equal to default light intensity difference threshold, Control terminal display screen enters resting state.
10. according to any described proximity test device in claim 6 to 9, it is characterised in that described device also includes:The Three acquisition modules, are used for
3rd temperature value is obtained by the temperature sensor;
If detecting the 3rd temperature value is not at the preset temperature range, control terminal display screen enters bright screen shape State.
A kind of 11. terminals, including display screen, shell, temperature sensor and processor, it is characterised in that in the shell Functional hole is offered at frame, the temperature sensor is contained in the functional hole;
The temperature sensor is used to, when terminal enters talking state, obtain the first temperature value;
The processor is used to, when judging that first temperature value is in preset temperature range, control the display screen to enter Resting state, the preset temperature range is the temperature range of body surface.
12. terminals according to claim 11, it is characterised in that
The temperature sensor is used to obtain temperature value according to prefixed time interval;
The processor is used to, when judging that first temperature value is in preset temperature range, obtain the temperature sensor The second temperature value obtained in preset time range before the terminal enters talking state, and detecting the second temperature When value is not at preset temperature range, the display screen is controlled to enter resting state.
13. terminals according to claim 12, it is characterised in that the terminal also includes:
Gyro sensor, for the output data when terminal enters talking state;
The processor is used for when first temperature value is judged and the second temperature value is in preset temperature range, The output data of the gyro sensor is obtained, and present count is in the output data for detecting the gyro sensor According to preset range when, control the display screen to enter resting state, the preset data is in advance to press close to terminal in user The data of the gyro sensor output obtained during ear.
14. terminals according to claim 11, it is characterised in that the terminal also includes:
Light sensing sensor, for obtaining light intensity value according to prefixed time interval;
The processor is used to, when the terminal is detected into talking state, obtain the light sensing sensor collection First light intensity value, and the terminal enters the of the light sensing sensor collection before talking state in preset time range Two light intensity values;When judging that first temperature value is in preset temperature range, second light intensity value and described the are calculated The difference of one light intensity value, and when detecting that the difference is more than or equal to default light intensity difference threshold, control the display screen Into resting state.
15. according to any described terminal in claim 11 to 14, it is characterised in that
The temperature sensor is used to, when the processor controls the display screen to enter resting state, obtain the 3rd temperature Value;
The processor is used to, when detecting the 3rd temperature value and being not at preset temperature range, control the display screen to enter Enter bright screen state.
CN201710132076.3A 2017-03-07 2017-03-07 Proximity detection method, device and terminal Pending CN106851012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710132076.3A CN106851012A (en) 2017-03-07 2017-03-07 Proximity detection method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710132076.3A CN106851012A (en) 2017-03-07 2017-03-07 Proximity detection method, device and terminal

Publications (1)

Publication Number Publication Date
CN106851012A true CN106851012A (en) 2017-06-13

Family

ID=59138478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710132076.3A Pending CN106851012A (en) 2017-03-07 2017-03-07 Proximity detection method, device and terminal

Country Status (1)

Country Link
CN (1) CN106851012A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924319A (en) * 2018-08-30 2018-11-30 维沃移动通信有限公司 A kind of proximity test method and mobile terminal
CN109005294A (en) * 2018-08-27 2018-12-14 Tcl移动通信科技(宁波)有限公司 Screen control processing method, mobile terminal and storage medium when mobile terminal call
WO2019174341A1 (en) * 2018-03-16 2019-09-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Proximity-detection method for electronic device
CN110873876A (en) * 2018-08-31 2020-03-10 北京小米移动软件有限公司 Control method and device of terminal equipment
CN111818221A (en) * 2020-06-16 2020-10-23 欧菲微电子技术有限公司 Screen control method, screen control device, electronic device, and storage medium
CN112153207A (en) * 2019-06-26 2020-12-29 北京小米移动软件有限公司 Control method of terminal and display panel

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158609A (en) * 2011-05-09 2011-08-17 惠州Tcl移动通信有限公司 Wireless communication equipment and method for controlling backlight, touch screen and keyboard
CN103078991A (en) * 2012-12-11 2013-05-01 惠州Tcl移动通信有限公司 Method for controlling to switch off touch screen and mobile terminal
CN103841246A (en) * 2012-11-20 2014-06-04 联想(北京)有限公司 Information processing method and system, and mobile terminal
WO2015085745A1 (en) * 2013-12-13 2015-06-18 中兴通讯股份有限公司 Liquid crystal display backlight management method, device and terminal
CN204667367U (en) * 2015-06-19 2015-09-23 深圳天珑无线科技有限公司 Touch screen structure and touch screen terminal
CN204928927U (en) * 2015-09-10 2015-12-30 李彦辰 full display phone
CN106094990A (en) * 2016-06-12 2016-11-09 张帆 The screen maximized electronic equipment of accounting and using method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158609A (en) * 2011-05-09 2011-08-17 惠州Tcl移动通信有限公司 Wireless communication equipment and method for controlling backlight, touch screen and keyboard
CN103841246A (en) * 2012-11-20 2014-06-04 联想(北京)有限公司 Information processing method and system, and mobile terminal
CN103078991A (en) * 2012-12-11 2013-05-01 惠州Tcl移动通信有限公司 Method for controlling to switch off touch screen and mobile terminal
WO2015085745A1 (en) * 2013-12-13 2015-06-18 中兴通讯股份有限公司 Liquid crystal display backlight management method, device and terminal
CN204667367U (en) * 2015-06-19 2015-09-23 深圳天珑无线科技有限公司 Touch screen structure and touch screen terminal
CN204928927U (en) * 2015-09-10 2015-12-30 李彦辰 full display phone
CN106094990A (en) * 2016-06-12 2016-11-09 张帆 The screen maximized electronic equipment of accounting and using method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019174341A1 (en) * 2018-03-16 2019-09-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Proximity-detection method for electronic device
US10789888B2 (en) 2018-03-16 2020-09-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Proximity-detection method for electronic device
CN109005294A (en) * 2018-08-27 2018-12-14 Tcl移动通信科技(宁波)有限公司 Screen control processing method, mobile terminal and storage medium when mobile terminal call
CN108924319A (en) * 2018-08-30 2018-11-30 维沃移动通信有限公司 A kind of proximity test method and mobile terminal
CN110873876A (en) * 2018-08-31 2020-03-10 北京小米移动软件有限公司 Control method and device of terminal equipment
CN112153207A (en) * 2019-06-26 2020-12-29 北京小米移动软件有限公司 Control method of terminal and display panel
CN111818221A (en) * 2020-06-16 2020-10-23 欧菲微电子技术有限公司 Screen control method, screen control device, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN106851012A (en) Proximity detection method, device and terminal
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
CN107665697B (en) A method for adjusting screen brightness and a mobile terminal
CN107943345B (en) Calibration method, device, storage medium and electronic device for proximity sensor
CN105183284B (en) A kind of method and user terminal for checking short message
CN107942306B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
CN106951850B (en) A kind of method and mobile terminal controlling fingerprint recognition mould group
CN110875978A (en) Terminal display control method, terminal and computer readable storage medium
CN109451130B (en) Mobile terminal testing method and device, mobile terminal and storage medium
WO2019095155A1 (en) Fatigue notification method and terminal
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN108429888A (en) Light supplement method and mobile terminal
CN106646440A (en) Drop height detection method and drop height detection device
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
WO2018161540A1 (en) Fingerprint registration method and related product
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN108388400A (en) A kind of operation processing method and mobile terminal
US10719926B2 (en) Image stitching method and electronic device
CN110691168A (en) Screen control method and device of mobile terminal and storage medium
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN108429363A (en) A kind of wireless charging method and wireless charging device
CN108304709B (en) Face unlocking method and related product
CN105677104A (en) User terminal control method and user terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111083288B (en) Screen control method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613