CN109167857B - Calibration method, electronic device, storage medium, and computer apparatus - Google Patents

Calibration method, electronic device, storage medium, and computer apparatus Download PDF

Info

Publication number
CN109167857B
CN109167857B CN201811159200.6A CN201811159200A CN109167857B CN 109167857 B CN109167857 B CN 109167857B CN 201811159200 A CN201811159200 A CN 201811159200A CN 109167857 B CN109167857 B CN 109167857B
Authority
CN
China
Prior art keywords
proximity sensor
signal values
electronic device
noise floor
value
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
CN201811159200.6A
Other languages
Chinese (zh)
Other versions
CN109167857A (en
Inventor
占文喜
郭富豪
莫斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811159200.6A priority Critical patent/CN109167857B/en
Publication of CN109167857A publication Critical patent/CN109167857A/en
Application granted granted Critical
Publication of CN109167857B publication Critical patent/CN109167857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a calibration method, an electronic device, a storage medium and computer equipment, wherein the calibration method is used for a proximity sensor of the electronic device, the electronic device comprises a touch display screen, the proximity sensor is arranged below the touch display screen, and the calibration method comprises the following steps: when the touch display screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor; judging whether the plurality of signal values meet a calibration condition; when the plurality of signal values satisfy the calibration condition, calibrating the current background noise value of the proximity sensor to an initial predetermined background noise value. In the calibration method, the electronic device, the storage medium and the computer device according to the embodiments of the application, when the touch display screen is in an off state, the current background noise value of the proximity sensor is calibrated to the initial predetermined background noise value according to a plurality of signal values generated by the proximity sensor, so that the electronic device can accurately control the display state of the touch display screen according to the signal values of the proximity sensor during a call.

Description

校准方法、电子装置、存储介质和计算机设备Calibration method, electronic device, storage medium and computer equipment

技术领域technical field

本申请涉及电子技术领域,特别涉及一种校准方法、电子装置、存储介质和计算机设备。The present application relates to the field of electronic technology, and in particular, to a calibration method, electronic device, storage medium and computer equipment.

背景技术Background technique

目前,全面屏手机已经成为各大手机厂商的主推产品。在相关技术中,为了提高手机的屏占比,接近传感器被设置在显示屏的下方。然而,接近传感器设置在显示屏的下方,在显示屏受到外力作用时,显示屏可以将外力传递至接近传感器,致使接近传感器在工作时产生的数据无法准确地判断显示屏与外界物体之间的状态,导致显示屏的显示状态无法准确地控制。At present, full-screen mobile phones have become the main products of major mobile phone manufacturers. In the related art, in order to increase the screen ratio of the mobile phone, the proximity sensor is arranged below the display screen. However, the proximity sensor is arranged below the display screen. When the display screen is subjected to external force, the display screen can transmit the external force to the proximity sensor, so that the data generated by the proximity sensor during operation cannot accurately determine the relationship between the display screen and external objects. state, so that the display state of the display cannot be accurately controlled.

申请内容Application content

有鉴于此,本申请的实施例提供了一种校准方法、电子装置、存储介质和计算机设备。In view of this, embodiments of the present application provide a calibration method, an electronic device, a storage medium, and a computer device.

本申请的实施例提供了一种校准方法,用于电子装置的接近传感器,所述电子装置包括触摸显示屏,所述接近传感器设置在所述触摸显示屏的下方,所述校准方法包括:An embodiment of the present application provides a calibration method for a proximity sensor of an electronic device, where the electronic device includes a touch display screen, the proximity sensor is disposed below the touch display screen, and the calibration method includes:

在所述触摸显示屏处于熄灭状态时,获取所述接近传感器产生的多个信号值;When the touch display screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor;

判断所述多个信号值是否满足校准条件;judging whether the multiple signal values meet the calibration conditions;

在所述多个信号值满足所述校准条件时,将所述接近传感器的当前底噪值校准为初始预定底噪值。When the plurality of signal values satisfy the calibration condition, the current noise floor value of the proximity sensor is calibrated to be an initial predetermined noise floor value.

本申请的实施例提供了一种电子装置,电子装置包括触摸显示屏、接近传感器和处理器,所述接近传感器设置在所述触摸显示屏下方,所述处理器用于:An embodiment of the present application provides an electronic device, the electronic device includes a touch display screen, a proximity sensor and a processor, the proximity sensor is disposed below the touch display screen, and the processor is used for:

在所述触摸显示屏处于熄灭状态时,获取所述接近传感器产生的多个信号值;When the touch display screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor;

判断所述多个信号值是否满足校准条件;judging whether the multiple signal values meet the calibration conditions;

在所述多个信号值满足所述校准条件时,将所述接近传感器的当前底噪值校准为初始预定底噪值。When the plurality of signal values satisfy the calibration condition, the current noise floor value of the proximity sensor is calibrated to be an initial predetermined noise floor value.

本申请的实施例提供了一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行所述的校准方法。Embodiments of the present application provide one or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to execute the calibration method described.

一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行以上任一项所述的校准方法。A computer device includes a memory and a processor, the memory stores computer-readable instructions, and when the instructions are executed by the processor, causes the processor to execute any of the calibration methods described above.

本申请实施方式的校准方法、电子装置、存储介质和计算机设备中,在触摸显示屏处于熄灭状态时根据接近传感器产生的多个信号值将接近传感器的当前底噪值校准为初始预定底噪值,使得电子装置可以在通话时根据接近传感器的信号值准确地控制触摸显示屏的显示状态。In the calibration method, electronic device, storage medium and computer equipment of the embodiments of the present application, when the touch screen is in an off state, the current noise floor value of the proximity sensor is calibrated to an initial predetermined noise floor value according to a plurality of signal values generated by the proximity sensor , so that the electronic device can accurately control the display state of the touch display screen according to the signal value of the proximity sensor during a call.

附图说明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 state schematic diagram of an electronic device according to some embodiments of the present application;

图14是本申请某些实施方式的电子装置的另一个状态示意图;FIG. 14 is another state schematic diagram of the electronic device according to some embodiments of the present application;

图15是图14所示的电子装置的沿A-A向的部分截面示意图;15 is a partial cross-sectional schematic view of the electronic device shown in FIG. 14 along the A-A direction;

图16是本申请某些实施方式的电子装置的导光件的立体示意图;16 is a schematic perspective view of a light guide member of an electronic device according to some embodiments of the present application;

图17是本申请某些实施方式的电子装置的导光件的另一个立体示意图;17 is another perspective schematic diagram of a light guide member of an electronic device according to some embodiments of the present application;

图18是本申请某些实施方式的校准方法的流程示意图;18 is a schematic flowchart of a calibration method according to some embodiments of the present application;

图19是本申请某些实施方式的控制装置的模块示意图;19 is a schematic block diagram of a control device according to some embodiments of the present application;

图20-图21是本申请某些实施方式的校准方法的流程示意图;20-21 are schematic flowcharts of calibration methods according to certain embodiments of the present application;

图22是本申请某些实施方式的电子装置的使用场景示意图;22 is a schematic diagram of a usage scenario of an electronic device according to some embodiments of the present application;

图23是本申请某些实施方式的计算机设备的模块示意图。FIG. 23 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 in 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、姿态传感器102和处理器23。触摸显示屏10包括显示层13,显示层13包括显示区1311。接近传感器16设置在触摸显示屏10下方。进一步地,接近传感器16设置在显示区1311下方。接近传感器16用于发射红外光并接收被物体反射的红外光以检测物体至电子装置100的距离。Referring to FIGS. 1-3 , an embodiment of the present application provides an electronic device 100 . The electronic device 100 includes a touch display screen 10 , a proximity sensor 16 , a gesture sensor 102 and a processor 23 . The touch display screen 10 includes a display layer 13 , and the display layer 13 includes a display area 1311 . A proximity sensor 16 is provided below the touchscreen display 10 . Further, the proximity sensor 16 is disposed below the display area 1311 . The proximity 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 the electronic device 100 .

示例性的,电子装置100可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种(图1中只示例性的示出了一种形态)。具体的,电子装置100可以为移动电话或智能电话(例如,基于iPhone TM,基于Android TM的电话),便携式游戏设备(例如Nintendo DS TM,PlayStation Portable TM,Gameboy Advance TM,iPhone TM)、膝上型电脑、PDA、便携式互联网设备、音乐播放器以及数据存储设备,其他手持设备以及诸如手表、入耳式耳机、吊坠、头戴式耳机等,电子装置100还可以为其他的可穿戴设备(例如,诸如电子眼镜、电子衣服、电子手镯、电子项链、电子纹身、电子设备或智能手表的头戴式设备(HMD))。Exemplarily, the electronic 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, the electronic 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 and devices such as watches, in-ear headphones, pendants, headphones, etc., the electronic device 100 may also be other wearable devices (eg, 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)播放器,便携式医疗设备以及数码相机及其组合。The electronic 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, the electronic 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 the proximity 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 the mobile phone is brought close to the head, the proximity 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 the processor 23 touches the touch according to the detection information. Display 10. When the mobile phone is far away from the head, the processor 23 reopens the touch display screen 10 according to the detection information fed back by the proximity 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 the proximity sensor 16 to emit and receive infrared light. The display 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, the touch display screen 10 may be provided on the housing 20 .

请参阅图3,在一些实施方式中,触摸显示屏10还包括透光盖板11和触控层12。透光盖板11设置在触控层12上。触控层12设置在显示层13上。显示层13的上表面131朝向触控层12。透光盖板11和触控层12对可见光透光率和红外光透光率均大于90%。Referring to FIG. 3 , in some embodiments, the touch display screen 10 further includes a light-transmitting cover plate 11 and a touch layer 12 . The light-transmitting cover plate 11 is disposed on the touch layer 12 . The touch layer 12 is disposed on the display layer 13 . The upper surface 131 of the display layer 13 faces the touch layer 12 . The transmittance of the light-transmitting cover plate 11 and the touch 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, the touch 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 the touch layer 12 . It should be noted that the fact that the touch layer 12 is disposed on the display layer 13 may mean that the touch layer 12 is in contact with the display layer 13 . For example, In-Cell or On-Cell technology can be used to attach the touch layer 12 to the display layer 13 , which can effectively reduce the weight of the display layer 13 and reduce the overall thickness of the display layer 13 . The fact that the touch layer 12 is disposed on the display layer 13 may also mean that the touch layer 12 is disposed above the display layer 13 and is spaced apart from the display layer 13 .

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

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

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

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

具体地,一般情况下,当用户在接听或者拨打电话时,电子装置100靠近人体头部,发射器1611发出红外光,接收器1612接收反射回来的红外光。处理器23计算红外光从发射到反射回来的时间,便发出相应指令控制屏幕关闭。当电子装置100远离头部时,处理器23再次根据反馈回来的数据进行计算并发出指令,便重新打开屏幕。如此,不仅防止了用户的误操作,而且节省了手机的电量。Specifically, in general, when the user is answering or making a call, the electronic device 100 is close to the head of the human body, the transmitter 1611 emits infrared light, and the receiver 1612 receives the reflected infrared light. The processor 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 the electronic device 100 is far away from the head, the processor 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 the proximity sensor 16 on the lower surface 132 is located within the orthographic projection of the first coating layer 14 on the lower surface 132 .

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

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

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

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

具体地,当设置第一涂布层14正投影于下表面132的面积等于接近传感器16正投影于下表面132的面积的情况时,由于在放置接近传感器16的空间体积比接近传感器16的体积大,导致从外部环境观看电子装置100时,围绕接近传感器16周围的空间出现漏光现象。因此,通过设置包围接近传感器16的遮光层17,填补了接近传感器16与周围空间的缝隙,可以消除这种漏光现象。遮光层17可以是采用黑色材质制成的泡棉,也可以是其他黑色的泡沫塑料或者橡胶。当然,这些材料仅作为示例性的而本申请的实施例并不限于此。Specifically, when the area where the first coating layer 14 is projected on the lower surface 132 is equal to the area where the proximity sensor 16 is projected on the lower surface 132 , since the volume of the space where the proximity sensor 16 is placed is larger than the volume of the proximity sensor 16 When the electronic device 100 is viewed from the external environment, light leakage occurs in the space surrounding the proximity sensor 16 . Therefore, by providing the light shielding layer 17 surrounding the proximity sensor 16, the gap between the proximity sensor 16 and the surrounding space is filled, and such a light leakage phenomenon can be eliminated. The light 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 the electronic device 100 is viewed from the outside, the proximity sensor 16 disposed under the first 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 the proximity sensor 16 can stably emit and receive infrared light, and ensure the normal operation of the proximity sensor 16 .

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

具体地,第一涂布层14主要用于透过红外光和遮挡接近传感器16,但由于第一涂布层14使用的IR油墨的成本较普通黑色油墨高,若将下表面132全部涂布IR油墨,将不利于降低生产成本,并且,普通黑色油墨相比IR油墨对可见光的透光率能够达到更低,遮挡效果更为突出。如此,通过设置第二涂布层15,不仅有利于降低生产成本,而且遮挡效果更符合工艺要求。Specifically, the first coating layer 14 is mainly used to transmit infrared light and block the proximity sensor 16, but since the cost of the IR ink used in the first coating layer 14 is higher than that of ordinary black ink, if the entire lower 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 the second 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, the electronic device 100 further includes a buffer layer 18 covering the lower surface 132 and avoiding the proximity sensor 16 .

具体地,缓冲层18用于减缓冲击力和防震以保护触控层12和显示层13及其内部结构,避免显示层13因受到外界的冲击作用而损坏。缓冲层18可以由泡棉或者泡沫塑料或者橡胶或者其他软质材料制成。当然,这些缓冲材料仅作为示例性的而本申请的实施例并不限于此。此外,在设置缓冲层18的过程中避让接近传感器16,是为了防止缓冲层18遮挡接近传感器16,以免接近传感器16在发射和接收红外光的过程中受到影响。Specifically, the buffer layer 18 is used for alleviating impact force and shock resistance to protect the touch layer 12 and the display layer 13 and their internal structures, and prevent the display layer 13 from being damaged by external impact. The buffer 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 the proximity sensor 16 in the process of disposing the buffer layer 18 is to prevent the buffer layer 18 from blocking the proximity sensor 16 so as to prevent the proximity 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, the electronic device 100 further includes a metal sheet 19 covering the buffer layer 18 and avoiding the proximity sensor 16 .

具体地,金属片19用于屏蔽电磁干扰及接地,具有扩散温升的作用。金属片19可以采用铜箔、铝箔等金属材料裁剪而成。当然,这些金属材料仅作为示例性的而本申请的实施例并不限于此。此外,在设置金属片19的过程中避让接近传感器16,是为了防止金属片19遮挡接近传感器16,以免接近传感器16在发射和接收红外光的过程中受到影响。Specifically, the metal sheet 19 is used for shielding electromagnetic interference and grounding, and has the function of diffusing temperature rise. The metal 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 the proximity sensor 16 in the process of disposing the metal sheet 19 is to prevent the metal sheet 19 from blocking the proximity sensor 16 so as to prevent the proximity sensor 16 from being affected in the process of emitting and receiving infrared light.

请一并参阅图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 electronic device 100 further includes a casing 20 , a receiving casing 200 , a light guide member 51 and a light sensor 5 . The receiving shell 200 is slidably connected with the casing 20 and can extend out of the casing 20 or retract into the casing 20 . The receiving case 200 is provided with a light entrance hole 2006 , and the light guide member 51 is accommodated inside the receiving case 200 and partially extends into the light entrance hole 2006 . The light guide member 51 has a light incident surface 511 and a light exit surface 512 opposite to each other. The light incident surface 511 faces the outside of the receiving case 200 . The light-emitting surface 512 faces the interior of the receiving case 200 . The light sensor 5 is accommodated in the accommodating case 200 and faces the light emitting surface 512 .

如此,由于入光孔2006设置于电子装置100的收容壳200中,而非设置在电子装置100的触摸显示屏10,因此入光孔2006的设置既能够满足光感应器5接收环境光的需求,还不会限制触摸显示屏10的屏占比,使得电子装置100的屏占比较大。In this way, since the light incident hole 2006 is disposed in the receiving case 200 of the electronic device 100 instead of being disposed in the touch display screen 10 of the electronic device 100 , the light incident hole 2006 can meet the requirements of the light sensor 5 to receive ambient light. , the screen ratio of the touch display screen 10 is not limited, so that the screen ratio of the electronic device 100 is relatively large.

具体地,请参照图13-14,以电子装置100处于该视角为参照进行定义,电子装置100具有宽度方向X、长度方向Y及厚度方向Z,长度方向Y垂直于宽度方向X,厚度方向Z垂直于宽度方向X和长度方向Y。13-14 , the electronic device 100 is defined with reference to this viewing angle. The electronic device 100 has a width direction X, a length direction Y, and a thickness direction Z, and the length direction Y is perpendicular to the width direction X and the thickness direction Z. Perpendicular to the width direction X and the length direction Y.

壳体20还包括顶端面1002和与顶端面1002相背设置的底端面1003。一般的,顶端面1002和底端面1003可沿宽度方向X延伸。也即顶端面1002和底端面1003为电子装置100的短边。底端面1003用于排布电子装置100的连接器、麦克风、扬声器等。The housing 20 also includes a top end surface 1002 and a bottom end surface 1003 disposed opposite the top end surface 1002 . Generally, the top end surface 1002 and the bottom end surface 1003 may extend along the width direction X. That is, the top end surface 1002 and the bottom end surface 1003 are the short sides of the electronic device 100 . The bottom end surface 1003 is used for arranging connectors, microphones, speakers, etc. of the electronic device 100 .

如图14,壳体20的顶部上开设有容纳槽1004,容纳槽1004自壳体20的顶部向壳体20内部凹陷。容纳槽1004贯穿壳体20的侧面。收容壳200于容纳槽1004中与壳体20滑动连接。换言之,收容壳200滑动连接壳体20,以伸出或缩回容纳槽1004。As shown in FIG. 14 , an accommodating groove 1004 is opened on the top of the casing 20 , and the accommodating groove 1004 is recessed from the top of the casing 20 to the interior of the casing 20 . The receiving groove 1004 penetrates the side surface of the housing 20 . The accommodating case 200 is slidably connected to the housing 20 in the accommodating groove 1004 . In other words, the accommodating case 200 is slidably connected to the housing 20 to extend or retract the accommodating groove 1004 .

收容壳200内还可以设置功能元件300,功能元件300例如为摄像头、听筒或激光发射器等,摄像头通过入光孔2006露出,例如功能元件300通过收容壳200的侧面的入光孔2006露出。在收容壳200伸出壳体20时,摄像头可以拍摄电子装置100的外部图像。摄像头例如为RGB摄像头等摄像头。A functional element 300 can also be set in the housing case 200 . The functional element 300 is, for example, a camera, an earpiece or a laser transmitter. The camera is exposed through the light entrance hole 2006 . When the receiving case 200 extends out of the case 20 , the camera can capture an external image of the electronic device 100 . The camera is, for example, a camera such as an RGB camera.

在某些实施方式中,收容壳200具有外侧面,入光面511部分或全部相对外侧面凸出。如此,收容壳200对入光面511的遮挡较少,甚至完全不遮挡入光面511,使得入光面511能够接收更多环境光线,导光件5151能够更好地引导外界光线进入光感传感器5。In some embodiments, the receiving case 200 has an outer side, and part or all of the light incident surface 511 protrudes from the outer side. In this way, the light incident surface 511 is less blocked by the receiving case 200, or even not blocked at all, so that the light incident surface 511 can receive more ambient light, and the light guide member 5151 can better guide the external light into the light sensor sensor 5.

本实施方式中,收容壳200的外侧面包括顶面2003,顶面2003开设有入光孔2006。导光件51与位于顶面2003的入光孔2006对应。或者说,光感应器5通过导光件51接收经过位于顶面2003的入光孔2006的光线。如此,无论收容壳200伸出还是缩回壳体20,光感应器5均能感测环境光。入光面511部分或全部相对顶面2003凸出。In this embodiment, the outer side surface of the housing case 200 includes a top surface 2003 , and the top surface 2003 is provided with a light incident hole 2006 . The light guide member 51 corresponds to the light incident hole 2006 on the top surface 2003 . In other words, the light sensor 5 receives the light passing through the light incident hole 2006 on the top surface 2003 through the light guide member 51 . In this way, the light sensor 5 can sense ambient light regardless of whether the housing case 200 is extended or the housing case 20 is retracted. Part or all of the light incident surface 511 protrudes from the top surface 2003 .

请参阅图15-图17,入光面511具有中心区域5111和围绕中心区域5111设置的边缘区域5112。中心区域5111相对边缘区域5112凸出。此时,入光面511的面积较大,更多的外界光线能够进入导光件51。其中,入光面511为弧面。Referring to FIGS. 15-17 , the light incident surface 511 has a central area 5111 and an edge area 5112 disposed around the central area 5111 . The central area 5111 is convex relative to the edge area 5112 . At this time, the area of the light incident surface 511 is larger, and more external light can enter the light guide member 51 . The light incident surface 511 is an arc surface.

在某些实施方式中,收容壳200具有内侧面2063,内侧面2063形成定位槽2064,定位槽2064连通入光孔2006,导光件51包括入光部513和出光部514,入光面511为入光部513背离出光部514的端面,出光面512为出光部514背离入光部513的端面,入光部513穿设于入光孔2006,出光部514部分或全部嵌设于定位槽2064。In some embodiments, the receiving case 200 has an inner side surface 2063, the inner side surface 2063 forms a positioning groove 2064, the positioning groove 2064 communicates with the light entrance hole 2006, the light guide member 51 includes a light entrance portion 513 and a light exit portion 514, and the light entrance surface 511 The light incident portion 513 is the end face of the light incident portion 513 facing away from the light exit portion 514, and the light exit surface 512 is the end face of the light exit portion 514 away from the light incident portion 513. The light incident portion 513 passes through the light incident hole 2006, and the light exit portion 514 is partially or completely embedded in the positioning groove. 2064.

此时,导光件5151与收容壳200彼此固定,不易滑动。同时,出光部514朝向入光部513513的面上可粘接密封件,密封件连续地环绕入光部513513设置。密封件被抵持在出光部514与定位槽2064的槽壁面上,以实现密封,防止外界粉尘、水汽等经入光孔2006进入收容壳200的内部。At this time, the light guide member 5151 and the accommodating case 200 are fixed to each other and are not easy to slide. At the same time, the surface of the light exit portion 514 facing the light incident portion 513513 can be bonded with a sealing member, and the sealing member is continuously arranged around the light incident portion 513513 . The sealing member is pressed against the groove wall surfaces of the light exit portion 514 and the positioning groove 2064 to achieve sealing and prevent external dust, water vapor, etc. from entering the interior of the receiving case 200 through the light entrance hole 2006 .

在某些实施方式中,出光面512的面积大于入光面511的面积,在入光面511向出光面512的方向上,入光部513的横截面积递增。In some embodiments, the area of the light exit surface 512 is larger than the area of the light entrance surface 511 , and the cross-sectional area of the light entrance portion 513 increases in the direction from the light entrance surface 511 to the light exit surface 512 .

具体地,入光部513的形状大致呈圆台形,有利于光线在入光部3513中传递,且能够扩散开,以均匀进入出光部514。Specifically, the shape of the light incident portion 513 is roughly truncated, which facilitates the transmission of light in the light incident portion 3513 , and can be diffused so as to enter the light exit portion 514 uniformly.

在某些实施方式中,导光件51还包括定位部515,定位部515与出光部514围设出容置空间516,容置空间516用于收容光感应器5。收容于容置空间516的光感传感器5能够被定位部515及出光部514所保护,避免在电子装置100跌落或受到撞击时受损。其中,出光面512与光感传感器5的感光区52之间形成间隙。In some embodiments, the light guide member 51 further includes a positioning portion 515 . The positioning portion 515 and the light exit portion 514 define an accommodating space 516 , and the accommodating space 516 is used for accommodating the light sensor 5 . The light sensor 5 accommodated in the accommodating space 516 can be protected by the positioning portion 515 and the light emitting portion 514 to avoid damage when the electronic device 100 is dropped or struck. Wherein, a gap is formed between the light emitting surface 512 and the photosensitive area 52 of the photosensitive sensor 5 .

请参阅图18,本申请提供了一种校准方法。校准方法用于电子装置100的接近传感器16。校准方法包括步骤:Referring to Figure 18, the present application provides a calibration method. The calibration method is used for the proximity sensor 16 of the electronic device 100 . The calibration method includes the steps:

S12:在所述触摸显示屏10处于熄灭状态时,获取所述接近传感器16产生的多个信号值;S12: When the touch display screen 10 is in an off state, acquire multiple signal values generated by the proximity sensor 16;

S14:判断所述多个信号值是否满足校准条件;和S14: judging whether the plurality of signal values satisfy the calibration condition; and

S16:在所述多个信号值满足所述校准条件时,将所述接近传感器16的当前底噪值校准为初始预定底噪值。S16: When the multiple signal values satisfy the calibration condition, calibrate the current noise floor value of the proximity sensor 16 to an initial predetermined noise floor value.

本申请实施方式的电子装置100包括触摸显示屏10、接近传感器16和处理器23,接近传感器16设置在触摸显示屏10下方。上述校准方法的步骤S12、S14和S16可以由处理器23实现。或者说,处理器23用于:在所述触摸显示屏10处于熄灭状态时,获取所述接近传感器16产生的多个信号值;判断所述多个信号值是否满足校准条件,以及在所述多个信号值满足所述校准条件时,将所述接近传感器16的当前底噪值校准为初始预定底噪值。The electronic device 100 according to the embodiment of the present application includes a touch display screen 10 , a proximity sensor 16 and a processor 23 , and the proximity sensor 16 is disposed below the touch display screen 10 . Steps S12 , S14 and S16 of the above calibration method can be implemented by the processor 23 . In other words, the processor 23 is configured to: acquire multiple signal values generated by the proximity sensor 16 when the touch display screen 10 is in an off state; determine whether the multiple signal values satisfy the calibration condition, and perform a When a plurality of signal values satisfy the calibration condition, the current noise floor value of the proximity sensor 16 is calibrated to an initial predetermined noise floor value.

请参阅图19,本申请实施方式还提供了一种校准装置1000,本申请实施方式的校准方法可以由本申请实施方式的校准装置1000实现。Referring to FIG. 19 , the embodiment of the present application further provides a calibration apparatus 1000 , and the calibration method of the embodiment of the present application can be implemented by the calibration apparatus 1000 of the embodiment of the present application.

具体地,校准装置1000包括获取模块210、判断模块220和校准模块230,获取模块210用于在所述触摸显示屏10处于熄灭状态时,获取所述接近传感器16产生的多个信号值。判断模块220用于判断所述多个信号值是否满足校准条件。校准模块230用于在所述多个信号值满足所述校准条件时,将所述接近传感器16的当前底噪值校准为初始预定底噪值。Specifically, the calibration apparatus 1000 includes an acquisition module 210 , a determination module 220 and a calibration module 230 , and the acquisition module 210 is configured to acquire a plurality of signal values generated by the proximity sensor 16 when the touch display screen 10 is in an off state. The judging module 220 is configured to judge whether the plurality of signal values satisfy the calibration condition. The calibration module 230 is configured to calibrate the current noise floor value of the proximity sensor 16 to an initial predetermined noise floor value when the plurality of signal values satisfy the calibration condition.

也即是说,步骤S14可以由获取模块210实现,步骤S15可以由校准模块230实现,步骤S16可以由判断模块220实现。That is to say, step S14 may be implemented by the acquisition module 210 , step S15 may be implemented by the calibration module 230 , and step S16 may be implemented by the determination module 220 .

具体的,电子装置100在出厂时会将接近传感器16的底噪值校准为一个初始预定底噪值,并将接近传感器16的初始预定底噪值存储。当电子装置100来电时,接近传感器16开启并产生信号值,电子装置100根据接近传感器16产生的信号值与初始预定底噪值的差值判断接近传感器16是否被遮蔽,并在接近传感器16被遮蔽时控制触摸显示屏10处于熄灭状态。Specifically, the electronic device 100 will calibrate the noise floor value of the proximity sensor 16 to an initial predetermined noise floor value when the electronic device 100 leaves the factory, and store the initial predetermined noise floor value of the proximity sensor 16 . When the electronic device 100 receives an incoming call, the proximity sensor 16 is turned on and generates a signal value. The electronic device 100 determines whether the proximity sensor 16 is blocked according to the difference between the signal value generated by the proximity sensor 16 and the initial predetermined noise floor value. When shielded, the touch display screen 10 is controlled to be in an off state.

例如,接近传感器16的初始预定底噪值为10,在电子装置100通话时,接近传感器16产生的信号值为200,接近传感器16产生的信号值与初始预定底噪值的差值为190,此时,如果远离阈值为160,那么,差值190大于远离阈值160(190>160),此时可以判断接近传感器16没有被遮蔽,可控制触摸显示屏10处于点亮状态。For example, the initial predetermined noise floor value of the proximity sensor 16 is 10. When the electronic device 100 is talking, the signal value generated by the proximity sensor 16 is 200, and the difference between the signal value generated by the proximity sensor 16 and the initial predetermined noise floor value is 190. At this time, if the distance threshold is 160, then the difference 190 is greater than the distance threshold 160 (190>160). At this time, it can be determined that the proximity sensor 16 is not blocked, and the touch screen 10 can be controlled to be in a lighted state.

然而,在电子装置100的使用过程中,触摸显示屏10可能在电子装置100受到跌落、撞击等冲击影响,进而使得接近传感器16受到压迫等影响,导致接近传感器16的底噪值增大,使得电子装置100无法准确地控制触摸显示屏10的显示状态。However, during the use of the electronic device 100, the touch display screen 10 may be affected by a drop, impact, etc. on the electronic device 100, thereby causing the proximity sensor 16 to be affected by compression, etc., resulting in an increase in the noise floor value of the proximity sensor 16, so that the The electronic device 100 cannot accurately control the display state of the touch display screen 10 .

例如,接近传感器16受到冲击时,接近传感器16的当前底噪值可能变为180,在电子装置100通话时,接近传感器16产生的信号值为200,接近传感器16产生的信号值与当前底噪值的差值为20,此时,如果接近阈值为100,那么,差值20小于接近阈值100(20<100),此时可以判断接近传感器16被遮蔽,则控制触摸显示屏10处于熄灭状态。而正常情况下,接近传感器16的底噪值没有变化的情况下,接近传感器16被判断为没有被遮蔽的状态。For example, when the proximity sensor 16 is impacted, the current noise floor value of the proximity sensor 16 may become 180. When the electronic device 100 is talking, the signal value generated by the proximity sensor 16 is 200, and the signal value generated by the proximity sensor 16 is the same as the current noise floor value. The difference between the values is 20. At this time, if the proximity threshold is 100, then the difference 20 is less than the proximity threshold 100 (20<100). At this time, it can be determined that the proximity sensor 16 is blocked, and the touch screen 10 is controlled to be in an off state. . On the other hand, under normal conditions, when the noise floor value of the proximity sensor 16 does not change, the proximity sensor 16 is determined to be in a state that is not blocked.

如此可见,当接近传感器16的底噪值发生改变时,可能对接近传感器16的状态产生误判,无法准确地控制触摸显示屏10的显示状态。It can be seen from this that when the noise floor value of the proximity sensor 16 changes, misjudgment of the state of the proximity sensor 16 may occur, and the display state of the touch display screen 10 cannot be accurately controlled.

综上,本申请实施方式的校准方法和电子装置100,在触摸显示屏10处于熄灭状态时根据接近传感器16产生的多个信号值将接近传感器16的当前底噪值校准为初始预定底噪值,使得电子装置100可以在通话时根据接近传感器16的信号值准确地控制触摸显示屏10的显示状态。To sum up, the calibration method and the electronic device 100 according to the embodiments of the present application calibrate the current noise floor value of the proximity sensor 16 to an initial predetermined noise floor value according to a plurality of signal values generated by the proximity sensor 16 when the touch display screen 10 is in an off state , so that the electronic device 100 can accurately control the display state of the touch display screen 10 according to the signal value of the proximity sensor 16 during a call.

具体地,在步骤S12中,触摸显示屏10的显示状态包括熄灭状态和点亮状态。熄灭状态指的是电子装置100的触摸显示屏10断电,触摸显示屏10无法发光,此时,显示区1311呈现为黑色外观。Specifically, in step S12, the display state of the touch display screen 10 includes an off state and an on state. The off state means that the touch display screen 10 of the electronic device 100 is powered off, and the touch display screen 10 cannot emit light. At this time, the display area 1311 has a black appearance.

触摸显示屏10的点亮状态指的是触摸显示屏10通电,显示区1311可以发光而显示内容。The lighting state of the touch display screen 10 means that the touch display screen 10 is powered on, and the display area 1311 can emit light to display content.

触摸显示屏10处于熄灭状态时,电子装置100可以处于通话状态,也可以处于非通话状态。较佳地,电子装置100处于非通话状态,也即是说,在电子装置100处于非通话状态且熄灭状态时,获取接近传感器16产生的多个信号。When the touch screen 10 is in an off state, the electronic device 100 may be in a call state, or may be in a non-call state. Preferably, the electronic device 100 is in a non-communication state, that is, when the electronic device 100 is in a non-communication state and is turned off, the plurality of signals generated by the proximity sensor 16 are acquired.

请参阅图20,在某些实施方式中,步骤S14包括:Referring to FIG. 20, in some embodiments, step S14 includes:

S142:判断所述多个信号值是否稳定,并且每个所述信号值是否均小于第一阈值;S142: Determine whether the multiple signal values are stable, and whether each of the signal values is less than a first threshold;

步骤S16包括:Step S16 includes:

S162:在所述多个信号值稳定并且每个所述信号值均小于第一阈值时,将所述接近传感器16的当前底噪值校准为初始预定底噪值。S162: When the plurality of signal values are stable and each of the signal values is less than a first threshold, calibrate the current noise floor value of the proximity sensor 16 to an initial predetermined noise floor value.

在某些实施方式中,处理器23用于:判断所述多个信号值是否稳定,并且每个所述信号值是否均小于第一阈值;在所述多个信号值稳定并且每个所述信号值均小于第一阈值时,将所述接近传感器16的当前底噪值校准为初始预定底噪值。In some embodiments, the processor 23 is configured to: determine whether the plurality of signal values are stable, and whether each of the signal values is less than a first threshold; when the plurality of signal values are stable and each of the signal values is stable When the signal values are all smaller than the first threshold, the current noise floor value of the proximity sensor 16 is calibrated to an initial predetermined noise floor value.

具体地,在步骤S142中,判断多个信号值是否稳定可以使得接近传感器16的校准过程更加准确。例如,当接近传感器16产生的多个信号值稳定时,表明电子装置100的状态稳定。每个信号值均小于第一阈值时,表明电子装置100处于特定的状态。Specifically, in step S142, judging whether the multiple signal values are stable can make the calibration process of the proximity sensor 16 more accurate. For example, when the plurality of signal values generated by the proximity sensor 16 are stable, it indicates that the state of the electronic device 100 is stable. When each signal value is less than the first threshold, it indicates that the electronic device 100 is in a specific state.

可以理解的是,接近传感器16没有被遮挡时,接近传感器16产生的信号值即为接近传感器16的当前底噪值。一般地,接近传感器16的当前底噪值小于一阈值。例如,在应用接近传感器16前,可以将接近传感器16的底噪值矫正为小于1000,也即是说,接近传感器16无论受到怎样的影响,在接近传感器16没有被遮挡的情况下,接近传感器16产生的信号值均小于1000。It can be understood that when the proximity sensor 16 is not blocked, the signal value generated by the proximity sensor 16 is the current noise floor value of the proximity sensor 16 . Typically, the current noise floor value of the proximity sensor 16 is less than a threshold. For example, before applying the proximity sensor 16, the noise floor value of the proximity sensor 16 can be corrected to be less than 1000, that is, no matter how the proximity sensor 16 is affected, if the proximity sensor 16 is not blocked, the proximity sensor 16 produced signal values less than 1000.

在步骤S142中,第一阈值可以设置为1000。此时,每个信号值均小于1000时,此时可以判定接近传感器16没有被遮挡,在接近传感器16没有被遮挡时将接近传感器16的当前底噪值校准为初始预定底噪值,使得接近传感器16的校准更加准确。In step S142, the first threshold may be set to 1000. At this time, when each signal value is less than 1000, it can be determined that the proximity sensor 16 is not blocked. When the proximity sensor 16 is not blocked, the current noise floor value of the proximity sensor 16 is calibrated to the initial predetermined noise floor value, so that the proximity sensor 16 is not blocked. Calibration of sensor 16 is more accurate.

例如,接近传感器16依次产生的5个信号值分别为210、211、212、210、213,此时,5个信号值均小于1000,可以将接近传感器16的当前底噪值校准至10。For example, the five signal values sequentially generated by the proximity sensor 16 are 210, 211, 212, 210, and 213. At this time, the five signal values are all less than 1000, and the current noise floor value of the proximity sensor 16 can be calibrated to 10.

可以理解,可以根据接近传感器16产生的信号值判断接近传感器16的当前底噪值是否校准至10。例如,接近传感器16的当前底噪值校准后,接近传感器16产生的信号值为10,那么,则可以判定接近传感器16的当前底噪值已经校准至10。It can be understood that whether the current noise floor value of the proximity sensor 16 is calibrated to 10 can be determined according to the signal value generated by the proximity sensor 16 . For example, after the current noise floor value of the proximity sensor 16 is calibrated, the signal value generated by the proximity sensor 16 is 10, then it can be determined that the current noise floor value of the proximity sensor 16 has been calibrated to 10.

请参阅图21,在某些实施方式中,所述判断所述多个信号值是否稳定的步骤包括:Referring to FIG. 21, in some embodiments, the step of judging whether the multiple signal values are stable includes:

S1421:将所述多个信号值中的最大信号值及最小信号值去除;S1421: Remove the maximum signal value and the minimum signal value from the plurality of signal values;

S1422:判断剩余的多个所述信号值中的任意两个所述信号值的差值的绝对值是否均小于第二阈值;S1422: Determine whether the absolute value of the difference between any two of the remaining plurality of the signal values is smaller than a second threshold;

S1423:在所述差值的绝对值小于所述第二阈值时判定所述多个信号值稳定。S1423: Determine that the plurality of signal values are stable when the absolute value of the difference is smaller than the second threshold.

在某些实施方式中,处理器23用于:将所述多个信号值中的最大信号值及最小信号值去除;判断剩余的多个所述信号值中的任意两个所述信号值的差值的绝对值是否均小于第二阈值;以及在所述差值的绝对值小于所述第二阈值时判定所述多个信号值稳定。In some embodiments, the processor 23 is configured to: remove the maximum signal value and the minimum signal value among the plurality of signal values; determine the difference between any two of the remaining plurality of the signal values whether the absolute values of the differences are all smaller than a second threshold; and determining that the plurality of signal values are stable when the absolute values of the differences are smaller than the second threshold.

也即是说,步骤S1421、S1422及S1423可以由处理器23实现。That is to say, steps S1421 , S1422 and S1423 can be implemented by the processor 23 .

在一个例子中,接近传感器16依次产生的8个信号值为210、211、212、210、213、212、208、215。第二阈值可为10。那么去除最大信号值215及最小信号值208后,剩余的6个信号值为210、211、212、210、213、212,在剩余的6个信号值中,任意两个信号值的差值的绝对值小于10,此时,可以判定8个信号值是稳定的。In one example, the eight signal values generated by the proximity sensor 16 in sequence are 210, 211, 212, 210, 213, 212, 208, and 215. The second threshold may be ten. Then after removing the maximum signal value 215 and the minimum signal value 208, the remaining 6 signal values are 210, 211, 212, 210, 213, 212. Among the remaining 6 signal values, the difference between any two signal values The absolute value is less than 10, at this time, it can be determined that the 8 signal values are stable.

如此,判断多个信号值稳定的方法简单有效,避免计算过于复杂。In this way, the method for judging the stability of multiple signal values is simple and effective, and the calculation is avoided from being too complicated.

可以理解,所述判断所述多个信号值是否稳定的步骤包括:It can be understood that the step of judging whether the multiple signal values are stable includes:

S1422:在所述差值的绝对值大于或等于所述第二阈值时判定所述多个信号值不稳定。S1422: Determine that the plurality of signal values are unstable when the absolute value of the difference is greater than or equal to the second threshold.

在某些实施方式中,步骤S12包括:In some embodiments, step S12 includes:

在所述电子装置100每次通话结束后且所述触摸显示屏10处于熄灭状态时,获取所述接近传感器16产生的多个信号值。After each call of the electronic device 100 ends and the touch display screen 10 is in an off state, a plurality of signal values generated by the proximity sensor 16 are acquired.

在某些实施方式中,处理器23用于在所述电子装置100每次通话结束后且所述触摸显示屏10处于熄灭状态时,获取所述接近传感器16产生的多个信号值。In some embodiments, the processor 23 is configured to acquire a plurality of signal values generated by the proximity sensor 16 after each call of the electronic device 100 ends and the touch display screen 10 is in an off state.

如此,可以在电子装置100每次通话结束后校准接近传感器16,这样使得电子装置100在下一次通话时可以准确地控制触摸显示屏10的显示状态。例如,电子装置100在下次来电时,可以根据接近传感器16产生的信号值控制触摸显示屏10亮起。In this way, the proximity sensor 16 can be calibrated after each call of the electronic device 100, so that the electronic device 100 can accurately control the display state of the touch display screen 10 during the next call. For example, the electronic device 100 can control the touch screen 10 to light up according to the signal value generated by the proximity sensor 16 when the electronic device 100 calls next time.

在某些实施方式中,步骤S12包括:In some embodiments, step S12 includes:

在所述触摸显示屏10处于熄灭状态时,获取所述接近传感器16在预定时间段内产生的多个信号值。When the touch display screen 10 is in an off state, a plurality of signal values generated by the proximity sensor 16 within a predetermined period of time are acquired.

在某些实施方式中,处理器23用于在所述触摸显示屏10处于熄灭状态时,获取所述接近传感器16在预定时间段内产生的多个信号值。In some embodiments, the processor 23 is configured to acquire a plurality of signal values generated by the proximity sensor 16 within a predetermined time period when the touch display screen 10 is in an off state.

如此,获取接近传感器16在预定时间段产生的多个信号值,使得获取信号值的过程连续,防止在电子装置100的状态改变时获取信号值,这样可以提高接近传感器16的校准的准确性。例如,预定时间段为10秒,也就是说,可以获取接近传感器16在连续的10秒内产生的多个信号值。In this way, multiple signal values generated by the proximity sensor 16 in a predetermined time period are acquired, so that the process of acquiring the signal values is continuous, preventing the acquisition of signal values when the state of the electronic device 100 changes, which can improve the calibration accuracy of the proximity sensor 16 . For example, the predetermined time period is 10 seconds, that is, a plurality of signal values generated by the proximity sensor 16 in consecutive 10 seconds can be acquired.

在某些实施方式中,所述校准方法还包括:In certain embodiments, the calibration method further comprises:

在所述电子装置100处于通话业务时,根据所述接近传感器16产生的信号值和所述初始预定底噪值控制所述触摸显示屏10的显示状态。When the electronic device 100 is in the call service, the display state of the touch display screen 10 is controlled according to the signal value generated by the proximity sensor 16 and the initial predetermined noise floor value.

在某些实施方式中,所述处理器用于在所述电子装置100处于通话业务时,根据所述接近传感器16产生的信号值和所述初始预定底噪值控制所述触摸显示屏10的显示状态。In some embodiments, the processor is configured to control the display of the touch display screen 10 according to the signal value generated by the proximity sensor 16 and the initial predetermined noise floor value when the electronic device 100 is in a call service state.

如此,如以上所述,可以根据所述接近传感器16产生的信号值和所述初始预定底噪值控制触摸显示屏10处于点亮状态或熄灭状态。In this way, as described above, the touch display screen 10 can be controlled to be in an on state or an off state according to the signal value generated by the proximity sensor 16 and the initial predetermined noise floor value.

具体地,请结合图22,通话业务包括来电、去电或接通电话。可以理解,在来电、去电或接通电话时,用户一般将电子装置100放至耳边,并根据接近传感器16根据电子装置100与人体头部的距离调节触摸显示屏10的状态,使电子装置100在远离人体时亮屏,在靠近人体时息屏,如此不仅防止了用户的误操作,而且节省了电子装置100的电量。Specifically, referring to FIG. 22 , the call service includes incoming calls, outgoing calls, or connected calls. It can be understood that when an incoming call, an outgoing call or a call is connected, the user generally puts the electronic device 100 to the ear, and adjusts the state of the touch screen 10 according to the distance between the electronic device 100 and the head of the human body according to the proximity sensor 16, so that the electronic device 100 can be adjusted. When the device 100 is far away from the human body, the screen is turned on, and when it is close to the human body, the screen is turned off, which not only prevents the user from misoperation, but also saves the power of the electronic device 100 .

进一步地,通话业务可以为用户进行语音对话的过程,例如,通话业务为用户向他人拨出电话而等待对方接听的过程,即去电状态;也可以为用户通过语音与他人正在对话的过程,即接通电话状态;也可以为电子装置100接入外部呼入的电话而等待用户接听的过程,即来电状态。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 the electronic device 100 accesses an incoming call from the outside and waits for the user to answer, that is, the incoming call state.

本申请实施方式还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器23执行时,使得处理器23执行上述任一实施方式的校准方法。The embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when executed by one or more processors 23, cause the processors 23 to perform the calibration method of any of the above-described embodiments.

请参阅图23,本申请实施方式还提供了一种计算机设备400。计算机设备包括存储器32及处理器23,存储器32中储存有计算机可读指令,指令被处理器23执行时,处理器23执行上述任一实施方式的校准方法。Referring to FIG. 23 , an embodiment of the present application further provides a computer device 400 . The computer device includes a memory 32 and a processor 23. Computer-readable instructions are stored in the memory 32. When the instructions are executed by the processor 23, the processor 23 executes the calibration method in any of the above embodiments.

图23为一个实施例中的计算机设备400的内部模块示意图。计算机设备400包括通过系统总线31连接的处理器23、存储器32(例如为非易失性存储介质)、内存储器33、显示层13和输入装置34。其中,计算机设备400的存储器32存储有操作系统和计算机可读指令。该计算机可读指令可被处理器23执行,以实现上述任意一项实施方式的校准方法。FIG. 23 is a schematic diagram of the internal modules of computer device 400 in one embodiment. The computer device 400 includes a processor 23 , a memory 32 (eg, a non-volatile storage medium), an internal memory 33 , a display layer 13 and an input device 34 connected by a system bus 31 . Among them, the memory 32 of the computer device 400 stores an operating system and computer-readable instructions. The computer readable instructions are executable by the processor 23 to implement the calibration method of any of the above embodiments.

处理器23可用于提供计算和控制能力,支撑整个计算机设备400的运行。计算机设备400的内存储器33为存储器32中的计算机可读指令运行提供环境。计算机设备400的显示层13可以是OLED显示层或者Micro LED显示层等,输入装置34可以是设置在显示层13上的触摸显示屏10,也可以是计算机设备400外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该计算机设备400可以是手机、平板电脑、笔记本电脑、个人数字助理或穿戴式设备(例如智能手环、智能手表、智能头盔、智能眼镜)等。本领域技术人员可以理解,图中示出的结构,仅仅是与本申请方案相关的部分结构的示意图,并不构成对本申请方案所应用于其上的计算机设备400的限定,具体的计算机设备400可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The processor 23 may be used to provide computing and control capabilities to support the operation of the entire computer device 400 . Internal memory 33 of computer device 400 provides an environment for the execution of computer readable instructions in memory 32 . The display layer 13 of the computer device 400 may be an OLED display layer or a Micro LED display layer, etc., and the input device 34 may be the touch display screen 10 disposed on the display layer 13 , or the buttons or trackballs disposed on the shell of the computer device 400 . Or a touchpad, or an external keyboard, touchpad, or mouse, etc. The computer device 400 may be a mobile phone, a tablet computer, a laptop 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 the computer device 400 to which the solution of the present application is applied. The specific 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 the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing the 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), or the like.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于一非易失性计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing the 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 (12)

1.一种校准方法,用于电子装置的接近传感器,其特征在于,所述电子装置包括触摸显示屏,所述接近传感器设置在所述触摸显示屏的下方,所述校准方法包括:1. A calibration method for a proximity sensor of an electronic device, wherein the electronic device comprises a touch display screen, the proximity sensor is arranged below the touch display screen, and the calibration method comprises: 在所述触摸显示屏处于熄灭状态时,获取所述接近传感器产生的多个信号值;When the touch display screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor; 判断所述多个信号值是否满足校准条件;judging whether the plurality of signal values meet the calibration conditions; 在所述多个信号值满足所述校准条件时,将所述接近传感器的当前底噪值校准为初始预定底噪值。When the plurality of signal values satisfy the calibration condition, the current noise floor value of the proximity sensor is calibrated to be an initial predetermined noise floor value. 2.如权利要求1所述的校准方法,其特征在于,所述判断所述多个信号值是否满足校准条件,包括:2. The calibration method according to claim 1, wherein the judging whether the plurality of signal values satisfy a calibration condition comprises: 判断所述多个信号值是否稳定,并且每个所述信号值是否均小于第一阈值;judging whether the plurality of signal values are stable, and whether each of the signal values is less than a first threshold; 所述在所述多个信号值满足所述校准条件时,将所述接近传感器的当前底噪值校准为初始预定底噪值,包括:When the multiple signal values satisfy the calibration condition, calibrating the current noise floor value of the proximity sensor to an initial predetermined noise floor value includes: 在所述多个信号值稳定并且每个所述信号值均小于第一阈值时,将所述接近传感器的当前底噪值校准为初始预定底噪值。When the plurality of signal values are stable and each of the signal values is less than a first threshold value, the current noise floor value of the proximity sensor is calibrated to an initial predetermined noise floor value. 3.如权利要求2所述的校准方法,其特征在于,所述判断所述多个信号值是否稳定,包括:3. The calibration method according to claim 2, wherein the judging whether the multiple signal values are stable comprises: 将所述多个信号值中的最大信号值及最小信号值去除;removing the largest signal value and the smallest signal value from the plurality of signal values; 判断剩余的多个所述信号值中的任意两个所述信号值的差值的绝对值是否均小于第二阈值;judging whether the absolute value of the difference between any two of the remaining plurality of the signal values is smaller than the second threshold; 在所述差值的绝对值小于所述第二阈值时判定所述多个信号值稳定。The plurality of signal values are determined to be stable when the absolute value of the difference is smaller than the second threshold. 4.如权利要求1所述的校准方法,其特征在于,所述在所述触摸显示屏处于熄灭状态时,获取所述接近传感器产生的多个信号值,包括:4 . The calibration method according to claim 1 , wherein when the touch display screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor comprises: 5 . 在所述电子装置每次通话结束后且所述触摸显示屏处于熄灭状态时,获取所述接近传感器产生的多个信号值。After each call of the electronic device ends and the touch screen is in an off state, acquire a plurality of signal values generated by the proximity sensor. 5.如权利要求1所述的校准方法,其特征在于,所述在所述触摸显示屏处于熄灭状态时,获取所述接近传感器产生的多个信号值,包括:5 . The calibration method according to claim 1 , wherein when the touch screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor comprises: 5 . 在所述触摸显示屏处于熄灭状态时,获取所述接近传感器在预定时间段内产生的多个信号值。When the touch screen is in an off state, acquire a plurality of signal values generated by the proximity sensor within a predetermined period of time. 6.如权利要求1所述的校准方法,其特征在于,所述校准方法还包括:6. The calibration method of claim 1, wherein the calibration method further comprises: 在所述电子装置处于通话业务时,根据所述接近传感器产生的信号值和所述初始预定底噪值控制所述触摸显示屏的显示状态。When the electronic device is in the call service, the display state of the touch screen is controlled according to the signal value generated by the proximity sensor and the initial predetermined noise floor value. 7.一种电子装置,其特征在于,包括触摸显示屏、接近传感器和处理器,所述接近传感器设置在所述触摸显示屏下方,所述处理器用于:7. An electronic device, comprising a touch display screen, a proximity sensor, and a processor, wherein the proximity sensor is disposed below the touch display screen, and the processor is used for: 在所述触摸显示屏处于熄灭状态时,获取所述接近传感器产生的多个信号值;When the touch display screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor; 判断所述多个信号值是否满足校准条件;judging whether the plurality of signal values meet the calibration conditions; 在所述多个信号值满足所述校准条件时,将所述接近传感器的当前底噪值校准为初始预定底噪值。When the plurality of signal values satisfy the calibration condition, the current noise floor value of the proximity sensor is calibrated to be an initial predetermined noise floor value. 8.如权利要求7所述的电子装置,其特征在于,所述处理器用于:8. The electronic device of claim 7, wherein the processor is configured to: 判断所述多个信号值是否稳定,并且每个所述信号值是否均小于第一阈值;judging whether the plurality of signal values are stable, and whether each of the signal values is less than a first threshold; 所述在所述多个信号值满足所述校准条件时,将所述接近传感器的当前底噪值校准为初始预定底噪值,包括:When the multiple signal values satisfy the calibration condition, calibrating the current noise floor value of the proximity sensor to an initial predetermined noise floor value includes: 在所述多个信号值稳定并且每个所述信号值均小于第一阈值时,将所述接近传感器的当前底噪值校准为初始预定底噪值。When the plurality of signal values are stable and each of the signal values is less than a first threshold value, the current noise floor value of the proximity sensor is calibrated to an initial predetermined noise floor value. 9.如权利要求7所述的电子装置,其特征在于,所述处理器用于:9. The electronic device of claim 7, wherein the processor is configured to: 将所述多个信号值中的最大信号值及最小信号值去除;removing the largest signal value and the smallest signal value from the plurality of signal values; 判断剩余的多个所述信号值中的任意两个所述信号值的差值的绝对值是否均小于第二阈值;judging whether the absolute value of the difference between any two of the remaining plurality of the signal values is smaller than the second threshold; 在所述差值的绝对值小于所述第二阈值时判定所述多个信号值稳定。The plurality of signal values are determined to be stable when the absolute value of the difference is smaller than the second threshold. 10.如权利要求7所述的电子装置,其特征在于,所述处理器用于在所述电子装置处于通话业务时,根据所述接近传感器产生的信号值和所述初始预定底噪值控制所述触摸显示屏的显示状态。10. The electronic device of claim 7, wherein the processor is configured to, when the electronic device is in a call service, control the electronic device according to the signal value generated by the proximity sensor and the initial predetermined noise floor value. Describe the display state of the touch screen. 11.一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行权利要求1-6中任一项所述的校准方法。11. One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform claims 1-6 The calibration method described in any one of. 12.一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行权利要求1-6中任一项所述的校准方法。12. A computer device comprising a memory and a processor, wherein computer-readable instructions are stored in the memory, the instructions when executed by the processor cause the processor to execute any one of claims 1-6 the calibration method described.
CN201811159200.6A 2018-09-30 2018-09-30 Calibration method, electronic device, storage medium, and computer apparatus Active CN109167857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811159200.6A CN109167857B (en) 2018-09-30 2018-09-30 Calibration method, electronic device, storage medium, and computer apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811159200.6A CN109167857B (en) 2018-09-30 2018-09-30 Calibration method, electronic device, storage medium, and computer apparatus

Publications (2)

Publication Number Publication Date
CN109167857A CN109167857A (en) 2019-01-08
CN109167857B true CN109167857B (en) 2022-06-07

Family

ID=64877490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811159200.6A Active CN109167857B (en) 2018-09-30 2018-09-30 Calibration method, electronic device, storage medium, and computer apparatus

Country Status (1)

Country Link
CN (1) CN109167857B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109724640B (en) * 2019-01-12 2021-04-06 Oppo广东移动通信有限公司 Proximity sensor calibration method, electronic device, and computer-readable storage medium
CN110609977B (en) * 2019-08-06 2023-08-11 深圳市万普拉斯科技有限公司 Noise floor adjustment processing method, device and computer equipment based on proximity sensor
CN111262986B (en) * 2020-01-16 2021-03-26 Oppo广东移动通信有限公司 Calibration method and calibration device for proximity sensor and mobile terminal
CN111289956B (en) * 2020-01-21 2022-04-29 维沃移动通信有限公司 Electronic device and bottom noise calibration method
CN111366939B (en) * 2020-02-20 2022-07-15 Oppo(重庆)智能科技有限公司 Calibration method and device of distance sensor, terminal and storage medium
CN114185446A (en) * 2020-09-15 2022-03-15 华为技术有限公司 Calibration signal generation method, electronic device and computer storage medium
CN112911035B (en) * 2021-01-21 2023-05-12 维沃移动通信有限公司 Signal receiving and transmitting assembly, electronic equipment and position adjusting method
CN112945987B (en) * 2021-01-28 2024-03-19 维沃移动通信有限公司 Light guide assembly and detection method thereof
CN117665958B (en) * 2024-01-31 2024-05-24 荣耀终端有限公司 Calibration method of proximity light sensor and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866227A (en) * 2015-05-28 2015-08-26 小米科技有限责任公司 Screen control method and screen control apparatus
CN106210227A (en) * 2016-07-06 2016-12-07 广东欧珀移动通信有限公司 Calibration method, device and mobile terminal of an infrared proximity sensor
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI622900B (en) * 2016-09-09 2018-05-01 宏達國際電子股份有限公司 Portable electronic device, operating method for the same, and non-transitory computer readable recording
US10664092B2 (en) * 2016-09-09 2020-05-26 Htc Corporation Portable electronic device, operating method for the same, and non-transitory computer readable recording medium
CN107102864A (en) * 2017-05-16 2017-08-29 广东欧珀移动通信有限公司 One kind puts out screen control method, device, storage medium and terminal
CN107943345B (en) * 2017-11-22 2020-10-02 Oppo广东移动通信有限公司 Calibration method, device, storage medium and electronic device for proximity sensor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866227A (en) * 2015-05-28 2015-08-26 小米科技有限责任公司 Screen control method and screen control apparatus
CN106210227A (en) * 2016-07-06 2016-12-07 广东欧珀移动通信有限公司 Calibration method, device and mobile terminal of an infrared proximity sensor
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Also Published As

Publication number Publication date
CN109167857A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN109167857B (en) Calibration method, electronic device, storage medium, and computer apparatus
US10827058B2 (en) Control method, control device, electronic device and storage medium
CN109618031B (en) Electronic device and control method thereof
CN110068886A (en) A kind of light-guiding pillar mould group, terminal device
WO2019233232A1 (en) Control method, control device, electronic device, computer storage medium and device
CN109120752B (en) Electronic device
CN109274787B (en) electronic device
CN110166595A (en) Electronic device
CN108924358A (en) Proximity sensor control method, electronic device, and computer-readable storage medium
CN108989566A (en) Control method, electronic device, and computer-readable storage medium
CN109710119B (en) Control method, control device, electronic device and storage medium
CN108718349B (en) Control method, control device, electronic device, storage medium and computer equipment
CN110679155B (en) Electronic equipment
CN110794920A (en) Electronic device and detection method thereof
CN109710110B (en) Control method, control device, electronic device, and storage medium
CN109710109B (en) Control method, control device, electronic device and storage medium
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
CN109388282B (en) Control method, electronic device, and storage medium
CN109683750B (en) Control method, electronic device, computer equipment and storage medium
CN109298823A (en) Control method, control device, electronic device and storage medium
CN109743451B (en) Control method, electronic device, computer equipment and storage medium
CN108989489B (en) Control method, control device, electronic device, computer storage medium and equipment
CN109068507B (en) Electronic device
CN109656429B (en) Control method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant