[go: up one dir, main page]

CN106775308B - proximity sensor switching method and device and terminal - Google Patents

proximity sensor switching method and device and terminal Download PDF

Info

Publication number
CN106775308B
CN106775308B CN201611107921.3A CN201611107921A CN106775308B CN 106775308 B CN106775308 B CN 106775308B CN 201611107921 A CN201611107921 A CN 201611107921A CN 106775308 B CN106775308 B CN 106775308B
Authority
CN
China
Prior art keywords
terminal
proximity sensor
holding mode
frame
module
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.)
Active
Application number
CN201611107921.3A
Other languages
Chinese (zh)
Other versions
CN106775308A (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 CN201611107921.3A priority Critical patent/CN106775308B/en
Publication of CN106775308A publication Critical patent/CN106775308A/en
Application granted granted Critical
Publication of CN106775308B publication Critical patent/CN106775308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a proximity sensor switching method, a proximity sensor switching device and a terminal; the proximity sensor switching method comprises the steps of acquiring a holding mode of a terminal and a proximity sensor identifier corresponding to a currently started proximity sensor when the terminal is in a call state; acquiring a target proximity sensor identifier corresponding to the holding mode; and when the proximity sensor identification is judged not to be matched with the target proximity sensor identification, switching the currently started proximity sensor to the target proximity sensor corresponding to the target proximity sensor identification. According to the embodiment of the invention, the corresponding proximity sensor can be selected according to the holding mode of the terminal, so that the detection accuracy of the proximity sensor is improved.

Description

接近传感器切换方法、装置及终端Proximity sensor switching method, device and terminal

技术领域technical field

本发明涉及终端技术领域,具体涉及一种接近传感器切换方法、装置及终端。The present invention relates to the technical field of terminals, in particular to a proximity sensor switching method, device and terminal.

背景技术Background technique

随着终端技术的迅速发展,智能终端越来越普及,成为人们生活中必不可少的设备。人们可以通过智能终端学习、娱乐等等。With the rapid development of terminal technology, smart terminals are becoming more and more popular and become an indispensable device in people's lives. People can learn, entertain and so on through smart terminals.

在智能终端中一般通过接近传感器来检测终端与阻挡物之间的距离,具体利用一个红外发射器以及一个红外接收器来实现。该红外发射器发出红外光线,经过阻挡物反射后形成反射光线,该红外接收器接收到该反射光线后,根据反射光线的光强值来判断是该智能终端是接近还是远离阻挡物。In a smart terminal, the distance between the terminal and the obstacle is generally detected by a proximity sensor, which is implemented by using an infrared transmitter and an infrared receiver. The infrared transmitter emits infrared light, which is reflected by the obstacle to form a reflected light. After receiving the reflected light, the infrared receiver determines whether the smart terminal is close to or away from the obstacle according to the light intensity value of the reflected light.

为了提高检测的准确性,在受话器两侧各设置一接近传感器,其中一个接近传感器既发射红外光线又接收返回的红外光线,另一个接近传感器只接收返回的红外光线。然而,假设用户右手持握智能终端通话,此时受话器第一接近传感器的发射器发射红外线后,将被人脸阻挡后反射回来,由第一接近传感器的接收器接收,从而判断出智能终端贴近人脸。然而,如果用户改成左手持握智能终端,此时第一接近传感器的发射器发射红外线后,不被人脸阻挡,此时造成终端将接收到终端远离人脸的数据,从而造成误判。In order to improve the detection accuracy, a proximity sensor is arranged on both sides of the receiver, one of the proximity sensors both emits infrared light and receives the returned infrared light, and the other proximity sensor only receives the returned infrared light. However, assuming that the user holds the smart terminal in the right hand to make a call, at this time, after the transmitter of the first proximity sensor of the receiver emits infrared rays, it will be blocked by the face and then reflected back and received by the receiver of the first proximity sensor, thereby judging that the smart terminal is close to human face. However, if the user changes to hold the smart terminal with the left hand, the transmitter of the first proximity sensor emits infrared rays and is not blocked by the face. At this time, the terminal will receive data that the terminal is far from the face, resulting in misjudgment.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种接近传感器切换方法、装置及终端,可以提高接近传感器检测的准确性。The embodiments of the present invention provide a proximity sensor switching method, device and terminal, which can improve the detection accuracy of the proximity sensor.

本发明实施例提供一种接近传感器切换方法,包括:An embodiment of the present invention provides a proximity sensor switching method, including:

当终端处于通话状态时,获取所述终端的握持模式和当前开启的接近传感器对应的接近传感器标识;When the terminal is in a call state, acquiring the holding mode of the terminal and the proximity sensor identifier corresponding to the currently turned on proximity sensor;

获取所述握持模式对应的目标接近传感器标识;acquiring the target proximity sensor identifier corresponding to the holding mode;

当判断所述接近传感器标识与所述目标接近传感器标识不匹配时,将所述当前开启的接近传感器切换至所述目标接近传感器标识对应的目标接近传感器。When it is determined that the proximity sensor identifier does not match the target proximity sensor identifier, the currently enabled proximity sensor is switched to the target proximity sensor corresponding to the target proximity sensor identifier.

本发明实施例还提供了一种接近传感器切换装置,包括:The embodiment of the present invention also provides a proximity sensor switching device, including:

第一获取模块,用于当终端处于通话状态时,获取所述终端的握持模式和当前开启的接近传感器对应的接近传感器标识;a first acquiring module, configured to acquire the holding mode of the terminal and the proximity sensor identifier corresponding to the currently enabled proximity sensor when the terminal is in a call state;

第二获取模块,用于获取所述握持模式对应的目标接近传感器标识;a second acquiring module, configured to acquire the target proximity sensor identifier corresponding to the holding mode;

切换模块,用于当判断所述接近传感器标识与所述目标接近传感器标识不匹配时,将所述当前开启的接近传感器切换至所述目标接近传感器标识对应的目标接近传感器。A switching module, configured to switch the currently turned on proximity sensor to a target proximity sensor corresponding to the target proximity sensor ID when it is determined that the proximity sensor ID does not match the target proximity sensor ID.

本发明实施例还提供了一种终端,包括:An embodiment of the present invention also provides a terminal, including:

存储有可以执行程序代码的存储器;a memory that stores executable program code;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例任一方法中所描述的部分或全部步骤。The processor invokes the executable program code stored in the memory to execute some or all of the steps described in any method in the embodiments of the present invention.

本发明实施例公开一种接近传感器切换方法、装置及终端;该接近传感器切换方法包括当终端处于通话状态时,获取终端的握持模式和当前开启的接近传感器对应的接近传感器标识;获取握持模式对应的目标接近传感器标识;当判断接近传感器标识与目标接近传感器标识不匹配时,将当前开启的接近传感器切换至所述目标接近传感器标识对应的目标接近传感器。本发明实施例可以根据终端的握持模式选择对应的接近传感器,因此提高了接近传感器检测的准确性。Embodiments of the present invention disclose a proximity sensor switching method, device, and terminal; the proximity sensor switching method includes, when the terminal is in a call state, acquiring a holding mode of the terminal and a proximity sensor identifier corresponding to a currently turned on proximity sensor; acquiring the holding mode The target proximity sensor identification corresponding to the mode; when it is determined that the proximity sensor identification does not match the target proximity sensor identification, the currently turned on proximity sensor is switched to the target proximity sensor corresponding to the target proximity sensor identification. In the embodiment of the present invention, the corresponding proximity sensor can be selected according to the holding mode of the terminal, thus improving the detection accuracy of the proximity sensor.

附图说明Description of drawings

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

图1为本发明优选实施例的接近传感器切换方法的流程图。FIG. 1 is a flowchart of a method for switching a proximity sensor according to a preferred embodiment of the present invention.

图2为本发明优选实施例的终端的结构示意图。FIG. 2 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention.

图3为本发明优选实施例的接近传感器的工作原理示意图。FIG. 3 is a schematic diagram of the working principle of the proximity sensor according to the preferred embodiment of the present invention.

图4为本发明优选实施例的第一接近传感器的工作示意图。FIG. 4 is a working schematic diagram of the first proximity sensor according to the preferred embodiment of the present invention.

图5为本发明优选实施例的第二接近传感器的工作示意图。FIG. 5 is a working schematic diagram of the second proximity sensor according to the preferred embodiment of the present invention.

图6为本发明优选实施例的接近传感器切换方法的另一流程图。FIG. 6 is another flowchart of a method for switching a proximity sensor according to a preferred embodiment of the present invention.

图7为本发明优选实施例的终端左手握持模式示意图。FIG. 7 is a schematic diagram of a left-hand holding mode of a terminal according to a preferred embodiment of the present invention.

图8为本发明优选实施例的终端右手握持模式示意图。FIG. 8 is a schematic diagram of a right hand holding mode of a terminal according to a preferred embodiment of the present invention.

图9为本发明优选实施例的终端的另一结构示意图。FIG. 9 is another schematic structural diagram of a terminal according to a preferred embodiment of the present invention.

图10为本发明优选实施例的接近传感器切换装置的结构示意图。FIG. 10 is a schematic structural diagram of a proximity sensor switching device according to a preferred embodiment of the present invention.

具体实施方式Detailed ways

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

本发明中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first", "second", "third" and "fourth" in the present invention are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or modules, but optionally also includes unlisted steps or modules, or optionally also includes Other steps or modules inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本发明实施例提供的接近传感器切换方法的执行主体,可以为本发明实施例提供的接近传感器切换装置,或者集成了所述接近传感器切换装置的终端,所述接近传感器切换装置可以采用硬件或者软件的方式实现;本发明实施例所描述的终端可以是智能手机(如Android手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等移动设备,上述终端仅是举例,而非穷举,包含但不限于上述终端。The execution body of the proximity sensor switching method provided in the embodiment of the present invention may be the proximity sensor switching device provided in the embodiment of the present invention, or a terminal integrated with the proximity sensor switching device, and the proximity sensor switching device may adopt hardware or software The terminal described in this embodiment of the present invention may be a smart phone (such as an Android mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a handheld computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable device. and other mobile devices, the above-mentioned terminals are only examples, not exhaustive, including but not limited to the above-mentioned terminals.

本发明实施例提供了一种接近传感器切换方法、装置和终端。以下将分别进行详细说明。Embodiments of the present invention provide a proximity sensor switching method, device, and terminal. The detailed descriptions will be given below.

在一优选实施例中,将从接近传感器切换装置的角度进行描述,该接近传感器切换装置具体可以软件或者硬件的形式集成在终端中,该终端可以为智能手机、平板电脑等设备。In a preferred embodiment, the description will be made from the perspective of a proximity sensor switching device. The proximity sensor switching device may be integrated in a terminal in the form of software or hardware, and the terminal may be a device such as a smartphone or a tablet computer.

请参照图1,图1为本优选实施例提供的第一种接近传感器切换方法的流程图。下面对本优选实施例的接近传感器切换方法的各个步骤进行详细说明。Please refer to FIG. 1 , which is a flowchart of a first proximity sensor switching method provided by this preferred embodiment. Each step of the proximity sensor switching method of this preferred embodiment will be described in detail below.

步骤S101,当终端处于通话状态时,获取终端的握持模式和当前开启的接近传感器对应的接近传感器标识。Step S101 , when the terminal is in a call state, acquire the holding mode of the terminal and the proximity sensor identifier corresponding to the currently turned on proximity sensor.

当终端处于通话状态时,可以通过终端中内置的接近传感器来检测终端是否贴近人脸,在贴近人脸时关闭终端屏幕光线以节省终端电量。如图2所示,在终端受话器100两侧各内置有一接近传感器,其中B区域下隐藏有第一接近传感器200,A区域下隐藏有第二接近传感器300。When the terminal is in a call state, the built-in proximity sensor in the terminal can detect whether the terminal is close to the face, and when the terminal is close to the face, the light of the terminal screen is turned off to save the power of the terminal. As shown in FIG. 2 , there is a built-in proximity sensor on both sides of the terminal receiver 100 , wherein the first proximity sensor 200 is hidden under the B area, and the second proximity sensor 300 is hidden under the A area.

在实际的距离检测过程中,一侧接近传感器的发射器发射探测光线,经阻挡物发射后形成近光信号和远光信号,再由同侧接近传感器的接收器接收该近光信号,另一侧接近传感器的接收器接收该远光信号,来检测终端与阻挡物之间的距离。如图3所示,第一接近传感器200的发射器201发射探测光线,第一接近传感器200的接收器202接收经阻挡物30反射回的近光信号,第二接近传感器300的接收器302接收经阻挡物30反射回的远光信号。在一些实施例中,发射器发出的也可以是探测声波。在另一些实施例中,发射器发出的还可以是其他类型的探测信号,如激光等。In the actual distance detection process, the transmitter of the proximity sensor on one side emits detection light, which is emitted by the barrier to form a low-beam signal and a high-beam signal, and then the receiver of the proximity sensor on the same side receives the low-beam signal, and the other The receiver of the side proximity sensor receives the high beam signal to detect the distance between the terminal and the obstacle. As shown in FIG. 3 , the transmitter 201 of the first proximity sensor 200 emits detection light, the receiver 202 of the first proximity sensor 200 receives the low beam signal reflected by the barrier 30 , and the receiver 302 of the second proximity sensor 300 receives The high beam signal reflected back by the barrier 30 . In some embodiments, probe sound waves may also be emitted by the transmitter. In other embodiments, the transmitter may also send other types of detection signals, such as laser light.

其中握持模式包括左手握持模式和右手握持模式。左手握持模式即用户通话时用左手握持终端。如图2所示,终端受话器100置于人耳上,此时终端受话器右侧部分,即A区域所示,将紧贴人脸。右手握持模式即用户通话时用右手握持终端,此时终端受话100左侧部分,即B区域所示,将紧贴人脸。The holding modes include a left-hand holding mode and a right-hand holding mode. The left-hand holding mode means that the user holds the terminal with the left hand when making a call. As shown in FIG. 2 , the terminal receiver 100 is placed on the human ear, and at this time, the right part of the terminal receiver, that is, as shown in the area A, will be close to the human face. The right-hand holding mode means that the user holds the terminal with the right hand when making a call. At this time, the left part of the terminal receiving the call 100, which is shown in the area B, will be close to the face.

由于当终端处于左手握持模式时,受话器右侧部分紧贴人脸,左侧部分与人脸保持一段距离,而当终端处于右手握持模式时,受话器左侧部分紧贴人脸时,右侧部分与人脸保持一段距离。因此假设第一接近传感器的发射器发射探测光线,第一接近传感器的接收器接收近光信号,第二接近传感器的接收器接收远光信号。则当终端通话处于右手握持模式时,将检测到终端紧贴人脸的接近数据,而当终端处于左手握持模式时,将误检测到终端远离人脸的远离数据。Because when the terminal is held in the left-hand mode, the right part of the receiver is close to the face, and the left part is kept at a distance from the face, while when the terminal is held in the right-hand mode, when the left part of the receiver is close to the face, the right The side part is kept some distance from the face. Therefore, it is assumed that the transmitter of the first proximity sensor emits detection light, the receiver of the first proximity sensor receives the low beam signal, and the receiver of the second proximity sensor receives the high beam signal. Then, when the terminal is in the right-hand holding mode, it will detect the proximity data that the terminal is close to the face, and when the terminal is in the left-hand holding mode, it will erroneously detect the remote data that the terminal is far away from the face.

因此当终端处于左手握持模式时,应开启第二接近传感器来检测终端与人脸的距离,当终端处于右手握持模式时,应开启第一接近传感器来检测终端与人脸的距离,从而提高接近传感器检测的准确性。故要先获取终端的握持模式和当前开启的接近传感器对应的接近传感器标识,其中接近传感器标识指示当前开启的接近传感器。在一些实施例中,可以通过终端边框的电容信息来获取终端的握持模式,在一些实施例中,可以通过终端边框的受压信息来获取终端的握持模式。Therefore, when the terminal is in the left-hand holding mode, the second proximity sensor should be turned on to detect the distance between the terminal and the face. When the terminal is in the right-hand holding mode, the first proximity sensor should be turned on to detect the distance between the terminal and the face, thereby Improve the accuracy of proximity sensor detection. Therefore, it is necessary to first obtain the holding mode of the terminal and the proximity sensor identifier corresponding to the currently enabled proximity sensor, wherein the proximity sensor identifier indicates the currently enabled proximity sensor. In some embodiments, the holding mode of the terminal can be obtained through capacitance information of the terminal frame, and in some embodiments, the holding mode of the terminal can be obtained through the pressure information of the terminal frame.

步骤S102,获取握持模式对应的目标接近传感器标识。Step S102, acquiring the target proximity sensor identifier corresponding to the holding mode.

然后获取握持模式对应的目标接近传感器标识,如果是左手握持模式,则获取右侧传感器标识,如果是右手握持模式,则获取左侧传感器标识。Then, the target proximity sensor identification corresponding to the holding mode is obtained. If it is a left-handed holding mode, the right sensor identification is obtained, and if it is a right-handed holding mode, the left sensor identification is obtained.

步骤S103,当判断接近传感器标识与目标接近传感器标识不匹配时,将当前开启的接近传感器切换至目标接近传感器标识对应的目标接近传感器。Step S103, when it is determined that the proximity sensor identifier does not match the target proximity sensor identifier, switch the currently turned on proximity sensor to the target proximity sensor corresponding to the target proximity sensor identifier.

接下来,判断该接近传感器标识是否与目标接近传感器标识匹配,如不匹配,则说明可能会引起接近传感器误判,因此切换至目标接近传感器标识对应的目标接近传感器。如果目标接近传感器标识对应的目标接近传感器为第一接近传感器,则关闭第二接近传感器的发射器和接收器,并开启第一接近传感器的发射器和接收器,如图4所示;同理,如果目标接近传感器标识对应的目标接近传感器为第二接近传感器,则关闭第一接近传感器的发射器和接收器,并开启第二接近传感器的发射器和接收器,如图5所示。Next, it is determined whether the proximity sensor identification matches the target proximity sensor identification. If it does not match, it means that the proximity sensor may misjudge, so switch to the target proximity sensor corresponding to the target proximity sensor identification. If the target proximity sensor corresponding to the target proximity sensor identification is the first proximity sensor, turn off the transmitter and receiver of the second proximity sensor, and turn on the transmitter and receiver of the first proximity sensor, as shown in Figure 4; , if the corresponding target proximity sensor identified by the target proximity sensor is the second proximity sensor, turn off the transmitter and receiver of the first proximity sensor, and turn on the transmitter and receiver of the second proximity sensor, as shown in FIG. 5 .

如匹配,则继续通过当前开启的接近传感器来检测终端与阻挡物之间的距离。当检测到接近数据时,关闭终端屏幕亮度;当检测到远离数据时,开启终端屏幕亮度。If it matches, continue to detect the distance between the terminal and the obstacle through the currently turned on proximity sensor. When the proximity data is detected, the terminal screen brightness is turned off; when the remote data is detected, the terminal screen brightness is turned on.

本发明实施例的接近传感器切换方法根据终端的握持模式选择开启对应的接近传感器,因此提高了接近传感器检测的准确性。The proximity sensor switching method of the embodiment of the present invention selects and turns on the corresponding proximity sensor according to the holding mode of the terminal, thus improving the detection accuracy of the proximity sensor.

在一优选实施例中,将对本发明的接近传感器切换方法作进一步介绍。In a preferred embodiment, the proximity sensor switching method of the present invention will be further introduced.

本优选实施例将从接近传感器切换装置的角度进行描述,该接近传感器切换装置具体可以软件或者硬件的形式集成在终端中,该终端可以为智能手机、平板电脑等设备。This preferred embodiment will be described from the perspective of a proximity sensor switching device. The proximity sensor switching device can be specifically integrated in a terminal in the form of software or hardware, and the terminal can be a smartphone, a tablet computer, or other devices.

请参照图6,图6为本优选实施例提供的第二种接近传感器切换方法的流程图。下面对本优选实施例的接近传感器切换方法的各个步骤进行详细说明。Please refer to FIG. 6 , which is a flowchart of a second proximity sensor switching method provided in this preferred embodiment. Each step of the proximity sensor switching method of this preferred embodiment will be described in detail below.

步骤S201,获取握持模式。Step S201, acquiring a holding mode.

预先的获取终端握持模式,其中握持模式包括左手握持模式和右手握持模式。左手握持模式即用户通话时用左手握持终端。如图2所示,终端受话器100置于人耳上,此时终端受话器右侧部分,即A区域所示,将紧贴人脸。右手握持模式即用户通话时用右手握持终端,此时终端受话器100左侧部分,即B区域所示,将紧贴人脸。The holding mode of the terminal is obtained in advance, wherein the holding mode includes a left-hand holding mode and a right-hand holding mode. The left-hand holding mode means that the user holds the terminal with the left hand when making a call. As shown in FIG. 2 , the terminal receiver 100 is placed on the human ear, and at this time, the right part of the terminal receiver, that is, as shown in the area A, will be close to the human face. The right-hand holding mode means that the user holds the terminal with the right hand when making a call. At this time, the left part of the receiver 100 of the terminal, as shown in area B, will be close to the face.

步骤S202,获取握持模式对应的接近传感器标识。Step S202, acquiring the proximity sensor identifier corresponding to the holding mode.

在受话器两侧各内置有一接近传感器,如图2所示,B区域下隐藏有第一接近传感器200,A区域下隐藏有第二接近传感器300,其中,如图3所示,第一接近传感器200包含发射器201和接收器202,第二接近传感器300包括发射器301和接收器302。There is a built-in proximity sensor on both sides of the receiver. As shown in FIG. 2 , the first proximity sensor 200 is hidden under the B area, and the second proximity sensor 300 is hidden under the A area. As shown in FIG. 3 , the first proximity sensor 200 includes a transmitter 201 and a receiver 202 , and the second proximity sensor 300 includes a transmitter 301 and a receiver 302 .

在实际的距离检测过程中,一侧接近传感器的发射器发射探测光线,经阻挡物发射后形成近光信号和远光信号,再由同侧接近传感器的接收器接收该近光信号,另一侧接近传感器的接收器接收该远光信号,来检测终端与阻挡物之间的距离。如图3所示,第一接近传感器200的发射器201发射探测光线,第一接近传感器200的接收器202接收经阻挡物30反射回的近光信号,第二接近传感器300的接收器302接收经阻挡物30反射回的远光信号。在一些实施例中,发射器发出的也可以是探测声波。在另一些实施例中,发射器发出的还可以是其他类型的探测信号,如激光等。In the actual distance detection process, the transmitter of the proximity sensor on one side emits detection light, which is emitted by the barrier to form a low-beam signal and a high-beam signal, and then the receiver of the proximity sensor on the same side receives the low-beam signal, and the other The receiver of the side proximity sensor receives the high beam signal to detect the distance between the terminal and the obstacle. As shown in FIG. 3 , the transmitter 201 of the first proximity sensor 200 emits detection light, the receiver 202 of the first proximity sensor 200 receives the low beam signal reflected by the barrier 30 , and the receiver 302 of the second proximity sensor 300 receives The high beam signal reflected back by the barrier 30 . In some embodiments, probe sound waves may also be emitted by the transmitter. In other embodiments, the transmitter may also send other types of detection signals, such as laser light.

在本优选实施例中,当终端处于通话状态时,可以通过接近传感器检测终端是否贴近人脸,在贴近人脸时关闭终端屏幕光线来节省终端电量。由于当终端处于左手握持模式时,受话器右侧部分紧贴人脸,左侧部分与人脸保持一段距离,而当终端处于右手握持模式时,受话器左侧部分紧贴人脸时,右侧部分与人脸保持一段距离。因此假设第一接近传感器的发射器发射探测光线,第一接近传感器的接收器接收近光信号,第二接近传感器的接收器接收远光信号。则当终端通话处于右手握持模式时,将检测到终端紧贴人脸的接近数据,而当终端处于左手握持模式时,将误检测到终端远离人脸的远离数据。In this preferred embodiment, when the terminal is in a call state, a proximity sensor can be used to detect whether the terminal is close to a human face, and the terminal screen light is turned off when it is close to a human face to save the power of the terminal. Because when the terminal is held in the left-hand mode, the right part of the receiver is close to the face, and the left part is kept at a distance from the face, while when the terminal is held in the right-hand mode, when the left part of the receiver is close to the face, the right The side part is kept some distance from the face. Therefore, it is assumed that the transmitter of the first proximity sensor emits detection light, the receiver of the first proximity sensor receives the low beam signal, and the receiver of the second proximity sensor receives the high beam signal. Then, when the terminal is in the right-hand holding mode, it will detect the proximity data that the terminal is close to the face, and when the terminal is in the left-hand holding mode, it will erroneously detect the remote data that the terminal is far away from the face.

经上述分析,当终端处于左手握持模式时,应开启第二接近传感器进行距离检测,当终端处于右手握持模式时,应开启第一接近传感器进行距离检测。因此当获取左手握持模式时,获取第二接近传感器标识,其中第二接近传感器标识指示第二接近传感器;当获取右手握持模式时,获取第一接近传感器标识,其中第一接近传感器标识指示第一接近传感器。According to the above analysis, when the terminal is in the left-hand holding mode, the second proximity sensor should be turned on for distance detection, and when the terminal is in the right-hand holding mode, the first proximity sensor should be turned on for distance detection. Therefore, when the left-hand holding mode is acquired, the second proximity sensor identifier is acquired, wherein the second proximity sensor identifier indicates the second proximity sensor; when the right-hand holding mode is acquired, the first proximity sensor identifier is acquired, wherein the first proximity sensor identifier indicates The first proximity sensor.

步骤S203,将握持模式和接近传感器标识建立关联关系存储。Step S203, establishing an association relationship between the holding mode and the proximity sensor identifier and storing.

经过步骤S203的分析可知,左手握持模式对应第二接近传感器标识,右手握持模式对应第一接近传感器标识。因此可以将左手握持模式和第二接近传感器,右手握持模式和第一接近传感器建立关联关系存储起来。在一些实施例中,可以通过建立关联关系列表来存储。在一些实施例中,可以建立数据库来存储。The analysis in step S203 shows that the left-hand holding mode corresponds to the second proximity sensor identifier, and the right-hand holding mode corresponds to the first proximity sensor identifier. Therefore, the left-hand holding mode and the second proximity sensor, and the right-hand holding mode and the first proximity sensor can be associated and stored. In some embodiments, it can be stored by building an association list. In some embodiments, a database may be established for storage.

综上,步骤S201-S203为给握持模式和接近传感器标识建立关联关系的预设过程。接下来详细介绍根据握持模式选择接近传感器的过程。To sum up, steps S201-S203 are preset processes for establishing an association relationship between the holding mode and the proximity sensor identifier. Next, the process of selecting a proximity sensor based on the holding mode is described in detail.

步骤S204,获取终端边框的电容信息。Step S204, acquiring capacitance information of the terminal frame.

当终端处于左手握持模式时,用户握持终端的姿势一般如图7所示,左手大拇指置于终端左侧边框上,多个手指置于终端右侧边框上。相应的,终端处于右手握持模式时,用户握持终端的姿势一般如图8所示。When the terminal is in the left-hand holding mode, the posture of the user holding the terminal is generally as shown in FIG. 7 , the left thumb is placed on the left border of the terminal, and multiple fingers are placed on the right border of the terminal. Correspondingly, when the terminal is in the right-hand holding mode, the posture of the user holding the terminal is generally as shown in FIG. 8 .

根据上述分析,可以在终端上设置手握传感器800,在终端边框区域设置电容传感器900,并将该电容传感器900与该手握传感器800的输入管脚连接,如图9所示。其中,电容传感器900可以作为电容的一个极板,当人体靠近该电容传感器时,人体相当于电容的另一极板。由于在其他条件一定时,两极板之间的正对面积越大,电容值越大。因此当终端处于左手握持模式时,终端左侧边框放置有左手大拇指,终端右侧边框放置有多个手指,因此检测到的左边边框电容值小于右侧边框电容值。同理的,终端处于右手握持模式时,终端右侧边框电容值小于左侧边框电容值。故可以通过检测电容值来获取终端的握持模式。在一些实施例中,在终端两侧边框各设2个电容传感器来检测电容信息,其中电容信息包括电容值。According to the above analysis, the hand grip sensor 800 can be set on the terminal, the capacitive sensor 900 can be set in the terminal frame area, and the capacitive sensor 900 is connected to the input pin of the hand grip sensor 800, as shown in FIG. 9 . The capacitive sensor 900 can be used as one electrode plate of the capacitor, and when the human body approaches the capacitive sensor, the human body is equivalent to another electrode plate of the capacitor. Because other conditions are constant, the larger the facing area between the two polar plates, the larger the capacitance value. Therefore, when the terminal is in the left-hand holding mode, the left thumb is placed on the left frame of the terminal, and multiple fingers are placed on the right frame of the terminal, so the detected capacitance value of the left frame is smaller than that of the right frame. Similarly, when the terminal is in the right-hand holding mode, the capacitance value of the right frame of the terminal is smaller than the capacitance value of the left frame. Therefore, the holding mode of the terminal can be obtained by detecting the capacitance value. In some embodiments, two capacitive sensors are arranged on the borders on both sides of the terminal to detect capacitance information, where the capacitance information includes a capacitance value.

步骤S205,根据终端边框的电容信息,获取终端的握持模式,并获取当前开启的接近传感器对应的接近传感器标识。Step S205 , acquiring the holding mode of the terminal according to the capacitance information of the terminal frame, and acquiring the proximity sensor identifier corresponding to the currently enabled proximity sensor.

根据步骤S204中的分析,当终端边框的电容信息为左侧边框电容值小于右侧边框电容值时,获取左手握持模式;当终端边框的电容信息为右侧边框电容值小于左侧边框电容值时,获取右手握持模式。According to the analysis in step S204, when the capacitance information of the terminal frame is that the capacitance value of the left frame is smaller than the capacitance value of the right frame, the left-hand holding mode is obtained; when the capacitance information of the terminal frame is that the capacitance value of the right frame is smaller than that of the left frame value, gets the right-hand grip mode.

获取到终端的握持模式后,还获取当前开启的接近传感器对应的接近传感器标识。比如当前开启的接近传感器为第一接近传感器,则获取第一接近传感器标识。After the holding mode of the terminal is acquired, the proximity sensor identifier corresponding to the currently enabled proximity sensor is also acquired. For example, if the currently enabled proximity sensor is the first proximity sensor, the first proximity sensor identifier is acquired.

在一些实施例中,还可以通过获取终端边框的受压信息,根据该终端边框的受压信息来获取终端的握持模式。其中,终端边框的受压信息包括终端左侧边框的压力值和终端右侧边框的压力值。In some embodiments, the holding mode of the terminal may also be acquired according to the pressure information of the terminal frame by obtaining the pressure information of the terminal frame. The pressure information of the terminal frame includes the pressure value of the left frame of the terminal and the pressure value of the right frame of the terminal.

如图7和图8所示,当终端处于左手握持模式时,终端左侧边框可以检测到一个压力值,而右侧边框可以检测到多个压力值;同样的,当终端处于右手握持模式时,终端右侧边框可以检测到一个压力值,而左侧边框可以检测到多个压力值。因此可以将终端左侧边框的压力值个数与终端右侧边框的压力值个数进行对比,得到对比结果。当对比结果为左侧边框的压力值个数大于右侧边框的压力值个数,获取右手握持模式;当对比结果为左侧边框的压力值个数小于右侧边框的压力值个数,获取左手握持模式。As shown in Figures 7 and 8, when the terminal is in the left-hand holding mode, the left frame of the terminal can detect one pressure value, while the right frame can detect multiple pressure values; similarly, when the terminal is held in the right hand In mode, the right border of the terminal can detect one pressure value, while the left border can detect multiple pressure values. Therefore, the number of pressure values on the left border of the terminal can be compared with the number of pressure values on the right border of the terminal to obtain a comparison result. When the comparison result is that the number of pressure values of the left frame is greater than the number of pressure values of the right frame, the right-hand holding mode is obtained; when the comparison result is that the number of pressure values of the left frame is less than the number of pressure values of the right frame, Get left-handed hold mode.

步骤S206,获取握持模式对应的目标接近传感器标识。Step S206, acquiring the target proximity sensor identifier corresponding to the holding mode.

然后获取握持模式对应的目标接近传感器标识,根据步骤S201-S203的预设过程可知,如果是左手握持模式,则获取右侧传感器标识,如果是右手握持模式,则获取左侧传感器标识。Then, the target proximity sensor identification corresponding to the holding mode is obtained. According to the preset process of steps S201-S203, if it is a left-handed holding mode, the right sensor identification is obtained, and if it is a right-handed holding mode, the left sensor identification is obtained. .

步骤S207,当判断接近传感器标识与目标接近传感器标识不匹配时,将当前开启的接近传感器切换至目标接近传感器标识对应的目标接近传感器。Step S207 , when it is determined that the proximity sensor identifier does not match the target proximity sensor identifier, switch the currently turned on proximity sensor to the target proximity sensor corresponding to the target proximity sensor identifier.

接下来,判断该接近传感器标识是否与目标接近传感器标识匹配,如不匹配,则说明可能会引起接近传感器误判,因此切换至目标接近传感器标识对应的目标接近传感器。如果目标接近传感器标识对应的目标接近传感器为第一接近传感器,则关闭第二接近传感器的发射器和接收器,并开启第一接近传感器的发射器和接收器,如图4所示;同理,如果目标接近传感器标识对应的目标接近传感器为第二接近传感器,则关闭第一接近传感器的发射器和接收器,并开启第二接近传感器的发射器和接收器,如图5所示。Next, it is determined whether the proximity sensor identification matches the target proximity sensor identification. If it does not match, it means that the proximity sensor may misjudge, so switch to the target proximity sensor corresponding to the target proximity sensor identification. If the target proximity sensor corresponding to the target proximity sensor identification is the first proximity sensor, turn off the transmitter and receiver of the second proximity sensor, and turn on the transmitter and receiver of the first proximity sensor, as shown in Figure 4; , if the corresponding target proximity sensor identified by the target proximity sensor is the second proximity sensor, turn off the transmitter and receiver of the first proximity sensor, and turn on the transmitter and receiver of the second proximity sensor, as shown in FIG. 5 .

如匹配,则继续通过当前开启的接近传感器来检测终端与阻挡物之间的距离。当检测到接近数据时,关闭终端屏幕亮度;当检测到远离数据时,开启终端屏幕亮度。If it matches, continue to detect the distance between the terminal and the obstacle through the currently turned on proximity sensor. When the proximity data is detected, the terminal screen brightness is turned off; when the remote data is detected, the terminal screen brightness is turned on.

本发明实施例的接近传感器切换方法根据终端的握持模式选择开启对应的接近传感器,因此提高了接近传感器检测的准确性。The proximity sensor switching method of the embodiment of the present invention selects and turns on the corresponding proximity sensor according to the holding mode of the terminal, thus improving the detection accuracy of the proximity sensor.

为了更好地实施以上方法,在一优选实施例中提供了一种接近传感器切换装置,该接近传感器切换装置可以集成在终端中,该终端具体可以是智能手机、平板电脑等设备。如图10所示,该信息保护装置10包括第一获取模块11、第二获取模块12和切换模块13,具体描述如下:In order to better implement the above method, in a preferred embodiment, a proximity sensor switching device is provided, and the proximity sensor switching device can be integrated in a terminal, and the terminal can specifically be a device such as a smart phone or a tablet computer. As shown in FIG. 10, the information protection device 10 includes a first acquisition module 11, a second acquisition module 12 and a switching module 13, which are specifically described as follows:

第一获取模块11,用于当终端处于通话状态时,获取终端的握持模式和当前开启的接近传感器对应的接近传感器标识;第二获取模块12,用于获取握持模式对应的目标接近传感器标识;切换模块13,用于当判断接近传感器标识与目标接近传感器标识不匹配时,将当前开启的接近传感器切换至目标接近传感器标识对应的目标接近传感器。The first acquisition module 11 is used to acquire the holding mode of the terminal and the proximity sensor identifier corresponding to the currently turned on proximity sensor when the terminal is in a call state; the second acquisition module 12 is used to acquire the target proximity sensor corresponding to the holding mode The switch module 13 is configured to switch the currently turned on proximity sensor to the target proximity sensor corresponding to the target proximity sensor ID when it is determined that the proximity sensor ID does not match the target proximity sensor ID.

在一些实施例中,第一获取模块11包括第一获取子模块111和第二获取子模块112,具体描述如下:In some embodiments, the first obtaining module 11 includes a first obtaining sub-module 111 and a second obtaining sub-module 112, which are specifically described as follows:

第一获取子模块111,用于获取终端边框的电容信息;第二获取子模块112,用于根据终端边框的电容信息,获取终端的握持模式。The first obtaining sub-module 111 is used to obtain the capacitance information of the terminal frame; the second obtaining sub-module 112 is used to obtain the holding mode of the terminal according to the capacitance information of the terminal frame.

在一些实施例中,可以在终端上设置手握传感器800,在终端边框区域设置电容传感器900,并将该电容传感器900与该手握传感器800的输入管脚连接,如图9所示。其中,电容传感器900可以作为电容的一个极板,当人体靠近该电容传感器时,人体相当于电容的另一极板。由于在其他条件一定时,两极板之间的正对面积越大,电容值越大。因此可以通过第一获取子模块111获取终端两侧边框的电容信息。In some embodiments, a hand grip sensor 800 may be provided on the terminal, a capacitive sensor 900 may be provided in the terminal frame area, and the capacitive sensor 900 may be connected to the input pin of the hand grip sensor 800, as shown in FIG. 9 . The capacitive sensor 900 can be used as one electrode plate of the capacitor, and when the human body approaches the capacitive sensor, the human body is equivalent to another electrode plate of the capacitor. Because other conditions are constant, the larger the facing area between the two polar plates, the larger the capacitance value. Therefore, the capacitance information of the borders on both sides of the terminal can be obtained through the first obtaining sub-module 111 .

当终端处于左手握持模式时,终端左侧边框放置有左手大拇指,终端右侧边框放置有多个手指,此时左侧两极板之间的正对面积小于右侧两极板之间的正对面积,因此第一获取子模块111获取到的左边边框电容值小于右侧边框电容值。同理的,终端处于右手握持模式时,第一获取子模块111获取到的终端右侧边框电容值小于左侧边框电容值。When the terminal is in the left-hand holding mode, the left thumb is placed on the left frame of the terminal, and multiple fingers are placed on the right frame of the terminal. At this time, the facing area between the two polar plates on the left is smaller than the positive area between the two polar plates on the right. Therefore, the capacitance value of the left frame obtained by the first obtaining sub-module 111 is smaller than the capacitance value of the right frame. Similarly, when the terminal is in the right-hand holding mode, the capacitance value of the right frame of the terminal obtained by the first obtaining sub-module 111 is smaller than the capacitance value of the left frame.

在一些实施例中,当第一获取子模块111获取到的电容信息为左侧边框电容值小于右侧边框电容值时,第二获取子模块112获取左手握持模式;当第一获取子模块111获取到的电容信息为右侧边框电容值小于左侧边框电容值时,第二获取子模块112获取右手握持模式。In some embodiments, when the capacitance information obtained by the first obtaining sub-module 111 is that the capacitance value of the left frame is smaller than the capacitance value of the right frame, the second obtaining sub-module 112 obtains the left-hand holding mode; when the first obtaining sub-module 111 obtains the left-hand holding mode; When the capacitance information obtained by 111 is that the capacitance value of the right frame is smaller than the capacitance value of the left frame, the second obtaining sub-module 112 obtains the right-hand holding mode.

在一些实施例中,第一获取子模块111还用于获取终端边框的受压信息;第二获取子模块112还用于根据终端边框的受压信息,获取终端的握持模式。In some embodiments, the first obtaining sub-module 111 is further configured to obtain the pressure information of the terminal frame; the second obtaining sub-module 112 is further configured to obtain the holding mode of the terminal according to the pressure information of the terminal frame.

切换模块13包括关闭子模块131和开启子模块132,具体描述如下:The switching module 13 includes a closing sub-module 131 and an opening sub-module 132, which are specifically described as follows:

关闭子模块131,用于关闭当前开启的接近传感器的发射器和接收器;开启子模块132,用于开启目标接近传感器的发射器和接收器。Turning off the sub-module 131 is used to turn off the transmitter and receiver of the currently turned on proximity sensor; turning on the sub-module 132 is used to turn on the transmitter and receiver of the target proximity sensor.

在一些实施例中,如果目标接近传感器标识对应的目标接近传感器为第一接近传感器,则调用关闭子模块131关闭第二接近传感器的发射器和接收器,并调用开启子模块132开启第一接近传感器的发射器和接收器,如图4所示;同理,如果目标接近传感器标识对应的目标接近传感器为第二接近传感器,则调用关闭子模块131关闭第一接近传感器的发射器和接收器,并调用开启子模块132开启第二接近传感器的发射器和接收器,如图5所示。In some embodiments, if the corresponding target proximity sensor identified by the target proximity sensor is the first proximity sensor, the shutdown sub-module 131 is invoked to deactivate the transmitter and receiver of the second proximity sensor, and the activation sub-module 132 is invoked to activate the first proximity sensor The transmitter and receiver of the sensor are shown in Figure 4; similarly, if the target proximity sensor identified by the target proximity sensor corresponds to the target proximity sensor as the second proximity sensor, the shutdown sub-module 131 is called to shut down the transmitter and receiver of the first proximity sensor , and call the opening sub-module 132 to turn on the transmitter and receiver of the second proximity sensor, as shown in FIG. 5 .

该接近传感器切换装置10还包括模式获取模块14、标识获取模块15和存储模块16,具体描述如下:The proximity sensor switching device 10 further includes a mode acquisition module 14, an identification acquisition module 15 and a storage module 16, which are specifically described as follows:

模式获取模块14,用于获取握持模式;标识获取模块15,用于获取握持模式对应的接近传感器标识;存储模块16,用于将握持模式和接近传感器标识建立关联关系存储。The mode acquisition module 14 is used to acquire the holding mode; the identification acquisition module 15 is used to acquire the proximity sensor identification corresponding to the holding mode; the storage module 16 is used to establish an association relationship between the holding mode and the proximity sensor identification and store.

在一些实施例中,预先的调用模式获取模块14获取终端握持模式,其中握持模式包括左手握持模式和右手握持模式。左手握持模式即用户通话时用左手握持终端。如图2所示,终端受话器100置于人耳上,此时终端受话器右侧部分,即A区域所示,将紧贴人脸。右手握持模式即用户通话时用右手握持终端,此时终端受话器100左侧部分,即B区域所示,将紧贴人脸。In some embodiments, the pre-calling mode obtaining module 14 obtains the terminal holding mode, wherein the holding mode includes a left-hand holding mode and a right-hand holding mode. The left-hand holding mode means that the user holds the terminal with the left hand when making a call. As shown in FIG. 2 , the terminal receiver 100 is placed on the human ear, and at this time, the right part of the terminal receiver, that is, as shown in the area A, will be close to the human face. The right-hand holding mode means that the user holds the terminal with the right hand when making a call. At this time, the left part of the receiver 100 of the terminal, as shown in area B, will be close to the face.

由于当终端处于左手握持模式时,应开启第二接近传感器进行距离检测,当终端处于右手握持模式时,应开启第一接近传感器进行距离检测。因此当模式获取模块14获取左手握持模式时,标识获取模块15获取第二接近传感器标识,其中第二接近传感器标识指示第二接近传感器;当模式获取模块14获取右手握持模式时,标识获取模块15获取第一接近传感器标识,其中第一接近传感器标识指示第一接近传感器。Because when the terminal is in the left-hand holding mode, the second proximity sensor should be turned on for distance detection, and when the terminal is in the right-hand holding mode, the first proximity sensor should be turned on for distance detection. Therefore, when the mode acquisition module 14 acquires the left-handed holding mode, the identification acquisition module 15 acquires the second proximity sensor identification, wherein the second proximity sensor identification indicates the second proximity sensor; when the mode acquisition module 14 acquires the right-handed holding mode, the identification acquisition Module 15 obtains a first proximity sensor identification, wherein the first proximity sensor identification indicates a first proximity sensor.

通过存储模块16将左手握持模式和第二接近传感器,右手握持模式和第一接近传感器建立关联关系存储起来。在一些实施例中,可以通过存储模块16建立关联关系列表来存储。在一些实施例中,可以通过存储模块16建立数据库来存储。The storage module 16 stores the associated relationship between the left-hand holding mode and the second proximity sensor, and the right-hand holding mode and the first proximity sensor. In some embodiments, the storage module 16 may establish an association relationship list for storage. In some embodiments, a database may be established by the storage module 16 for storage.

本发明实施例的接近传感器切换装置根据终端的握持模式选择开启对应的接近传感器,因此提高了接近传感器检测的准确性。The proximity sensor switching device according to the embodiment of the present invention selects and turns on the corresponding proximity sensor according to the holding mode of the terminal, thus improving the detection accuracy of the proximity sensor.

在一优选实施例中提供了一种终端,比如,请参考图2,该终端1000可以包括受话器100、第一接近传感器200、第二接近传感器300、包括有一个或一个以上计算机可读存储介质的存储器400、输入单元500、显示单元600、以及包括有一个或者一个以上处理核心的处理器700等部件。本领域技术人员可以理解,图2中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。In a preferred embodiment, a terminal is provided. For example, please refer to FIG. 2. The terminal 1000 may include a receiver 100, a first proximity sensor 200, a second proximity sensor 300, and one or more computer-readable storage media. The memory 400, the input unit 500, the display unit 600, and the processor 700 including one or more processing cores are included. Those skilled in the art can understand that the terminal structure shown in FIG. 2 does not constitute a limitation on the terminal, and may include more or less components than shown, or combine some components, or arrange different components.

受话器100是一种在无声音泄漏的条件下将音频电信号转换成声音信号的器件。受话器100运作时将音圈设置在一个磁隙中,让音圈来感受电流的变化产生的电磁场力,通过振动驱动产生声波。The receiver 100 is a device that converts audio electrical signals into sound signals without sound leakage. When the receiver 100 operates, the voice coil is arranged in a magnetic gap, so that the voice coil can sense the electromagnetic field force generated by the change of the current, and generate sound waves through vibration driving.

第一接近传感器200、第二接近传感器300分别位于受话器100的两侧,共同检测终端与阻挡物之间的距离。在一些实施例中,终端还包括电容传感器900和手握传感器800等多个传感器。The first proximity sensor 200 and the second proximity sensor 300 are located on two sides of the receiver 100 respectively, and jointly detect the distance between the terminal and the obstacle. In some embodiments, the terminal further includes a plurality of sensors such as the capacitive sensor 900 and the hand grip sensor 800 .

存储器400可用于存储软件程序以及模块。处理器700通过运行存储在存储器400的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器400可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的目标应用(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。Memory 400 may be used to store software programs and modules. The processor 700 executes various functional applications and data processing by executing software programs and modules stored in the memory 400 . The memory 400 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, a target application (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like; Data (such as audio data, phone book, etc.) created by the use of the terminal, etc.

输入单元500可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The input unit 500 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

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

处理器700是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器400内的软件程序和/或模块,以及调用存储在存储器400内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。The processor 700 is the control center of the terminal, uses various interfaces and lines to connect various parts of the entire terminal, and executes by running or executing the software programs and/or modules stored in the memory 400, and calling the data stored in the memory 400. Various functions of the terminal and processing data, so as to monitor the terminal as a whole.

尽管未示出,终端还可以包括电源、射频模块、蓝牙模块、摄像头等,在此不再赘述。Although not shown, the terminal may further include a power supply, a radio frequency module, a Bluetooth module, a camera, and the like, which will not be repeated here.

在本发明实施例中,处理器700在终端处于通话状态时,先获取终端的握持模式和当前开启的接近传感器对应的接近传感器标识,然后再获取握持模式对应的目标接近传感器标识,接着判断接近传感器标识是否与目标接近传感器标识匹配,最后在不匹配时,切换至目标接近传感器标识对应的目标接近传感器。In this embodiment of the present invention, when the terminal is in a call state, the processor 700 first acquires the holding mode of the terminal and the proximity sensor identifier corresponding to the currently turned on proximity sensor, and then acquires the target proximity sensor identifier corresponding to the holding mode, and then Determine whether the proximity sensor identification matches the target proximity sensor identification, and finally switch to the target proximity sensor corresponding to the target proximity sensor identification when it does not match.

进一步的,处理器700还获取终端边框的电容信息,然后根据终端边框的电容信息,获取终端的握持模式。Further, the processor 700 also obtains capacitance information of the terminal frame, and then obtains the holding mode of the terminal according to the capacitance information of the terminal frame.

进一步的,处理器700还将终端左侧边框的电容值与终端右侧边框的电容值进行对比,得到对比结果;在对比结果为终端左侧边框的电容值大于终端右侧边框的电容值时,获取右手握持模式;在对比结果为终端左侧边框的电容值小于终端右侧边框的电容值时,获取左手握持模式。Further, the processor 700 also compares the capacitance value of the left border of the terminal with the capacitance value of the right border of the terminal to obtain a comparison result; when the comparison result is that the capacitance value of the left border of the terminal is greater than the capacitance value of the right border of the terminal , obtain the right-hand holding mode; when the comparison result is that the capacitance value of the left border of the terminal is smaller than the capacitance value of the right border of the terminal, obtain the left-hand holding mode.

进一步的,处理器700还获取终端边框的受压信息,然后根据终端边框的受压信息,获取终端的握持模式。Further, the processor 700 also obtains the pressure information of the terminal frame, and then obtains the holding mode of the terminal according to the pressure information of the terminal frame.

进一步的,处理器700还将终端左侧边框的压力值个数与终端右侧边框的压力值个数进行对比,得到对比结果,在对比结果为左侧边框的压力值个数大于右侧边框的压力值个数时,获取右手握持模式;在对比结果为左侧边框的压力值个数小于右侧边框的压力值个数时,获取左手握持模式。Further, the processor 700 also compares the number of pressure values of the left side frame of the terminal with the number of pressure values of the right side frame of the terminal, and obtains a comparison result. The comparison result is that the number of pressure values of the left side frame is greater than that of the right side frame. When the number of pressure values of the left-hand frame is smaller than the number of pressure values of the right-hand frame, the left-hand holding mode is obtained.

进一步的,处理器700还关闭当前开启的接近传感器的发射器和接收器,然后开启目标接近传感器的发射器和接收器。Further, the processor 700 also turns off the transmitter and receiver of the currently turned on proximity sensor, and then turns on the transmitter and receiver of the target proximity sensor.

进一步的,处理器700还获取握持模式,然后获取握持模式对应的接近传感器标识,最后将握持模式和接近传感器标识建立关联关系存储。Further, the processor 700 also acquires the holding mode, then acquires the proximity sensor identifier corresponding to the holding mode, and finally stores the associated relationship between the holding mode and the proximity sensor identifier.

由上可知,本优选实施例提供了一种终端,该终端根据终端的握持模式选择开启对应的接近传感器,因此提高了接近传感器检测的准确性。It can be seen from the above that the present preferred embodiment provides a terminal, the terminal selects and turns on the corresponding proximity sensor according to the holding mode of the terminal, thus improving the detection accuracy of the proximity sensor.

具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.

需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read OnlyMemory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as It is stored in the memory of the terminal and executed by at least one processor in the terminal, and the execution process may include the flow of the embodiment of the information publishing method. The storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

以上对本发明实施例提供的一种危险环境提示方法、装置及终端进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method, device, and terminal for prompting a dangerous environment provided by the embodiments of the present invention have been described in detail above. Each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or two The above modules are integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. The principles and implementations of the present invention are described herein using specific examples, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the Thoughts, there will be changes in specific embodiments and application scopes. To sum up, the contents of this specification should not be construed as limiting the present invention.

Claims (15)

1.一种接近传感器切换方法,其特征在于,包括:1. a proximity sensor switching method, characterized in that, comprising: 当终端处于通话状态时,获取所述终端的握持模式和当前开启的接近传感器对应的接近传感器标识;When the terminal is in a call state, acquiring the holding mode of the terminal and the proximity sensor identifier corresponding to the currently turned on proximity sensor; 获取所述握持模式对应的目标接近传感器标识;acquiring the target proximity sensor identifier corresponding to the holding mode; 当判断所述接近传感器标识与所述目标接近传感器标识不匹配时,则将所述当前开启的接近传感器切换至所述目标接近传感器标识对应的目标接近传感器。When it is determined that the proximity sensor identifier does not match the target proximity sensor identifier, the currently turned on proximity sensor is switched to the target proximity sensor corresponding to the target proximity sensor identifier. 2.根据权利要求1所述的接近传感器切换方法,其特征在于,所述获取所述终端的握持模式步骤包括:2. The proximity sensor switching method according to claim 1, wherein the step of acquiring the holding mode of the terminal comprises: 获取终端边框的电容信息;Obtain the capacitance information of the terminal frame; 根据所述终端边框的电容信息,获取所述终端的握持模式。According to the capacitance information of the terminal frame, the holding mode of the terminal is acquired. 3.根据权利要求2所述的接近传感器切换方法,其特征在于,所述终端边框的电容信息包括终端左侧边框的电容值和终端右侧边框的电容值;所述握持模式包括左手握持模式和右手握持模式;3 . The proximity sensor switching method according to claim 2 , wherein the capacitance information of the terminal frame includes a capacitance value of the left frame of the terminal and a capacitance value of the right frame of the terminal; the holding mode includes a left-hand grip. 4 . holding mode and right-hand holding mode; 所述根据所述终端边框的电容信息,获取所述终端的握持模式步骤包括:Described according to the capacitance information of the described terminal frame, the step of obtaining the holding mode of the described terminal comprises: 将所述终端左侧边框的电容值与所述终端右侧边框的电容值进行对比,得到对比结果;Comparing the capacitance value of the left frame of the terminal with the capacitance value of the right frame of the terminal to obtain a comparison result; 如对比结果为终端左侧边框的电容值大于终端右侧边框的电容值,则获取右手握持模式;If the comparison result is that the capacitance value of the left border of the terminal is greater than that of the right border of the terminal, the right-hand holding mode is obtained; 如对比结果为终端左侧边框的电容值小于终端右侧边框的电容值,则获取左手握持模式。If the comparison result is that the capacitance value of the left frame of the terminal is smaller than the capacitance value of the right frame of the terminal, the left-hand holding mode is obtained. 4.根据权利要求1至3任意一项所述的接近传感器切换方法,其特征在于,所述获取所述终端的握持模式步骤包括:4. The proximity sensor switching method according to any one of claims 1 to 3, wherein the step of acquiring the holding mode of the terminal comprises: 获取终端边框的受压信息;Obtain the pressure information of the terminal frame; 根据所述终端边框的受压信息,获取所述终端的握持模式。The holding mode of the terminal is acquired according to the pressure information of the frame of the terminal. 5.根据权利要求4所述的接近传感器切换方法,其特征在于,所述终端边框的受压信息包括终端左侧边框的压力值和终端右侧边框的压力值;所述握持模式包括左手握持模式和右手握持模式;5 . The proximity sensor switching method according to claim 4 , wherein the pressure information of the terminal frame includes the pressure value of the left frame of the terminal and the pressure value of the right frame of the terminal; the holding mode includes the left hand Holding mode and right hand holding mode; 所述根据所述终端边框的压力信息,获取所述终端的握持模式步骤包括:Described according to the pressure information of the frame of the terminal, the step of acquiring the holding mode of the terminal includes: 将所述终端左侧边框的压力值个数与终端右侧边框的压力值个数进行对比,得到对比结果;Comparing the number of pressure values of the left side frame of the terminal with the number of pressure values of the right side frame of the terminal to obtain a comparison result; 如对比结果为左侧边框的压力值个数大于右侧边框的压力值个数,则获取右手握持模式;If the comparison result is that the number of pressure values of the left frame is greater than the number of pressure values of the right frame, the right-hand holding mode is obtained; 如对比结果为左侧边框的压力值个数小于右侧边框的压力值个数,则获取左手握持模式。If the comparison result is that the number of pressure values of the left frame is less than the number of pressure values of the right frame, the left-hand holding mode is obtained. 6.根据权利要求1至3任意一项所述的接近传感器切换方法,其特征在于,所述将所述当前开启的接近传感器切换至所述目标接近传感器标识对应的目标接近传感器步骤包括:6. The proximity sensor switching method according to any one of claims 1 to 3, wherein the step of switching the currently turned on proximity sensor to the target proximity sensor corresponding to the target proximity sensor identifier comprises: 关闭所述当前开启的接近传感器的发射器和接收器;turning off the transmitter and receiver of the currently on proximity sensor; 开启所述目标接近传感器的发射器和接收器。Turn on the transmitter and receiver of the target proximity sensor. 7.根据权利要求1至3任意一项所述的接近传感器切换方法,其特征在于,所述获取所述握持模式对应的目标接近传感器标识步骤之前还包括:7 . The proximity sensor switching method according to claim 1 , wherein before the step of acquiring the target proximity sensor identification corresponding to the holding mode, the method further comprises: 8 . 获取握持模式;get hold mode; 获取所述握持模式对应的接近传感器标识;obtaining the proximity sensor identifier corresponding to the holding mode; 将所述握持模式和所述接近传感器标识建立关联关系存储。The holding mode and the proximity sensor identifier are stored in an associated relationship. 8.一种接近传感器切换装置,其特征在于,包括:8. A proximity sensor switching device, comprising: 第一获取模块,用于当终端处于通话状态时,获取所述终端的握持模式和当前开启的接近传感器对应的接近传感器标识;a first acquiring module, configured to acquire the holding mode of the terminal and the proximity sensor identifier corresponding to the currently turned on proximity sensor when the terminal is in a call state; 第二获取模块,用于获取所述握持模式对应的目标接近传感器标识;a second acquiring module, configured to acquire the target proximity sensor identifier corresponding to the holding mode; 切换模块,用于当判断所述接近传感器标识与所述目标接近传感器标识不匹配时,则将所述当前开启的接近传感器切换至所述目标接近传感器标识对应的目标接近传感器。A switching module, configured to switch the currently turned on proximity sensor to a target proximity sensor corresponding to the target proximity sensor ID when it is determined that the proximity sensor ID does not match the target proximity sensor ID. 9.根据权利要求8所述的接近传感器切换装置,其特征在于,所述第一获取模块包括:9. The proximity sensor switching device according to claim 8, wherein the first acquisition module comprises: 第一获取子模块,用于获取终端边框的电容信息;The first acquisition sub-module is used to acquire the capacitance information of the terminal frame; 第二获取子模块,用于根据所述终端边框的电容信息,获取所述终端的握持模式。The second obtaining sub-module is configured to obtain the holding mode of the terminal according to the capacitance information of the frame of the terminal. 10.根据权利要求9所述的接近传感器切换装置,其特征在于,所述终端边框的电容信息包括终端左侧边框的电容值和终端右侧边框的电容值;所述握持模式包括左手握持模式和右手握持模式;10 . The proximity sensor switching device according to claim 9 , wherein the capacitance information of the terminal frame includes a capacitance value of a left frame of the terminal and a capacitance value of a right frame of the terminal; the holding mode includes a left-hand grip. 11 . holding mode and right-hand holding mode; 所述第二获取子模块用于:The second acquisition submodule is used for: 将所述终端左侧边框的电容值与所述终端右侧边框的电容值进行对比,得到对比结果;Comparing the capacitance value of the left frame of the terminal with the capacitance value of the right frame of the terminal to obtain a comparison result; 在对比结果为终端左侧边框的电容值大于终端右侧边框的电容值时,获取右手握持模式;When the comparison result is that the capacitance value of the left frame of the terminal is greater than the capacitance value of the right frame of the terminal, the right-hand holding mode is obtained; 在对比结果为终端左侧边框的电容值小于终端右侧边框的电容值时,获取左手握持模式。When the comparison result is that the capacitance value of the left frame of the terminal is smaller than the capacitance value of the right frame of the terminal, the left-hand holding mode is obtained. 11.根据权利要求8至10任意一项所述的接近传感器切换装置,其特征在于,所述第一获取模块包括:11. The proximity sensor switching device according to any one of claims 8 to 10, wherein the first acquisition module comprises: 第一获取子模块,用于获取终端边框的受压信息;The first obtaining sub-module is used to obtain the pressure information of the terminal frame; 第二获取子模块,用于根据所述终端边框的受压信息,获取所述终端的握持模式。The second obtaining sub-module is configured to obtain the holding mode of the terminal according to the pressure information of the frame of the terminal. 12.根据权利要求11所述的接近传感器切换装置,其特征在于,所述终端边框的受压信息包括终端左侧边框的压力值和终端右侧边框的压力值;所述握持模式包括左手握持模式和右手握持模式;12 . The proximity sensor switching device according to claim 11 , wherein the pressure information of the terminal frame includes the pressure value of the left frame of the terminal and the pressure value of the right frame of the terminal; the holding mode includes the left hand Holding mode and right hand holding mode; 所述第二获取子模块用于:The second acquisition submodule is used for: 将所述终端左侧边框的压力值个数与终端右侧边框的压力值个数进行对比,得到对比结果;Comparing the number of pressure values of the left side frame of the terminal with the number of pressure values of the right side frame of the terminal to obtain a comparison result; 在对比结果为左侧边框的压力值个数大于右侧边框的压力值个数时,获取右手握持模式;When the comparison result is that the number of pressure values of the left frame is greater than the number of pressure values of the right frame, the right-hand holding mode is obtained; 在对比结果为左侧边框的压力值个数小于右侧边框的压力值个数时,获取左手握持模式。When the comparison result is that the number of pressure values of the left frame is less than the number of pressure values of the right frame, the left-hand holding mode is obtained. 13.根据权利要求8至10任意一项所述的接近传感器切换装置,其特征在于,所述切换模块包括:13. The proximity sensor switching device according to any one of claims 8 to 10, wherein the switching module comprises: 关闭子模块,用于关闭所述当前开启的接近传感器的发射器和接收器;turning off the sub-module, for turning off the transmitter and receiver of the currently turned on proximity sensor; 开启子模块,用于开启所述目标接近传感器的发射器和接收器。The opening sub-module is used to turn on the transmitter and the receiver of the target proximity sensor. 14.根据权利要求8至10任意一项所述的接近传感器切换装置,其特征在于,所述接近传感器切换装置还包括:14. The proximity sensor switching device according to any one of claims 8 to 10, wherein the proximity sensor switching device further comprises: 模式获取模块,用于获取握持模式;The mode acquisition module is used to acquire the holding mode; 标识获取模块,用于获取所述握持模式对应的接近传感器标识;an identification acquisition module, configured to acquire the proximity sensor identification corresponding to the holding mode; 存储模块,用于将所述握持模式和所述接近传感器标识建立关联关系存储。A storage module, configured to establish an association relationship between the holding mode and the proximity sensor identifier and store it. 15.一种终端,其特征在于,包括:15. A terminal, characterized in that, comprising: 存储有可以执行程序代码的存储器;a memory that stores executable program code; 与所述存储器耦合的处理器;a processor coupled to the memory; 所述处理器调用所述存储器中存储的所述可以执行程序代码,执行如权利要求1-7任一项所述的方法。The processor invokes the executable program code stored in the memory to execute the method according to any one of claims 1-7.
CN201611107921.3A 2016-12-06 2016-12-06 proximity sensor switching method and device and terminal Active CN106775308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611107921.3A CN106775308B (en) 2016-12-06 2016-12-06 proximity sensor switching method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611107921.3A CN106775308B (en) 2016-12-06 2016-12-06 proximity sensor switching method and device and terminal

Publications (2)

Publication Number Publication Date
CN106775308A CN106775308A (en) 2017-05-31
CN106775308B true CN106775308B (en) 2019-12-10

Family

ID=58879070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611107921.3A Active CN106775308B (en) 2016-12-06 2016-12-06 proximity sensor switching method and device and terminal

Country Status (1)

Country Link
CN (1) CN106775308B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138974B (en) * 2019-05-20 2021-06-01 西安易朴通讯技术有限公司 Screen control method, device, equipment and computer readable storage medium
CN113253826B (en) * 2020-02-10 2024-04-12 华为技术有限公司 Control method, device, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103583031A (en) * 2011-06-03 2014-02-12 苹果公司 Motion-Based Device Operation
KR20150033310A (en) * 2013-09-24 2015-04-01 엘지전자 주식회사 Mobile terminal
WO2015134288A1 (en) * 2014-03-04 2015-09-11 Microsoft Technology Licensing, Llc Proximity sensor-based interactions
CN105227761A (en) * 2015-08-31 2016-01-06 小米科技有限责任公司 The determination methods of user's hand-held and device
CN105468269A (en) * 2014-08-15 2016-04-06 深圳市中兴微电子技术有限公司 Mobile terminal capable of automatically identifying holding by left hand or right hand, and implementation method thereof
CN105493478A (en) * 2013-08-23 2016-04-13 罗姆股份有限公司 mobile phone
CN105960626A (en) * 2014-01-21 2016-09-21 微软技术许可有限责任公司 Grip detection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103583031A (en) * 2011-06-03 2014-02-12 苹果公司 Motion-Based Device Operation
CN105493478A (en) * 2013-08-23 2016-04-13 罗姆股份有限公司 mobile phone
KR20150033310A (en) * 2013-09-24 2015-04-01 엘지전자 주식회사 Mobile terminal
CN105960626A (en) * 2014-01-21 2016-09-21 微软技术许可有限责任公司 Grip detection
WO2015134288A1 (en) * 2014-03-04 2015-09-11 Microsoft Technology Licensing, Llc Proximity sensor-based interactions
CN105468269A (en) * 2014-08-15 2016-04-06 深圳市中兴微电子技术有限公司 Mobile terminal capable of automatically identifying holding by left hand or right hand, and implementation method thereof
CN105227761A (en) * 2015-08-31 2016-01-06 小米科技有限责任公司 The determination methods of user's hand-held and device

Also Published As

Publication number Publication date
CN106775308A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10429983B2 (en) Method for launching application and terminal device
CN109144360B (en) Screen lighting method, electronic device and storage medium
US9472201B1 (en) Speaker localization by means of tactile input
CN108664190B (en) Page display method, device, mobile terminal and storage medium
CN107450817B (en) Proximity detection method, device, storage medium and electronic device
AU2018273505B2 (en) Method for capturing fingerprint and associated products
CN105681557A (en) Method and device for controlling infrared proximity sensor
CN108646959A (en) Screen control method, device and mobile terminal
CN108717343A (en) Application icon processing method and device and mobile terminal
CN104732167A (en) Mobile terminal and detecting control method used for same
CN108737635A (en) message display method, device, mobile terminal and storage medium
CN105681657B (en) A kind of method and terminal device for shooting focusing
CN105334966A (en) Method, device and terminal equipment for preventing misoperation
CN115086094A (en) Device selection method and related device
CN111970593A (en) Wireless earphone control method and device and wireless earphone
CN108683812A (en) Volume adjustment method, device and mobile terminal
CN109510896B (en) Proximity sensor selection method, device, storage medium and electronic device
CN108460599A (en) A mobile payment method and mobile terminal
CN106775308B (en) proximity sensor switching method and device and terminal
CN108704307A (en) Touch information processing method and device, storage medium and electronic device
JP2020516962A (en) Optical fingerprint recognition method and apparatus, computer-readable storage medium
CN107145221A (en) A kind of information processing method and electronic equipment
CN107025024A (en) It is a kind of to prevent the method and mobile terminal of mobile terminal maloperation
CN105573622A (en) User interface one-handed control method, device and terminal equipment
CN105487785A (en) Method and device for locking screen of terminal equipment and terminal equipment

Legal Events

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

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant