





















技术领域technical field
本申请涉及电子技术领域,特别涉及一种控制方法、电子装置、计算机设备和存储介质。The present application relates to the field of electronic technology, and in particular, to a control method, an electronic device, a computer device and a storage medium.
背景技术Background technique
随着全面屏手机的迅速发展,为了提高手机的屏占比,接近传感器被设置在显示屏的下方。然而如此,接近传感器在屏幕点亮时工作可能导致屏幕的闪烁,因而采用触摸屏替代接近传感器实现接近熄屏的功能。但是利用TP检测接近时,如何加快检测速度,减小检测功耗一直是优化的方向。With the rapid development of full-screen mobile phones, in order to increase the screen-to-body ratio of mobile phones, proximity sensors are placed below the display screen. However, if the proximity sensor works when the screen is on, it may cause the screen to flicker. Therefore, the touch screen is used instead of the proximity sensor to realize the function of close to turning off the screen. However, when using TP to detect proximity, how to speed up the detection speed and reduce the detection power consumption has always been the direction of optimization.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请的实施例提供了一种控制方法、电子装置、计算机设备和存储介质。In view of this, embodiments of the present application provide a control method, an electronic device, a computer device, and a storage medium.
本申请提供了一种电子装置的控制方法,所述控制方法包括:The application provides a control method for an electronic device, the control method includes:
在所述电子装置处于接近检测模式时,读取触摸显示屏的模数转换器的分辨率的部分位数的数据;When the electronic device is in the proximity detection mode, read data of a fraction of digits of resolution of the analog-to-digital converter of the touch display screen;
判断所述部分位数的数据是否满足预设条件;Judging whether the data of the part of the digits satisfies the preset condition;
在所述部分位数的数据满足所述预设条件的情况下,读取所述模数转换器的分辨率的全部位数的数据;Under the condition that the data of the partial number of digits satisfies the preset condition, read the data of all the digits of the resolution of the analog-to-digital converter;
根据所述全部位数的数据控制所述触摸显示屏的显示状态。The display state of the touch display screen is controlled according to the data of the full number of digits.
本申请实施方式提供了一种电子装置,包括:Embodiments of the present application provide an electronic device, including:
触摸显示屏;touch screen;
触摸芯片,所述触摸芯片用于读取触摸显示屏的模数转换器的分辨率的部分位数的数据;及用于判断所述部分位数的数据是否满足预设条件,以及用于在所述部分位数的数据满足所述预设条件的情况下,读取所述模数转换器的分辨率的全部位数的数据;A touch chip, the touch chip is used to read data of partial digits of the resolution of the analog-to-digital converter of the touch display screen; Under the condition that the data of the partial number of digits satisfies the preset condition, read the data of all the digits of the resolution of the analog-to-digital converter;
处理器,所述处理器用于根据所述全部位数的数据控制所述触摸显示屏的显示状态。a processor, wherein the processor is configured to control the display state of the touch display screen according to the data of all the digits.
本申请提供了一种计算机设备,包括:The application provides a computer equipment, including:
触摸显示屏;touch screen;
一个或多个处理器;one or more processors;
存储器;和memory; and
一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,并且被所述一个或多个处理器执行,所述程序包括用于执行所述的控制方法的指令。One or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, the programs comprising instructions for performing the control method.
本申请提供了一种包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行所述的电子装置的控制方法。The present application provides a non-volatile computer-readable storage medium containing computer-executable instructions that, when executed by one or more processors, cause the processors to execute the electronic device control method.
本申请实施方式的控制方法、电子装置、计算机设备及计算机可读存储介质中,先读取模数转换器的分辨率的部分位数的数据,这样一来,读取模数转换器的数据量较少,读取速度快,可以加快读取速度,并且降低功耗,待满足预设条件后,再读取模数转换器的分辨率的全部位数的数据,这样可以准确地控制触摸显示屏的显示状态。In the control method, electronic device, computer equipment, and computer-readable storage medium of the embodiments of the present application, the data of a part of the number of digits of the resolution of the analog-to-digital converter is read first, and in this way, the data of the analog-to-digital converter is read. It can speed up the reading speed and reduce the power consumption. After the preset conditions are met, the data of all digits of the resolution of the analog-to-digital converter can be read, so that the touch can be accurately controlled. Display status of the display.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1是本申请某些实施方式的电子装置的平面示意图;1 is a schematic plan view of an electronic device according to some embodiments of the present application;
图2是图1的电子装置沿II-II向的截面示意图;2 is a schematic cross-sectional view of the electronic device of FIG. 1 along II-II direction;
图3至图12是本申请某些实施方式的电子装置的截面示意图;3 to 12 are schematic cross-sectional views of electronic devices according to some embodiments of the present application;
图13是本申请某些实施方式的控制方法的流程示意图;13 is a schematic flowchart of a control method according to some embodiments of the present application;
图14是本申请某些实施方式的电子装置的结构示意图;14 is a schematic structural diagram of an electronic device according to some embodiments of the present application;
图15-图16是本申请某些实施方式的控制方法的流程示意图;15-16 are schematic flowcharts of control methods according to some embodiments of the present application;
图17是本申请某些实施方式的电子装置的模块示意图;17 is a schematic block diagram of an electronic device according to some embodiments of the present application;
图18-图19是本申请某些实施方式的控制方法的流程示意图;18-19 are schematic flowcharts of control methods according to some embodiments of the present application;
图20是本申请某些实施方式的控制方法的场景示意图;20 is a schematic diagram of a scene of a control method according to some embodiments of the present application;
图21是本申请某些实施方式的控制方法的流程示意图;21 is a schematic flowchart of a control method according to some embodiments of the present application;
图22是本申请某些实施方式的计算机设备的模块示意图。FIG. 22 is a schematic block diagram of a computer device according to some embodiments of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The following describes in detail the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to be used to explain the present application, but should not be construed as a limitation to the present application.
随着电子设备的发展,全面屏已经成为手机的发展趋势。全面屏高屏占比的特点使得屏幕顶部留给接近传感器或者其他元件的位置有限,当接近传感器设置在透光显示屏下时,由于光电效应,接近传感器在发射红外光的过程中使屏幕里的电子受到激发从而引起透光显示屏闪烁,从而与透光显示屏的正常显示形成干涉,影响用户的体验。With the development of electronic devices, full screen has become the development trend of mobile phones. The feature of full screen and high screen-to-body ratio makes the space for proximity sensor or other components at the top of the screen limited. When the proximity sensor is set under the light-transmitting display screen, due to the photoelectric effect, the proximity sensor makes the screen inside the screen during the process of emitting infrared light. The electrons of the light-transmitting screen are excited to cause the light-transmitting display screen to flicker, which interferes with the normal display of the light-transmitting display screen and affects the user's experience.
请参阅图1-3,本申请实施方式提供了一种电子装置100。电子装置100包括触摸显示屏10,接近传感器16、温度传感器21和处理器23。触摸显示屏10包括显示层13,显示层13包括显示区1311。接近传感器16设置在触摸显示屏10下方。进一步地,接近传感器16设置在显示区1311下方。接近传感器16用于发射红外光并接收被物体反射的红外光以检测物体至电子装置100的距离。Referring to FIGS. 1-3 , an embodiment of the present application provides an
示例性的,电子装置100可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种(图1中只示例性的示出了一种形态)。具体的,电子装置100可以为移动电话或智能电话(例如,基于iPhone TM,基于Android TM的电话),便携式游戏设备(例如Nintendo DS TM,PlayStation Portable TM,Gameboy Advance TM,iPhone TM)、膝上型电脑、PDA、便携式互联网设备、音乐播放器以及数据存储设备,其他手持设备以及诸如手表、入耳式耳机、吊坠、头戴式耳机等,电子装置100还可以为其他的可穿戴设备(例如,诸如电子眼镜、电子衣服、电子手镯、电子项链、电子纹身、电子设备或智能手表的头戴式设备(HMD))。Exemplarily, the
电子装置100还可以是多个电子设备中的任何一个,多个电子设备包括但不限于蜂窝电话、智能电话、其他无线通信设备、个人数字助理、音频播放器、其他媒体播放器、音乐记录器、录像机、照相机、其他媒体记录器、收音机、医疗设备、车辆运输仪器、计算器、可编程遥控器、寻呼机、膝上型计算机、台式计算机、打印机、上网本电脑、个人数字助理(PDA)、便携式多媒体播放器(PMP)、运动图像专家组(MPEG-1或MPEG-2)音频层3(MP3)播放器,便携式医疗设备以及数码相机及其组合。The
在一些情况下,电子装置100可以执行多种功能(例如,播放音乐,显示视频,存储图片以及接收和发送电话呼叫)。如果需要,电子装置1000可以是诸如蜂窝电话、媒体播放器、其他手持设备、腕表设备、吊坠设备、听筒设备或其他紧凑型便携式设备的便携式设备。In some cases, the
手机通过设置接近传感器16以确定手机与障碍物之间的距离并做出相应的调整,能够防止用户的误操作和有利于节省手机的电量。例如,当用户在接听或者拨打电话并将手机靠近头部时,接近传感器16经过计算发射器发出红外光和接收器接收反射回来的红外光的时间生成检测信息,处理器23根据该检测信息触摸显示屏10。当手机远离头部时,处理器23再次根据接近传感器16反馈回来的检测信息重新打开触摸显示屏10。By setting the
在某些实施方式中,显示层13包括OLED显示层。In some embodiments,
具体地,OLED显示层具有良好的透光性,能够较好地透过可见光和红外光。因此,OLED显示层可以在展现内容效果的情况下,也不影响接近传感器16发射和接收红外光。显示层13也可以采用Micro LED显示层,Micro LED显示层同样具有对可见光和红外光良好的透光率。当然,这些显示层仅作为示例性的而本申请的实施例并不限于此。另外,触摸显示屏10可设置在壳体20上。Specifically, the OLED display layer has good light transmittance and can better transmit visible light and infrared light. Therefore, the OLED display layer can present the content effect without affecting the
请参阅图3,在一些实施方式中,触摸显示屏10还包括透光盖板11和触控层12。透光盖板11设置在触控层12上。触控层12设置在显示层13上。显示层13的上表面131朝向触控层12。透光盖板11和触控层12对可见光透光率和红外光透光率均大于90%。Referring to FIG. 3 , in some embodiments, the
具体地,触控层12主要用于接收用户输入信号并传送到电路板进行数据处理,从而获得用户触碰触控层12的具体位置。需要指出的是,触控层12设置在显示层13上可以指的是触控层12与显示层13接触。例如,可以采用In-Cell或者On-Cell技术,将触控层12与显示层13进行贴合,能够有效地减轻显示层13的重量和减少显示层13的整体厚度。触控层12设置在显示层13上也可以指的是触控层12设置在显示层13上方,并与显示层13间隔。Specifically, the
另外,将透光盖板11设置在触控层12上,能够有效地保护触控层12及其内部结构,避免了外界作用力对触控层12及显示层13的损坏。透光盖板11和触控层12对可见光和红外光的透光率均大于90%,不仅有利于显示层13较好地展现内容效果,而且还有利于设置在显示层13下的接近传感器16稳定地发射和接收红外光,保证了接近传感器16的正常工作。In addition, disposing the light-transmitting
请参阅图4,在某些实施方式中,显示层13包括上表面131和下表面132。电子装置100还包括涂布在下表面132且覆盖接近传感器16的第一涂布层14。第一涂布层14用于透过红外光和拦截可见光。接近传感器16用于透过第一涂布层14和显示层13发射和/或接收红外光。Referring to FIG. 4 , in some embodiments, the
具体地,设置第一涂布层14透过红外光是为保证接近传感器16的正常工作。第一涂布层14拦截可见光能够实现从外部观看电子装置100时,达到接近传感器16不可见的效果。Specifically, setting the
请参阅图4及图5,在某些实施方式中,接近传感器16包括发射器1611和接收器1612。发射器1611用于透过第一涂布层14和显示层13发射红外光。接收器1612用于接收经物体发射的红外光以检测物体与电子装置100的距离。Referring to FIGS. 4 and 5 , in some embodiments, the
具体地,一般情况下,当用户在接听或者拨打电话时,电子装置100靠近人体头部,发射器1611发出红外光,接收器1612接收反射回来的红外光。处理器23计算红外光从发射到反射回来的时间,便发出相应指令控制屏幕关闭。当电子装置100远离头部时,处理器23再次根据反馈回来的数据进行计算并发出指令,便重新打开屏幕。如此,不仅防止了用户的误操作,而且节省了手机的电量。Specifically, in general, when the user is answering or making a call, the
在某些实施方式中,接近传感器16在下表面132的正投影位于第一涂布层14在下表面132的正投影内。In certain embodiments, the orthographic projection of the
具体地,在进行工艺装配的过程中接近传感器16的安装通常需要预留装配间隙,导致接近传感器16与其他元件之间出现缝隙,使可见光从缝隙里进入,出现漏光现象。因此,在接近传感器16和显示层13层叠的方向上,第一涂布层14在下表面132的正投影的面积大于接近传感器16在下表面132的正投影的面积,能够在不影响接近传感器16正常工作的情况下,使第一涂布层14充分遮挡接近传感器16,实现从外部观看电子装置100时,达到接近传感器16不可见的效果。Specifically, during the process of assembly, the installation of the
请参阅图5,在某些实施方式中,接近传感器16在下表面132的正投影与第一涂布层14重合。Referring to FIG. 5 , in some embodiments, the orthographic projection of the
具体地,在接近传感器16和显示层13层叠的方向上,也可以设置第一涂布层14正投影于下表面132的面积等于接近传感器16正投影于下表面132的面积。如此,能够在不影响接近传感器16正常工作的情况下,使第一涂布层14刚好遮挡接近传感器16,实现从朝向并垂直于显示层13上表面131的方向观看电子装置100时,达到接近传感器16不可见的效果。Specifically, in the stacking direction of the
请参阅图6,进一步地,在这样的实施方式中,电子装置100还包括设置在下表面132且包围接近传感器16的遮光层17。Referring to FIG. 6 , further, in such an embodiment, the
具体地,当设置第一涂布层14正投影于下表面132的面积等于接近传感器16正投影于下表面132的面积的情况时,由于在放置接近传感器16的空间体积比接近传感器16的体积大,导致从外部环境观看电子装置100时,围绕接近传感器16周围的空间出现漏光现象。因此,通过设置包围接近传感器16的遮光层17,填补了接近传感器16与周围空间的缝隙,可以消除这种漏光现象。遮光层17可以是采用黑色材质制成的泡棉,也可以是其他黑色的泡沫塑料或者橡胶。当然,这些材料仅作为示例性的而本申请的实施例并不限于此。Specifically, when the area where the
在某些实施方式中,第一涂布层包括IR油墨,IR油墨对红外光的透光率大于85%,IR油墨对可见光的透光率小于6%,IR油墨可透过的红外光的波长为850nm-940nm。In some embodiments, the first coating layer includes IR ink, the transmittance of the IR ink to infrared light is greater than 85%, the transmittance of the IR ink to visible light is less than 6%, and the transmittance of the IR ink to the infrared light is less than 6%. The wavelength is 850nm-940nm.
具体地,由于IR油墨具有对可见光低透光率的特性,所以从外部观看电子装置100时,基于人眼的视觉观察不到设置在第一涂布层14下的接近传感器16。同时,IR油墨兼具对红外光高透光率的特性,能够使接近传感器16稳定地发射和接收红外光,保证了接近传感器16的正常工作。Specifically, since the IR ink has low transmittance to visible light, when the
请参阅图7和图8,在某些实施方式中,电子装置100还包括涂布在下表面132且与第一涂布层14相接的第二涂布层15。Referring to FIGS. 7 and 8 , in some embodiments, the
具体地,第一涂布层14主要用于透过红外光和遮挡接近传感器16,但由于第一涂布层14使用的IR油墨的成本较普通黑色油墨高,若将下表面132全部涂布IR油墨,将不利于降低生产成本,并且,普通黑色油墨相比IR油墨对可见光的透光率能够达到更低,遮挡效果更为突出。如此,通过设置第二涂布层15,不仅有利于降低生产成本,而且遮挡效果更符合工艺要求。Specifically, the
请参阅图9和图10,在某些实施方式中,电子装置100还包括覆盖下表面132且避让接近传感器16的缓冲层18。Referring to FIGS. 9 and 10 , in some embodiments, the
具体地,缓冲层18用于减缓冲击力和防震以保护触控层12和显示层13及其内部结构,避免显示层13因受到外界的冲击作用而损坏。缓冲层18可以由泡棉或者泡沫塑料或者橡胶或者其他软质材料制成。当然,这些缓冲材料仅作为示例性的而本申请的实施例并不限于此。此外,在设置缓冲层18的过程中避让接近传感器16,是为了防止缓冲层18遮挡接近传感器16,以免接近传感器16在发射和接收红外光的过程中受到影响。Specifically, the
请参阅图11和图12,进一步地,在这样的实施方式中,电子装置100还包括覆盖缓冲层18且避让接近传感器16的金属片19。Referring to FIGS. 11 and 12 , further, in such an embodiment, the
具体地,金属片19用于屏蔽电磁干扰及接地,具有扩散温升的作用。金属片19可以采用铜箔、铝箔等金属材料裁剪而成。当然,这些金属材料仅作为示例性的而本申请的实施例并不限于此。此外,在设置金属片19的过程中避让接近传感器16,是为了防止金属片19遮挡接近传感器16,以免接近传感器16在发射和接收红外光的过程中受到影响。Specifically, the
请参阅图13及图14,本申请提供了一种电子装置100的控制方法。控制方法包括步骤:Please refer to FIG. 13 and FIG. 14 , the present application provides a control method of the
S10,在电子装置100处于接近检测模式时,读取触摸显示屏10的模数转换器32(Analog-to-Digital Converter,ADC)的分辨率的部分位数的数据;S10, when the
S20,判断模数转换器32的分辨率的部分位数的数据是否满足预设条件;和S20, judging whether the data of the partial digits of the resolution of the analog-to-
S30,在所述的部分位数的数据满足预设条件的情况下,读取模数转换器32的分辨率的全部位数的数据;S30, in the case that the data of the described part of the number of digits satisfies the preset condition, read the data of all the digits of the resolution of the analog-to-
S40,根据模数转换器32的分辨率的全部位数的数据控制触摸显示屏10的显示状态。S40 , controlling the display state of the
在某些实施方式中,电子装置100还包括触摸芯片30,触摸芯片30用于读取触摸显示屏10的模数转换器32的分辨率的部分位数的数据;及用于判断所说的部分位数的数据是否满足预设条件,以及用于在部分位数的数据满足预设条件的情况下,读取模数转换器32的分辨率的全部位数的数据。In some embodiments, the
处理器23用于根据全部位数的数据控制触摸显示屏的显示状态。The
在一般情况下,电子装置100处于接近检测模式时,读取数模转换器32的全部数据以提高检测的精度。然而,这样一来,则会导致计算量加大、检测时间加长,功耗也增加。In general, when the
因此,本申请实施方式的控制方法和电子装置100中,先读取模数转换器32的分辨率的部分位数的数据,这样一来,读取模数转换器32的数据量较少,读取速度快,可以加快读取速度,并且降低功耗,待满足预设条件后,再读取模数转换器32的分辨率的全部位数的数据,这样可以准确地控制触摸显示屏10的显示状态。Therefore, in the control method and the
具体地,请参阅图14,电子装置100的触摸显示屏10可以通过柔性电路板40与电子装置100的主板50(main board)的连接。一般地,处理器23设置在主板50上。在一个例子中,触摸芯片30设置在柔性电路板40上。触摸显示屏10及触摸芯片30均通过柔性电路板40与处理器23通信。模数转换器32可以封装在触摸芯片30中。Specifically, referring to FIG. 14 , the
在步骤S10中,接近检测模式为电子装置100的预设功能,在接近检测模式下,电子装置100可以运行特定程度,以使触摸显示屏10可以检测是否有外部接近。此处所说的“接近”可以指的外部物体与触摸显示屏10接触,也可以指外部物体与触摸显示屏10之间具有间隙。所述的接近检测模式可以根据用户输入选择开启或关闭。另外,所述的接近检测模式也可以在电子装置100满足一定的条件下自动开启。In step S10, the proximity detection mode is a preset function of the
可以理解,模数转换器32具有一定的分辨率,例如模数转换器32的分辨率为10位(bit)、12位、16位等分辨率。读取模数转换器32的分辨率的部分位数的数据,此时,模数转换器32以小于模数转换器32的额定分辨率的分辨率运行。在一个例子中,模数转换器32的分辨率为10位,在接近检测模式下,读取10位分辨率中的4位分辨率的数据。或者说,模数转换器32以4位分辨率运行。It can be understood that the analog-to-
在步骤S20及步骤S30中,可以理解,在触摸显示屏10接收到外部输入前后,模数转换器32输出的数据发生变化,模数转换器32输出的数据为数字信号。因此,预设条件可以设置为一阈值,可判断模数转换器32的分辨率的部分位数的数据是否大于阈值,若大于阈值,则说明模数转换器32的分辨率的部分位数的数据满足预设条件,此时说明触摸显示屏10接收到外部输入,此时,进一步模数转换器32的分辨率的全部位数的数据,以判断外部输入的类型。In steps S20 and S30, it can be understood that before and after the
在一个例子中,模数转换器32的分辨率为10位,在接近检测模式下,读取10位分辨率中的4位分辨率的数据。若4位分辨率的数据满足预设条件,则读取10位分辨率的数据,或者说,此时,模数转换器32以10位分辨率运行。In one example, the resolution of the analog-to-
在步骤S40中,可以根据模数转换器32的分辨率的全部位数的数据可以获取外部输入是否满足条件,以准确地控制触摸显示屏10的显示状态。In step S40 , whether the external input satisfies the condition can be obtained according to the data of all the bits of the resolution of the analog-to-
在某些实施方式中,所说的模数转换器32的分辨率的部分位数为模数转换器32自模数转换器32的分辨率的最高位向最低位连续分布的预定数量的位数。In some embodiments, the partial number of bits of the resolution of the analog-to-
在一个例子中,模数转换器32的分辨率为10位,从最高位至最低位依次编号为10、9、8、7……、1。模数转换器32的分辨率的部分位数可以取分别编号为10、9、8、7这四个编号的4个位数。此时,可以理解,预定数量为4个。可以理解,模数转换器32的分辨率的部分位数也可以取分别编号为10、9、8这三个编号的3个位数。In one example, the resolution of the analog-to-
模数转换器32的分辨率的位数可以输出0、1两种数字信号,因此,分辨率从最高位至最低位可以输出0、1两种数字信号不同组合,例如,分辨率为10位的模数转换器32从最高位至最低位依次输出的信号组合为1101000000、0000000011或010000000等数据。由此可知,模数转换器32的分辨率的高位输出的数字信号包括更多的数据信息。The number of bits of resolution of the analog-to-
如此,读取模数转换器32的分辨率中高位的数据,从而可以获得更得的数据信息,不仅可以提高读取效率,还可以较准确地获取触摸显示屏输出的数据。In this way, by reading the data in the middle and high bits of the resolution of the analog-to-
在步骤S40中,触摸显示屏10的显示状态包括熄灭状态和点亮状态,其中,在点亮状态下,触摸显示屏10可以呈显示不同内容的状态。In step S40, the display state of the
在某些实施方式中,在步骤S10前,控制方法还包括步骤:In some embodiments, before step S10, the control method further includes the steps:
S01,在电子装置100处于通话业务时,开启接近检测模式。S01, when the
在某些实施方式中,处理器23用于在电子装置100处于通话业务时,开启接近检测模式。In some embodiments, the
如此,可以在电子装置100处于通话业务时控制触摸显示屏10的显示状态。具体地,通话业务包括来电、去电或接通电话。进一步地,通话业务可以为用户进行语音对话的过程,例如,通话业务为用户向他人拨出电话而等待对方接听的过程,即去电状态;也可以为用户通过语音与他人正在对话的过程,即接通电话状态;也可以为电子装置100接入外部呼入的电话而等待用户接听的过程,即来电状态。In this way, the display state of the
请参阅图16及图17,在某些实施方式中,步骤S40包括:Please refer to FIG. 16 and FIG. 17 , in some embodiments, step S40 includes:
S41:通过触摸芯片处理模数转换器32的分辨率的全部位数的数据中的自电容数据并输出第一处理结果;S41: Process the self-capacitance data in the data of all the bits of resolution of the analog-to-
S42:通过电子装置的处理器处理模数转换器32的分辨率的全部位数的数据中的互电容数据并输出第二处理结果;S42: Process the mutual capacitance data in the data of all the bits of resolution of the analog-to-
S43:根据第一处理结果及第二处理结果控制触摸显示10的显示状态。S43: Control the display state of the
在某些实施方式中,触摸芯片30用于处理模数转换器32的分辨率的全部位数的数据中的自电容数据并输出第一处理结果。In some embodiments, the
处理器23用于处理所述模数转换器的分辨率的全部位数的数据中的互电容数据并输出第二处理结果,以及用于根据第一处理结果及第二处理结果控制触摸显示屏10的显示状态。The
如此,触摸显示屏10产生的自电容数据和互电容数据分别通过触摸芯片30和处理器23处理,这样可以提高处理触摸显示屏10产生的信号的效率,从而可以更快地对触摸显示屏10发出控制指令,以以使触摸显示屏10可以快速地做出相应的响应。In this way, the self-capacitance data and mutual capacitance data generated by the
具体地,支持悬浮触控的触摸显示屏10上包括两种电容信号,互电容数据和自电容数据。自电容数据比互电容数据强度更大,可以检测更远的手指感应,检测距离范围可达20mm。互电容数据的电场很小,以至于信号强度很低,无法感应到那些非常弱小的信号。因此,当用户的手指在屏幕上悬停时,根据互电容数据无法对手指的悬停检测。Specifically, the
触摸显示屏10可以根据物体与触摸显示屏10的距离大小输出不同的电容值,根据触摸显示屏10输出的电容值及电容值的数量可以触摸显示屏10是否被遮挡。例如,触摸显示屏10输出的电容值数量为10个,10个电容值均大于阈值且基本一致时判定触摸显示屏10被遮挡。The
在一个例子中,当电子装置100进入通话业务时,用户一般会将电子装置100放至耳边,在用户将电子装置100放至耳边的过程中,由于面部及耳朵等具有皮肤的部位为导体,触摸显示屏10可以根据电子装置100与人体头部的距离生成不同的信号值,从而判断用户是否已经完成将电子装置100放至耳边的动作。In one example, when the
本实施方式中,触摸显示屏10在进行接近检测时,根据自电容数据判断是否有物体接近触摸显示屏10,在进行触摸判断时,根据互电容数据判断是否被触摸。In this embodiment, when the
一般地,处理器23处理数据的能力强于触摸芯片30处理数据的能力。在触摸显示屏10中,触摸显示屏10产生的互电容数据比触摸显示屏10的自电容数据多,因此,通过触摸芯片30处理数据量较小的自电容数据,并且通过处理器23处理数据量较大的互电容数据,这样可以提高处理触摸显示屏10输出的信号的效率,以快速地对触摸显示屏10的控制做出反应。Generally, the ability of the
第一处理结果例如为确定是否有物体靠近触摸显示屏10的结果。The first processing result is, for example, a result of determining whether an object is close to the
在步骤S42中,在一个例子中,第二处理结果例如为确定触摸显示屏10是否接收了预定操作的结果。预定操作包括滑动操作和/或点击操作。或者说,预定操作可以为滑动操作,也可以为点击操作,或者同时为滑动操作及点击操作。In step S42, in one example, the second processing result is, for example, a result of determining whether the
滑动操作指的是用户自触摸显示屏10的一个位置沿着一定的轨迹滑动至触摸显示屏10的另一个位置。滑动操作的轨迹例如为直线。滑动操作可以为上下滑动操作或者左右滑动操作。The sliding operation refers to that the user slides from one position of the
点击操作指的是用户在触摸显示屏10的某些位置点击触碰。其中,点击操作可以为单点操作,也可以为多点操作。用户可以通过手指在触摸显示屏10操作以实现滑动操作及点击操作。The click operation refers to that the user clicks and touches some positions of the
在另一个例子中,第二处理结果例如为触摸显示屏10是否与外部物体大面积接触的结果。In another example, the second processing result is, for example, a result of whether the
需要指出的是,在步骤S43中,第一处理结果和第二处理结果可以没有同时存在。在仅存在第一处理结果或者第二处理结果的情况下,根据第一处理结果及第二处理结果中的其中一个处理结果控制触摸显示屏10的显示状态。It should be noted that, in step S43, the first processing result and the second processing result may not exist at the same time. When only the first processing result or the second processing result exists, the display state of the
请参阅图18,在某些实施方式中,步骤S40包括:Referring to FIG. 18, in some embodiments, step S40 includes:
S44,根据所述模数转换器的分辨率的全部位数的数据判断触摸显示屏10是否被遮挡;S44, according to the data of all digits of the resolution of the analog-to-digital converter, determine whether the
S45,在触摸显示屏10被遮挡时,控制触摸显示屏10进入熄灭状态。S45 , when the
在某些实施方式中,处理器23用于根据所述模数转换器的分辨率的全部位数的数据判断触摸显示屏10是否被遮挡,并在触摸显示屏10被遮挡时,控制触摸显示屏10进入熄灭状态。In some embodiments, the
在某些实施方式,步骤S40还包括步骤:In some embodiments, step S40 further includes the steps of:
S46,在触摸显示屏10没被遮挡时,控制触摸显示屏10保持点亮状态。如此,方便用户操作触摸显示屏10。S46, when the
具体地,在步骤S44中,可以根据以上所说的第一处理结果及第二处理结果判断触摸显示屏10是否被遮挡;Specifically, in step S44, it can be determined whether the
根据第一处理结果和第二处理结果可以控制触摸显示屏10的显示状态,从而使得电子装置100在通话时,且触摸显示屏10被遮挡时控制触摸显示屏10进入熄灭状态,以节省电量。The display state of the
在步骤S45中,触摸显示屏10的熄灭状态包括显示区1311处于全熄灭状态;或显示区1311的一部分显示预定内容而显示区1311的其他部分处于熄灭状态。在显示区1311处于全熄灭状态时,触摸显示屏10的显示层13断电,显示区1311呈现为黑色外观。In step S45, the off state of the
显示区1311的一部分显示预定内容而显示区1311的其他部分处于熄灭状态指的是,仅有显示区1311的一部分处于点亮状态而显示预定内容,而显示区1311的其他部分处于关闭熄灭状态。Part of the
例如,仅有显示区1311的一部分处于点亮状态而显示预定内容时,触摸显示屏10处于熄屏AOD(Always on Display)模式。预定内容例如为时间,也即是说,无论触摸显示屏10进入休眠状态或唤醒状态,显示区1311均能显示时间信息。当然,预定内容也可以为日期、电子装置100的信号强弱等内容。For example, when only a part of the
相对地,触摸显示屏10的点亮状态指的是,触摸显示屏10的显示层13通电,显示区1311的所有区域均点亮以使显示区1311可以显示内容。Conversely, the lighting state of the
在步骤S44中,可以根据所述模数转换器的分辨率的全部位数的数据判断触摸显示屏10产生电容信号的区域、面积及/或形状等判定触摸显示屏10是否被遮蔽。In step S44 , it is possible to determine whether the
因此,请参阅图19,在某些实施方式中,步骤S44包括:Therefore, referring to FIG. 19, in some embodiments, step S44 includes:
S441,根据第一处理结果判断触摸显示屏10与外界物体的距离是否小于预定距离;S441, according to the first processing result, determine whether the distance between the
S442,根据第二处理结果判断触摸显示屏10与外界物体的接触面积是否大于预定面积;S442, according to the second processing result, determine whether the contact area between the
S443,在接触面积大于预定面积或距离小于预定距离时确定触摸显示屏10被遮挡。S443, when the contact area is larger than the predetermined area or the distance is smaller than the predetermined distance, it is determined that the
请参阅图20,在一个例子中,用户在接听电话时,电子装置100靠近脸部,此时,如果触摸显示屏10与脸部之间具有间隙,即,触摸显示屏10与脸部没有接触。此时,触摸显示屏10产生的自电容数据,触摸芯片30处理触摸显示屏10的自电容数据并输出第一处理结果,根据第一处理结果可以确定脸部与触摸显示屏10之间的距离。例如,脸部与触摸显示屏10之间的距离较小时,自电容数据的强度较大。因此,根据触摸显示屏10与脸部的距离可以判断触摸显示屏10是否被遮挡。Referring to FIG. 20 , in one example, when the user is answering the phone, the
在另一个例子中,用户在接听电话时,电子装置100靠近脸部,此时,如果触摸显示屏10与脸部接触,此时,触摸显示屏10产生的互电容数据,触摸芯片30处理触摸显示屏10的互电容数据并输出第一处理结果,根据第一处理结果可以确定触摸显示屏10与脸部的接触面积,如果接触面积大于预定面积,则可以确定触摸显示屏10被遮挡。In another example, when the user is answering a call, the
请参阅图21,在某些实施方式中,控制方法包括:Referring to Figure 21, in some embodiments, the control method includes:
S50,在触摸显示屏10处于熄灭状态时关闭触摸显示屏10的触控层12。S50 , when the
在某些实施方式中,处理器23用于在触摸显示屏10处于熄灭状态时关闭触摸显示屏10的触控层12。In some embodiments, the
在一些情况下,电子装置100开启接近检测模式时,在触摸显示屏处于熄灭状态下,只是触摸显示屏的显示层关闭,而触摸显示屏的触控层保持开启的状态。此时,用户仍然可以在触摸显示屏处于熄灭状态下控制电子装置100工作。In some cases, when the
例如,用户可以在触摸显示屏处于熄灭状态下,用户用手指在触摸显示屏10上画“M”图案,触控层12由于用户的触碰而输出控制信号,从而控制电子装置100播放音乐。For example, when the touch screen is off, the user draws an "M" pattern on the
因此,用户在接听电话时,由于电子装置100有可能被遮挡而与人脸、人耳或其他物体接触,导致触控层12输出了被触控的信号,从而引发电子装置100运行非用户预想的功能程序。Therefore, when the user answers the call, since the
如此,在触摸显示屏10处于熄灭状态时关闭触摸显示屏10的触控层12,可以防止用户在电子装置100通话的过程引起错误操作。In this way, when the
本实施方式中,“触控层12开启”是指触控层12通电并可以输出电容信号。“触控层12关闭”是指触控层12断电而无法产生电容信号。In this embodiment, "the
在某些实施方式中,所说的第二处理结果通过处理器23处理触摸显示屏10的顶部区域输出的互电容数据得到;In some embodiments, the second processing result is obtained by the
所说的第一处理结果通过触摸芯片30处理触摸显示屏10的顶部区域输出的自电容数据得到。The first processing result is obtained by processing the self-capacitance data output from the top area of the
由于电子装置100的受话器通常设置在电子装置100的顶部。在一个例子中,在用户接听电话时,电子装置100的顶部更加靠近耳朵附近,因此,根据触摸显示屏10的顶部区域输出的信号,处理得到第一处理结果及第二处理结果,可以提高判定电子装置100接近头部的准确率。Since the receiver of the
本实施方式中,触摸显示屏10的顶部区域指的是在电子装置100的纵向上,触摸显示屏10靠近电子装置100的顶端面1002的区域。In this embodiment, the top area of the
较佳地,控制方法还包括检测电子装置100的姿态是否为预定姿态的步骤。Preferably, the control method further includes the step of detecting whether the posture of the
在该步骤中,可以通过电子装置100的陀螺仪等传感器检测电子装置100的姿态。步骤S45包括在电子装置100的姿态为预定姿态且触摸显示屏10被遮挡时,控制触摸显示屏10进入熄灭状态。In this step, the posture of the
如此,控制触摸显示屏10的显示状态的过程更加精确。可以理解,在某些情景下,即使电子装置100进入了通话业务,根据触摸显示屏10输出的信号也不一定判断用户完成了将电子装置100放至耳边的动作。比如,电子装置100进入通话业务后,用户的手指触碰了触摸显示屏10(如以上所述的预定操作),在这个过程中,电子装置100并没有放置在用户的耳边,但是触摸显示屏10也会输出不同的控制信号。In this way, the process of controlling the display state of the
通过对电子装置100姿态的判断,可以进一步确定电子装置100是否被放至用户的耳边。具体地,可以利用陀螺仪、重力传感器等传感器对电子装置100的姿态进行判断。另外,电子装置100的姿态有很多,比如平放、倒置和竖直,由于用户在进行通话时,一般会有一个抬手的动作以将电子装置100竖直地放在用户的耳边,因此,可以将预定姿态设置为用户抬手后电子装置100处于竖直的姿态。可以理解,用户抬手的过程可以被电子装置100的陀螺仪、重力传感器等传感器检测到。By judging the posture of the
例如,当通过重力传感器检测电子装置100的姿态时,重力传感器可以检测电子装置100的宽度方向X、长度方向Y及厚度方向Z这三个方向的加速度变化。重力传感器持续地获取电子装置100的X方向、Y方向及Z方向的数据。可以理解,当电子装置100被放在耳边且处于通话的过程中,电子装置100在X方向、Y方向这两个方向上移动的距离较小。因此,重力传感器检测到X方向、Y方向上的数据变化量较小。For example, when the attitude of the
如果电子装置100从耳边拿至眼前,那么,电子装置100在X方向、Y方向、Z方向这三个方向中至少两个方向上的移动距离较大,因此,重力传感器获取到X方向、Y方向、Z方向中的至少两个方向上的数据变化量较大。If the
由此,根据重力传感器获取到X方向、Y方向、Z方向的数据变化量可以获取电子装置100的姿态。In this way, the posture of the
又如,当通过陀螺仪检测电子装置100的姿态时,陀螺仪测量电子装置100偏转和倾斜时的转动角速度。陀螺仪能检测和感应3D空间的线性和动作,从而能够辨认方向、确定姿态和计算角速度。如此,根据陀螺仪的检测数据可以判断电子装置100的姿态是否为直立姿态、平放或斜放等姿态。For another example, when the attitude of the
在某些实施方式中,控制方法在步骤S50后还包括根据接近传感器16的检测数据控制触摸显示屏10的显示状态的步骤。例如,根据接近传感器16的检测数据判断电子装置100远离外界物体时控制触摸显示屏10点亮。In some embodiments, the control method further includes a step of controlling the display state of the
本申请实施方式还提供了一种计算机可读存储介质。一种包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器23执行时,使得处理器23执行上述任一实施方式的控制方法。The embodiments of the present application also provide a computer-readable storage medium. A non-volatile computer-readable storage medium containing computer-executable instructions, when the computer-executable instructions are executed by one or
请参阅图22,本申请实施方式还提供了一种计算机设备400。计算机设备400包括存储器32及一个或多个处理器23,一个或多个程序被存储在存储器32中,并且被配置成由一个或多个处理器23执行。程序包括用于执行上述任意一项实施方式所述的控制方法。Referring to FIG. 22 , an embodiment of the present application further provides a
图22为一个实施例中的计算机设备400的内部模块示意图。计算机设备400包括通过系统总线31连接的处理器23、存储器32(例如为非易失性存储介质)、内存储器33、显示层13和输入装置34。其中,计算机设备400的存储器32存储有操作系统和程序。该程序可被处理器23执行,以实现上述任意一项实施方式的控制方法。FIG. 22 is a schematic diagram of the internal modules of
处理器23可用于提供计算和控制能力,支撑整个计算机设备400的运行。计算机设备400的内存储器33为存储器32中的计算机可读指令运行提供环境。计算机设备400的显示层13可以是OLED显示层或者Micro LED显示层等,输入装置34可以是设置在显示层13上的触摸显示屏10,也可以是计算机设备400外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该计算机设备400可以是手机、平板电脑、笔记本电脑、个人数字助理或穿戴式设备(例如智能手环、智能手表、智能头盔、智能眼镜)等。本领域技术人员可以理解,图中示出的结构,仅仅是与本申请方案相关的部分结构的示意图,并不构成对本申请方案所应用于其上的计算机设备400的限定,具体的计算机设备400可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于一非易失性计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it may include the flow of the embodiments of the above-mentioned methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), and the like.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811626426.2ACN109743451B (en) | 2018-12-28 | 2018-12-28 | Control method, electronic device, computer equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811626426.2ACN109743451B (en) | 2018-12-28 | 2018-12-28 | Control method, electronic device, computer equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN109743451A CN109743451A (en) | 2019-05-10 |
| CN109743451Btrue CN109743451B (en) | 2020-08-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811626426.2AActiveCN109743451B (en) | 2018-12-28 | 2018-12-28 | Control method, electronic device, computer equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN109743451B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111736722B (en)* | 2020-05-27 | 2023-09-19 | 深圳市鸿合创新信息技术有限责任公司 | Detection method, device and equipment for shielding state of capacitive touch screen |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101983372A (en)* | 2008-04-04 | 2011-03-02 | 高通股份有限公司 | Low-power touch screen controller |
| CN107450817A (en)* | 2017-07-31 | 2017-12-08 | 广东欧珀移动通信有限公司 | Proximity test method, apparatus, storage medium and electronic equipment |
| CN107704419A (en)* | 2017-09-22 | 2018-02-16 | 北京小米移动软件有限公司 | Numeric displaying method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102855018A (en)* | 2012-07-27 | 2013-01-02 | 北京爱格码科技有限责任公司 | Method for achieving proximity sensing through touch screen capacitance induction |
| CN102855037B (en)* | 2012-08-07 | 2016-06-29 | 深圳天珑无线科技有限公司 | A kind of capacitance plate mobile terminal and screen control method, device |
| US10254900B2 (en)* | 2016-02-18 | 2019-04-09 | Tufts University | Drifting keyboard |
| KR102356812B1 (en)* | 2017-05-19 | 2022-01-28 | 엘지전자 주식회사 | Electronic device capable of sensing a fingerprint |
| CN108196709A (en)* | 2017-12-28 | 2018-06-22 | 上海传英信息技术有限公司 | The touch screen control method and control system of a kind of intelligent terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101983372A (en)* | 2008-04-04 | 2011-03-02 | 高通股份有限公司 | Low-power touch screen controller |
| CN107450817A (en)* | 2017-07-31 | 2017-12-08 | 广东欧珀移动通信有限公司 | Proximity test method, apparatus, storage medium and electronic equipment |
| CN107704419A (en)* | 2017-09-22 | 2018-02-16 | 北京小米移动软件有限公司 | Numeric displaying method and device |
| Publication number | Publication date |
|---|---|
| CN109743451A (en) | 2019-05-10 |
| Publication | Publication Date | Title |
|---|---|---|
| US10827058B2 (en) | Control method, control device, electronic device and storage medium | |
| US11397501B2 (en) | Coordinate measuring apparatus for measuring input position of coordinate indicating apparatus, and method of controlling the same | |
| KR102640072B1 (en) | Screen display control methods and electronic devices | |
| US20150324000A1 (en) | User input method and portable device | |
| CN109618031B (en) | Electronic device and control method thereof | |
| CN109167857B (en) | Calibration method, electronic device, storage medium, and computer apparatus | |
| KR102022288B1 (en) | Touch input method and mobile device | |
| US11641414B2 (en) | Terminal with a compact component layout | |
| WO2019233232A1 (en) | Control method, control device, electronic device, computer storage medium and device | |
| CN108924358A (en) | Proximity sensor control method, electronic device, and computer-readable storage medium | |
| CN108718349B (en) | Control method, control device, electronic device, storage medium and computer equipment | |
| KR102559030B1 (en) | Electronic device including a touch panel and method for controlling thereof | |
| US20220308381A1 (en) | Display panel and display apparatus | |
| CN109743451B (en) | Control method, electronic device, computer equipment and storage medium | |
| KR20140105354A (en) | Electronic device including a touch-sensitive user interface | |
| WO2019233233A1 (en) | Control method, control device, electronic device, storage medium and computer device | |
| KR102015349B1 (en) | Call switching method and mobile terminal | |
| CN109710109B (en) | Control method, control device, electronic device and storage medium | |
| CN108810271A (en) | Control method, control device, electronic device, storage medium and computer equipment | |
| US20170017389A1 (en) | Method and apparatus for smart device manipulation utilizing sides of device | |
| CN109710110B (en) | Control method, control device, electronic device, and storage medium | |
| CN109298823A (en) | Control method, control device, electronic device and storage medium | |
| CN115421617A (en) | Holding mode detection method, electronic device and storage medium | |
| CN109683750B (en) | Control method, electronic device, computer equipment and storage medium | |
| KR20140114721A (en) | Method for operating touchscreen and electronic device implementing the same |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |