CN109167857B - Calibration method, electronic device, storage medium, and computer apparatus - Google Patents
Calibration method, electronic device, storage medium, and computer apparatus Download PDFInfo
- 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
- value
- electronic device
- display screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a calibration method, an electronic device, a storage medium, and a computer apparatus.
Background
At present, a full-screen mobile phone becomes a main push product for various large mobile phone manufacturers. In the related art, in order to improve the screen occupancy of the cellular phone, the proximity sensor is disposed below the display screen. However, proximity sensor sets up in the below of display screen, and when the display screen received the exogenic action, the display screen can transmit external force to proximity sensor, causes proximity sensor to judge the state between display screen and the external object accurately at the data that the during operation produced, leads to the display state of display screen to control accurately.
Content of application
In view of this, embodiments of the present application provide a calibration method, an electronic apparatus, 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, the electronic device including a touch display screen, the proximity sensor being disposed below the touch display screen, the calibration method including:
when the touch display screen is in a turned-off state, acquiring a plurality of signal values generated by the proximity sensor;
determining whether the plurality of signal values satisfy a calibration condition;
calibrating a current noise floor value of the proximity sensor to an initial predetermined noise floor value when the plurality of signal values satisfy the calibration condition.
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, the processor is configured to:
when the touch display screen is in a turned-off state, acquiring a plurality of signal values generated by the proximity sensor;
determining whether the plurality of signal values satisfy a calibration condition;
calibrating a current noise floor value of the proximity sensor to an initial predetermined noise floor value when the plurality of signal values satisfy the calibration condition.
Embodiments of the present application provide one or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the calibration method.
A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a calibration method as defined in any one of the preceding claims.
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.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic plan view of an electronic device according to some embodiments of the present application;
FIG. 2 is a schematic cross-sectional view of the electronic device of FIG. 1 taken along the direction II-II;
FIGS. 3-12 are schematic cross-sectional views of electronic devices according to certain embodiments of the present application;
FIG. 13 is a schematic view of a state of an electronic device according to some embodiments of the present application;
FIG. 14 is a schematic view of another state of an electronic device according to some embodiments of the present application;
FIG. 15 is a schematic partial cross-sectional view taken along A-A of the electronic device shown in FIG. 14;
FIG. 16 is a schematic perspective view of a light guide of an electronic device according to certain embodiments of the present application;
FIG. 17 is another perspective view of a light guide of an electronic device according to some embodiments of the present application;
FIG. 18 is a schematic flow chart of a calibration method according to certain embodiments of the present application;
FIG. 19 is a block schematic diagram of a control device according to certain embodiments of the present application;
FIGS. 20-21 are schematic flow charts of calibration methods according to certain embodiments of the present application;
FIG. 22 is a schematic view of a usage scenario of an electronic device according to some embodiments of the present application;
FIG. 23 is a block diagram of a computer device according to some embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
With the development of electronic devices, a full screen has become a development trend of mobile phones. The characteristics that the high screen of full face screen accounts for the ratio make the screen top reserve the position for proximity sensor or other components limited, when proximity sensor sets up under the printing opacity display screen, because photoelectric effect, thereby the electron of proximity sensor in the in-process messenger screen of emission infrared receives arousing printing opacity display screen scintillation to form with the normal demonstration of printing opacity display screen and interfere, influence user's experience.
Referring to fig. 1-3, an electronic device 100 is provided in an embodiment of the present disclosure. 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. The proximity sensor 16 is disposed below the touch display screen 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 infrared light reflected by an object to detect a distance of the object to the electronic device 100.
By way of example, the electronic device 100 may be any of various types of computer system equipment (only one modality shown in FIG. 1 by way of example) that is mobile or portable and that performs wireless communications. Specifically, the electronic apparatus 100 may be a mobile phone or a smart phone (e.g., an iPhone (TM) based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), game Advance (TM), iPhone (TM)), a laptop computer, a PDA, a Portable internet appliance, a music player and a data storage device, other handheld devices and a headset such as a watch, an in-ear headphone, a pendant, a headset, etc., and the electronic apparatus 100 may also be other wearable devices (e.g., a Headset (HMD) such as electronic glasses, electronic clothing, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic device, or a smart watch).
The electronic apparatus 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 devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving Picture experts group (MPEG-1 or MPEG-2) Audio layer 3(MP3) players, portable medical devices, and digital cameras, and combinations thereof.
In some cases, electronic device 100 may perform multiple functions (e.g., playing music, displaying videos, storing pictures, and receiving and sending telephone calls). If desired, the electronic apparatus 1000 may be a portable device such as a cellular telephone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device.
The mobile phone can prevent misoperation of a user and is beneficial to saving the electric quantity of the mobile phone by arranging the proximity sensor 16 to determine the distance between the mobile phone and the obstacle and making corresponding adjustment. For example, when the user is receiving or making a call and brings the mobile phone close to the head, the proximity sensor 16 generates detection information by counting the time when the transmitter emits infrared light and the receiver receives reflected infrared light, and the processor 23 touches the display screen 10 according to the detection information. When the mobile phone is far away from the head, the processor 23 turns on the touch display screen 10 again according to the detection information fed back by the proximity sensor 16.
In some embodiments, the display layer 13 comprises an OLED display layer.
Specifically, the OLED display layer has good light transmittance and can better transmit visible light and infrared light. Thus, the OLED display layer may exhibit content effects without affecting the emission and reception of infrared light by the proximity sensor 16. The display layer 13 may also be a Micro LED display layer, which also has good transmittance to visible light and infrared light. Of course, these display layers are merely exemplary and embodiments of the present application are not limited thereto. In addition, the touch display screen 10 may be provided on the housing 20.
Referring to fig. 3, in some embodiments, the touch display screen 10 further includes a light-transmissive 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 light transmittance of the light-transmitting cover plate 11 and the light transmittance of the touch layer 12 to visible light and infrared light are both greater than 90%.
Specifically, the touch layer 12 is mainly used for receiving a user input signal and transmitting the user input signal to the circuit board for data processing, so as to obtain a specific position where the user touches the touch layer 12. It is noted that the touch layer 12 being disposed on the display layer 13 may mean that the touch layer 12 is in contact with the display layer 13. For example, the touch layer 12 and the display layer 13 may be bonded using In-Cell or On-Cell technology, which can effectively reduce the weight of the display layer 13 and the overall thickness of the display layer 13. The touch layer 12 being disposed on the display layer 13 may also mean that the touch layer 12 is disposed above the display layer 13 and spaced apart from the display layer 13.
In addition, the transparent cover plate 11 is disposed on the touch layer 12, so that the touch layer 12 and the internal structure thereof can be effectively protected, and the touch layer 12 and the display layer 13 are prevented from being damaged by external force. The light transmittance of the light-transmitting cover plate 11 and the light transmittance of the touch layer 12 to visible light and infrared light are both greater than 90%, which is not only beneficial to the display layer 13 to better display the content effect, but also beneficial to the proximity sensor 16 arranged below the display layer 13 to stably emit and receive infrared light, and ensures the normal operation of the proximity sensor 16.
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 serves 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.
Specifically, the first coating layer 14 is configured to transmit infrared light to ensure proper operation of the proximity sensor 16. The first coating layer 14 intercepts visible light, so that the electronic device 100 can be viewed from the outside, and the effect that the proximity sensor 16 is not visible is achieved.
Referring to fig. 4 and 5, in some embodiments, the proximity sensor 16 includes a transmitter 1611 and a receiver 1612. The emitter 1611 serves to emit infrared light through the first coating layer 14 and the display layer 13. The receiver 1612 is for receiving the infrared light emitted by the object to detect a distance of the object from the electronic device 100.
Specifically, in general, when the user is receiving 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 of the infrared light to the reflection of the infrared light, and then sends a corresponding instruction to control the screen to be closed. When the electronic device 100 is far away from the head, the processor 23 performs calculation again according to the data fed back and sends an instruction, so that the screen is turned on again. Therefore, misoperation of a user is prevented, and the electric quantity of the mobile phone is saved.
In certain embodiments, the orthographic projection of the proximity sensor 16 on the lower surface 132 is within the orthographic projection of the first coating layer 14 on the lower surface 132.
Specifically, the proximity sensor 16 is usually installed with a reserved assembly gap during the process of assembly, which results in a gap between the proximity sensor 16 and other elements, so that visible light enters from the gap and leaks. 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, so that the proximity sensor 16 can be sufficiently shielded by the first coating layer 14 without affecting the normal operation of the proximity sensor 16, and the effect that the proximity sensor 16 is not visible when the electronic device 100 is viewed from the outside can be achieved.
Referring to fig. 5, in some embodiments, an orthographic projection of the proximity sensor 16 on the lower surface 132 is coincident with the first coating layer 14.
Specifically, in the direction in which the proximity sensor 16 and the display layer 13 are laminated, the area of the lower surface 132 onto which the first coating layer 14 is orthographically projected may also be set equal to the area of the lower surface 132 onto which the proximity sensor 16 is orthographically projected. In this way, the first coating layer 14 can just shield the proximity sensor 16 without affecting the normal operation of the proximity sensor 16, and the effect that the proximity sensor 16 is not visible when the electronic device 100 is viewed from the direction towards and perpendicular to the upper surface 131 of the display layer 13 is achieved.
Referring to fig. 6, further, in this embodiment, the electronic device 100 further includes a light shielding layer 17 disposed on the lower surface 132 and surrounding the proximity sensor 16.
Specifically, when the area on which the first coating layer 14 is disposed to be projected on the lower surface 132 is equal to the area on which the proximity sensor 16 is disposed to be projected on the lower surface 132, a light leakage phenomenon occurs around the space around the proximity sensor 16 when the electronic device 100 is viewed from the external environment due to the fact that the volume of the space where the proximity sensor 16 is placed is larger than the volume of 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 this light leakage phenomenon can be eliminated. The light shielding layer 17 may be made of foam made of black material, or other black foam plastics or rubber. Of course, these materials are merely exemplary and embodiments of the present application are not limited thereto.
In certain embodiments, the first coating layer comprises an IR ink having a transmittance of greater than 85% for infrared light, a transmittance of less than 6% for visible light, and a wavelength of infrared light that is visible through the IR ink in the range of 850nm to 940 nm.
Specifically, since the IR ink has a characteristic of low transmittance to visible light, the proximity sensor 16 disposed under the first coating layer 14 is not observed based on the visual sense of human eyes when the electronic device 100 is viewed from the outside. Meanwhile, the IR ink has a characteristic of high transmittance to infrared light, and can enable the proximity sensor 16 to stably emit and receive infrared light, thereby ensuring normal operation of the proximity sensor 16.
Referring to fig. 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.
Specifically, the first coating layer 14 is mainly used for transmitting infrared light and blocking the proximity sensor 16, but since the cost of the IR ink used for the first coating layer 14 is higher than that of the ordinary black ink, it is not favorable to reduce the production cost if the lower surface 132 is entirely coated with the IR ink, and the ordinary black ink can achieve lower transmittance of visible light than the IR ink and more excellent blocking effect. Therefore, the second coating layer 15 is arranged, so that the production cost is reduced, and the shielding effect meets the process requirement.
Referring to fig. 9 and 10, in some embodiments, electronic device 100 further includes a buffer layer 18 covering lower surface 132 and avoiding proximity sensor 16.
Specifically, the buffer layer 18 is used to buffer impact and resist shock so as to protect the touch layer 12 and the display layer 13 and the internal structure thereof, and prevent the display layer 13 from being damaged due to external impact. Cushioning layer 18 may be made of foam or rubber or other soft material. Of course, these buffer materials are merely exemplary and embodiments of the present application are not limited thereto. In addition, the proximity sensor 16 is shielded during the process of disposing the buffer layer 18 in order to prevent the buffer layer 18 from shielding the proximity sensor 16 from being affected during the process of emitting and receiving infrared light by the proximity sensor 16.
Referring to fig. 11 and 12, further, in such an embodiment, electronic device 100 further includes a metal sheet 19 covering buffer layer 18 and avoiding proximity sensor 16.
Specifically, the metal sheet 19 is used for shielding electromagnetic interference and grounding, and has a function of diffusing temperature rise. The metal sheet 19 may be cut out of a metal material such as copper foil or aluminum foil. Of course, these metal materials are merely exemplary and embodiments of the present application are not limited thereto. In addition, the proximity sensor 16 is avoided during the process of disposing the metal sheet 19 in order to prevent the metal sheet 19 from shielding the proximity sensor 16 from being affected during the process of emitting and receiving infrared light by the proximity sensor 16.
Referring to fig. 13-15, in some embodiments, the electronic device 100 further includes a housing 20, a housing case 200, a light guide 51, and a light sensor 5. The receiving case 200 is slidably coupled to the housing 20 and can be extended out of the housing 20 or retracted into the housing 20. The receiving case 200 is provided with a light entrance hole 2006, and the light guide 51 is received in the receiving case 200 and partially extends into the light entrance hole 2006. The light guide 51 has a light incident surface 511 and a light emitting surface 512 opposite to each other. The light incident surface 511 faces the outside of the housing case 200. The light emitting surface 512 faces the interior of the accommodating case 200. The light sensor 5 is accommodated in the accommodating case 200 and faces the light emitting surface 512.
In this way, since the light inlet 2006 is provided in the housing case 200 of the electronic device 100, not in the touch display screen 10 of the electronic device 100, the light inlet 2006 can satisfy the requirement of the photosensor 5 for receiving ambient light, and the screen occupation ratio of the touch display screen 10 is not limited, so that the screen occupation ratio of the electronic device 100 is large.
Specifically, referring to fig. 13-14, the electronic device 100 is defined with reference to the viewing angle, and the electronic device 100 has a width direction X, a length direction Y and a thickness direction Z, wherein the length direction Y is perpendicular to the width direction X, and the thickness direction Z is perpendicular to the width direction X and the length direction Y.
The housing 20 also includes a top face 1002 and a bottom face 1003 disposed opposite the top face 1002. Generally, the top end face 1002 and the bottom end face 1003 may extend in the width direction X. I.e., the top 1002 and bottom 1003 surfaces are the short sides of the electronic device 100. The bottom face 1003 is used for arranging connectors, microphones, speakers, etc. of the electronic device 100.
As shown in fig. 14, a receiving groove 1004 is formed on the top of the housing 20, and the receiving groove 1004 is recessed from the top of the housing 20 to the inside of the housing 20. The receiving groove 1004 penetrates through a 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 receiving case 200 is slidably coupled to the housing 20 to extend or retract the receiving groove 1004.
The housing case 200 may further include a functional element 300, the functional element 300 may be, for example, a camera, an earpiece, a laser emitter, or the like, the camera is exposed through the light inlet 2006, and for example, the functional element 300 is exposed through the light inlet 2006 on the side surface of the housing case 200. When the receiving case 200 is extended out of the housing 20, the camera may capture an external image of the electronic device 100. The camera is, for example, a camera such as an RGB camera.
In some embodiments, the receiving case 200 has an outer side surface, and the light incident surface 511 partially or totally protrudes from the outer side surface. Thus, the housing 200 has less shielding effect on the light incident surface 511, and even does not shield the light incident surface 511 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 to enter the light sensor 5.
In the present 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 entrance hole 2006. The light guide 51 corresponds to the light entry hole 2006 in the top surface 2003. Alternatively, the light sensor 5 receives light through the light guide 51 through the light entry hole 2006 in the top surface 2003. In this way, the light sensor 5 can sense ambient light regardless of whether the housing case 200 is extended or retracted into the housing body 20. The light incident surface 511 is partially or entirely convex with respect to the top surface 2003.
Referring to fig. 15-17, the light incident surface 511 has a central region 5111 and an edge region 5112 surrounding the central region 5111. The central zone 5111 is convex relative to the edge zone 5112. At this time, the area of the light incident surface 511 is larger, and more external light can enter the light guide 51. The light incident surface 511 is an arc surface.
In some embodiments, the housing 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 incident hole 2006, the light guiding member 51 includes a light incident portion 513 and a light emergent portion 514, the light incident portion 511 is an end surface of the light incident portion 513 facing away from the light emergent portion 514, the light emergent portion 512 is an end surface of the light emergent portion 514 facing away from the light incident portion 513, the light incident portion 513 penetrates through the light incident hole 2006, and part or all of the light emergent portion 514 is embedded in the positioning groove 2064.
At this time, the light guide 5151 and the receiving case 200 are fixed to each other and are not easily slid. Meanwhile, a sealing member may be bonded to a surface of the light exit portion 514 facing the light entrance portion 513513, and the sealing member may be continuously provided around the light entrance portion 513513. The sealing member is pressed against the light emitting portion 514 and the groove wall surface of the positioning groove 2064 to achieve sealing, so as to prevent external dust, water vapor and the like from entering the interior of the accommodating case 200 through the light inlet 2006.
In some embodiments, the area of the light exiting surface 512 is larger than that of the light entering surface 511, and the cross-sectional area of the light entering portion 513 increases in a direction from the light entering surface 511 to the light exiting surface 512.
Specifically, the light incident portion 513 is substantially in a truncated cone shape, which is beneficial for the light to pass through the light incident portion 3513, and can be spread out to enter the light exit portion 514 uniformly.
In some embodiments, the light guide 51 further includes a positioning portion 515, the positioning portion 515 and the light emitting portion 514 enclose 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, so as to avoid damage when the electronic device 100 falls or is impacted. A gap is formed between the light-emitting surface 512 and the photosensitive area 52 of the light sensor 5.
Referring to fig. 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 comprises the following steps:
s12: acquiring a plurality of signal values generated by the proximity sensor 16 when the touch display screen 10 is in an off state;
s14: determining whether the plurality of signal values satisfy a calibration condition; and
s16: calibrating 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.
The electronic device 100 of 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 may be implemented by the processor 23. Alternatively, the processor 23 is configured to: acquiring a plurality of signal values generated by the proximity sensor 16 when the touch display screen 10 is in an off state; determining whether the plurality of signal values satisfy a calibration condition, and calibrating 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.
Referring to fig. 19, an embodiment of the present application further provides a calibration apparatus 1000, and the calibration method according to the embodiment of the present application can be implemented by the calibration apparatus 1000 according to the embodiment of the present application.
Specifically, the calibration apparatus 1000 includes an obtaining module 210, a determining module 220, and a calibrating module 230, where the obtaining module 210 is configured to obtain a plurality of signal values generated by the proximity sensor 16 when the touch display screen 10 is in an off state. The determining module 220 is configured to determine whether the 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.
That is, the step S14 may be implemented by the obtaining module 210, the step S15 may be implemented by the calibration module 230, and the step S16 may be implemented by the determining module 220.
Specifically, the electronic device 100 calibrates the noise floor value of the proximity sensor 16 to an initial predetermined noise floor value at the time of factory shipment, and stores the initial predetermined noise floor value of the proximity sensor 16. When the electronic device 100 is powered on, the proximity sensor 16 is turned on and generates a signal value, the electronic device 100 determines whether the proximity sensor 16 is shielded according to a difference value between the signal value generated by the proximity sensor 16 and an initial predetermined background noise value, and controls the touch display screen 10 to be in an off state when the proximity sensor 16 is shielded.
For example, the initial predetermined noise floor value of the proximity sensor 16 is 10, 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 when the electronic device 100 is talking, and at this time, if the distance threshold value is 160, the difference 190 is greater than the distance threshold value 160(190 > 160), and it may be determined that the proximity sensor 16 is not shielded, and the touch display screen 10 may be controlled to be in the lighting state.
However, during the use of the electronic device 100, the touch display screen 10 may be affected by a drop, an impact, and the like on the electronic device 100, and then the proximity sensor 16 is affected by a pressure, and the like, so that the noise floor of the proximity sensor 16 is increased, and the electronic device 100 cannot accurately control the display state of the touch display screen 10.
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 calls, 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 current noise floor value is 20, at this time, if the proximity threshold is 100, the difference 20 is smaller than the proximity threshold 100(20 < 100), and at this time, it may be determined that the proximity sensor 16 is shielded, and the touch display screen 10 is controlled to be in the off state. On the other hand, in a normal case, when the noise floor value of the proximity sensor 16 is not changed, the proximity sensor 16 is determined to be in a state of not being shielded.
As can be seen, when the noise floor value of the proximity sensor 16 changes, the state of the proximity sensor 16 may be erroneously determined, and the display state of the touch display screen 10 may not be accurately controlled.
In summary, the calibration method and the electronic device 100 according to the embodiments of the application calibrate the current background noise value of the proximity sensor 16 to the initial predetermined background noise value according to the plurality of signal values generated by the proximity sensor 16 when the touch display screen 10 is in the 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.
Specifically, in step S12, the display states of the touch display screen 10 include 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, and at this time, the display area 1311 has a black appearance.
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 contents.
When the touch display screen 10 is in the off state, the electronic device 100 may be in a call state or a non-call state. Preferably, the electronic device 100 is in a non-call state, that is, when the electronic device 100 is in the non-call state and is in an off state, a plurality of signals generated by the proximity sensor 16 are acquired.
Referring to fig. 20, in some embodiments, step S14 includes:
s142: determining whether the plurality of signal values are stable and each of the signal values is less than a first threshold;
step S16 includes:
s162: calibrating the current noise floor value of the proximity sensor 16 to an initial predetermined noise floor value when the plurality of signal values are stable and each of the signal values is less than a first threshold value.
In some embodiments, the processor 23 is configured to: judging whether the plurality of signal values are stable or not and whether each signal value is smaller than a first threshold value or not; calibrating the current noise floor value of the proximity sensor 16 to an initial predetermined noise floor value when the plurality of signal values are stable and each of the signal values is less than a first threshold value.
Specifically, in step S142, determining whether the plurality of signal values are stable may make the calibration process of the proximity sensor 16 more accurate. For example, when a plurality of signal values generated by the proximity sensor 16 are stable, it indicates that the state of the electronic device 100 is stable. Each signal value is less than the first threshold value, indicating that the electronic device 100 is in a particular state.
It is understood that when the proximity sensor 16 is not occluded, the signal value generated by the proximity sensor 16 is the current noise floor value of the proximity sensor 16. Typically, the current background noise value of the proximity sensor 16 is less than a threshold. For example, the noise floor of the proximity sensor 16 may be corrected to less than 1000 before the proximity sensor 16 is applied, i.e., the proximity sensor 16 generates a signal value of less than 1000 no matter how affected the proximity sensor 16 is, without the proximity sensor 16 being obscured.
In step S142, the first threshold may be set to 1000. At this time, when each signal value is less than 1000, it may be determined that the proximity sensor 16 is not shielded, and the current noise floor value of the proximity sensor 16 is calibrated to the initial predetermined noise floor value when the proximity sensor 16 is not shielded, so that the calibration of the proximity sensor 16 is more accurate.
For example, the proximity sensor 16 sequentially generates 5 signal values 210, 211, 212, 210, 213, and at this time, the 5 signal values are all less than 1000, and the current noise floor value of the proximity sensor 16 can be calibrated to 10.
It will be appreciated that it may be determined from the signal values generated by the proximity sensor 16 whether the current noise floor value of the proximity sensor 16 is calibrated to 10. For example, if the signal value generated by the proximity sensor 16 is 10 after the current noise floor value of the proximity sensor 16 is calibrated, it may be determined that the current noise floor value of the proximity sensor 16 is calibrated to 10.
Referring to fig. 21, in some embodiments, the step of determining whether the signal values are stable includes:
s1421: removing a maximum signal value and a minimum signal value of the plurality of signal values;
s1422: judging whether the absolute value of the difference value of any two of the remaining signal values is smaller than a second threshold value;
s1423: determining that the plurality of signal values are stable when the absolute value of the difference is less than the second threshold.
In some embodiments, the processor 23 is configured to: removing a maximum signal value and a minimum signal value of the plurality of signal values; judging whether the absolute value of the difference value of any two of the remaining signal values is smaller than a second threshold value; and determining that the plurality of signal values are stable when the absolute value of the difference is less than the second threshold.
That is, steps S1421, S1422, and S1423 may be implemented by the processor 23.
In one example, the proximity sensor 16 sequentially generates 8 signal values 210, 211, 212, 210, 213, 212, 208, 215. The second threshold may be 10. 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, and 212, and the absolute value of the difference between any two signal values in the remaining 6 signal values is less than 10, at which point 8 signal values can be determined to be stable.
Therefore, the method for judging the stability of the plurality of signal values is simple and effective, and the calculation is avoided to be too complex.
It is understood that the step of determining whether the plurality of signal values are stable includes:
s1422: determining that the plurality of signal values are unstable when the absolute value of the difference is greater than or equal to the second threshold.
In certain embodiments, step S12 includes:
after each call of the electronic device 100 is finished and the touch display screen 10 is in an off state, a plurality of signal values generated by the proximity sensor 16 are acquired.
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 is ended and when the touch display screen 10 is in an off state.
In this way, the proximity sensor 16 can be calibrated after each call of the electronic device 100 is finished, so that the electronic device 100 can accurately control the display state of the touch display screen 10 at the next call. For example, the electronic device 100 may control the touch display screen 10 to light up according to the signal value generated by the proximity sensor 16 when the next incoming call comes.
In certain embodiments, step S12 includes:
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.
In some embodiments, the processor 23 is configured to obtain a plurality of signal values generated by the proximity sensor 16 within a predetermined time period when the touch screen display 10 is in the off state.
In this manner, the plurality of signal values generated by the proximity sensor 16 in the predetermined time period are acquired, so that the process of acquiring the signal values is continuous, and the signal values are prevented from being acquired when the state of the electronic device 100 is changed, which can improve the accuracy of calibration of the proximity sensor 16. For example, the predetermined period of time is 10 seconds, that is, a plurality of signal values generated by the proximity sensor 16 for consecutive 10 seconds may be acquired.
In some embodiments, the calibration method further comprises:
and when the electronic device 100 is in a call service, controlling the display state of the touch display screen 10 according to the signal value generated by the proximity sensor 16 and the initial preset background noise value.
In some embodiments, the processor is configured to control the display state of the touch screen display 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.
In this manner, as described above, the touch display screen 10 can be controlled to be in the lit state or the extinguished state according to the signal value generated by the proximity sensor 16 and the initial predetermined background noise value.
Specifically, referring to fig. 22, the call service includes incoming call, outgoing call, or call connection. It can be understood that when a user makes a call, leaves a call or connects a call, the user generally puts the electronic device 100 to the ear, and adjusts the state of the touch display screen 10 according to the distance between the electronic device 100 and the head of the human body by the proximity sensor 16, so that the electronic device 100 is turned on when being away from the human body and turned off when being close to the human body, thereby not only preventing the misoperation of the user, but also saving the electric quantity of the electronic device 100.
Further, the call service may be a process of voice conversation for the user, for example, the call service is a process of the user making a call to another person and waiting for the other party to answer, that is, an outgoing call state; the process that the user is conversing with other people through voice, namely the call-on state can also be realized; the electronic device 100 may also wait for the user to answer the incoming call, i.e., the incoming call state, for the incoming call to be made from the outside.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by the one or more processors 23, cause the processors 23 to perform the calibration method of any of the embodiments described above.
Referring to fig. 23, a computer device 400 is further provided in the present application. The computer device comprises a memory 32 and a processor 23, wherein the memory 32 stores computer readable instructions, and when the instructions are executed by the processor 23, the processor 23 executes the calibration method according to any one of the above embodiments.
FIG. 23 is a schematic diagram of internal modules of computer device 400, under an embodiment. The computer apparatus 400 includes a processor 23, a memory 32 (e.g., a non-volatile storage medium), an internal memory 33, a display layer 13, and an input device 34 connected by a system bus 31. The memory 32 of the computer device 400 has stored therein 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.
The processor 23 may be used to provide computing and control capabilities that support the operation of the overall computer device 400. The internal memory 33 of the computer device 400 provides an environment for the execution of computer readable instructions in the memory 32. The display layer 13 of the computer device 400 may be an OLED display layer or a Micro LED display layer, and the input device 34 may be a touch display screen 10 disposed on the display layer 13, a key, a trackball or a touch pad disposed on a housing of the computer device 400, or an external keyboard, a touch pad or a mouse. The computer device 400 may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, or a wearable device (e.g., a smart bracelet, a smart watch, a smart helmet, smart glasses), etc. It will be appreciated by those skilled in the art that the configurations shown in the figures are merely schematic representations of portions of configurations relevant to the present application and are not intended to limit the computer device 400 to which the present application may be applied, and that a particular computer device 400 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, and the program may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, and the program may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (12)
1. A calibration method for a proximity sensor of an electronic device, the electronic device including a touch display screen, the proximity sensor being disposed below the touch display screen, the calibration method comprising:
when the touch display screen is in a turned-off state, acquiring a plurality of signal values generated by the proximity sensor;
determining whether the plurality of signal values satisfy a calibration condition;
calibrating a current noise floor value of the proximity sensor to an initial predetermined noise floor value when the plurality of signal values satisfy the calibration condition.
2. The calibration method of claim 1, wherein said determining whether the plurality of signal values satisfy a calibration condition comprises:
determining whether the plurality of signal values are stable and each of the signal values is less than a first threshold;
the calibrating the current noise floor value of the proximity sensor to an initial predetermined noise floor value when the plurality of signal values satisfy the calibration condition comprises:
calibrating a current noise floor value of the proximity sensor to an initial predetermined noise floor value when the plurality of signal values are stable and each of the signal values is less than a first threshold value.
3. The calibration method of claim 2, wherein said determining whether the plurality of signal values are stable comprises:
removing a maximum signal value and a minimum signal value of the plurality of signal values;
judging whether the absolute value of the difference value of any two of the remaining signal values is smaller than a second threshold value;
determining that the plurality of signal values are stable when the absolute value of the difference is less than the second threshold.
4. The calibration method of claim 1, wherein said obtaining a plurality of signal values generated by said proximity sensor while said touch screen display is in an off state comprises:
and acquiring a plurality of signal values generated by the proximity sensor after each call of the electronic device is finished and when the touch display screen is in a turn-off state.
5. The calibration method of claim 1, wherein said obtaining a plurality of signal values generated by said proximity sensor while said touch screen display is in an off state comprises:
and when the touch display screen is in an off state, acquiring a plurality of signal values generated by the proximity sensor within a preset time period.
6. The calibration method of claim 1, further comprising:
and when the electronic device is in a call service, controlling the display state of the touch display screen according to the signal value generated by the proximity sensor and the initial preset background noise value.
7. An electronic device comprising a touch display screen, a proximity sensor disposed below the touch display screen, and a processor configured to:
when the touch display screen is in a turned-off state, acquiring a plurality of signal values generated by the proximity sensor;
determining whether the plurality of signal values satisfy a calibration condition;
calibrating a current background noise value of the proximity sensor to an initial predetermined background noise value when the plurality of signal values satisfy the calibration condition.
8. The electronic device of claim 7, wherein the processor is to:
determining whether the plurality of signal values are stable and each of the signal values is less than a first threshold;
the calibrating the current noise floor value of the proximity sensor to an initial predetermined noise floor value when the plurality of signal values satisfy the calibration condition comprises:
calibrating a current noise floor value of the proximity sensor to an initial predetermined noise floor value when the plurality of signal values are stable and each of the signal values is less than a first threshold value.
9. The electronic device of claim 7, wherein the processor is to:
removing a maximum signal value and a minimum signal value of the plurality of signal values;
judging whether the absolute value of the difference value of any two of the remaining signal values is smaller than a second threshold value;
determining that the plurality of signal values are stable when the absolute value of the difference is less than the second threshold.
10. The electronic device of claim 7, wherein the processor is configured to control a display state of the touch screen display based on the signal value generated by the proximity sensor and the initial predetermined noise floor value when the electronic device is in a call service.
11. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the calibration method of any of claims 1-6.
12. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the calibration method of any one of claims 1-6.
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 (8)
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 | 深圳市万普拉斯科技有限公司 | Bottom noise adjusting and processing method and device based on proximity sensor and computer equipment |
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 |
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)
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 | 广东欧珀移动通信有限公司 | The calibration steps of a kind of infrared proximity transducer, device and mobile terminal |
CN106791209A (en) * | 2017-03-10 | 2017-05-31 | 上海传英信息技术有限公司 | The self-checking device and method of distance of mobile terminal sensor |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
TWI639100B (en) * | 2016-09-09 | 2018-10-21 | 宏達國際電子股份有限公司 | Portable electronic device, operating method for the same, and non-transitory computer readable recording |
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广东移动通信有限公司 | Method and device for calibrating proximity sensor, storage medium and electronic equipment |
-
2018
- 2018-09-30 CN CN201811159200.6A patent/CN109167857B/en active Active
Patent Citations (3)
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 | 广东欧珀移动通信有限公司 | The calibration steps of a kind of infrared proximity transducer, device and mobile terminal |
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 | |
CN110581904B (en) | Control method, control device, electronic device, and storage medium | |
EP3544268B1 (en) | Electronic device and manufacturing method for an electronic device | |
US20200304617A1 (en) | Electronic Device and Fabrication Method Thereof | |
CN109618031B (en) | Electronic device and control method thereof | |
CN108769354B (en) | Control method, control device, electronic device, storage medium, and computer apparatus | |
CN108512960B (en) | Electronic device and method for manufacturing the same | |
WO2019233232A1 (en) | Control method, control device, electronic device, computer storage medium and device | |
CN109710119B (en) | Control method, control device, electronic device, and storage medium | |
CN109120752B (en) | Electronic device | |
CN109274787B (en) | Electronic device | |
CN109032433B (en) | Proximity sensor and electronic device | |
CN109388285A (en) | Proximity test mode switching method, device, electronic equipment and storage medium | |
CN108718349B (en) | Control method, control device, electronic device, storage medium, and computer apparatus | |
CN108769301B (en) | Mobile terminal | |
CN108989566A (en) | control method, electronic device and computer readable storage medium | |
CN109710109B (en) | Control method, control device, electronic device, and storage medium | |
CN109710110B (en) | Control method, control device, electronic device, and storage medium | |
WO2019233233A1 (en) | Control method, control device, electronic device, storage medium and computer device | |
CN109743451B (en) | Control method, electronic device, computer apparatus, and storage medium | |
CN109298823A (en) | Control method, control device, electronic device and storage medium | |
CN109388282B (en) | Control method, electronic device, and storage medium | |
CN109683750B (en) | Control method, electronic device, computer apparatus, and storage medium | |
CN109656429B (en) | Control method, electronic device, and storage medium | |
CN108874483B (en) | Control method, control device, electronic device, storage medium, and computer apparatus |
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 |