CN109710109B - Control method, control device, electronic device and storage medium - Google Patents
Control method, control device, electronic device and storage medium Download PDFInfo
- Publication number
- CN109710109B CN109710109B CN201811623807.5A CN201811623807A CN109710109B CN 109710109 B CN109710109 B CN 109710109B CN 201811623807 A CN201811623807 A CN 201811623807A CN 109710109 B CN109710109 B CN 109710109B
- Authority
- CN
- China
- Prior art keywords
- predetermined
- change
- trend
- electronic device
- display screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Telephone Function (AREA)
Abstract
本发明公开了一种控制方法。控制方法包括步骤:在所述电子装置处于通话业务时,采集触摸显示屏的输出信号;在输出信号发生变化时,判断输出信号的变化趋势是否符合预定趋势;若变化趋势符合所述预定趋势,根据输出信号控制触摸显示屏的显示状态。本发明实施方式的控制方法中,在通过触摸显示屏进行接近检测时,判断输出信号的变化是否符合预定趋势,从而排除其他因素对接近检测的干扰,使得触摸显示屏的接近检测更加准确。本发明还公开了一种控制装置、电子装置和存储介质。
The invention discloses a control method. The control method includes the steps of: collecting the output signal of the touch screen when the electronic device is in the call service; when the output signal changes, judging whether the change trend of the output signal conforms to a predetermined trend; if the change trend conforms to the predetermined trend, Control the display state of the touch screen according to the output signal. In the control method of the embodiment of the present invention, when the proximity detection is performed through the touch screen, it is judged whether the change of the output signal conforms to the predetermined trend, thereby eliminating the interference of other factors on the proximity detection, so that the proximity detection of the touch screen is more accurate. The invention also discloses a control device, an electronic device and a storage medium.
Description
技术领域technical field
本发明涉及电子技术领域,特别涉及一种控制方法、控制装置、电子装置和存储介质。The present invention relates to the field of electronic technology, in particular to a control method, a control device, an electronic device and a storage medium.
背景技术Background technique
随着全面屏手机的迅速发展,为了提高手机的屏占比,接近传感器被设置在显示屏的下方。然而如此,接近传感器在屏幕点亮时工作可能导致屏幕的闪烁,因而采用触摸屏替代接近传感器实现接近熄屏的功能,然而触摸屏的电容值容易受到干扰而造成识别的不灵敏或误识别。With the rapid development of full-screen mobile phones, in order to increase the screen-to-body ratio of the mobile phone, the proximity sensor is placed below the display screen. However, the proximity sensor may cause the screen to flicker when the screen is on, so the touch screen is used instead of the proximity sensor to realize the function of closing the screen. However, the capacitance value of the touch screen is easily disturbed, resulting in insensitivity or misidentification.
发明内容Contents of the invention
有鉴于此,本发明的实施例提供了一种控制方法、控制装置、电子装置和存储介质。In view of this, the embodiments of the present invention provide a control method, a control device, an electronic device and a storage medium.
本发明提供了一种电子装置的控制方法,所述控制方法包括步骤:The present invention provides a control method for an electronic device, the control method comprising the steps of:
在所述电子装置处于通话业务时,采集触摸显示屏的输出信号;When the electronic device is in a call service, collecting an output signal of the touch screen;
在所述输出信号发生变化时,判断所述输出信号的变化趋势是否符合预定趋势;和When the output signal changes, judging whether the change trend of the output signal conforms to a predetermined trend; and
若所述变化趋势符合所述预定趋势,根据所述输出信号控制所述触摸显示屏的显示状态。If the change trend conforms to the predetermined trend, the display state of the touch screen is controlled according to the output signal.
本发明提供了一种电子装置的控制装置,包括:The invention provides a control device for an electronic device, comprising:
采集模块,用于在所述电子装置处于通话业务时采集所述触摸显示屏的输出信号;A collection module, configured to collect the output signal of the touch display screen when the electronic device is in a call service;
处理模块,用于在所述输出信号发生变化时判断所述输出信号的变化趋势是否符合预定趋势;和A processing module, configured to determine whether the change trend of the output signal conforms to a predetermined trend when the output signal changes; and
控制模块,用于在所述变化趋势符合所述预定趋势时根据所述输出信号控制所述触摸显示屏的显示状态。A control module, configured to control the display state of the touch screen according to the output signal when the change trend conforms to the predetermined trend.
本发明提供了一种电子装置,The invention provides an electronic device,
包括触摸显示屏、接近传感器和处理器,所述接近传感器设置在所述触摸屏下方,所述处理器用于:It includes a touch display screen, a proximity sensor and a processor, the proximity sensor is arranged under the touch screen, and the processor is used for:
在所述电子装置处于通话业务时,采集触摸显示屏的输出信号;When the electronic device is in a call service, collecting an output signal of the touch screen;
在所述输出信号发生变化时,判断所述输出信号的变化趋势是否符合预定趋势;和When the output signal changes, judging whether the change trend of the output signal conforms to a predetermined trend; and
若所述变化趋势符合所述预定趋势,根据所述输出信号控制所述触摸显示屏的显示状态。If the change trend conforms to the predetermined trend, the display state of the touch screen is controlled according to the output signal.
本发明提供了一种电子装置,包括触摸显示屏和接近传感器,所述接近传感器设置在所述触摸显示屏下方;一个或多个处理器;存储器;和The present invention provides an electronic device comprising a touch display and a proximity sensor disposed below the touch display; one or more processors; a 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 include instructions for executing the control method.
本发明提供了一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行所述的电子装置的控制方法。The present invention provides one or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the described A control method for an electronic device.
本发明实施方式的控制方法、控制装置、电子装置及计算机可读存储介质中,在通过触摸显示屏进行接近检测时,判断输出信号的变化是否符合预定趋势,从而排除其他因素对接近检测的干扰,使得触摸显示屏的接近检测更加准确。In the control method, control device, electronic device and computer-readable storage medium of the embodiments of the present invention, when the proximity detection is performed through the touch screen, it is judged whether the change of the output signal conforms to the predetermined trend, thereby eliminating the interference of other factors on the proximity detection , making the proximity detection of the touch screen more accurate.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments 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 invention;
图2是图1的电子装置沿II-II向的截面示意图;2 is a schematic cross-sectional view of the electronic device of FIG. 1 along the II-II direction;
图3至图12是本发明某些实施方式的电子装置的截面示意图;3 to 12 are schematic cross-sectional views of electronic devices according to some embodiments of the present invention;
图13是本发明某些实施方式的电子装置的一个状态示意图;Fig. 13 is a schematic diagram of a state of an electronic device according to some embodiments of the present invention;
图14是本发明某些实施方式的电子装置的另一个状态示意图;Fig. 14 is a schematic diagram of another state of an electronic device according to some embodiments of the present invention;
图15是图14所示的电子装置的沿A-A向的部分截面示意图;Fig. 15 is a schematic partial cross-sectional view along the A-A direction of the electronic device shown in Fig. 14;
图16是本发明某些实施方式的电子装置的导光件的立体示意图;16 is a schematic perspective view of a light guide of an electronic device according to some embodiments of the present invention;
图17是本发明某些实施方式的电子装置的导光件的另一个立体示意图;17 is another schematic perspective view of a light guide of an electronic device according to some embodiments of the present invention;
图18是本发明某些实施方式的控制方法的流程示意图;Fig. 18 is a schematic flowchart of a control method in some embodiments of the present invention;
图19是本发明某些实施方式的控制装置的模块示意图;Fig. 19 is a block diagram of a control device in some embodiments of the present invention;
图20-图24是本发明某些实施方式的控制方法的流程示意图;20-24 are schematic flowcharts of control methods in some embodiments of the present invention;
图25是本发明某些实施方式的计算机设备的模块示意图。Figure 25 is a block diagram of a computer device according to some embodiments of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
随着电子设备的发展,全面屏已经成为手机的发展趋势。全面屏高屏占比的特点使得屏幕顶部留给接近传感器或者其他元件的位置有限,当接近传感器设置在透光显示屏下时,由于光电效应,接近传感器在发射红外光的过程中使屏幕里的电子受到激发从而引起透光显示屏闪烁,从而与透光显示屏的正常显示形成干涉,影响用户的体验。With the development of electronic equipment, full screen has become the development trend of mobile phones. The full screen and high screen-to-body ratio make the top of the screen have limited space for the proximity sensor or other components. When the proximity sensor is placed under the light-transmitting display, due to the photoelectric effect, the proximity sensor emits infrared light. The electrons in the light-transmitting display are excited to cause the light-transmitting display to flicker, which interferes with the normal display of the light-transmitting display and affects the user 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 invention 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)播放器,便携式医疗设备以及数码相机及其组合。
在一些情况下,电子装置100可以执行多种功能(例如,播放音乐,显示视频,存储图片以及接收和发送电话呼叫)。如果需要,电子装置1000可以是诸如蜂窝电话、媒体播放器、其他手持设备、腕表设备、吊坠设备、听筒设备或其他紧凑型便携式设备的便携式设备。In some cases, the
手机通过设置接近传感器16以确定手机与障碍物之间的距离并做出相应的调整,能够防止用户的误操作和有利于节省手机的电量。例如,当用户在接听或者拨打电话并将手机靠近头部时,接近传感器16经过计算发射器发出红外光和接收器接收反射回来的红外光的时间生成检测信息,处理器23根据该检测信息触摸显示屏10。当手机远离头部时,处理器23再次根据接近传感器16反馈回来的检测信息重新打开触摸显示屏10。The mobile phone is provided with the
在某些实施方式中,显示层13包括OLED显示层。In some embodiments, the
具体地,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 display content effects without affecting the
请参阅图3,在一些实施方式中,触摸显示屏10还包括透光盖板11和触控层12。透光盖板11设置在触控层12上。触控层12设置在显示层13上。显示层13的上表面131朝向触控层12。透光盖板11和触控层12对可见光透光率和红外光透光率均大于90%。Please refer 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 FIG. 4 and FIG. 5 , in some embodiments, the
具体地,一般情况下,当用户在接听或者拨打电话时,电子装置100靠近人体头部,发射器1611发出红外光,接收器1612接收反射回来的红外光。处理器23计算红外光从发射到反射回来的时间,便发出相应指令控制屏幕关闭。当电子装置100远离头部时,处理器23再次根据反馈回来的数据进行计算并发出指令,便重新打开屏幕。如此,不仅防止了用户的误操作,而且节省了手机的电量。Specifically, generally, when the user is answering or making a call, the
在某些实施方式中,接近传感器16在下表面132的正投影位于第一涂布层14在下表面132的正投影内。In some embodiments, the orthographic projection of the
具体地,在进行工艺装配的过程中接近传感器16的安装通常需要预留装配间隙,导致接近传感器16与其他元件之间出现缝隙,使可见光从缝隙里进入,出现漏光现象。因此,在接近传感器16和显示层13层叠的方向上,第一涂布层14在下表面132的正投影的面积大于接近传感器16在下表面132的正投影的面积,能够在不影响接近传感器16正常工作的情况下,使第一涂布层14充分遮挡接近传感器16,实现从外部观看电子装置100时,达到接近传感器16不可见的效果。Specifically, during the assembly process, 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。Please refer 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 of the front projection of the
在某些实施方式中,第一涂布层包括IR油墨,IR油墨对红外光的透光率大于85%,IR油墨对可见光的透光率小于6%,IR油墨可透过的红外光的波长为850nm-940nm。In some embodiments, the first coating layer includes IR ink, the transmittance of IR ink to infrared light is greater than 85%, the transmittance of IR ink to visible light is less than 6%, and the transmittance of IR ink to 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。Please refer to FIG. 11 and FIG. 12 , further, in such an embodiment, the
具体地,金属片19用于屏蔽电磁干扰及接地,具有扩散温升的作用。金属片19可以采用铜箔、铝箔等金属材料裁剪而成。当然,这些金属材料仅作为示例性的而本发明的实施例并不限于此。此外,在设置金属片19的过程中避让接近传感器16,是为了防止金属片19遮挡接近传感器16,以免接近传感器16在发射和接收红外光的过程中受到影响。Specifically, the
请一并参阅图13-15,在某些实施方式中,电子装置100还包括壳体20、收容壳200、导光件51及光感应器5。收容壳200滑动地与壳体20连接,并能伸出壳体20或缩回壳体20中。收容壳200设有入光孔2006,导光件51收容于收容壳200内部且部分伸入入光孔2006。导光件51具有相背的入光面511和出光面512。入光面511朝向收容壳200外部。出光面512朝向收容壳200内部。光感应器5收容于收容壳200内部且正对出光面512。Please refer to FIGS. 13-15 together. In some embodiments, the
如此,由于入光孔2006设置于电子装置100的收容壳200中,而非设置在电子装置100的触摸显示屏10,因此入光孔2006的设置既能够满足光感应器5接收环境光的需求,还不会限制触摸显示屏10的屏占比,使得电子装置100的屏占比较大。In this way, since the
具体地,请参照图13-14,以电子装置100处于该视角为参照进行定义,电子装置100具有宽度方向X、长度方向Y及厚度方向Z,长度方向Y垂直于宽度方向X,厚度方向Z垂直于宽度方向X和长度方向Y。Specifically, referring to FIGS. 13-14 , the
壳体20还包括顶端面1002和与顶端面1002相背设置的底端面1003。一般的,顶端面1002和底端面1003可沿宽度方向X延伸。也即顶端面1002和底端面1003为电子装置100的短边。底端面1003用于排布电子装置100的连接器、麦克风、扬声器等。The
如图14,壳体20的顶部上开设有容纳槽1004,容纳槽1004自壳体20的顶部向壳体20内部凹陷。容纳槽1004贯穿壳体20的侧面。收容壳200于容纳槽1004中与壳体20滑动连接。换言之,收容壳200滑动连接壳体20,以伸出或缩回容纳槽1004。As shown in FIG. 14 , a receiving
收容壳200内还可以设置功能元件300,功能元件300例如为摄像头、听筒或激光发射器等,摄像头通过入光孔2006露出,例如功能元件300通过收容壳200的侧面的入光孔2006露出。在收容壳200伸出壳体20时,摄像头可以拍摄电子装置100的外部图像。摄像头例如为RGB摄像头等摄像头。A
在某些实施方式中,收容壳200具有外侧面,入光面511部分或全部相对外侧面凸出。如此,收容壳200对入光面511的遮挡较少,甚至完全不遮挡入光面511,使得入光面511能够接收更多环境光线,导光件5151能够更好地引导外界光线进入光感传感器5。In some embodiments, the
本实施方式中,收容壳200的外侧面包括顶面2003,顶面2003开设有入光孔2006。导光件51与位于顶面2003的入光孔2006对应。或者说,光感应器5通过导光件51接收经过位于顶面2003的入光孔2006的光线。如此,无论收容壳200伸出还是缩回壳体20,光感应器5均能感测环境光。入光面511部分或全部相对顶面2003凸出。In this embodiment, the outer surface of the
请参阅图15-图17,入光面511具有中心区域5111和围绕中心区域5111设置的边缘区域5112。中心区域5111相对边缘区域5112凸出。此时,入光面511的面积较大,更多的外界光线能够进入导光件51。其中,入光面511为弧面。Referring to FIGS. 15-17 , the
在某些实施方式中,收容壳200具有内侧面2063,内侧面2063形成定位槽2064,定位槽2064连通入光孔2006,导光件51包括入光部513和出光部514,入光面511为入光部513背离出光部514的端面,出光面512为出光部514背离入光部513的端面,入光部513穿设于入光孔2006,出光部514部分或全部嵌设于定位槽2064。In some embodiments, the
此时,导光件5151与收容壳200彼此固定,不易滑动。同时,出光部514朝向入光部513513的面上可粘接密封件,密封件连续地环绕入光部513513设置。密封件被抵持在出光部514与定位槽2064的槽壁面上,以实现密封,防止外界粉尘、水汽等经入光孔2006进入收容壳200的内部。At this time, the light guide member 5151 and the
在某些实施方式中,出光面512的面积大于入光面511的面积,在入光面511向出光面512的方向上,入光部513的横截面积递增。In some embodiments, the area of the
具体地,入光部513的形状大致呈圆台形,有利于光线在入光部3513中传递,且能够扩散开,以均匀进入出光部514。Specifically, the shape of the
在某些实施方式中,导光件51还包括定位部515,定位部515与出光部514围设出容置空间516,容置空间516用于收容光感应器5。收容于容置空间516的光感传感器5能够被定位部515及出光部514所保护,避免在电子装置100跌落或受到撞击时受损。其中,出光面512与光感传感器5的感光区52之间形成间隙。In some embodiments, the
请参阅图18,本发明提供了一种电子装置100的控制方法。控制方法包括步骤:Please refer to FIG. 18 , the present invention provides a method for controlling an
S10,在电子装置100处于通话业务时,采集触摸显示屏10的输出信号;S10, when the
S11,在输出信号发生变化时,判断输出信号的变化趋势是否符合预定趋势;和S11, when the output signal changes, judge whether the change trend of the output signal conforms to the predetermined trend; and
S12,若变化趋势符合预定趋势,根据输出信号控制触摸显示屏的显示状态。S12, if the change trend conforms to the predetermined trend, control the display state of the touch screen according to the output signal.
在某些实施方式中,处理器23用于在电子装置100处于通话业务时,采集触摸显示屏10的输出信号,在输出信号发生变化时判断输出信号的变化趋势是否符合预定趋势,并在变化趋势符合预定趋势时,根据输出信号控制触摸显示屏的显示状态。In some embodiments, the
请参阅图19,本发明实施方式还提供了一种电子装置100的控制装置2000,本发明实施方式的电子装置100的控制方法可以由本发明实施方式的电子装置100的控制装置2000实现。Referring to FIG. 19 , the embodiment of the present invention also provides a
具体地,控制装置2000包括采集模块210、处理模块220和控制模块230。采集模块210用于在电子装置100处于通话业务时采集触摸显示屏10的输出信号。处理模块220用于在输出信号发生变化时判断输出信号的变化趋势是否符合预定趋势。控制模块230用于在变化趋势符合预定趋势时根据输出信号控制触摸显示屏的显示状态。Specifically, the
也即是说,步骤S10可以由采集模块210实现。步骤S11可以由处理模块220实现,步骤S12可以由控制模块230实现。That is to say, step S10 can be implemented by the
本申请实施方式的控制方法、控制装置2000和电子装置100中,在通过触摸显示屏进行接近检测时,判断输出信号的变化是否符合预定趋势,从而排除其他因素对接近检测的干扰,使得触摸显示屏10的接近检测更加准确。In the control method, the
具体地,触摸显示屏10例如为电容式触摸显示屏,触摸显示屏10可以根据物体与触摸显示屏10的距离大小输出不同的电容值,根据触摸显示屏10输出的电容值及电容值的数量可以触摸显示屏10是否被遮挡。例如,触摸显示屏10输出的电容值数量为10个,10个电容值均大于阈值且基本一致时判定触摸显示屏10被遮挡。Specifically, the
在一个例子中,当电子装置100进入通话业务时,用户一般会将电子装置100放至耳边,在用户将电子装置100放至耳边的过程中,由于面部及耳朵等具有皮肤的部位为导体,触摸显示屏10可以根据电子装置100与人体头部的距离生成不同的信号值,从而判断用户是否已经完成将电子装置100放至耳边的动作,从而控制接近传感器16是否开启。In one example, when the
支持悬浮触控的触摸显示屏上包括两种电容信号,互电容信号和自电容信号。自电容信号比互电容信号强度更大,可以检测更远的手指感应,检测距离范围可达20mm。互电容信号的电场很小,以至于信号强度很低,无法感应到那些非常弱小的信号。因此,当用户的手指在屏幕上悬停时,根据互电容信号无法对手指的悬停检测。The touch display screen supporting floating touch includes two kinds of capacitance signals, mutual capacitance signal and self capacitance signal. The self-capacitance signal is stronger than the mutual-capacitance signal, and can detect farther finger sensing, and the detection distance range can reach 20mm. The electric field of the mutual capacitance signal is so small that the signal strength is very low, and those very weak signals cannot be sensed. Therefore, when the user's finger hovers over the screen, the hovering of the finger cannot be detected according to the mutual capacitance signal.
本实施方式中,触摸显示屏10在进行接近检测时,根据自电容信号判断是否有物体接近触摸显示屏10,在接近检测状态下进行触摸判断时,可以根据自电容信号的变化程度判断是否有触控操作,而当触摸显示屏处于触摸检测状态时,则可以根据互电容信号判断是否有触控操作。In this embodiment, when the
当有接近动作发生时,随着外界物体逐渐靠近触摸显示屏10,触摸显示屏10的输出信号呈现连续变化的趋势,由于自电容信号易受外界环境因素,例如亮度、温度等的干扰,在实际操作过程中,可能由于温度或亮度的变化导致自电容的信号发生突变从而不再具有连续变化的趋势,在这种情况下可能会到导致接近检测的误判断从而无法准确判断当前的接近动作。When an approaching action occurs, the output signal of the
在出厂时,电子装置100内可存储有接近检测的数据模型,也即是人耳或面部接近触摸显示屏10时,触摸显示屏10的自电容信号变化的数据,在实际操作中,处理器23通过获取自电容的数据的变化与数据模型进行比较,从而判断是否触发接近操作。需要说明的是,在本申请的实施方式中,触摸显示屏10只能够用于接近动作的检测,而不能检测远离动作,可以理解地,当确定触发接近动作后,触摸显示屏10将熄灭而不再产生电信号,此时,开启接近传感器16,并通过接近传感器16对远离动作是否触发进行判断。本申请实施方式中,接近传感器16设置在触摸显示屏10的下方。When leaving the factory, the
本实施方式中,所述的通话业务包括来电、去电或接通电话。进一步地,通话业务可以为用户进行语音对话的过程,例如,通话业务为用户向他人拨出电话而等待对方接听的过程,即去电状态;也可以为用户通过语音与他人正在对话的过程,即接通电话状态;也可以为电子装置100接入外部呼入的电话而等待用户接听的过程,即来电状态。In this implementation manner, the call service includes incoming calls, outgoing calls or connected calls. Furthermore, the call service can be the process in which the user conducts a voice conversation, for example, the call service is the process in which the user dials out a call to another person and waits for the other party to answer, that is, the outgoing call state; it can also be the process in which the user is talking to another person through voice, That is, the call-connected state; it may also be a process in which the
所述的变化趋势是指,当检测自电容信号开始变化时,认为有接近动作产生,随着外界物体不断的靠近触摸显示屏10,自电容信号的数值会连续变化且逐渐减小,该变化趋势也即是预定趋势。The change trend refers to that when the detected self-capacitance signal starts to change, it is considered that there is an approaching action. As the external object continues to approach the
在实际操作中,当检测到自电容信号发生变化且符合接近动作产生时,则检测后续自电容信号发生变化的趋势是否符合接近动作发生时自电容信号变化的预定趋势。当变化趋势符合预定趋势时,认为不存在外界因素干扰,或者说外界因素不会影响接近检测。In actual operation, when it is detected that the self-capacitance signal changes and coincides with the occurrence of an approach action, it is detected whether the subsequent change trend of the self-capacitance signal conforms to the predetermined trend of the change of the self-capacitance signal when the approach action occurs. When the change trend conforms to the predetermined trend, it is considered that there is no external factor interference, or that the external factor will not affect the proximity detection.
在变化符合预定趋势时,控制方法包括:When changes conform to predetermined trends, control methods include:
根据输出信号判断触摸显示屏10是否被遮挡;和Judging whether the
在触摸显示屏10被遮挡时,控制触摸显示屏10进入熄灭状态。When the
具体地,根据触摸显示屏10的输出信号可以控制触摸显示屏10的显示状态,从而使得电子装置100在通话时,且触摸显示屏10被遮挡时控制触摸显示屏10进入熄灭状态,以节省电量。Specifically, the display state of the
触摸显示屏10的熄灭状态包括显示区1311处于全熄灭状态;或显示区1311的一部分显示预定内容而显示区1311的其他部分处于熄灭状态。在显示区1311处于全熄灭状态时,触摸显示屏10断电,显示区1311呈现为黑色外观。The off state of the
显示区1311的一部分显示预定内容而显示区1311的其他部分处于熄灭状态指的是,仅有显示区1311的一部分处于点亮状态而显示预定内容,而显示区1311的其他部分处于关闭熄灭状态。A part of the
例如,仅有显示区1311的一部分处于点亮状态而显示预定内容时,触摸显示屏10处于熄屏AOD(Always on Display)模式。预定内容例如为时间,也即是说,无论触摸显示屏10进入休眠状态或唤醒状态,显示区1311均能显示时间信息。当然,预定内容也可以为日期、电子装置100的信号强弱等内容。For example, when only a part of the
相对地,触摸显示屏10的点亮状态指的是,触摸显示屏10通电,显示区1311的所有区域均点亮以使显示区1311可以显示内容。In contrast, the on state of the
较佳地,控制方法还包括检测电子装置100的姿态是否为预定姿态。Preferably, the control method further includes detecting whether the posture of the
在该步骤中,可以通过电子装置100的陀螺仪等传感器检测电子装置100的姿态。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的姿态。Thus, the attitude of the
又如,当通过陀螺仪检测电子装置100的姿态时,陀螺仪测量电子装置100偏转和倾斜时的转动角速度。陀螺仪能检测和感应3D空间的线性和动作,从而能够辨认方向、确定姿态和计算角速度。如此,根据陀螺仪的检测数据可以判断电子装置100的姿态是否为直立姿态、平放或斜放等姿态。As another example, when the attitude of the
如以上所述,可以根据触摸显示屏10输出不同的电容值及电容值的数量判断触摸显示屏10与物体的距离。As mentioned above, the distance between the
较佳地,在某些实施方式中,控制方法包括:Preferably, in some embodiments, the control method includes:
根据触摸显示屏10的顶部区域输出的控制信号判断触摸显示屏10是否被遮挡。Whether the
由于电子装置100的受话器通常设置在电子装置100的顶部。在一个例子中,在用户接听电话时,电子装置100的顶部更加靠近耳朵附近,因此,根据触摸显示屏10的顶部区域输出的信号判断触摸显示屏10是否被遮蔽可以提高判定电子装置100接近头部的准确率。Since the receiver of the
本实施方式中,触摸显示屏10的顶部区域指的是在Y方向上,触摸显示屏10靠近电子装置100的顶端面1002的区域。In this embodiment, the top area of the
请参阅图20,在某些实施方式中,控制方法包括:Referring to Figure 20, in some embodiments, the control method includes:
S13:在变化趋势不符合所述预定趋势时,判断触摸显示屏的亮度是否发生预定变化。S13: When the change trend does not conform to the predetermined trend, determine whether a predetermined change occurs in the brightness of the touch screen.
在这样的实施方式中,S13包括:In such an embodiment, S13 includes:
S131:判断亮度变化是否超过亮度预定阈值;S131: judging whether the brightness change exceeds a predetermined brightness threshold;
S132:在亮度变化小于或等于所述亮度预定阈值时,确定亮度发生预定变化;和S132: When the change in brightness is less than or equal to the predetermined brightness threshold, determine that a predetermined change in brightness occurs; and
S133:在亮度变化大于所述亮度预定阈值时,确定亮度发生非预定变化。S133: When the change in brightness is greater than the predetermined brightness threshold, determine that an unscheduled change in brightness occurs.
在某些实施方式中,步骤S13可以由处理模块220实现,或者说,处理模块220用于在变化趋势不符合预定趋势时判断触摸显示屏10的亮度是否发生预定变化。In some implementations, step S13 may be implemented by the
在某些实施方式中,处理器23用于在变化趋势不符合预定趋势时判断触摸显示屏10的亮度是否发生预定变化。In some implementations, the
在这样的实施方式中,步骤S131-S133可以由处理模块220实现,或者说,处理模块220用于判断亮度变化是否超过亮度预定阈值,并在在亮度变化小于或等于亮度预定阈值时,确定亮度发生预定变化,以及在亮度变化大于亮度预定阈值时,确定亮度发生非预定变化。In such an embodiment, steps S131-S133 may be implemented by the
在这样的实施方式中,处理器23用于判断亮度变化是否超过亮度预定阈值,并在亮度变化小于或等于亮度预定阈值时,确定亮度发生预定变化,以及在亮度变化大于亮度预定阈值时,确定亮度发生非预定变化。In such an embodiment, the
具体地,亮度变化包括由暗变亮及由亮变暗的情形,例如电子装置100的使用环境发生较大变化,由较暗处变为较亮处,当电子装置100采用自动亮度设置,也即是触摸显示屏10的亮度随环境亮度的变化而自动变化,在这样的设置下,当电子装置100的使用环境由亮变暗或由暗变量时,触摸显示屏10的亮度会发生较大变化。触摸显示屏10的亮度越大,触摸显示屏10的电容值也越大,亮度从低到高的变化程度越大,触摸显示屏10的电容值变化也越大。此时,由于触摸显示屏10的亮度较大变化,使得触摸显示屏10各个部分输出的电容值发生突变,从而使得触摸显示屏10的输出信号无法准确的表示触摸显示屏10是否被遮蔽,可能造成触摸显示屏10的状态的误触发。Specifically, the brightness change includes changing from dark to bright and from bright to dark. For example, the use environment of the
因此,需在要通过检测触摸显示屏10的亮度变化程度以判断是否发生预定变化,当发生预定变化时,触摸显示屏10的电容值的变化认为是可信度较高的,也即是可以利用电容值的变化进行接近检测,而当没有发生预定变化时,则认为亮度变化对电容值的影响较大,不宜采用触摸显示屏10进行接近检测。Therefore, it is necessary to determine whether a predetermined change occurs by detecting the brightness change degree of the
亮度变化是指电子装置100进入通话业务后,在当前时刻相对于在进入通话业务后且在当前时刻之前的第一时刻,触摸显示屏10背光亮度发生变化的变化,例如,显示亮度一般可以包括1024级,也即是从最低亮度至最大亮度共包括1024个级别,在本实施方式中,亮度变化阈值设为200,也即是说,触摸显示屏10的亮度在前后两个时间的变化超过200,则亮度变化未发生预定变化,此时亮度变化将对触摸显示屏10的电容值影响较大,不宜采用触摸显示屏10作为接近检测。The brightness change refers to the change in the brightness of the backlight of the
而若亮度的变化小于200,则认为触摸显示屏10发生的亮度变化为预定变化。And if the change in brightness is less than 200, it is considered that the change in brightness of the
需要说明地,步骤中的预定阈值,仅为示意性说明,具体应当根据亮度变化与电容值变化的关系设定,在此不做限定。It should be noted that the predetermined threshold in the step is only for illustrative illustration, and should be specifically set according to the relationship between brightness change and capacitance value change, and is not limited here.
请参阅图21,在某些实施方式中,控制方法包括:Referring to Figure 21, in some embodiments, the control method includes:
S14:在变化趋势不符合预定趋势时,判断触摸显示屏是否有区域被液体覆盖。S14: When the change trend does not conform to the predetermined trend, determine whether an area of the touch display screen is covered by liquid.
在这样的实施方式中,S14包括:In such an embodiment, S14 includes:
S141:根据输出信号检测发生变化的电容值的位置是否形成预定形状;S141: Detecting whether the position of the changed capacitance value forms a predetermined shape according to the output signal;
S142:若发生变化的电容值的位置连续并形成预定形状,确定触摸显示屏有区域被液体覆盖;和S142: If the positions of the changed capacitance values are continuous and form a predetermined shape, determine that an area of the touch display screen is covered by liquid; and
S143:若发生变化的电容值位置未形成预定形状,确定触摸显示屏未被液体覆盖。S143: If the position of the changed capacitance value does not form a predetermined shape, determine that the touch screen is not covered by liquid.
在某些实施方式中,步骤S14可以由处理模块220实现,或者说,处理模块220用于在变化趋势不符合预定趋势时判断判断触摸显示屏是否有区域被液体覆盖。In some implementations, step S14 may be implemented by the
在某些实施方式中,处理器23用于在变化趋势不符合所述预定趋势时判断触摸显示屏10是否有区域被液体覆盖。In some implementations, the
在这样的实施方式中,步骤S141-S143可以由处理模块220实现,或者说,处理模块220用于根据输出信号检测发生变化的电容值的位置是否形成预定形状,并在发生变化的电容值的位置连续并形成预定形状,确定触摸显示屏有区域被液体覆盖,以及在发生变化的电容值位置未形成预定形状,确定触摸显示屏未被液体覆盖。In such an embodiment, steps S141-S143 can be implemented by the
在这样的实施方式中,处理器23用于根据输出信号检测发生变化的电容值的位置是否形成预定形状,并在发生变化的电容值的位置连续并形成预定形状,确定触摸显示屏有区域被液体覆盖,以及在发生变化的电容值位置未形成预定形状,确定触摸显示屏未被液体覆盖。In such an embodiment, the
具体地,所述的液体包括在使用过程中附着于触摸显示屏10上的汗液或水滴,例如用户在前次接听电话过程中,脸部的汗液附着于触摸显示屏10上,或用户在清洁手部后滴附在触摸显示屏10上的水滴,或其他溅出液体附着在触摸显示屏10上等。可以理解,当有液体滴溅并覆盖触摸显示屏10的部分区域时,该区域的电容值会发生变化,但此时并没有真实的接近动作,若处理器23根据此时触摸显示屏10输出的信号控制显示状态,将可能造成触摸显示屏10的误熄灭。Specifically, the liquid includes sweat or water droplets attached to the
因此,需在要通过判断触摸显示屏10上是否有区域被液体覆盖来判断输出信号的可信度,当未被液体覆盖时,触摸显示屏10的电容值的变化认为是可信度较高的,也即是可以利用电容值的变化进行接近检测,而当触摸显示屏10存在被液体覆盖的区域时,则认为相应区域的电容值变化可信度较差,不宜采用触摸显示屏10进行接近检测。Therefore, it is necessary to judge the credibility of the output signal by judging whether there is an area covered by liquid on the
当有液体滴溅到触摸显示屏10上时,形成一个扩散的连续的区域,例如水滴扩散的形状,对应的触摸显示屏10位置的电容值发生改变,也即是说,发生电容值变化的触点形成类似液体渍迹扩散的形状,即发生变化的电容值是连续的,并呈一定的区域性。所述的预定形状应当做广义理解,并非是限定一个固定的形状,而是具有连续、呈区域性变化的形成都应当理解为预定形状。此时触摸显示屏10的输出信号可信度较低,不宜采用触摸显示屏10作为接近检测。相反地,当发生电容值变化的触摸点是离散的、非连续的、或不是呈液体扩散状等情况度可以看作电容值发生变化的位置未形成预定形状,此时可认为触摸显示屏10上没有液体覆盖。When a droplet of liquid splashes onto the
请参阅图22,在某些实施方式中,控制方法包括:Referring to Figure 22, in some embodiments, the control method includes:
S15:在变化趋势不符合预定趋势时,判断电子装置的显示画面是否发生预定变化。S15: When the change trend does not conform to the predetermined trend, determine whether the display screen of the electronic device has a predetermined change.
在这样的实施方式中,S15包括:In such an embodiment, S15 includes:
S151:判断显示画面对应的像素变化数量是否超过数量预定阈值;S151: Determine whether the number of pixel changes corresponding to the display screen exceeds a predetermined threshold;
S152:在像素变化数量小于或等于数量预定阈值时,确定显示画面发生预定变化;和S152: When the number of pixel changes is less than or equal to a predetermined threshold, determine that a predetermined change occurs in the display screen; and
S153:在像素变化数量大于数量预定阈值时,确定显示画面发生非预定变化。S153: When the number of pixel changes is greater than a predetermined threshold, determine that an unscheduled change occurs in the display screen.
在某些实施方式中,步骤S15可以由处理模块220实现,或者说,处理模块220用于在变化趋势不符合预定趋势时判断电子装置的显示画面是否发生预定变化。In some implementations, step S15 may be implemented by the
在某些实施方式中,处理器23用于在变化趋势不符合所述预定趋势时判断判断电子装置的显示画面是否发生预定变化。In some implementations, the
在这样的实施方式中,步骤S151-S153可以由处理模块220实现,或者说,处理模块220用于判断显示画面对应的像素变化数量是否超过数量预定阈值,在像素变化数量小于或等于数量预定阈值时,确定显示画面发生预定变化,以及在像素变化数量大于数量预定阈值时,确定显示画面发生非预定变化。In such an embodiment, steps S151-S153 may be implemented by the
在这样的实施方式中,处理器23用于判断显示画面对应的像素变化数量是否超过数量预定阈值,在像素变化数量小于或等于数量预定阈值时,确定显示画面发生预定变化,以及在像素变化数量大于数量预定阈值时,确定显示画面发生非预定变化。In such an embodiment, the
具体地,所述的显示画面发生变化例如是触摸显示屏10在横屏显示和竖屏显示之间切换。当触摸显示屏10在横屏显示和竖屏显示之间切换时,触摸显示屏10的应用程序的图标等显示内容会发生改变,相应地,触摸显示屏10的各个部分的显示亮度及相对应位置的像素也随着改变。触摸显示屏10的亮度越大,触摸显示屏10的电容值也越大,相应位置的像素变化越多,触摸显示屏10的电容值也越大。此时,由于触摸显示屏10的显示画面发生较大变化,使得触摸显示屏10各个部分输出的电容值发生突变,从而使得触摸显示屏10的输出信号无法准确的表示触摸显示屏10是否被遮蔽,可能造成触摸显示屏10的状态的误触发。Specifically, the change of the display screen is, for example, switching the
因此,需在要通过检测触摸显示屏10显示画面的变化程度以判断是否发生预定变化,当发生预定变化时,触摸显示屏10的电容值的变化认为是可信度较高的,也即是可以利用电容值的变化进行接近检测,而当没有发生预定变化时,则认为画面变化对电容值的影响较大,不宜采用触摸显示屏10进行接近检测。Therefore, it is necessary to determine whether a predetermined change occurs by detecting the degree of change of the display screen of the
像素变化数量是指电子装置100进入通话业务后,在当前时刻相对于在进入通话业务后且在当前时刻之前的第一时刻,与显示画面对应的像素发生变化的数量,例如,在第一时刻,画面显示为蓝色,以OLED显示屏为例,蓝色像素全部点亮,红色像素和绿色像素关闭,而在当前时刻显示画面变为红色,则蓝色像素和绿色像素关闭,红色像素点亮,此时全部的像素都发生变化,则显示画面未发生预定变化,此时的画面变化将对触摸显示屏10的电容值影响较大,此时不宜采用触摸显示屏10作为接近检测。The number of pixel changes refers to the number of pixels corresponding to the display screen that change at the current moment after the
而若显示画面对应的大部分像素并未发生变化,例如70%的像素未发生变化,此时,则认为电装置100发生的变化为预定变化。And if most of the pixels corresponding to the display screen do not change, for example, 70% of the pixels do not change, then the change of the
可以理解地,触摸显示屏10的显示画面上的颜色都由RGB格式的图像数据决定。RGB格式的图像数据将红、绿、蓝三个颜色通道各自分为255阶亮度。例如,某个颜色对应的RGB数据为(0,0,0),那么该显示画面就呈现黑色。又如,某个颜色对应的RGB数据为(255,255,255),那么该显示画面就呈现白色。如上所述,特定的RGB数据对应着特定的颜色。文中所述的显示画面的变化,可以理解为同一位置的像素点,在前后不同时刻的颜色变化。It can be understood that the colors on the display screen of the
步骤中的预定阈值,可以根据触摸显示屏10的屏幕规格设定,也可以统一按照百分比设定,具体不做限定。The predetermined threshold value in the step can be set according to the screen specification of the
请参阅图23,在某些实施方式中,控制方法包括:Referring to Figure 23, in some embodiments, the control method includes:
S16:在变化趋势不符合预定趋势时,判断电子装置的所在环境的温度是否发生预定变化。S16: When the change trend does not conform to the predetermined trend, determine whether the temperature of the environment where the electronic device is located has a predetermined change.
在这样的实施方式中,S16包括:In such an embodiment, S16 includes:
S161:判断当前环境温度与电子装置在处于非通话状态时的第一环境温度的差值是否超过温度预定阈值;S161: Determine whether the difference between the current ambient temperature and the first ambient temperature when the electronic device is in a non-communication state exceeds a predetermined temperature threshold;
S162:在差值小于或等于温度预定阈值时,确定电子装置所在环境的温度发生预定变化;S162: When the difference is less than or equal to a predetermined temperature threshold, determine that a predetermined change occurs in the temperature of the environment where the electronic device is located;
S163:在差值大于温度预定阈值时,确定电子装置所在环境的温度发生非预定变化。S163: When the difference is greater than the predetermined temperature threshold, determine that an unpredetermined change occurs in the temperature of the environment where the electronic device is located.
在某些实施方式中,步骤S16可以由处理模块220实现,或者说,处理模块220用于在变化趋势不符合预定趋势时判断电子装置所在环境的温度是否发生预定变化。In some implementations, step S16 may be implemented by the
在某些实施方式中,处理器23用于在变化趋势不符合所述预定趋势时判断电子装置的所在环境的温度是否发生预定变化。In some implementations, the
在这样的实施方式中,步骤S161-S163可以由处理模块220实现,或者说,处理模块220用于判断当前环境温度与电子装置在处于非通话状态时的第一环境温度的差值是否超过温度预定阈值,在差值小于或等于温度预定阈值时,确定电子装置所在环境的温度发生预定变化,以及在差值大于温度预定阈值时,确定电子装置所在环境温度发生非预定变化。In such an embodiment, steps S161-S163 may be implemented by the
在这样的实施方式中,处理器23用于判断当前环境温度与电子装置在处于非通话状态时的第一环境温度的差值是否超过温度预定阈值,在差值小于或等于温度预定阈值时,确定电子装置所在环境的温度发生预定变化,以及在差值大于温度预定阈值时,确定电子装置所在环境的温度发生非预定变化。In such an embodiment, the
具体地,当差值小于或等于温度预定阈值时,电子装置100可以采用触摸显示屏10进行接近检测,而当差值大于预定阈值时,此时的温度变化将对触摸显示屏10的电容值影响较大,此时不宜采用触摸显示屏10作为接近检测。Specifically, when the difference is less than or equal to a predetermined temperature threshold, the
温度差值的预定阈值可以根据温度变化与电容变化的特性指定,一般地,在出厂前可以根据触摸显示屏的电性能参数设定预定阈值,也即是找到温度变化开始对电容产生较大波动影响的温度值并以该温度差值或稍小于该温度差值的值为预定阈值。例如预定阈值可以为25度,在寒冷的室外环境中,电子装置100处于口袋中时,环境温度可能为20度,当用户取出电子装置100并进行通话业务时,环境温度可能为-10度,此时温度差值为30度大于预定阈值,此时,不宜采用触摸显示屏10作为接近检测。The predetermined threshold value of the temperature difference can be specified according to the characteristics of temperature change and capacitance change. Generally, the predetermined threshold value can be set according to the electrical performance parameters of the touch screen before leaving the factory, that is, it is found that the temperature change begins to cause large fluctuations in capacitance. The affected temperature value is a predetermined threshold with the temperature difference or a value slightly smaller than the temperature difference. For example, the predetermined threshold may be 25 degrees. In a cold outdoor environment, when the
本实施方式中,电子装置100还包括温度传感器,温度传感器用于获取环境温度,第一环境温度可以是电子装置100处于非通话业务某一时刻的温度,也可以是在某一时间内获取的多个环境温度值的平均值。例如,当电子装置处于待机状态时,温度传感器可以在后台获取第一环境温度。In this embodiment, the
请参阅图24,在某些实施方式中,控制方法包括:Referring to Figure 24, in some embodiments, the control method includes:
S17:在变化不符合所述预定趋势时,提高触摸显示屏的供电电压。S17: When the change does not conform to the predetermined trend, increase the power supply voltage of the touch display screen.
在某些实施方式中,步骤S17可以由处理模块220实现,或者说,处理模块220用于在变化趋势不符合预定趋势时判断电子装置的所在环境的温度是否发生预定变化。In some implementations, step S17 can be implemented by the
在某些实施方式中,处理器23用于在变化趋势不符合预定趋势时判断电子装置的所在环境的温度是否发生预定变化。In some implementations, the
具体地,在实际操作过程中,可能由于干扰因素导致自电容的信号发生突变从而不再具有连续变化的趋势,在这种情况下可能会到导致接近检测的误判断从而无法准确判断当前的接近动作,而在提高供电电压后再次检测接近信号时,自电容信号的变化幅度会加大,相对地,外界因素变化对整个趋势的影响将减小,从而不会干扰到在接近动作发生过程中自容信号连续变化的趋势,使得接近动作可以被准确判断。Specifically, in the actual operation process, the self-capacitance signal may change suddenly due to interference factors, so that it no longer has a continuous change trend. Action, and when the proximity signal is detected again after increasing the power supply voltage, the change range of the self-capacitance signal will increase. Relatively, the influence of the change of external factors on the entire trend will be reduced, so that it will not interfere with the process of the proximity action. The trend of continuous change of the self-capacitance signal makes the approach action can be accurately judged.
在提高供电电压前,触摸显示屏10的供电电压一般为3V左右,提高后的供电电压一般根据触摸显示屏10的驱动IC而定,例如可以是4V。Before the power supply voltage is increased, the power supply voltage of the
在这样的实施方式中,控制方法还包括:In such an embodiment, the control method further includes:
S18:采集触摸显示屏提高供电电压后的输出信号;S18: collect the output signal of the touch display screen after increasing the power supply voltage;
S19:在提高供电电压后的输出信号发生变化时,判断变化趋势是否符合预定趋势;S19: When the output signal changes after the power supply voltage is increased, determine whether the change trend conforms to the predetermined trend;
S20:在变化趋势符合预定趋势时,根据提高供电电压后的输出信号控制触摸显示屏的显示状态。S20: When the change trend conforms to the predetermined trend, control the display state of the touch screen according to the output signal after the power supply voltage is increased.
在某些实施方式中,S18可以由采集模块210实现,S19可以由处理模块220实现,S20可以由控制模块230实现。或者说,采集模块210用于采集触摸显示屏10提高供电电压后的输出信号。处理模块220用于在提高供电电压后的输出信号发生变化时,判断变化趋势是否符合预定趋势。控制模块230用于在变化趋势符合预定趋势时,根据提高供电电压后的输出信号控制触摸显示屏的显示状态。In some implementations, S18 may be implemented by the
在某些实施方式中,处理器23用于采集触摸显示屏10提高供电电压后的输出信号,在提高供电电压后的输出信号发生变化时,判断变化趋势是否符合预定趋势以及在变化趋势符合预定趋势时,根据提高供电电压后的输出信号控制触摸显示屏的显示状态In some embodiments, the
具体地,可以理解地,由于驱动IC能提供的电压有限,因此提高供电电压后,仍然要判断提高电压后的输出信号在接近动作发生过程中的变化趋势是否符合预定趋势,若符合预定趋势,可以根据该输出信号进行接近检测,若仍不符合预定趋势,则通过接近传感器16来实现接近的检测,从而控制触摸显示屏10的显示。Specifically, it can be understood that since the voltage that the driver IC can provide is limited, after increasing the supply voltage, it is still necessary to judge whether the change trend of the output signal after the increased voltage during the process of the approaching action conforms to the predetermined trend. If it conforms to the predetermined trend, Proximity detection can be performed according to the output signal, and if the predetermined trend is still not met, the proximity detection is realized by the
在某些实施方式中,控制方法还包括:In some embodiments, the control method also includes:
S21:在变化不符合预定趋势时,根据接近传感器的信号控制触摸显示屏的显示状态。S21: When the change does not conform to the predetermined trend, control the display state of the touch screen according to the signal of the proximity sensor.
在某些实施方式中,步骤S21可以由控制模块230实现,或者说,控制模块230用于在变化不符合预定趋势时根据接近传感器的信号控制触摸显示屏的显示状态。In some implementations, step S21 can be implemented by the
在某些实施方式中,处理器23用于在变化不符合预定趋势时,根据接近传感器的信号控制触摸显示屏的显示状态。In some implementations, the
具体地,如上述,变化不符合预定趋势,可能是由于亮度变化、附着液体、显示画面变化以及环境温度变化等诸多因素导致触摸显示屏在进行接近检测时的输出信号的变化不符合预定趋势,也即是不能够用触摸显示屏进行接近检测。此时,需通过接近传感器来实现接近检测。Specifically, as mentioned above, if the change does not conform to the predetermined trend, it may be due to many factors such as brightness change, adhered liquid, display screen change, and environmental temperature change that the change of the output signal of the touch display screen during proximity detection does not conform to the predetermined trend. That is, it is not possible to perform proximity detection with a touch screen. At this time, the proximity detection needs to be realized by a proximity sensor.
在本实施方式中,可配合重力传感器、陀螺仪等的输出数据在用户将电子装置100放至耳边之后,才开启接近传感器16,也即是说,在用户将电子装置100放至耳边之前,接近传感器16是关闭的,因此,在用户将电子装置100放至耳边之前,用户观察触摸显示屏10时,也不会出现闪烁现象,不会降低用户的体验。In this embodiment, the
本发明实施方式还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器23执行时,使得处理器23执行上述任一实施方式的控制方法。The embodiment of the present invention also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions. When the computer-executable instructions are executed by one or
请参阅图25,本发明实施方式还提供了一种电子设备400。电子设备400包括存储器32及一个或多个处理器23,一个或多个程序被存储在存储器32中,并且被配置成由一个或多个处理器23执行。程序包括用于执行上述任意一项实施方式所述的控制方法。Referring to FIG. 25 , the embodiment of the present invention also provides an
图25为一个实施例中的电子设备400的内部模块示意图。电子设备400包括通过系统总线31连接的处理器23、存储器32(例如为非易失性存储介质)、内存储器33、显示层13和输入装置34。其中,电子设备400的存储器32存储有操作系统和程序。该程序可被处理器23执行,以实现上述任意一项实施方式的控制方法。FIG. 25 is a schematic diagram of internal modules of an
处理器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 through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium. When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) and the like.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.
Claims (25)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811623807.5A CN109710109B (en) | 2018-12-28 | 2018-12-28 | Control method, control device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811623807.5A CN109710109B (en) | 2018-12-28 | 2018-12-28 | Control method, control device, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109710109A CN109710109A (en) | 2019-05-03 |
| CN109710109B true CN109710109B (en) | 2023-06-09 |
Family
ID=66258990
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811623807.5A Active CN109710109B (en) | 2018-12-28 | 2018-12-28 | Control method, control device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109710109B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110392163B (en) * | 2019-07-31 | 2021-09-07 | 努比亚技术有限公司 | Screen-off control method, mobile terminal and computer-readable storage medium |
| CN115394237A (en) * | 2021-05-21 | 2022-11-25 | 京东方科技集团股份有限公司 | Display panel and display device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107078738A (en) * | 2014-10-15 | 2017-08-18 | 阿尔卑斯电气株式会社 | Input unit |
| CN108965510A (en) * | 2018-06-15 | 2018-12-07 | Oppo广东移动通信有限公司 | Electronic equipment, screen control method and related product |
Family Cites Families (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8605054B2 (en) * | 2010-09-02 | 2013-12-10 | Texas Instruments Incorporated | Touch-sensitive interface and method using orthogonal signaling |
| CN102833389B (en) * | 2011-06-15 | 2015-03-04 | 比亚迪股份有限公司 | Mobile terminal and energy conservation method therefor |
| CN102855033A (en) * | 2011-06-27 | 2013-01-02 | 比亚迪股份有限公司 | Touch control device and control method thereof |
| CN102799325B (en) * | 2012-06-21 | 2016-03-30 | 敦泰科技有限公司 | A kind of self-capacitance touch screen detection method, device and system |
| 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 |
| KR101447740B1 (en) * | 2012-08-13 | 2014-10-07 | 엘지디스플레이 주식회사 | Display Device With Integrated Touch Screen and Method for Driving The Same |
| CN102880366B (en) * | 2012-08-29 | 2015-08-05 | 北京集创北方科技有限公司 | A kind of capacitive touch screen temperature drift characteristic detection method and detection system |
| CN103970381B (en) * | 2013-02-04 | 2017-12-29 | 联想(北京)有限公司 | Capacitive touch screen and the information processing method for it |
| US10061444B2 (en) * | 2013-07-31 | 2018-08-28 | Apple Inc. | Self capacitance touch sensing |
| CN104063101B (en) * | 2014-05-30 | 2016-08-24 | 小米科技有限责任公司 | Touch screen control method and device |
| CN104284012A (en) * | 2014-06-14 | 2015-01-14 | 敦泰科技有限公司 | Method for judging conversation state and personal mobile communication terminal |
| US10156935B2 (en) * | 2015-06-22 | 2018-12-18 | Samsung Electronics Co., Ltd. | Touch screen controller, touch sensing device, and touch sensing method |
| CN106201073B (en) * | 2016-06-28 | 2019-08-20 | 维沃移动通信有限公司 | A signal processing method of capacitive touch screen and mobile terminal |
| CN107704744B (en) * | 2017-09-05 | 2020-05-19 | Oppo广东移动通信有限公司 | Identity verification method and device and mobile terminal |
| CN107562363B (en) * | 2017-09-08 | 2020-07-24 | Oppo广东移动通信有限公司 | Touch operation method, device and terminal |
| CN108196709A (en) * | 2017-12-28 | 2018-06-22 | 上海传英信息技术有限公司 | The touch screen control method and control system of a kind of intelligent terminal |
| CN108494907A (en) * | 2018-03-08 | 2018-09-04 | 广东欧珀移动通信有限公司 | Mobile terminal screen control method and device, mobile terminal and storage medium |
| CN108989546B (en) * | 2018-06-15 | 2021-08-17 | Oppo广东移动通信有限公司 | Proximity detection method for electronic device and related products |
| CN109068000B (en) * | 2018-09-21 | 2020-12-22 | Oppo广东移动通信有限公司 | Sensor control method, mobile terminal, and computer-readable storage medium |
-
2018
- 2018-12-28 CN CN201811623807.5A patent/CN109710109B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107078738A (en) * | 2014-10-15 | 2017-08-18 | 阿尔卑斯电气株式会社 | Input unit |
| CN108965510A (en) * | 2018-06-15 | 2018-12-07 | Oppo广东移动通信有限公司 | Electronic equipment, screen control method and related product |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109710109A (en) | 2019-05-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110581904B (en) | Control method, control device, electronic device, and storage medium | |
| CN108769296B (en) | Electronic device and method of manufacturing the same | |
| CN109167857B (en) | Calibration method, electronic device, storage medium, and computer apparatus | |
| CN113407053A (en) | Touch screen, electronic equipment and display control method | |
| CN108833694B (en) | Control method, control device, electronic device, computer storage medium, and apparatus | |
| KR102622564B1 (en) | Electronic device and method for controlling display operation in electronic device | |
| CN109618031A (en) | Electronic device and control method thereof | |
| KR20210139441A (en) | Camera module, mobile terminal and control method | |
| CN108521480A (en) | Control method, control device, electronic device, computer storage medium and device | |
| CN109710119B (en) | Control method, control device, electronic device and storage medium | |
| CN109710109B (en) | Control method, control device, electronic device and storage medium | |
| CN108833615B (en) | Electronic device | |
| CN108718349B (en) | Control method, control device, electronic device, storage medium and computer equipment | |
| CN108989566A (en) | Control method, electronic device, and computer-readable storage medium | |
| CN108803947B (en) | Control method, control device, electronic device, computer storage medium, and apparatus | |
| WO2019233233A1 (en) | Control method, control device, electronic device, storage medium and computer device | |
| CN108810271A (en) | Control method, control device, electronic device, storage medium and computer equipment | |
| CN108683751B (en) | Control method, control device, electronic device, computer storage medium, and apparatus | |
| CN109388282B (en) | Control method, electronic device, and storage medium | |
| CN109298823A (en) | Control method, control device, electronic device and storage medium | |
| CN109756623A (en) | Control method, control device, electronic device, and storage medium | |
| CN109743451B (en) | Control method, electronic device, computer equipment and storage medium | |
| CN109683750B (en) | Control method, electronic device, computer equipment and storage medium | |
| CN108983950A (en) | Display panel control method, storage medium and electronic equipment | |
| CN108769355A (en) | Control method, control device, electronic device, storage medium and device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20240927 Address after: No. 36, Weier Second Road, Wanchun Street, Wuhu Economic and Technological Development Zone, Wuhu City, Anhui Province 241000 Patentee after: Wuhu Zhongpu Intelligent Equipment Co.,Ltd. Country or region after: China Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Country or region before: China |