Movatterモバイル変換


[0]ホーム

URL:


CN109743451B - Control method, electronic device, computer equipment and storage medium - Google Patents

Control method, electronic device, computer equipment and storage medium
Download PDF

Info

Publication number
CN109743451B
CN109743451BCN201811626426.2ACN201811626426ACN109743451BCN 109743451 BCN109743451 BCN 109743451BCN 201811626426 ACN201811626426 ACN 201811626426ACN 109743451 BCN109743451 BCN 109743451B
Authority
CN
China
Prior art keywords
display screen
data
touch display
electronic device
touch
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
CN201811626426.2A
Other languages
Chinese (zh)
Other versions
CN109743451A (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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811626426.2ApriorityCriticalpatent/CN109743451B/en
Publication of CN109743451ApublicationCriticalpatent/CN109743451A/en
Application grantedgrantedCritical
Publication of CN109743451BpublicationCriticalpatent/CN109743451B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The application discloses a control method of an electronic device. The control method comprises the following steps: reading data of a partial bit number of resolution of an analog-to-digital converter of the touch display screen when the electronic device is in a proximity detection mode; judging whether the data of partial digits meet a preset condition or not; reading data of all bits of resolution of the analog-to-digital converter under the condition that the data of part of bits meet a preset condition; and controlling the display state of the touch display screen according to the data of all the digits. According to the control method, the data of the partial digits of the resolution of the analog-to-digital converter is read firstly, so that the data quantity of the analog-to-digital converter is small, the reading speed is high, the reading speed can be increased, the power consumption is reduced, and after the preset condition is met, the data of all the digits of the resolution of the analog-to-digital converter is read, so that the display state of the touch display screen can be accurately controlled. The application also discloses an electronic device, a computer device and a storage medium.

Description

Translated fromChinese
控制方法、电子装置、计算机设备和存储介质Control method, electronic device, computer equipment and storage medium

技术领域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 anelectronic device 100 . Theelectronic device 100 includes atouch display screen 10 , aproximity sensor 16 , a temperature sensor 21 and aprocessor 23 . Thetouch display screen 10 includes adisplay layer 13 , and thedisplay layer 13 includes adisplay area 1311 . Aproximity sensor 16 is provided below thetouchscreen display 10 . Further, theproximity sensor 16 is disposed below thedisplay area 1311 . Theproximity sensor 16 is used to emit infrared light and receive the infrared light reflected by the object to detect the distance of the object to theelectronic device 100 .

示例性的,电子装置100可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种(图1中只示例性的示出了一种形态)。具体的,电子装置100可以为移动电话或智能电话(例如,基于iPhone TM,基于Android TM的电话),便携式游戏设备(例如Nintendo DS TM,PlayStation Portable TM,Gameboy Advance TM,iPhone TM)、膝上型电脑、PDA、便携式互联网设备、音乐播放器以及数据存储设备,其他手持设备以及诸如手表、入耳式耳机、吊坠、头戴式耳机等,电子装置100还可以为其他的可穿戴设备(例如,诸如电子眼镜、电子衣服、电子手镯、电子项链、电子纹身、电子设备或智能手表的头戴式设备(HMD))。Exemplarily, theelectronic device 100 may be any one of various types of computer system devices that are mobile or portable and perform wireless communication (only one form is exemplarily shown in FIG. 1 ). Specifically, theelectronic device 100 may be a mobile phone or a smart phone (eg, iPhone TM-based, Android TM-based phone), portable gaming device (eg Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), laptop laptops, PDAs, portable Internet devices, music players, and data storage devices, other handheld devices, as well as watches, in-ear headphones, pendants, headphones, etc., theelectronic device 100 can also be other wearable devices (for example, Head mounted devices (HMDs) such as electronic glasses, electronic clothing, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices or smart watches.

电子装置100还可以是多个电子设备中的任何一个,多个电子设备包括但不限于蜂窝电话、智能电话、其他无线通信设备、个人数字助理、音频播放器、其他媒体播放器、音乐记录器、录像机、照相机、其他媒体记录器、收音机、医疗设备、车辆运输仪器、计算器、可编程遥控器、寻呼机、膝上型计算机、台式计算机、打印机、上网本电脑、个人数字助理(PDA)、便携式多媒体播放器(PMP)、运动图像专家组(MPEG-1或MPEG-2)音频层3(MP3)播放器,便携式医疗设备以及数码相机及其组合。Theelectronic device 100 may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders , video recorders, cameras, other media recorders, radios, medical equipment, vehicle transportation equipment, calculators, programmable remote controls, pagers, laptops, desktop computers, printers, netbooks, personal digital assistants (PDAs), portable Multimedia players (PMP), Moving Picture Experts Group (MPEG-1 or MPEG-2) Audio Layer 3 (MP3) players, portable medical devices and digital cameras and combinations thereof.

在一些情况下,电子装置100可以执行多种功能(例如,播放音乐,显示视频,存储图片以及接收和发送电话呼叫)。如果需要,电子装置1000可以是诸如蜂窝电话、媒体播放器、其他手持设备、腕表设备、吊坠设备、听筒设备或其他紧凑型便携式设备的便携式设备。In some cases, theelectronic device 100 may perform various functions (eg, play music, display video, store pictures, and receive and send phone calls). If desired, the electronic device 1000 may be a portable device such as a cellular phone, media player, other handheld device, wristwatch device, pendant device, handset device, or other compact portable device.

手机通过设置接近传感器16以确定手机与障碍物之间的距离并做出相应的调整,能够防止用户的误操作和有利于节省手机的电量。例如,当用户在接听或者拨打电话并将手机靠近头部时,接近传感器16经过计算发射器发出红外光和接收器接收反射回来的红外光的时间生成检测信息,处理器23根据该检测信息触摸显示屏10。当手机远离头部时,处理器23再次根据接近传感器16反馈回来的检测信息重新打开触摸显示屏10。By setting theproximity sensor 16 in the mobile phone to determine the distance between the mobile phone and the obstacle and make corresponding adjustments, it can prevent the user's misoperation and help save the power of the mobile phone. For example, when the user is answering or making a call and brings the mobile phone close to his head, theproximity sensor 16 generates detection information by calculating the time for the transmitter to emit infrared light and the receiver to receive the reflected infrared light, and theprocessor 23 touches the touch according to the detection information.Display 10. When the mobile phone is far away from the head, theprocessor 23 reopens thetouch display screen 10 according to the detection information fed back by theproximity sensor 16 again.

在某些实施方式中,显示层13包括OLED显示层。In some embodiments,display layer 13 includes an OLED display layer.

具体地,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 theproximity sensor 16 to emit and receive infrared light. Thedisplay layer 13 can also be a Micro LED display layer, and the Micro LED display layer also has good transmittance to visible light and infrared light. Of course, these display layers are only exemplary and the embodiments of the present application are not limited thereto. In addition, thetouch display screen 10 may be provided on thehousing 20 .

请参阅图3,在一些实施方式中,触摸显示屏10还包括透光盖板11和触控层12。透光盖板11设置在触控层12上。触控层12设置在显示层13上。显示层13的上表面131朝向触控层12。透光盖板11和触控层12对可见光透光率和红外光透光率均大于90%。Referring to FIG. 3 , in some embodiments, thetouch display screen 10 further includes a light-transmittingcover plate 11 and atouch layer 12 . The light-transmittingcover plate 11 is disposed on thetouch layer 12 . Thetouch layer 12 is disposed on thedisplay layer 13 . Theupper surface 131 of thedisplay layer 13 faces thetouch layer 12 . The transmittance of the light-transmittingcover plate 11 and thetouch layer 12 to visible light and infrared light are both greater than 90%.

具体地,触控层12主要用于接收用户输入信号并传送到电路板进行数据处理,从而获得用户触碰触控层12的具体位置。需要指出的是,触控层12设置在显示层13上可以指的是触控层12与显示层13接触。例如,可以采用In-Cell或者On-Cell技术,将触控层12与显示层13进行贴合,能够有效地减轻显示层13的重量和减少显示层13的整体厚度。触控层12设置在显示层13上也可以指的是触控层12设置在显示层13上方,并与显示层13间隔。Specifically, thetouch layer 12 is mainly used to receive user input signals and transmit them to the circuit board for data processing, so as to obtain the specific position where the user touches thetouch layer 12 . It should be noted that the fact that thetouch layer 12 is disposed on thedisplay layer 13 may mean that thetouch layer 12 is in contact with thedisplay layer 13 . For example, In-Cell or On-Cell technology can be used to attach thetouch layer 12 to thedisplay layer 13 , which can effectively reduce the weight of thedisplay layer 13 and reduce the overall thickness of thedisplay layer 13 . The fact that thetouch layer 12 is disposed on thedisplay layer 13 may also mean that thetouch layer 12 is disposed above thedisplay layer 13 and is spaced apart from thedisplay layer 13 .

另外,将透光盖板11设置在触控层12上,能够有效地保护触控层12及其内部结构,避免了外界作用力对触控层12及显示层13的损坏。透光盖板11和触控层12对可见光和红外光的透光率均大于90%,不仅有利于显示层13较好地展现内容效果,而且还有利于设置在显示层13下的接近传感器16稳定地发射和接收红外光,保证了接近传感器16的正常工作。In addition, disposing the light-transmittingcover plate 11 on thetouch layer 12 can effectively protect thetouch layer 12 and its internal structure, and avoid damage to thetouch layer 12 and thedisplay layer 13 caused by external forces. The transmittance of the light-transmittingcover plate 11 and thetouch layer 12 to visible light and infrared light is greater than 90%, which is not only conducive to thedisplay layer 13 to better display the content effect, but also conducive to the proximity sensor disposed under thedisplay layer 13 16 stably emits and receives infrared light, which ensures the normal operation of theproximity sensor 16 .

请参阅图4,在某些实施方式中,显示层13包括上表面131和下表面132。电子装置100还包括涂布在下表面132且覆盖接近传感器16的第一涂布层14。第一涂布层14用于透过红外光和拦截可见光。接近传感器16用于透过第一涂布层14和显示层13发射和/或接收红外光。Referring to FIG. 4 , in some embodiments, thedisplay layer 13 includes anupper surface 131 and alower surface 132 . Theelectronic device 100 also includes afirst coating layer 14 coated on thelower surface 132 and covering theproximity sensor 16 . Thefirst coating layer 14 is used to transmit infrared light and intercept visible light. Theproximity sensor 16 is used to emit and/or receive infrared light through thefirst coating layer 14 and thedisplay layer 13 .

具体地,设置第一涂布层14透过红外光是为保证接近传感器16的正常工作。第一涂布层14拦截可见光能够实现从外部观看电子装置100时,达到接近传感器16不可见的效果。Specifically, setting thefirst coating layer 14 to transmit infrared light is to ensure the normal operation of theproximity sensor 16 . Thefirst coating layer 14 intercepts visible light, so that when theelectronic device 100 is viewed from the outside, theproximity sensor 16 is invisible.

请参阅图4及图5,在某些实施方式中,接近传感器16包括发射器1611和接收器1612。发射器1611用于透过第一涂布层14和显示层13发射红外光。接收器1612用于接收经物体发射的红外光以检测物体与电子装置100的距离。Referring to FIGS. 4 and 5 , in some embodiments, theproximity sensor 16 includes atransmitter 1611 and areceiver 1612 . Theemitter 1611 is used to emit infrared light through thefirst coating layer 14 and thedisplay layer 13 . Thereceiver 1612 is used to receive infrared light emitted by the object to detect the distance between the object and theelectronic device 100 .

具体地,一般情况下,当用户在接听或者拨打电话时,电子装置100靠近人体头部,发射器1611发出红外光,接收器1612接收反射回来的红外光。处理器23计算红外光从发射到反射回来的时间,便发出相应指令控制屏幕关闭。当电子装置100远离头部时,处理器23再次根据反馈回来的数据进行计算并发出指令,便重新打开屏幕。如此,不仅防止了用户的误操作,而且节省了手机的电量。Specifically, in general, when the user is answering or making a call, theelectronic device 100 is close to the head of the human body, thetransmitter 1611 emits infrared light, and thereceiver 1612 receives the reflected infrared light. Theprocessor 23 calculates the time from the emission to the reflection of the infrared light, and sends a corresponding instruction to control the screen to be turned off. When theelectronic device 100 is away from the head, theprocessor 23 performs calculations again according to the feedback data and issues an instruction to turn on the screen again. In this way, not only the misoperation of the user is prevented, but also the power of the mobile phone is saved.

在某些实施方式中,接近传感器16在下表面132的正投影位于第一涂布层14在下表面132的正投影内。In certain embodiments, the orthographic projection of theproximity sensor 16 on thelower surface 132 is located within the orthographic projection of thefirst coating layer 14 on thelower surface 132 .

具体地,在进行工艺装配的过程中接近传感器16的安装通常需要预留装配间隙,导致接近传感器16与其他元件之间出现缝隙,使可见光从缝隙里进入,出现漏光现象。因此,在接近传感器16和显示层13层叠的方向上,第一涂布层14在下表面132的正投影的面积大于接近传感器16在下表面132的正投影的面积,能够在不影响接近传感器16正常工作的情况下,使第一涂布层14充分遮挡接近传感器16,实现从外部观看电子装置100时,达到接近传感器16不可见的效果。Specifically, during the process of assembly, the installation of theproximity sensor 16 usually needs to reserve an assembly gap, resulting in a gap between theproximity sensor 16 and other components, allowing visible light to enter through the gap, and light leakage occurs. Therefore, in the direction in which theproximity sensor 16 and thedisplay layer 13 are stacked, the area of the orthographic projection of thefirst coating layer 14 on thelower surface 132 is larger than the area of the orthographic projection of theproximity sensor 16 on thelower surface 132 , which can be achieved without affecting the normal operation of theproximity sensor 16 In operation, thefirst coating layer 14 is made to sufficiently shield theproximity sensor 16 , so that theproximity sensor 16 is invisible when theelectronic device 100 is viewed from the outside.

请参阅图5,在某些实施方式中,接近传感器16在下表面132的正投影与第一涂布层14重合。Referring to FIG. 5 , in some embodiments, the orthographic projection of theproximity sensor 16 on thelower surface 132 coincides with thefirst coating layer 14 .

具体地,在接近传感器16和显示层13层叠的方向上,也可以设置第一涂布层14正投影于下表面132的面积等于接近传感器16正投影于下表面132的面积。如此,能够在不影响接近传感器16正常工作的情况下,使第一涂布层14刚好遮挡接近传感器16,实现从朝向并垂直于显示层13上表面131的方向观看电子装置100时,达到接近传感器16不可见的效果。Specifically, in the stacking direction of theproximity sensor 16 and thedisplay layer 13 , the area of thefirst coating layer 14 projected on thelower surface 132 may be equal to the area of theproximity sensor 16 projected on thelower surface 132 . In this way, without affecting the normal operation of theproximity sensor 16 , thefirst coating layer 14 can just block theproximity sensor 16 , so that when theelectronic device 100 is viewed from the direction facing and perpendicular to theupper surface 131 of thedisplay layer 13 , the Effects not visible tosensor 16.

请参阅图6,进一步地,在这样的实施方式中,电子装置100还包括设置在下表面132且包围接近传感器16的遮光层17。Referring to FIG. 6 , further, in such an embodiment, theelectronic device 100 further includes alight shielding layer 17 disposed on thelower surface 132 and surrounding theproximity sensor 16 .

具体地,当设置第一涂布层14正投影于下表面132的面积等于接近传感器16正投影于下表面132的面积的情况时,由于在放置接近传感器16的空间体积比接近传感器16的体积大,导致从外部环境观看电子装置100时,围绕接近传感器16周围的空间出现漏光现象。因此,通过设置包围接近传感器16的遮光层17,填补了接近传感器16与周围空间的缝隙,可以消除这种漏光现象。遮光层17可以是采用黑色材质制成的泡棉,也可以是其他黑色的泡沫塑料或者橡胶。当然,这些材料仅作为示例性的而本申请的实施例并不限于此。Specifically, when the area where thefirst coating layer 14 is projected on thelower surface 132 is equal to the area where theproximity sensor 16 is projected on thelower surface 132 , since the volume of the space where theproximity sensor 16 is placed is larger than the volume of theproximity sensor 16 When theelectronic device 100 is viewed from the external environment, light leakage occurs in the space surrounding theproximity sensor 16 . Therefore, by providing thelight shielding layer 17 surrounding theproximity sensor 16, the gap between theproximity sensor 16 and the surrounding space is filled, and such a light leakage phenomenon can be eliminated. Thelight shielding layer 17 may be foam made of black material, or may be other black foam or rubber. Of course, these materials are exemplary only and the embodiments of the present application are not limited thereto.

在某些实施方式中,第一涂布层包括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 theelectronic device 100 is viewed from the outside, theproximity sensor 16 disposed under thefirst coating layer 14 cannot be observed by human eyes. At the same time, the IR ink has the characteristics of high transmittance to infrared light, so that theproximity sensor 16 can stably emit and receive infrared light, and ensure the normal operation of theproximity sensor 16 .

请参阅图7和图8,在某些实施方式中,电子装置100还包括涂布在下表面132且与第一涂布层14相接的第二涂布层15。Referring to FIGS. 7 and 8 , in some embodiments, theelectronic device 100 further includes asecond coating layer 15 coated on thelower surface 132 and connected to thefirst coating layer 14 .

具体地,第一涂布层14主要用于透过红外光和遮挡接近传感器16,但由于第一涂布层14使用的IR油墨的成本较普通黑色油墨高,若将下表面132全部涂布IR油墨,将不利于降低生产成本,并且,普通黑色油墨相比IR油墨对可见光的透光率能够达到更低,遮挡效果更为突出。如此,通过设置第二涂布层15,不仅有利于降低生产成本,而且遮挡效果更符合工艺要求。Specifically, thefirst coating layer 14 is mainly used to transmit infrared light and block theproximity sensor 16, but since the cost of the IR ink used in thefirst coating layer 14 is higher than that of ordinary black ink, if the entirelower surface 132 is coated IR ink is not conducive to reducing production costs, and ordinary black ink can achieve lower transmittance to visible light than IR ink, and the blocking effect is more prominent. In this way, by providing thesecond coating layer 15, it is not only beneficial to reduce the production cost, but also the shielding effect is more in line with the process requirements.

请参阅图9和图10,在某些实施方式中,电子装置100还包括覆盖下表面132且避让接近传感器16的缓冲层18。Referring to FIGS. 9 and 10 , in some embodiments, theelectronic device 100 further includes abuffer layer 18 covering thelower surface 132 and avoiding theproximity sensor 16 .

具体地,缓冲层18用于减缓冲击力和防震以保护触控层12和显示层13及其内部结构,避免显示层13因受到外界的冲击作用而损坏。缓冲层18可以由泡棉或者泡沫塑料或者橡胶或者其他软质材料制成。当然,这些缓冲材料仅作为示例性的而本申请的实施例并不限于此。此外,在设置缓冲层18的过程中避让接近传感器16,是为了防止缓冲层18遮挡接近传感器16,以免接近传感器16在发射和接收红外光的过程中受到影响。Specifically, thebuffer layer 18 is used for alleviating impact force and shock resistance to protect thetouch layer 12 and thedisplay layer 13 and their internal structures, and prevent thedisplay layer 13 from being damaged by external impact. Thebuffer layer 18 may be made of foam or foamed plastic or rubber or other soft material. Of course, these buffer materials are only exemplary and the embodiments of the present application are not limited thereto. In addition, avoiding theproximity sensor 16 in the process of disposing thebuffer layer 18 is to prevent thebuffer layer 18 from blocking theproximity sensor 16 so as to prevent theproximity sensor 16 from being affected in the process of emitting and receiving infrared light.

请参阅图11和图12,进一步地,在这样的实施方式中,电子装置100还包括覆盖缓冲层18且避让接近传感器16的金属片19。Referring to FIGS. 11 and 12 , further, in such an embodiment, theelectronic device 100 further includes ametal sheet 19 covering thebuffer layer 18 and avoiding theproximity sensor 16 .

具体地,金属片19用于屏蔽电磁干扰及接地,具有扩散温升的作用。金属片19可以采用铜箔、铝箔等金属材料裁剪而成。当然,这些金属材料仅作为示例性的而本申请的实施例并不限于此。此外,在设置金属片19的过程中避让接近传感器16,是为了防止金属片19遮挡接近传感器16,以免接近传感器16在发射和接收红外光的过程中受到影响。Specifically, themetal sheet 19 is used for shielding electromagnetic interference and grounding, and has the function of diffusing temperature rise. Themetal sheet 19 can be cut from metal materials such as copper foil and aluminum foil. Of course, these metal materials are only exemplary and the embodiments of the present application are not limited thereto. In addition, the purpose of avoiding theproximity sensor 16 in the process of disposing themetal sheet 19 is to prevent themetal sheet 19 from blocking theproximity sensor 16 so as to prevent theproximity sensor 16 from being affected in the process of emitting and receiving infrared light.

请参阅图13及图14,本申请提供了一种电子装置100的控制方法。控制方法包括步骤:Please refer to FIG. 13 and FIG. 14 , the present application provides a control method of theelectronic device 100 . The control method includes steps:

S10,在电子装置100处于接近检测模式时,读取触摸显示屏10的模数转换器32(Analog-to-Digital Converter,ADC)的分辨率的部分位数的数据;S10, when theelectronic device 100 is in the proximity detection mode, read the data of the partial digits of the resolution of the analog-to-digital converter 32 (Analog-to-Digital Converter, ADC) of thetouch display screen 10;

S20,判断模数转换器32的分辨率的部分位数的数据是否满足预设条件;和S20, judging whether the data of the partial digits of the resolution of the analog-to-digital converter 32 satisfies the preset condition; and

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-digital converter 32;

S40,根据模数转换器32的分辨率的全部位数的数据控制触摸显示屏10的显示状态。S40 , controlling the display state of thetouch display screen 10 according to the data of all bits of the resolution of the analog-to-digital converter 32 .

在某些实施方式中,电子装置100还包括触摸芯片30,触摸芯片30用于读取触摸显示屏10的模数转换器32的分辨率的部分位数的数据;及用于判断所说的部分位数的数据是否满足预设条件,以及用于在部分位数的数据满足预设条件的情况下,读取模数转换器32的分辨率的全部位数的数据。In some embodiments, theelectronic device 100 further includes atouch chip 30, and thetouch chip 30 is used to read the data of the partial digits of the resolution of the analog-to-digital converter 32 of thetouch display screen 10; Whether the data of the partial digits satisfies the preset condition, and is used to read the data of all digits of the resolution of the analog-to-digital converter 32 if the data of the partial digits satisfies the preset condition.

处理器23用于根据全部位数的数据控制触摸显示屏的显示状态。Theprocessor 23 is used for controlling the display state of the touch display screen according to the data of all digits.

在一般情况下,电子装置100处于接近检测模式时,读取数模转换器32的全部数据以提高检测的精度。然而,这样一来,则会导致计算量加大、检测时间加长,功耗也增加。In general, when theelectronic device 100 is in the proximity detection mode, all data of the digital-to-analog converter 32 is read to improve the detection accuracy. However, in this way, it will lead to an increase in the amount of calculation, a longer detection time, and an increase in power consumption.

因此,本申请实施方式的控制方法和电子装置100中,先读取模数转换器32的分辨率的部分位数的数据,这样一来,读取模数转换器32的数据量较少,读取速度快,可以加快读取速度,并且降低功耗,待满足预设条件后,再读取模数转换器32的分辨率的全部位数的数据,这样可以准确地控制触摸显示屏10的显示状态。Therefore, in the control method and theelectronic device 100 according to the embodiment of the present application, the data of a part of the number of digits of the resolution of the analog-to-digital converter 32 is read first, so that the amount of data read from the analog-to-digital converter 32 is small, The reading speed is fast, which can speed up the reading speed and reduce power consumption. After the preset conditions are met, the data of all digits of the resolution of the analog-to-digital converter 32 can be read, so that thetouch display screen 10 can be accurately controlled. display status.

具体地,请参阅图14,电子装置100的触摸显示屏10可以通过柔性电路板40与电子装置100的主板50(main board)的连接。一般地,处理器23设置在主板50上。在一个例子中,触摸芯片30设置在柔性电路板40上。触摸显示屏10及触摸芯片30均通过柔性电路板40与处理器23通信。模数转换器32可以封装在触摸芯片30中。Specifically, referring to FIG. 14 , thetouch display screen 10 of theelectronic device 100 can be connected to the main board 50 (main board) of theelectronic device 100 through theflexible circuit board 40 . Typically, theprocessor 23 is provided on themotherboard 50 . In one example, thetouch chip 30 is disposed on theflexible circuit board 40 . Both thetouch display screen 10 and thetouch chip 30 communicate with theprocessor 23 through theflexible circuit board 40 . The analog-to-digital converter 32 may be packaged in thetouch chip 30 .

在步骤S10中,接近检测模式为电子装置100的预设功能,在接近检测模式下,电子装置100可以运行特定程度,以使触摸显示屏10可以检测是否有外部接近。此处所说的“接近”可以指的外部物体与触摸显示屏10接触,也可以指外部物体与触摸显示屏10之间具有间隙。所述的接近检测模式可以根据用户输入选择开启或关闭。另外,所述的接近检测模式也可以在电子装置100满足一定的条件下自动开启。In step S10, the proximity detection mode is a preset function of theelectronic device 100. In the proximity detection mode, theelectronic device 100 can operate to a certain extent so that thetouch display screen 10 can detect whether there is an external approach. The “proximity” referred to here may refer to the contact between an external object and thetouch display screen 10 , or may refer to a gap between the external object and thetouch display screen 10 . The proximity detection mode can be selected to be turned on or off according to user input. In addition, the proximity detection mode can also be automatically turned on when theelectronic device 100 meets certain conditions.

可以理解,模数转换器32具有一定的分辨率,例如模数转换器32的分辨率为10位(bit)、12位、16位等分辨率。读取模数转换器32的分辨率的部分位数的数据,此时,模数转换器32以小于模数转换器32的额定分辨率的分辨率运行。在一个例子中,模数转换器32的分辨率为10位,在接近检测模式下,读取10位分辨率中的4位分辨率的数据。或者说,模数转换器32以4位分辨率运行。It can be understood that the analog-to-digital converter 32 has a certain resolution, for example, the resolution of the analog-to-digital converter 32 is 10-bit (bit), 12-bit, 16-bit and other resolutions. Data at a fraction of the number of bits of resolution of the analog-to-digital converter 32 is read, and at this time, the analog-to-digital converter 32 operates at a resolution smaller than the rated resolution of the analog-to-digital converter 32 . In one example, the resolution of the analog-to-digital converter 32 is 10 bits, and in the proximity detection mode, data is read at 4-bit resolution out of the 10-bit resolution. In other words, the analog-to-digital converter 32 operates at 4-bit resolution.

在步骤S20及步骤S30中,可以理解,在触摸显示屏10接收到外部输入前后,模数转换器32输出的数据发生变化,模数转换器32输出的数据为数字信号。因此,预设条件可以设置为一阈值,可判断模数转换器32的分辨率的部分位数的数据是否大于阈值,若大于阈值,则说明模数转换器32的分辨率的部分位数的数据满足预设条件,此时说明触摸显示屏10接收到外部输入,此时,进一步模数转换器32的分辨率的全部位数的数据,以判断外部输入的类型。In steps S20 and S30, it can be understood that before and after thetouch screen 10 receives an external input, the data output by the analog-to-digital converter 32 changes, and the data output by the analog-to-digital converter 32 is a digital signal. Therefore, the preset condition can be set as a threshold, which can determine whether the data of the partial digits of the resolution of the analog-to-digital converter 32 is greater than the threshold. If the data satisfies the preset condition, it means that thetouch screen 10 receives an external input. At this time, the data of all digits of the resolution of the analog-to-digital converter 32 is further used to determine the type of the external input.

在一个例子中,模数转换器32的分辨率为10位,在接近检测模式下,读取10位分辨率中的4位分辨率的数据。若4位分辨率的数据满足预设条件,则读取10位分辨率的数据,或者说,此时,模数转换器32以10位分辨率运行。In one example, the resolution of the analog-to-digital converter 32 is 10 bits, and in the proximity detection mode, data is read at 4-bit resolution out of the 10-bit resolution. If the data with the 4-bit resolution satisfies the preset condition, then read the data with the 10-bit resolution, or in other words, at this time, the analog-to-digital converter 32 operates at the 10-bit resolution.

在步骤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-digital converter 32 , so as to accurately control the display state of thetouch display screen 10 .

在某些实施方式中,所说的模数转换器32的分辨率的部分位数为模数转换器32自模数转换器32的分辨率的最高位向最低位连续分布的预定数量的位数。In some embodiments, the partial number of bits of the resolution of the analog-to-digital converter 32 is a predetermined number of bits continuously distributed by the analog-to-digital converter 32 from the highest bit to the lowest bit of the resolution of the analog-to-digital converter 32 number.

在一个例子中,模数转换器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-digital converter 32 is 10 bits, and the numbers are 10, 9, 8, 7, . . . , 1 from the highest bit to the lowest bit. The partial digits of the resolution of the analog-to-digital converter 32 may take four digits numbered 10, 9, 8, and 7, respectively. At this time, it can be understood that the predetermined number is four. It can be understood that part of the number of digits of the resolution of the analog-to-digital converter 32 may also take three digits numbered as 10, 9, and 8, respectively.

模数转换器32的分辨率的位数可以输出0、1两种数字信号,因此,分辨率从最高位至最低位可以输出0、1两种数字信号不同组合,例如,分辨率为10位的模数转换器32从最高位至最低位依次输出的信号组合为1101000000、0000000011或010000000等数据。由此可知,模数转换器32的分辨率的高位输出的数字信号包括更多的数据信息。The number of bits of resolution of the analog-to-digital converter 32 can output two digital signals of 0 and 1. Therefore, different combinations of the two digital signals of 0 and 1 can be output from the highest bit to the lowest bit of resolution. For example, the resolution is 10 bits. The analog-to-digital converter 32 outputs the signals sequentially from the highest bit to the lowest bit into data such as 1101000000, 0000000011 or 010000000. It can be seen from this that the digital signal output by the high-order resolution of the analog-to-digital converter 32 includes more data information.

如此,读取模数转换器32的分辨率中高位的数据,从而可以获得更得的数据信息,不仅可以提高读取效率,还可以较准确地获取触摸显示屏输出的数据。In this way, by reading the data in the middle and high bits of the resolution of the analog-to-digital converter 32, more data information can be obtained, which can not only improve the reading efficiency, but also more accurately obtain the data output by the touch screen.

在步骤S40中,触摸显示屏10的显示状态包括熄灭状态和点亮状态,其中,在点亮状态下,触摸显示屏10可以呈显示不同内容的状态。In step S40, the display state of thetouch display screen 10 includes an off state and a light state, wherein, in the light state, thetouch display screen 10 may be in a state of displaying different contents.

在某些实施方式中,在步骤S10前,控制方法还包括步骤:In some embodiments, before step S10, the control method further includes the steps:

S01,在电子装置100处于通话业务时,开启接近检测模式。S01, when theelectronic device 100 is in a call service, enable a proximity detection mode.

在某些实施方式中,处理器23用于在电子装置100处于通话业务时,开启接近检测模式。In some embodiments, theprocessor 23 is configured to enable the proximity detection mode when theelectronic device 100 is in the call service.

如此,可以在电子装置100处于通话业务时控制触摸显示屏10的显示状态。具体地,通话业务包括来电、去电或接通电话。进一步地,通话业务可以为用户进行语音对话的过程,例如,通话业务为用户向他人拨出电话而等待对方接听的过程,即去电状态;也可以为用户通过语音与他人正在对话的过程,即接通电话状态;也可以为电子装置100接入外部呼入的电话而等待用户接听的过程,即来电状态。In this way, the display state of thetouch display screen 10 can be controlled when theelectronic device 100 is in the call service. Specifically, the call service includes incoming calls, outgoing calls or connected calls. Further, the call service can be a process in which the user conducts a voice conversation. For example, the call service is a process in which the user dials out a call to others and waits for the other party to answer, that is, an outgoing call state; it can also be a process in which the user is talking with others through voice, That is, the call-on state; it can also be a process in which theelectronic device 100 accesses an incoming call from the outside and waits for the user to answer, that is, the incoming call state.

请参阅图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-digital converter 32 through the touch chip and output the first processing result;

S42:通过电子装置的处理器处理模数转换器32的分辨率的全部位数的数据中的互电容数据并输出第二处理结果;S42: Process the mutual capacitance data in the data of all the bits of resolution of the analog-to-digital converter 32 by the processor of the electronic device and output the second processing result;

S43:根据第一处理结果及第二处理结果控制触摸显示10的显示状态。S43: Control the display state of thetouch display 10 according to the first processing result and the second processing result.

在某些实施方式中,触摸芯片30用于处理模数转换器32的分辨率的全部位数的数据中的自电容数据并输出第一处理结果。In some embodiments, thetouch chip 30 is used to process the self-capacitance data in the data of all the bits of resolution of the analog-to-digital converter 32 and output the first processing result.

处理器23用于处理所述模数转换器的分辨率的全部位数的数据中的互电容数据并输出第二处理结果,以及用于根据第一处理结果及第二处理结果控制触摸显示屏10的显示状态。Theprocessor 23 is used to process the mutual capacitance data in the data of all the bits of resolution of the analog-to-digital converter and output the second processing result, and is used to control the touch display screen according to the first processing result and thesecond processing result 10 display status.

如此,触摸显示屏10产生的自电容数据和互电容数据分别通过触摸芯片30和处理器23处理,这样可以提高处理触摸显示屏10产生的信号的效率,从而可以更快地对触摸显示屏10发出控制指令,以以使触摸显示屏10可以快速地做出相应的响应。In this way, the self-capacitance data and mutual capacitance data generated by thetouch display screen 10 are processed by thetouch chip 30 and theprocessor 23 respectively, which can improve the efficiency of processing the signals generated by thetouch display screen 10, so that thetouch display screen 10 can be processed more quickly. A control command is issued so that thetouch display screen 10 can quickly respond accordingly.

具体地,支持悬浮触控的触摸显示屏10上包括两种电容信号,互电容数据和自电容数据。自电容数据比互电容数据强度更大,可以检测更远的手指感应,检测距离范围可达20mm。互电容数据的电场很小,以至于信号强度很低,无法感应到那些非常弱小的信号。因此,当用户的手指在屏幕上悬停时,根据互电容数据无法对手指的悬停检测。Specifically, thetouch display screen 10 supporting floating touch includes two kinds of capacitance signals, mutual capacitance data and self-capacitance data. Self-capacitance data is stronger than mutual-capacitance data, and can detect farther finger sensing, with a detection distance range of up to 20mm. The electric field of mutual capacitance data is so small that the signal strength is so low that those very weak signals cannot be sensed. Therefore, when the user's finger hovers on the screen, the hovering detection of the finger cannot be performed according to the mutual capacitance data.

触摸显示屏10可以根据物体与触摸显示屏10的距离大小输出不同的电容值,根据触摸显示屏10输出的电容值及电容值的数量可以触摸显示屏10是否被遮挡。例如,触摸显示屏10输出的电容值数量为10个,10个电容值均大于阈值且基本一致时判定触摸显示屏10被遮挡。Thetouch display 10 can output different capacitance values according to the distance between the object and thetouch display 10 , and whether thetouch display 10 is blocked can be determined according to the capacitance value and the number of capacitance values output by thetouch display 10 . For example, the number of capacitance values output by thetouch display screen 10 is 10, and it is determined that thetouch display screen 10 is blocked when the 10 capacitance values are all greater than the threshold and are basically the same.

在一个例子中,当电子装置100进入通话业务时,用户一般会将电子装置100放至耳边,在用户将电子装置100放至耳边的过程中,由于面部及耳朵等具有皮肤的部位为导体,触摸显示屏10可以根据电子装置100与人体头部的距离生成不同的信号值,从而判断用户是否已经完成将电子装置100放至耳边的动作。In one example, when theelectronic device 100 enters the call service, the user generally puts theelectronic device 100 to the ear. During the process of placing theelectronic device 100 to the ear, the parts with skin such as the face and ears are Thetouch display screen 10 can generate different signal values according to the distance between theelectronic device 100 and the head of the human body, so as to determine whether the user has completed the action of placing theelectronic device 100 to the ear.

本实施方式中,触摸显示屏10在进行接近检测时,根据自电容数据判断是否有物体接近触摸显示屏10,在进行触摸判断时,根据互电容数据判断是否被触摸。In this embodiment, when thetouch display screen 10 performs proximity detection, it determines whether an object approaches thetouch display screen 10 according to self-capacitance data, and when performing touch determination, it determines whether it is touched according to mutual capacitance data.

一般地,处理器23处理数据的能力强于触摸芯片30处理数据的能力。在触摸显示屏10中,触摸显示屏10产生的互电容数据比触摸显示屏10的自电容数据多,因此,通过触摸芯片30处理数据量较小的自电容数据,并且通过处理器23处理数据量较大的互电容数据,这样可以提高处理触摸显示屏10输出的信号的效率,以快速地对触摸显示屏10的控制做出反应。Generally, the ability of theprocessor 23 to process data is stronger than the ability of thetouch chip 30 to process data. In thetouch display screen 10, the mutual capacitance data generated by thetouch display screen 10 is more than the self-capacitance data of thetouch display screen 10. Therefore, the self-capacitance data with a smaller amount of data is processed by thetouch chip 30, and the data is processed by theprocessor 23. A large amount of mutual capacitance data can be obtained, which can improve the efficiency of processing the signals output by thetouch display screen 10 so as to quickly respond to the control of thetouch display screen 10 .

第一处理结果例如为确定是否有物体靠近触摸显示屏10的结果。The first processing result is, for example, a result of determining whether an object is close to thetouch display screen 10 .

在步骤S42中,在一个例子中,第二处理结果例如为确定触摸显示屏10是否接收了预定操作的结果。预定操作包括滑动操作和/或点击操作。或者说,预定操作可以为滑动操作,也可以为点击操作,或者同时为滑动操作及点击操作。In step S42, in one example, the second processing result is, for example, a result of determining whether thetouch display screen 10 has received a predetermined operation. The predetermined operation includes a swipe operation and/or a click operation. In other words, the predetermined operation may be a sliding operation, a clicking operation, or a sliding operation and a clicking operation at the same time.

滑动操作指的是用户自触摸显示屏10的一个位置沿着一定的轨迹滑动至触摸显示屏10的另一个位置。滑动操作的轨迹例如为直线。滑动操作可以为上下滑动操作或者左右滑动操作。The sliding operation refers to that the user slides from one position of thetouch screen 10 to another position of thetouch screen 10 along a certain trajectory. The trajectory of the sliding operation is, for example, a straight line. The sliding operation may be an up and down sliding operation or a left and right sliding operation.

点击操作指的是用户在触摸显示屏10的某些位置点击触碰。其中,点击操作可以为单点操作,也可以为多点操作。用户可以通过手指在触摸显示屏10操作以实现滑动操作及点击操作。The click operation refers to that the user clicks and touches some positions of thetouch screen 10 . The click operation may be a single-point operation or a multi-point operation. The user can operate on thetouch display screen 10 with a finger to realize sliding operation and click operation.

在另一个例子中,第二处理结果例如为触摸显示屏10是否与外部物体大面积接触的结果。In another example, the second processing result is, for example, a result of whether thetouch display screen 10 is in large-area contact with an external object.

需要指出的是,在步骤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 thetouch display screen 10 is controlled according to one of the first processing result and the second processing result.

请参阅图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 thetouch display screen 10 is blocked;

S45,在触摸显示屏10被遮挡时,控制触摸显示屏10进入熄灭状态。S45 , when thetouch display screen 10 is blocked, control thetouch display screen 10 to enter an off state.

在某些实施方式中,处理器23用于根据所述模数转换器的分辨率的全部位数的数据判断触摸显示屏10是否被遮挡,并在触摸显示屏10被遮挡时,控制触摸显示屏10进入熄灭状态。In some embodiments, theprocessor 23 is configured to determine whether thetouch display screen 10 is blocked according to the data of all digits of the resolution of the analog-to-digital converter, and when thetouch screen 10 is blocked, control the touch display Thescreen 10 enters an off state.

在某些实施方式,步骤S40还包括步骤:In some embodiments, step S40 further includes the steps of:

S46,在触摸显示屏10没被遮挡时,控制触摸显示屏10保持点亮状态。如此,方便用户操作触摸显示屏10。S46, when thetouch display screen 10 is not blocked, control thetouch display screen 10 to keep the lighted state. In this way, it is convenient for the user to operate thetouch display screen 10 .

具体地,在步骤S44中,可以根据以上所说的第一处理结果及第二处理结果判断触摸显示屏10是否被遮挡;Specifically, in step S44, it can be determined whether thetouch display screen 10 is blocked according to the above-mentioned first processing result and second processing result;

根据第一处理结果和第二处理结果可以控制触摸显示屏10的显示状态,从而使得电子装置100在通话时,且触摸显示屏10被遮挡时控制触摸显示屏10进入熄灭状态,以节省电量。The display state of thetouch display screen 10 can be controlled according to the first processing result and the second processing result, so that theelectronic device 100 controls thetouch display screen 10 to enter an off state during a call and when thetouch screen screen 10 is blocked to save power.

在步骤S45中,触摸显示屏10的熄灭状态包括显示区1311处于全熄灭状态;或显示区1311的一部分显示预定内容而显示区1311的其他部分处于熄灭状态。在显示区1311处于全熄灭状态时,触摸显示屏10的显示层13断电,显示区1311呈现为黑色外观。In step S45, the off state of thetouch display screen 10 includes that thedisplay area 1311 is completely off; or a part of thedisplay area 1311 displays predetermined content while other parts of thedisplay area 1311 are off. When thedisplay area 1311 is in a fully extinguished state, thedisplay layer 13 of thetouch display screen 10 is powered off, and thedisplay area 1311 appears black.

显示区1311的一部分显示预定内容而显示区1311的其他部分处于熄灭状态指的是,仅有显示区1311的一部分处于点亮状态而显示预定内容,而显示区1311的其他部分处于关闭熄灭状态。Part of thedisplay area 1311 displays predetermined content while other parts of thedisplay area 1311 are off means that only a part of thedisplay area 1311 is on and displays the predetermined content, while other parts of thedisplay area 1311 are off.

例如,仅有显示区1311的一部分处于点亮状态而显示预定内容时,触摸显示屏10处于熄屏AOD(Always on Display)模式。预定内容例如为时间,也即是说,无论触摸显示屏10进入休眠状态或唤醒状态,显示区1311均能显示时间信息。当然,预定内容也可以为日期、电子装置100的信号强弱等内容。For example, when only a part of thedisplay area 1311 is in a lit state and a predetermined content is displayed, thetouch display screen 10 is in an off-screen AOD (Always on Display) mode. The predetermined content is, for example, time, that is, whether thetouch display screen 10 enters the sleep state or the wake-up state, thedisplay area 1311 can display time information. Of course, the predetermined content may also be content such as date and signal strength of theelectronic device 100 .

相对地,触摸显示屏10的点亮状态指的是,触摸显示屏10的显示层13通电,显示区1311的所有区域均点亮以使显示区1311可以显示内容。Conversely, the lighting state of thetouch display screen 10 means that thedisplay layer 13 of thetouch display screen 10 is powered on, and all areas of thedisplay area 1311 are lit so that thedisplay area 1311 can display content.

在步骤S44中,可以根据所述模数转换器的分辨率的全部位数的数据判断触摸显示屏10产生电容信号的区域、面积及/或形状等判定触摸显示屏10是否被遮蔽。In step S44 , it is possible to determine whether thetouch display screen 10 is blocked by determining the area, area and/or shape of thetouch display screen 10 for generating the capacitive signal according to the data of all bits of the resolution of the analog-to-digital converter.

因此,请参阅图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 thetouch display screen 10 and the external object is less than a predetermined distance;

S442,根据第二处理结果判断触摸显示屏10与外界物体的接触面积是否大于预定面积;S442, according to the second processing result, determine whether the contact area between thetouch display screen 10 and the external object is larger than a predetermined area;

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 thetouch display screen 10 is blocked.

请参阅图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, theelectronic device 100 is close to the face. At this time, if there is a gap between thetouch display screen 10 and the face, that is, thetouch screen screen 10 is not in contact with the face. . At this time, touch the self-capacitance data generated by thedisplay screen 10, thetouch chip 30 processes the self-capacitance data of thetouch screen 10 and outputs a first processing result, and the distance between the face and thetouch display screen 10 can be determined according to the first processing result . For example, when the distance between the face and thetouch display screen 10 is small, the intensity of the self-capacitance data is large. Therefore, it can be determined whether thetouch display screen 10 is blocked according to the distance between thetouch display screen 10 and the face.

在另一个例子中,用户在接听电话时,电子装置100靠近脸部,此时,如果触摸显示屏10与脸部接触,此时,触摸显示屏10产生的互电容数据,触摸芯片30处理触摸显示屏10的互电容数据并输出第一处理结果,根据第一处理结果可以确定触摸显示屏10与脸部的接触面积,如果接触面积大于预定面积,则可以确定触摸显示屏10被遮挡。In another example, when the user is answering a call, theelectronic device 100 is close to the face. At this time, if thetouch display screen 10 is in contact with the face, at this time, thetouch screen 10 generates mutual capacitance data, and thetouch chip 30 processes the touch The mutual capacitance data of thedisplay screen 10 is output and the first processing result is output. According to the first processing result, the contact area between thetouch display screen 10 and the face can be determined. If the contact area is larger than the predetermined area, it can be determined that thetouch display screen 10 is blocked.

请参阅图21,在某些实施方式中,控制方法包括:Referring to Figure 21, in some embodiments, the control method includes:

S50,在触摸显示屏10处于熄灭状态时关闭触摸显示屏10的触控层12。S50 , when thetouch display screen 10 is in an off state, thetouch layer 12 of thetouch display screen 10 is turned off.

在某些实施方式中,处理器23用于在触摸显示屏10处于熄灭状态时关闭触摸显示屏10的触控层12。In some embodiments, theprocessor 23 is configured to turn off thetouch layer 12 of thetouch display 10 when thetouch display 10 is in an off state.

在一些情况下,电子装置100开启接近检测模式时,在触摸显示屏处于熄灭状态下,只是触摸显示屏的显示层关闭,而触摸显示屏的触控层保持开启的状态。此时,用户仍然可以在触摸显示屏处于熄灭状态下控制电子装置100工作。In some cases, when theelectronic device 100 turns on the proximity detection mode, when the touch display screen is in an off state, only the display layer of the touch display screen is turned off, and the touch screen layer of the touch display screen remains on. At this time, the user can still control theelectronic device 100 to work when the touch screen is turned off.

例如,用户可以在触摸显示屏处于熄灭状态下,用户用手指在触摸显示屏10上画“M”图案,触控层12由于用户的触碰而输出控制信号,从而控制电子装置100播放音乐。For example, when the touch screen is off, the user draws an "M" pattern on thetouch screen 10 with a finger, and thetouch layer 12 outputs a control signal due to the user's touch, thereby controlling theelectronic device 100 to play music.

因此,用户在接听电话时,由于电子装置100有可能被遮挡而与人脸、人耳或其他物体接触,导致触控层12输出了被触控的信号,从而引发电子装置100运行非用户预想的功能程序。Therefore, when the user answers the call, since theelectronic device 100 may be blocked and contact with a human face, human ear or other objects, thetouch layer 12 outputs a touch signal, thereby causing theelectronic device 100 to operate beyond the user's expectation. function program.

如此,在触摸显示屏10处于熄灭状态时关闭触摸显示屏10的触控层12,可以防止用户在电子装置100通话的过程引起错误操作。In this way, when thetouch display screen 10 is in an off state, thetouch layer 12 of thetouch display screen 10 is turned off, which can prevent the user from causing erroneous operations during a call on theelectronic device 100 .

本实施方式中,“触控层12开启”是指触控层12通电并可以输出电容信号。“触控层12关闭”是指触控层12断电而无法产生电容信号。In this embodiment, "thetouch layer 12 is turned on" means that thetouch layer 12 is powered on and can output capacitance signals. "Thetouch layer 12 is turned off" means that thetouch layer 12 is powered off and cannot generate a capacitance signal.

在某些实施方式中,所说的第二处理结果通过处理器23处理触摸显示屏10的顶部区域输出的互电容数据得到;In some embodiments, the second processing result is obtained by theprocessor 23 processing the mutual capacitance data output from the top area of thetouch display screen 10;

所说的第一处理结果通过触摸芯片30处理触摸显示屏10的顶部区域输出的自电容数据得到。The first processing result is obtained by processing the self-capacitance data output from the top area of thetouch display screen 10 by thetouch chip 30 .

由于电子装置100的受话器通常设置在电子装置100的顶部。在一个例子中,在用户接听电话时,电子装置100的顶部更加靠近耳朵附近,因此,根据触摸显示屏10的顶部区域输出的信号,处理得到第一处理结果及第二处理结果,可以提高判定电子装置100接近头部的准确率。Since the receiver of theelectronic device 100 is usually disposed on the top of theelectronic device 100 . In one example, when the user answers the phone, the top of theelectronic device 100 is closer to the ear. Therefore, according to the signal output from the top area of thetouch display screen 10, the first processing result and the second processing result are processed to obtain the first processing result and the second processing result, which can improve the judgment The accuracy of theelectronic device 100 approaching the head.

本实施方式中,触摸显示屏10的顶部区域指的是在电子装置100的纵向上,触摸显示屏10靠近电子装置100的顶端面1002的区域。In this embodiment, the top area of thetouch display screen 10 refers to an area of thetouch display screen 10 close to thetop surface 1002 of theelectronic device 100 in the longitudinal direction of theelectronic device 100 .

较佳地,控制方法还包括检测电子装置100的姿态是否为预定姿态的步骤。Preferably, the control method further includes the step of detecting whether the posture of theelectronic device 100 is a predetermined posture.

在该步骤中,可以通过电子装置100的陀螺仪等传感器检测电子装置100的姿态。步骤S45包括在电子装置100的姿态为预定姿态且触摸显示屏10被遮挡时,控制触摸显示屏10进入熄灭状态。In this step, the posture of theelectronic device 100 may be detected by a sensor such as a gyroscope of theelectronic device 100 . Step S45 includes controlling thetouch display screen 10 to enter an off state when the posture of theelectronic device 100 is a predetermined posture and thetouch display screen 10 is blocked.

如此,控制触摸显示屏10的显示状态的过程更加精确。可以理解,在某些情景下,即使电子装置100进入了通话业务,根据触摸显示屏10输出的信号也不一定判断用户完成了将电子装置100放至耳边的动作。比如,电子装置100进入通话业务后,用户的手指触碰了触摸显示屏10(如以上所述的预定操作),在这个过程中,电子装置100并没有放置在用户的耳边,但是触摸显示屏10也会输出不同的控制信号。In this way, the process of controlling the display state of thetouch display screen 10 is more precise. It can be understood that in some scenarios, even if theelectronic device 100 enters the call service, it may not necessarily be determined that the user has completed the action of putting theelectronic device 100 to the ear according to the signal output by thetouch screen 10 . For example, after theelectronic device 100 enters the call service, the user's finger touches the touch screen 10 (predetermined operation as described above). During this process, theelectronic device 100 is not placed on the user's ear, but the touch screen Thescreen 10 also outputs different control signals.

通过对电子装置100姿态的判断,可以进一步确定电子装置100是否被放至用户的耳边。具体地,可以利用陀螺仪、重力传感器等传感器对电子装置100的姿态进行判断。另外,电子装置100的姿态有很多,比如平放、倒置和竖直,由于用户在进行通话时,一般会有一个抬手的动作以将电子装置100竖直地放在用户的耳边,因此,可以将预定姿态设置为用户抬手后电子装置100处于竖直的姿态。可以理解,用户抬手的过程可以被电子装置100的陀螺仪、重力传感器等传感器检测到。By judging the posture of theelectronic device 100, it can be further determined whether theelectronic device 100 is placed near the user's ear. Specifically, the attitude of theelectronic device 100 can be determined by using sensors such as a gyroscope and a gravity sensor. In addition, there are many postures of theelectronic device 100, such as laying horizontally, upside down, and vertical. Since the user generally raises his hand when making a call to place theelectronic device 100 vertically by the user's ear, therefore , the predetermined posture may be set as theelectronic device 100 in a vertical posture after the user raises his hand. It can be understood that the process of the user raising his hand may be detected by sensors such as a gyroscope and a gravity sensor of theelectronic device 100 .

例如,当通过重力传感器检测电子装置100的姿态时,重力传感器可以检测电子装置100的宽度方向X、长度方向Y及厚度方向Z这三个方向的加速度变化。重力传感器持续地获取电子装置100的X方向、Y方向及Z方向的数据。可以理解,当电子装置100被放在耳边且处于通话的过程中,电子装置100在X方向、Y方向这两个方向上移动的距离较小。因此,重力传感器检测到X方向、Y方向上的数据变化量较小。For example, when the attitude of theelectronic device 100 is detected by the gravity sensor, the gravity sensor can detect the acceleration changes in the three directions of the width direction X, the length direction Y and the thickness direction Z of theelectronic device 100 . The gravity sensor continuously acquires data in the X, Y, and Z directions of theelectronic device 100 . It can be understood that when theelectronic device 100 is placed by the ear and during a call, the distance that theelectronic device 100 moves in the X direction and the Y direction is relatively small. Therefore, the gravity sensor detects a small amount of data change in the X and Y directions.

如果电子装置100从耳边拿至眼前,那么,电子装置100在X方向、Y方向、Z方向这三个方向中至少两个方向上的移动距离较大,因此,重力传感器获取到X方向、Y方向、Z方向中的至少两个方向上的数据变化量较大。If theelectronic device 100 is held from the ear to the eyes, the moving distance of theelectronic device 100 in at least two directions among the three directions of the X direction, the Y direction, and the Z direction is relatively large. Therefore, the gravity sensor obtains the X direction, The amount of data change in at least two of the Y direction and the Z direction is large.

由此,根据重力传感器获取到X方向、Y方向、Z方向的数据变化量可以获取电子装置100的姿态。In this way, the posture of theelectronic device 100 can be obtained according to the data changes in the X direction, the Y direction, and the Z direction obtained by the gravity sensor.

又如,当通过陀螺仪检测电子装置100的姿态时,陀螺仪测量电子装置100偏转和倾斜时的转动角速度。陀螺仪能检测和感应3D空间的线性和动作,从而能够辨认方向、确定姿态和计算角速度。如此,根据陀螺仪的检测数据可以判断电子装置100的姿态是否为直立姿态、平放或斜放等姿态。For another example, when the attitude of theelectronic device 100 is detected by the gyroscope, the gyroscope measures the rotational angular velocity when theelectronic device 100 is deflected and tilted. A gyroscope can detect and sense linearity and motion in 3D space, so that it can recognize direction, determine attitude and calculate angular velocity. In this way, according to the detection data of the gyroscope, it can be determined whether the posture of theelectronic device 100 is an upright posture, a horizontal placement, or an oblique placement.

在某些实施方式中,控制方法在步骤S50后还包括根据接近传感器16的检测数据控制触摸显示屏10的显示状态的步骤。例如,根据接近传感器16的检测数据判断电子装置100远离外界物体时控制触摸显示屏10点亮。In some embodiments, the control method further includes a step of controlling the display state of thetouch display screen 10 according to the detection data of theproximity sensor 16 after the step S50. For example, when it is determined according to the detection data of theproximity sensor 16 that theelectronic device 100 is far away from the external object, thetouch display screen 10 is controlled to light up.

本申请实施方式还提供了一种计算机可读存储介质。一种包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器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 ormore processors 23, cause theprocessors 23 to perform the control method of any one of the above embodiments.

请参阅图22,本申请实施方式还提供了一种计算机设备400。计算机设备400包括存储器32及一个或多个处理器23,一个或多个程序被存储在存储器32中,并且被配置成由一个或多个处理器23执行。程序包括用于执行上述任意一项实施方式所述的控制方法。Referring to FIG. 22 , an embodiment of the present application further provides acomputer device 400 .Computer device 400 includesmemory 32 and one ormore processors 23 in which one or more programs are stored and configured to be executed by one ormore processors 23 . The program includes a control method for executing any one of the above embodiments.

图22为一个实施例中的计算机设备400的内部模块示意图。计算机设备400包括通过系统总线31连接的处理器23、存储器32(例如为非易失性存储介质)、内存储器33、显示层13和输入装置34。其中,计算机设备400的存储器32存储有操作系统和程序。该程序可被处理器23执行,以实现上述任意一项实施方式的控制方法。FIG. 22 is a schematic diagram of the internal modules ofcomputer device 400 in one embodiment. Thecomputer device 400 includes aprocessor 23 , a memory 32 (eg, a non-volatile storage medium), aninternal memory 33 , adisplay layer 13 and aninput device 34 connected by asystem bus 31 . Thememory 32 of thecomputer device 400 stores an operating system and programs. The program can be executed by theprocessor 23 to implement the control method of any one of the above-mentioned embodiments.

处理器23可用于提供计算和控制能力,支撑整个计算机设备400的运行。计算机设备400的内存储器33为存储器32中的计算机可读指令运行提供环境。计算机设备400的显示层13可以是OLED显示层或者Micro LED显示层等,输入装置34可以是设置在显示层13上的触摸显示屏10,也可以是计算机设备400外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该计算机设备400可以是手机、平板电脑、笔记本电脑、个人数字助理或穿戴式设备(例如智能手环、智能手表、智能头盔、智能眼镜)等。本领域技术人员可以理解,图中示出的结构,仅仅是与本申请方案相关的部分结构的示意图,并不构成对本申请方案所应用于其上的计算机设备400的限定,具体的计算机设备400可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Theprocessor 23 may be used to provide computing and control capabilities to support the operation of theentire computer device 400 .Internal memory 33 ofcomputer device 400 provides an environment for the execution of computer readable instructions inmemory 32 . Thedisplay layer 13 of thecomputer device 400 may be an OLED display layer or a Micro LED display layer, etc., and theinput device 34 may be thetouch display screen 10 disposed on thedisplay layer 13 , or the buttons or trackballs disposed on the shell of thecomputer device 400 . Or a trackpad, or an external keyboard, trackpad, or mouse, etc. Thecomputer device 400 may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, or a wearable device (eg, a smart bracelet, a smart watch, a smart helmet, smart glasses), and the like. Those skilled in the art can understand that the structure shown in the figure is only a schematic diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on thecomputer device 400 to which the solution of the present application is applied. Thespecific computer device 400 More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于一非易失性计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(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.

Claims (14)

Translated fromChinese
1.一种电子装置的控制方法,其特征在于,包括:1. A control method for an electronic device, comprising:在所述电子装置处于接近检测模式时,读取触摸显示屏的模数转换器的分辨率的部分位数的数据,所述部分位数为所述模数转换器自所述模数转换器的分辨率的最高位向最低位连续分布的预定数量的位数;When the electronic device is in the proximity detection mode, read data of a partial number of bits of resolution of the analog-to-digital converter of the touch screen, where the partial number of bits is obtained from the analog-to-digital converter from the analog-to-digital converter A predetermined number of bits continuously distributed from the highest bit to the lowest bit of the resolution;判断所述部分位数的数据是否满足预设条件;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.2.如权利要求1所述的控制方法,其特征在于,所述控制方法包括:在所述部分位数的数据大于阈值时,确定所述部分位数的数据满足预设条件。2 . The control method according to claim 1 , wherein the control method comprises: when the data of the partial number of digits is greater than a threshold value, determining that the data of the partial number of digits satisfies a preset condition. 3 .3.如权利要求1所述的控制方法,其特征在于,在所述在所述电子装置处于接近检测模式时,读取触摸显示屏的模数转换器的分辨率的部分位数的数据的步骤前,所述控制方法包括步骤:3 . The control method according to claim 1 , wherein when the electronic device is in a proximity detection mode, the method of reading data of a part of digits of resolution of an analog-to-digital converter of the touch display screen is performed. 4 . Before the step, the control method includes the steps:在所述电子装置处于通话业务时,开启所述接近检测模式。When the electronic device is in a call service, the proximity detection mode is turned on.4.如权利要求1所述的控制方法,其特征在于,所述根据所述全部位数的数据控制所述触摸显示屏的显示状态,包括:4. The control method according to claim 1, wherein the controlling the display state of the touch display screen according to the data of all the digits comprises:根据所述全部位数的数据判断所述触摸显示屏是否被遮挡;和Determine whether the touch display screen is blocked according to the data of the full number of digits; and在所述触摸显示屏被遮挡时,控制所述触摸显示屏进入熄灭状态。When the touch display screen is blocked, the touch display screen is controlled to enter an off state.5.如权利要求1所述的控制方法,其特征在于,所述电子装置包括触摸显示屏、连接所述触摸显示屏的触摸芯片、以及处理器,所述根据所述全部位数的数据控制所述触摸显示屏的显示状态,包括:5 . The control method according to claim 1 , wherein the electronic device comprises a touch display screen, a touch chip connected to the touch display screen, and a processor, and the control method is based on the data of the full number of digits. 6 . The display state of the touch screen, including:通过触摸芯片处理所述全部位数的数据中的自电容数据并输出第一处理结果;Process the self-capacitance data in the data of all the bits by the touch chip and output the first processing result;通过所述处理器处理所述全部位数的数据中的互电容数据并输出第二处理结果;Process, by the processor, the mutual capacitance data in the data of all the bits and output a second processing result;根据所述第一处理结果及所述第二处理结果控制所述触摸显示屏的显示状态。The display state of the touch display screen is controlled according to the first processing result and the second processing result.6.如权利要求5所述的控制方法,其特征在于,所述根据所述第一处理结果及所述第二处理结果控制所述触摸显示屏的显示状态,包括:6 . The control method according to claim 5 , wherein the controlling the display state of the touch display screen according to the first processing result and the second processing result comprises: 6 .根据所述第一处理结果及所述第二处理结果判断所述触摸显示屏是否被遮挡;和Determine whether the touch display screen is blocked according to the first processing result and the second processing result; and在所述触摸显示屏被遮挡时,控制所述触摸显示屏进入熄灭状态。When the touch display screen is blocked, the touch display screen is controlled to enter an off state.7.如权利要求6所述的控制方法,其特征在于,所述根据所述第一处理结果及所述第二处理结果判断所述触摸显示屏是否被遮挡的步骤包括:7. The control method according to claim 6, wherein the step of judging whether the touch display screen is blocked according to the first processing result and the second processing result comprises:根据所述第一处理结果判断所述触摸显示屏与外界物体的距离是否小于预定距离;According to the first processing result, determine whether the distance between the touch display screen and the external object is less than a predetermined distance;根据所述第二处理结果判断所述触摸显示屏与外界物体的接触面积是否大于预定面积;According to the second processing result, determine whether the contact area between the touch display screen and the external object is greater than a predetermined area;在所述接触面积大于所述预定面积或所述距离小于所述预定距离时确定所述触摸显示屏被遮挡。When the contact area is larger than the predetermined area or the distance is smaller than the predetermined distance, it is determined that the touch display screen is blocked.8.一种电子装置,其特征在于,包括:8. An electronic device, characterized in that, comprising:触摸显示屏;touch screen;触摸芯片,所述触摸芯片用于读取触摸显示屏的模数转换器的分辨率的部分位数的数据,所述部分位数为所述模数转换器自所述模数转换器的分辨率的最高位向最低位连续分布的预定数量的位数;及用于判断所述部分位数的数据是否满足预设条件,以及用于在所述部分位数的数据满足所述预设条件的情况下,读取所述模数转换器的分辨率的全部位数的数据;A touch chip, the touch chip is used to read data of a partial number of digits of the resolution of the analog-to-digital converter of the touch display screen, and the partial number of digits is the resolution of the analog-to-digital converter from the analog-to-digital converter A predetermined number of digits continuously distributed from the highest digit to the lowest digit of the rate; and for judging whether the data of the part of digits satisfies the preset condition, and for the data of the part of digits to satisfy the preset condition In the case of reading the data of all the bits of 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.9.如权利要求8所述的电子装置,其特征在于,所述处理器用于在所述电子装置处于通话业务时,开启所述电子装置的接近检测模式。9 . The electronic device of claim 8 , wherein the processor is configured to enable a proximity detection mode of the electronic device when the electronic device is in a call service. 10 .10.如权利要求8所述的电子装置,其特征在于,所述触摸芯片用于处理所述全部位数的数据中的自电容数据并输出第一处理结果;和10. The electronic device of claim 8, wherein the touch chip is configured to process the self-capacitance data in the data of the full number of bits and output a first processing result; and所述处理器用于处理所述全部位数的数据中的互电容数据并输出第二处理结果,以及用于根据所述第一处理结果及所述第二处理结果控制所述触摸显示屏的显示状态。The processor is used for processing the mutual capacitance data in the data of all the bits and outputting the second processing result, and for controlling the display of the touch display screen according to the first processing result and the second processing result state.11.如权利要求10所述的电子装置,其特征在于,所述处理器用于根据所述第一处理结果及所述第二处理结果判断所述触摸显示屏是否被遮挡;以及用于在所述触摸显示屏被遮挡时,控制所述触摸显示屏进入熄灭状态。11. The electronic device according to claim 10, wherein the processor is configured to determine whether the touch display screen is blocked according to the first processing result and the second processing result; When the touch display screen is blocked, the touch display screen is controlled to enter an off state.12.如权利要求11所述的电子装置,其特征在于,所述处理器用于:12. The electronic device of claim 11, wherein the processor is configured to:根据所述第一处理结果判断所述触摸显示屏与外界物体的距离是否小于预定距离;According to the first processing result, determine whether the distance between the touch display screen and the external object is less than a predetermined distance;根据所述第二处理结果判断所述触摸显示屏与外界物体的接触面积是否大于预定面积;According to the second processing result, determine whether the contact area between the touch display screen and the external object is greater than a predetermined area;在所述接触面积大于所述预定面积或所述距离小于所述预定距离时确定所述触摸显示屏被遮挡。When the contact area is larger than the predetermined area or the distance is smaller than the predetermined distance, it is determined that the touch display screen is blocked.13.一种计算机设备,其特征在于,包括:13. A computer equipment, characterized in that, comprising:触摸显示屏;touch screen;一个或多个处理器;one or more processors;存储器;和memory; and一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,并且被所述一个或多个处理器执行,所述程序包括用于执行如权利要求1-7任意一项所述的控制方法的指令。one or more programs, wherein said one or more programs are stored in said memory and executed by said one or more processors, said programs comprising means for performing any one of claims 1-7 the instructions of the control method.14.一种包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行权利要求1-7中任一项所述的电子装置的控制方法。14. A non-volatile computer-readable storage medium containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform any of claims 1-7. A control method of the electronic device.
CN201811626426.2A2018-12-282018-12-28 Control method, electronic device, computer equipment and storage mediumActiveCN109743451B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811626426.2ACN109743451B (en)2018-12-282018-12-28 Control method, electronic device, computer equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811626426.2ACN109743451B (en)2018-12-282018-12-28 Control method, electronic device, computer equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN109743451A CN109743451A (en)2019-05-10
CN109743451Btrue CN109743451B (en)2020-08-28

Family

ID=66361878

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811626426.2AActiveCN109743451B (en)2018-12-282018-12-28 Control method, electronic device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN109743451B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111736722B (en)*2020-05-272023-09-19深圳市鸿合创新信息技术有限责任公司Detection method, device and equipment for shielding state of capacitive touch screen

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101983372A (en)*2008-04-042011-03-02高通股份有限公司Low-power touch screen controller
CN107450817A (en)*2017-07-312017-12-08广东欧珀移动通信有限公司Proximity test method, apparatus, storage medium and electronic equipment
CN107704419A (en)*2017-09-222018-02-16北京小米移动软件有限公司Numeric displaying method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102855018A (en)*2012-07-272013-01-02北京爱格码科技有限责任公司Method for achieving proximity sensing through touch screen capacitance induction
CN102855037B (en)*2012-08-072016-06-29深圳天珑无线科技有限公司A kind of capacitance plate mobile terminal and screen control method, device
US10254900B2 (en)*2016-02-182019-04-09Tufts UniversityDrifting keyboard
KR102356812B1 (en)*2017-05-192022-01-28엘지전자 주식회사Electronic device capable of sensing a fingerprint
CN108196709A (en)*2017-12-282018-06-22上海传英信息技术有限公司The touch screen control method and control system of a kind of intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101983372A (en)*2008-04-042011-03-02高通股份有限公司Low-power touch screen controller
CN107450817A (en)*2017-07-312017-12-08广东欧珀移动通信有限公司Proximity test method, apparatus, storage medium and electronic equipment
CN107704419A (en)*2017-09-222018-02-16北京小米移动软件有限公司Numeric displaying method and device

Also Published As

Publication numberPublication date
CN109743451A (en)2019-05-10

Similar Documents

PublicationPublication DateTitle
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

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp