CN109167857A - Calibration method, electronic device, storage medium, and computer apparatus - Google Patents
Calibration method, electronic device, storage medium, and computer apparatus Download PDFInfo
- Publication number
- CN109167857A CN109167857A CN201811159200.6A CN201811159200A CN109167857A CN 109167857 A CN109167857 A CN 109167857A CN 201811159200 A CN201811159200 A CN 201811159200A CN 109167857 A CN109167857 A CN 109167857A
- Authority
- CN
- China
- Prior art keywords
- proximity sensor
- signal values
- electronic device
- value
- 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.)
- Granted
Links
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
This application involves electronic technology field, in particular to a kind of calibration method, electronic device, storage medium and computer
Equipment.
Background technique
Currently, screen mobile phone has become the mainstay product of major cell phone manufacturer comprehensively.In the related art, in order to improve hand
The screen accounting of machine, proximity sensor are arranged on the lower section of display screen.However, the lower section of display screen is arranged in proximity sensor,
When display screen is by external force, external force can be transferred to proximity sensor by display screen, and proximity sensor is caused to work
When the data that generate can not accurately judge the state between display screen and external object, cause the display state of display screen can not
Accurately control.
Apply for content
It is set in view of this, embodiments herein provides a kind of calibration method, electronic device, storage medium and computer
It is standby.
Embodiments herein provides a kind of calibration method, for the proximity sensor of electronic device, the electronics dress
It sets including touch display screen, the lower section of the touch display screen is arranged in the proximity sensor, and the calibration method includes:
When the touch display screen is in OFF state, multiple signal values that the proximity sensor generates are obtained;
Judge whether the multiple signal value meets calibration condition;
When the multiple signal value meets the calibration condition, it is by the current bottom of proximity sensor value calibration of making an uproar
Initial predetermined bottom is made an uproar value.
Embodiments herein provides a kind of electronic device, electronic device include touch display screen, proximity sensor and
Processor, the proximity sensor are arranged below the touch display screen, and the processor is used for:
When the touch display screen is in OFF state, multiple signal values that the proximity sensor generates are obtained;
Judge whether the multiple signal value meets calibration condition;
When the multiple signal value meets the calibration condition, it is by the current bottom of proximity sensor value calibration of making an uproar
Initial predetermined bottom is made an uproar value.
Embodiments herein provides one or more non-volatile computers comprising computer executable instructions can
Storage medium is read, when the computer executable instructions are executed by one or more processors, so that the processor executes
The calibration method.
A kind of computer equipment, including memory and processor store computer-readable instruction in the memory, institute
When stating instruction by processor execution, so that the processor executes calibration method described in any of the above item.
In the calibration method of the application embodiment, electronic device, storage medium and computer equipment, in touch display screen
The current bottom of proximity sensor value calibration of making an uproar is first by the multiple signal values generated when in OFF state according to proximity sensor
Predetermined bottom of beginning is made an uproar value, is allowed signal value of the electronic device in call according to proximity sensor accurately control touch and is shown
The display state of screen.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the floor map of the electronic device of the application certain embodiments;
Fig. 2 be Fig. 1 electronic device along II-II to schematic cross-section;
Fig. 3 to Figure 12 is the schematic cross-section of the electronic device of the application certain embodiments;
Figure 13 is a status diagram of the electronic device of the application certain embodiments;
Figure 14 is another status diagram of the electronic device of the application certain embodiments;
Figure 15 be electronic device shown in Figure 14 along A-A to partial sectional schematic view;
Figure 16 is the stereoscopic schematic diagram of the light guide of the electronic device of the application certain embodiments;
Figure 17 is another stereoscopic schematic diagram of the light guide of the electronic device of the application certain embodiments;
Figure 18 is the flow diagram of the calibration method of the application certain embodiments;
Figure 19 is the module diagram of the control device of the application certain embodiments;
Figure 20-Figure 21 is the flow diagram of the calibration method of the application certain embodiments;
Figure 22 is the usage scenario schematic diagram of the electronic device of the application certain embodiments;
Figure 23 is the module diagram of the computer equipment of the application certain embodiments.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
With the development of electronic equipment, screen has become the development trend of mobile phone comprehensively.Screen high the characteristics of shielding accounting comprehensively
So that the top of screen leaves proximity sensor for or the position of other elements is limited, when proximity sensor is arranged in light transmission display screen
When lower, due to photoelectric effect, proximity sensor makes the electronics in screen by excitation to draw during emitting infrared light
The flashing of light transmission display screen is played, so that the normal display with light transmission display screen forms interference, influences the experience of user.
Fig. 1-3 is please referred to, the application embodiment provides a kind of electronic device 100.Electronic device 100 includes touching to show
Display screen 10, proximity sensor 16, attitude transducer 102 and processor 23.Touch display screen 10 includes display layer 13, display layer
13 include viewing area 1311.Proximity sensor 16 is arranged below touch display screen 10.Further, proximity sensor 16 is arranged
Below viewing area 1311.Proximity sensor 16 is used to emit infrared light and receives the infrared light being reflected by the object with detection object
To the distance of electronic device 100.
Illustratively, electronic device 100 can be various types of calculating that are mobile or portable and executing wireless communication
Any one of machine system equipment (only illustratively shows a kind of form) in Fig. 1.Specifically, electronic device 100 can be with
For mobile phone or smart phone (for example, being based on iPhone TM, the phone based on Android TM), portable gaming device
(such as Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), knee
Laptop, PDA, portable Internet appliance, music player and data storage device, other handheld devices and such as
Wrist-watch, In-Ear Headphones, pendant, headphone etc., electronic device 100 can also be other wearable devices (for example, all
As electronic glasses, electronics clothes, electronics bracelet, electronics necklace, electronics are tatooed, the headset equipment of electronic equipment or smartwatch
(HMD))。
Electronic device 100 can also be that any one of multiple electronic equipments, multiple electronic equipments include but is not limited to
Cellular phone, smart phone, other wireless telecom equipments, personal digital assistant, audio player, other media players, sound
Happy logger, video recorder, camera, other medium recorders, radio, Medical Devices, vehicle transport instrument, calculator, can
Program remote controler, pager, laptop computer, desktop computer, printer, netbook computer, personal digital assistant
(PDA), portable media player (PMP), Motion Picture Experts Group's (MPEG-1 or MPEG-2) audio layer 3 (MP3) play
Device, portable medical device and digital camera and combinations thereof.
In some cases, electronic device 100 can execute multiple functions and (for example, playing music, show video, storage
Picture and send and receive call).If desired, electronic device 1000 can be such as cellular phone, media play
The portable device of device, other handheld devices, watch equipment, pendant equipment, receiver device or other compact portable equipment.
Mobile phone determines the distance between mobile phone and barrier by being positioned proximate to sensor 16 and makes corresponding adjustment,
Erroneous operation by the user can be prevented and is conducive to save the electricity of mobile phone.For example, when user answer or make a phone call and incite somebody to action
When mobile phone is close to head, by calculating, transmitter issues infrared light to proximity sensor 16 and receiver reception is reflected infrared
The time of light generates detection information, and processor 23 is according to the detection information touch display screen 10.When mobile phone is far from head, processing
The detection information that device 23 is fed back again according to proximity sensor 16 reopens touch display screen 10.
In some embodiments, display layer 13 includes OLED display layer.
Specifically, OLED display layer has good translucency, can preferably penetrate visible light and infrared light.Therefore,
OLED display layer can nor affect on the transmitting of proximity sensor 16 and receive infrared light in the case where showing content effect.It is aobvious
Show that layer 13 can also be using Micro LED display layer, Micro LED display layer equally has good to visible light and infrared light
Light transmittance.Certainly, these display layers are only used as illustrative and embodiments herein is not limited to this.In addition, touching display
Shield 10 it is settable on the housing 20.
Referring to Fig. 3, in some embodiments, touch display screen 10 further includes euphotic cover plate 11 and touch control layer 12.Thoroughly
Light cover board 11 is arranged in touch control layer 12.Touch control layer 12 is arranged on display layer 13.The upper surface 131 of display layer 13 is towards touching
Control layer 12.Euphotic cover plate 11 and touch control layer 12 are all larger than 90% to visible light transmittance rate and infrared light transmittance.
Specifically, touch control layer 12 is mainly used for receiving user input signal and being transmitted to circuit board carrying out data processing, from
And obtain the specific location that user touches touch control layer 12.It should be pointed out that the setting of touch control layer 12 can refer on display layer 13
Be that touch control layer 12 is contacted with display layer 13.For example, In-Cell On-Cell technology can be used, by touch control layer 12 and show
Show that layer 13 is bonded, can effectively mitigate the weight of display layer 13 and reduces the integral thickness of display layer 13.Touch control layer 12
Setting also also refers to touch control layer 12 on display layer 13 and is arranged above display layer 13, and is spaced with display layer 13.
In addition, being arranged euphotic cover plate 11 in touch control layer 12, it can be effectively protected touch control layer 12 and its internal structure,
Avoid damage of the external forces to touch control layer 12 and display layer 13.Euphotic cover plate 11 and touch control layer 12 are to visible light and infrared
The light transmittance of light is all larger than 90%, not only contributes to display layer 13 and preferably shows content effect, and also helps setting and exist
Proximity sensor 16 under display layer 13 steadily emits and receives infrared light, ensure that the normal work of proximity sensor 16.
Referring to Fig. 4, in some embodiments, display layer 13 includes upper surface 131 and lower surface 132.Electronic device
100 further include the first coating layer 14 for being coated on lower surface 132 and covering proximity sensor 16.First coating layer 14 is for saturating
It crosses infrared light and intercepts visible light.Proximity sensor 16 is used for through the first coating layer 14 and the transmitting of display layer 13 and/or receives
Infrared light.
Specifically, the first coating layer 14 of setting is for the normal work of guarantee proximity sensor 16 through infrared light.First
Coating layer 14 intercept visible light can be realized from outside watch electronic device 100 when, reach the sightless effect of proximity sensor 16
Fruit.
Fig. 4 and Fig. 5 is please referred to, in some embodiments, proximity sensor 16 includes transmitter 1611 and receiver
1612.Transmitter 1611 is used to emit infrared light through the first coating layer 14 and display layer 13.Receiver 1612 is for receiving warp
The infrared light of object emission is with detection object at a distance from electronic device 100.
Specifically, under normal circumstances, when user is when answering or making a phone call, electronic device 100 close to human body head,
Transmitter 1611 issues infrared light, and receiver 1612 receives reflected infrared light.Processor 23 calculates infrared light from transmitting
To the reflected time, just issues command adapted thereto control screen and close.When electronic device 100 is far from head, processor 23
Instruction is calculated and issued again according to the data fed back, just reopens screen.In this way, not only preventing user's
Maloperation, and save the electricity of mobile phone.
In some embodiments, orthographic projection of the proximity sensor 16 in lower surface 132 is located at the first coating layer 14 under
In the orthographic projection on surface 132.
Specifically, the installation of proximity sensor 16 usually requires reserved fit-up gap during carrying out technique assembly,
Lead to gap occur between proximity sensor 16 and other elements, enters visible light in gap, light leakage phenomena occur.Cause
This, on the direction that proximity sensor 16 and display layer 13 are laminated, area of first coating layer 14 in the orthographic projection of lower surface 132
Greater than proximity sensor 16 in the area of the orthographic projection of lower surface 132, the normal work of proximity sensor 16 can not influenced
In the case of, so that the first coating layer 14 is sufficiently blocked proximity sensor 16 and reaches and connect when realization watches electronic device 100 from outside
The sightless effect of nearly sensor 16.
Referring to Fig. 5, in some embodiments, orthographic projection and first coating of the proximity sensor 16 in lower surface 132
Layer 14 is overlapped.
Specifically, on the direction that proximity sensor 16 and display layer 13 are laminated, the first coating layer 14 also can be set just
The area for being projected on lower surface 132 is equal to 16 orthographic projection of proximity sensor in the area of lower surface 132.It so, it is possible in not shadow
In the case where ringing the normal work of proximity sensor 16, the first coating layer 14 is made just to block proximity sensor 16, realized from direction
And when watching electronic device 100 perpendicular to the direction of 13 upper surface 131 of display layer, reach the sightless effect of proximity sensor 16
Fruit.
Referring to Fig. 6, further, in such an embodiment, electronic device 100 further includes being arranged in lower surface
132 and surround proximity sensor 16 light shield layer 17.
Specifically, it is just being thrown when area of setting 14 orthographic projection of the first coating layer in lower surface 132 is equal to proximity sensor 16
Shadow is when the case where area of lower surface 132, due to placing the spatial volume of proximity sensor 16 than proximity sensor 16
Volume is big, and when causing to watch electronic device 100 from external environment, it is existing that light leakage occurs in the space around proximity sensor 16
As.Therefore, the light shield layer 17 that proximity sensor 16 is surrounded by setting, has filled up the seam of proximity sensor 16 Yu surrounding space
Gap can eliminate this light leakage phenomena.Light shield layer 17 can be using foam made of black material, be also possible to other black
Foamed plastics or rubber.Certainly, these materials are only used as illustrative and embodiments herein is not limited to this.
In some embodiments, the first coating layer includes IR ink, and IR ink is greater than 85% to the light transmittance of infrared light,
IR ink is 850nm-940nm less than the wavelength for the infrared light that 6%, IR ink can pass through to the light transmittance of visible light.
Specifically, since IR ink has the characteristic to visible light low-transmittance, so watching electronic device 100 from outside
When, based on the visual observation of human eye less than the proximity sensor 16 being arranged under the first coating layer 14.Meanwhile IR ink has both pair
The characteristic of infrared light high transparency can make proximity sensor 16 steadily emit and receive infrared light, ensure that close to sensing
The normal work of device 16.
Please refer to Fig. 7 and Fig. 8, in some embodiments, electronic device 100 further include be coated on lower surface 132 and with
The second coating layer 15 that first coating layer 14 connects.
Specifically, the first coating layer 14 is mainly used for through infrared light and blocks proximity sensor 16, but due to the first painting
The cost for the IR ink that layer of cloth 14 uses will be unfavorable for compared with general black ink height if lower surface 132 is all coated with IR ink
Production cost is reduced, also, general black ink can reach lower, occlusion effect to the light transmittance of visible light compared to IR ink
It is more prominent.In this way, not only contributing to reduce production cost, and occlusion effect more meets by the second coating layer 15 of setting
Technique requirement.
Fig. 9 and Figure 10 are please referred to, in some embodiments, electronic device 100 further includes covering lower surface 132 and avoids
The buffer layer 18 of proximity sensor 16.
Specifically, buffer layer 18 is for slowing down impact force and shockproof to protect touch control layer 12 and display layer 13 and its internal junction
Structure avoids display layer 13 from damaging due to by extraneous percussion.Buffer layer 18 can by foam or foamed plastics or
Rubber or other soft materials are made.Certainly, these padded coamings are only used as illustrative and embodiments herein not
It is limited to this.In addition, during buffer layer 18 are set avoid proximity sensor 16, be in order to prevent buffer layer 18 block it is close
Sensor 16, in case proximity sensor 16 is affected during emitting and receiving infrared light.
Figure 11 and Figure 12 are please referred to, further, in such an embodiment, electronic device 100 further includes that covering is slow
It rushes layer 18 and avoids the sheet metal 19 of proximity sensor 16.
Specifically, sheet metal 19 has the function of spreading temperature rise for shielding electromagnetic interference and ground connection.Sheet metal 19 can be with
It is cut using metal materials such as copper foil, aluminium foils.Certainly, these metal materials are only used as illustratively and the implementation of the application
Example is not limited to this.It is the screening of sheet metal 19 in order to prevent in addition, avoiding proximity sensor 16 during sheet metal 19 are arranged
Proximity sensor 16 is kept off, in case proximity sensor 16 is affected during emitting and receiving infrared light.
Also referring to Figure 13-15, in some embodiments, electronic device 100 further include shell 20, receiving shell 200,
Light guide 51 and optical inductor 5.Receiving shell 200 is slidably connect with shell 20, and can be stretched out shell 20 or be retracted in shell 20.
It accommodates shell 200 and is equipped with incidence hole 2006, light guide 51 is contained in 200 inside of receiving shell and partially protrudes into incidence hole 2006.It is guide-lighting
Part 51 has opposite incidence surface 511 and light-emitting surface 512.Incidence surface 511 towards receiving shell 200 outside.512 direction of light-emitting surface
It accommodates inside shell 200.Optical inductor 5 is contained in 200 inside of receiving shell and face light-emitting surface 512.
In this way, since incidence hole 2006 is set in the receiving shell 200 of electronic device 100, rather than be arranged in electronic device
100 touch display screen 10, therefore the setting of incidence hole 2006 can either meet the needs of optical inductor 5 receives environment light, also
Without limitation on the screen accounting of touch display screen 10, so that the screen accounting of electronic device 100 is larger.
Specifically, Figure 13-14 is please referred to, which is in electronic device 100 and is defined for reference, electronic device
100 have width direction X, length direction Y and thickness direction Z, and for length direction Y perpendicular to width direction X, thickness direction Z is vertical
In width direction X and length direction Y.
Shell 20 further includes top end face 1002 and the bottom face being disposed opposite to each other with top end face 1,002 1003.In general, top
Face 1002 and bottom face 1003 X can extend in the width direction.Namely top end face 1002 and bottom face 1003 are electronic device 100
Short side.Connector, microphone, loudspeaker etc. of the bottom face 1003 for electronic device 100 of arranging.
Such as Figure 14, holding tank 1004 is offered on the top of shell 20, holding tank 1004 is from the top of shell 20 to shell
20 inner recess.Holding tank 1004 runs through the side of shell 20.It accommodates shell 200 and is slided in holding tank 1004 with shell 20 and connected
It connects.In other words, receiving shell 200 is slidably connected shell 20, to stretch out or retract holding tank 1004.
Function element 300 can also be set in receiving shell 200, and function element 300 is, for example, camera, earpiece or laser hair
Emitter etc., camera are exposed by incidence hole 2006, such as function element 300 passes through the incidence hole of the side of receiving shell 200
2006 expose.When accommodating the stretching shell 20 of shell 200, camera can shoot the external image of electronic device 100.Camera example
The for example cameras such as RGB camera.
In some embodiments, receiving shell 200 has lateral surface, and the part or all of opposite exterior lateral sides face of incidence surface 511 is convex
Out.In this way, receiving shell 200 is less to blocking for incidence surface 511, or even incidence surface 511 is not blocked completely, so that incidence surface 511
More ambient lights can be received, light guide 5151 can preferably guide ambient to enter photosensitive sensors 5.
In present embodiment, the lateral surface of receiving shell 200 includes top surface 2003, and top surface 2003 offers incidence hole 2006.
Light guide 51 is corresponding with the incidence hole 2006 of top surface 2003 is located at.In other words, optical inductor 5 is received by light guide 51 by position
In the light of the incidence hole 2006 of top surface 2003.In this way, no matter accommodating shell 200 stretches out or retracts shell 20, optical inductor 5
It can sense ambient light.The part or all of opposing top 2003 of incidence surface 511 protrusion.
Please refer to Figure 15-Figure 17, the edge that incidence surface 511 has central area 5111 and is arranged around central area 5111
Region 5112.5111 opposed edge sections 5112 of central area protrusion.At this point, the area of incidence surface 511 is larger, it is more extraneous
Light is able to enter light guide 51.Wherein, incidence surface 511 is cambered surface.
In some embodiments, receiving shell 200 has medial surface 2063, and medial surface 2063 forms locating slot 2064, fixed
Position slot 2064 is connected to incidence hole 2006, and light guide 51 includes light in part 513 and light out part 514, and incidence surface 511 is light in part 513
Away from the end face of light out part 514, light-emitting surface 512 is the end face that light out part 514 deviates from light in part 513, light in part 513 be arranged in into
Unthreaded hole 2006, light out part 514 are partly or entirely embedded at locating slot 2064.
At this point, light guide 5151 is fixed to one another with receiving shell 200, it is difficult to slide.Meanwhile light out part 514 is towards light in part
On 513513 face can adhesive sealant, sealing element continuously around light in part 513513 be arranged.Sealing element is supported in light out
On the trough wall surface of portion 514 and locating slot 2064, to realize sealing, prevents external dust, steam etc. from entering through incidence hole 2006 and receive
Hold the inside of shell 200.
In some embodiments, the area of light-emitting surface 512 is greater than the area of incidence surface 511, in incidence surface 511 to light out
On the direction in face 512, the cross-sectional area of light in part 513 is incremented by.
Specifically, the shape of light in part 513 is substantially in truncated cone-shaped, is conducive to light and transmits in light in part 3513, and energy
It enough spreads apart, even into light out part 514.
In some embodiments, light guide 51 further includes positioning region 515, and positioning region 515 and light out part 514, which enclose, sets out appearance
516 between emptying, accommodating space 516 is for accommodating optical inductor 5.The photosensitive sensors 5 for being contained in accommodating space 516 can be by
Positioning region 515 and light out part 514 are protected, and avoid being damaged when electronic device 100 falls or hit.Wherein, light-emitting surface
Gap is formed between 512 and the photosensitive area 52 of photosensitive sensors 5.
Figure 18 is please referred to, this application provides a kind of calibration methods.Calibration method is for electronic device 100 close to sensing
Device 16.Calibration method comprising steps of
S12: when the touch display screen 10 is in OFF state, multiple letters that the proximity sensor 16 generates are obtained
Number value;
S14: judge whether the multiple signal value meets calibration condition;With
S16: when the multiple signal value meets the calibration condition, the current bottom of the proximity sensor 16 is made an uproar value
Initial predetermined bottom is calibrated to make an uproar value.
The electronic device 100 of the application embodiment includes touch display screen 10, proximity sensor 16 and processor 23, is connect
Nearly sensor 16 is arranged below touch display screen 10.Step S12, S14 and S16 of above-mentioned calibration method can be by processors 23
It realizes.In other words, processor 23 is used for: when the touch display screen 10 is in OFF state, obtaining the proximity sensor
The 16 multiple signal values generated;Judge whether the multiple signal value meets calibration condition, and full in the multiple signal value
It is that initial predetermined bottom is made an uproar value by the current bottom of the proximity sensor 16 value calibration of making an uproar when the foot calibration condition.
Figure 19 is please referred to, embodiment further provides a kind of calibrating installation 1000, the schools of the application embodiment by the application
Quasi- method can be realized by the calibrating installation 1000 of the application embodiment.
Specifically, calibrating installation 1000 includes obtaining module 210, judgment module 220 and calibration module 230, obtains module
The 210 multiple signal values generated for when the touch display screen 10 is in OFF state, obtaining the proximity sensor 16.
Judgment module 220 is for judging whether the multiple signal value meets calibration condition.Calibration module 230 is used in the multiple letter
It is that initial predetermined bottom is made an uproar value by the current bottom of the proximity sensor 16 value calibration of making an uproar when number value meets the calibration condition.
In other words, step S14 can be realized by acquisition module 210, and step S15 can be realized by calibration module 230, step
Rapid S16 can be realized by judgment module 220.
Specifically, electronic device 100 when leaving the factory can make an uproar the bottom of proximity sensor 16, value calibration is one initial predetermined
Bottom is made an uproar value, and the initial predetermined bottom of proximity sensor 16 is made an uproar value storage.When electronic device 100 is sent a telegram here, proximity sensor 16
Signal value is opened and generates, the signal value that electronic device 100 is generated according to proximity sensor 16 and initial predetermined bottom are made an uproar the difference of value
Value judges whether proximity sensor 16 is shielded, and controls touch display screen 10 when proximity sensor 16 is shielded and be in and extinguish
State.
For example, the initial predetermined bottom of proximity sensor 16 is made an uproar, value is 10, when electronic device 100 is conversed, proximity sensor
16 signal values generated are 200, and the make an uproar difference of value of the signal value and initial predetermined bottom that proximity sensor 16 generates is 190, at this point,
If being 160 far from threshold value, difference 190 is greater than far from threshold value 160 (190 > 160), is may determine that at this time close to sensing
For device 16 without shielded, controllable touch display screen 10 is in illuminating state.
However, in the use process of electronic device 100, touch display screen 10 may be fallen in electronic device 100,
The impacts such as hitting influences, so that proximity sensor 16, which is oppressed etc., to be influenced, the bottom of proximity sensor 16 value of making an uproar is caused to increase
Greatly, so that electronic device 100 can not accurately control the display state of touch display screen 10.
For example, when proximity sensor 16 is impacted, the current bottom of proximity sensor 16 value of making an uproar may become 180, in electricity
When sub-device 100 is conversed, the signal value that proximity sensor 16 generates is 200, signal value that proximity sensor 16 generates and current
The make an uproar difference of value of bottom is 20, at this point, if close to threshold value be 100, difference 20 is less than close to threshold value 100 (20 < 100),
It may determine that proximity sensor 16 is shielded at this time, then control touch display screen 10 and be in OFF state.And under normal circumstances, it connects
The bottom of nearly sensor 16 is made an uproar be worth and do not change in the case where, proximity sensor 16 is judged as not shielded state.
So as it can be seen that when the bottom of proximity sensor 16 make an uproar value change when, the state of proximity sensor 16 may be produced
Raw erroneous judgement, can not accurately control the display state of touch display screen 10.
To sum up, the calibration method and electronic device 100 of the application embodiment is in OFF state in touch display screen 10
When multiple signal values for being generated according to proximity sensor 16 by the current bottom of proximity sensor 16 value calibration of making an uproar be initial predetermined bottom
It makes an uproar value, electronic device 100 is allowed accurately to control touch display screen according to the signal value of proximity sensor 16 in call
10 display state.
Specifically, in step s 12, the display state of touch display screen 10 includes OFF state and illuminating state.Extinguish
State refers to that the touch display screen 10 of electronic device 100 powers off, and touch display screen 10 can not shine, at this point, viewing area 1311
It is rendered as appearance of black.
The illuminating state of touch display screen 10 refers to that touch display screen 10 is powered, and viewing area 1311 can shine and show
Content.
When touch display screen 10 is in OFF state, electronic device 100 may be at talking state, also may be at non-through
Speech phase.Preferably, electronic device 100 is in non-talking state, in other words, non-talking state is in electronic device 100
And when OFF state, multiple signals that proximity sensor 16 generates are obtained.
Figure 20 is please referred to, in some embodiments, step S14 includes:
S142: judging whether the multiple signal value is stable, and whether each signal value is respectively less than first threshold;
Step S16 includes:
S162: it when in the multiple signal value, stable and each signal value is respectively less than first threshold, is connect described
The current bottom of nearly sensor 16 value calibration of making an uproar is that initial predetermined bottom is made an uproar value.
In some embodiments, processor 23 is used for: judging whether the multiple signal value is stable, and each described
Whether signal value is respectively less than first threshold;In the multiple signal value, stable and each signal value is respectively less than first threshold
When, it is that initial predetermined bottom is made an uproar value by the current bottom of the proximity sensor 16 value calibration of making an uproar.
Specifically, in step S142, judge the whether stable calibration that can make proximity sensor 16 of multiple signal values
Process is more accurate.For example, showing the state of electronic device 100 when multiple signal values that proximity sensor 16 generates are stablized
Stablize.When each signal value is respectively less than first threshold, show that electronic device 100 is in specific state.
It is understood that the signal value that proximity sensor 16 generates is to connect when proximity sensor 16 is not blocked
The current bottom of nearly sensor 16 is made an uproar value.Generally, value is made an uproar less than a threshold value in the current bottom of proximity sensor 16.For example, applying
Before proximity sensor 16, the value that the bottom of proximity sensor 16 can be made an uproar correction is less than 1000, in other words, proximity sensor 16
No matter influenced by what kind of, in the case where proximity sensor 16 is not blocked, the signal value of the generation of proximity sensor 16
Respectively less than 1000.
In step S142, first threshold can be set to 1000.At this point, when each signal value is respectively less than 1000, at this time
It can be determined that proximity sensor 16 is not blocked, the working as proximity sensor 16 when proximity sensor 16 is not blocked
Preceding bottom value calibration of making an uproar is that initial predetermined bottom is made an uproar value, so that the calibration of proximity sensor 16 is more accurate.
For example, 5 signal values that proximity sensor 16 is sequentially generated are respectively 210,211,212,210,213, at this point, 5
A signal value is respectively less than 1000, and the value calibration that the current bottom of proximity sensor 16 can be made an uproar is to 10.
It is appreciated that can judge that the current bottom of proximity sensor 16 is made an uproar value according to the signal value that proximity sensor 16 generates
Whether 10 are calibrated to.For example, the current bottom of proximity sensor 16 is made an uproar after value calibration, the signal value that proximity sensor 16 generates is
10, then, then it can be determined that the current bottom of proximity sensor 16 value of making an uproar has calibrated to 10.
Figure 21 is please referred to, in some embodiments, the step for judging whether the multiple signal value is stable includes:
S1421: by the multiple signal value maximum signal level and minimum signal value remove;
S1422: judging the absolute value of the difference of signal value described in any two in remaining multiple signal values is
It is no to be respectively less than second threshold;
S1423: determine that the multiple signal value is stablized when the absolute value of the difference is less than the second threshold.
In some embodiments, processor 23 is used for: by the maximum signal level and minimum letter in the multiple signal value
Number value removal;Judge whether the absolute value of the difference of signal value described in any two in remaining multiple signal values is small
In second threshold;And determine that the multiple signal value is stablized when the absolute value of the difference is less than the second threshold.
In other words, step S1421, S1422 and S1423 can be realized by processor 23.
In one example, 8 signal values that proximity sensor 16 is sequentially generated be 210,211,212,210,213,
212,208,215.Second threshold can be 10.After so removing maximum signal level 215 and minimum signal value 208, remaining 6 letters
Number value be 210,211,212,210,213,212, in remaining 6 signal values, the difference of any two signal value it is absolute
Value is less than 10, at this point it is possible to determine that 8 signal values are stable.
In this way, judging that the stable method of multiple signal values is simple and effective, avoid calculating excessively complicated.
It is appreciated that the step for judging whether the multiple signal value is stable includes:
S1422: the multiple signal value is determined not when the absolute value of the difference is greater than or equal to the second threshold
Stablize.
In some embodiments, step S12 includes:
After each end of conversation of the electronic device 100 and when the touch display screen 10 is in OFF state, obtain
Multiple signal values that the proximity sensor 16 generates.
In some embodiments, processor 23 is used for after each end of conversation of the electronic device 100 and the touching
When touching display screen 10 and being in OFF state, multiple signal values that the proximity sensor 16 generates are obtained.
In this way, proximity sensor 16 can be calibrated after each end of conversation of electronic device 100, so that electronic device
100 can accurately control the display state of touch display screen 10 when conversing next time.For example, electronic device 100 is in next time
When incoming call, the signal value control touch display screen 10 that can be generated according to proximity sensor 16 is lighted.
In some embodiments, step S12 includes:
When the touch display screen 10 is in OFF state, obtains the proximity sensor 16 and produce within a predetermined period of time
Raw multiple signal values.
In some embodiments, processor 23 is used for when the touch display screen 10 is in OFF state, obtains institute
State multiple signal values that proximity sensor 16 generates within a predetermined period of time.
In this way, multiple signal values that proximity sensor 16 is generated in predetermined amount of time are obtained, so that obtaining the mistake of signal value
Cheng Lianxu prevents from obtaining signal value when the state of electronic device 100 changes, the school of proximity sensor 16 can be improved in this way
Quasi- accuracy.For example, predetermined amount of time is 10 seconds, that is to say, that available proximity sensor 16 is in continuous 10 seconds
The multiple signal values generated.
In some embodiments, the calibration method further include:
The signal value generated when the electronic device 100 is in talk business according to the proximity sensor 16 and institute
Initial predetermined bottom is stated to make an uproar the display state of the value control touch display screen 10.
In some embodiments, the processor is used for when the electronic device 100 is in talk business, according to institute
The signal value and the initial predetermined bottom for stating the generation of proximity sensor 16 are made an uproar the display state of the value control touch display screen 10.
In this way, as previously discussed, it can be according to the signal value and the initial predetermined bottom that the proximity sensor 16 generates
Value of making an uproar control touch display screen 10 is in illuminating state or OFF state.
Specifically, incorporated by reference to Figure 22, talk business includes incoming call, removes electricity or connect phone.It is appreciated that sending a telegram here, going
Electricity or when connecting phone, user generally puts electronic device 100 in one's ear, and according to proximity sensor 16 according to electronic device
100 adjust the state of touch display screen 10 at a distance from human body head, make bright screen when far from human body of electronic device 100, are leaning on
Screen is ceased when person of modern times's body, so not only prevents the maloperation of user, and save the electricity of electronic device 100.
Further, talk business can for user carry out voice dialogue process, for example, talk business be user to he
People dials number and the process that waits other side to answer, that is, removes electricity condition;Or user is being talked with by voice with other people
Process, i.e., connection telephone state;Or electronic device 100 accesses the phone of external incoming call and the mistake that waits user to answer
Journey carrys out electricity condition.
Embodiment further provides a kind of computer readable storage mediums by the application.One or more can be held comprising computer
The non-volatile computer readable storage medium storing program for executing of row instruction, when computer executable instructions are executed by one or more processors 23
When, so that processor 23 executes the calibration method of any of the above-described embodiment.
Figure 23 is please referred to, embodiment further provides a kind of computer equipments 400 by the application.Computer equipment includes storage
Device 32 and processor 23 store computer-readable instruction in memory 32, and when instruction is executed by processor 23, processor 23 is held
The calibration method of any of the above-described embodiment of row.
Figure 23 is the internal module schematic diagram of the computer equipment 400 in one embodiment.Computer equipment 400 includes logical
Cross the processor 23, memory 32 (for example, non-volatile memory medium), built-in storage 33, display of the connection of system bus 31
Layer 13 and input unit 34.Wherein, the memory 32 of computer equipment 400 is stored with operating system and computer-readable instruction.
The computer-readable instruction can be executed by processor 23, to realize the calibration method of above-mentioned any one embodiment.
Processor 23 can be used for providing calculating and control ability, support the operation of entire computer equipment 400.Computer is set
Standby 400 built-in storage 33 provides environment for the computer-readable instruction operation in memory 32.Computer equipment 400 is shown
Show that layer 13 can be OLED display layer or Micro LED display layer etc., input unit 34, which can be, to be arranged on display layer 13
Touch display screen 10, be also possible to key, trace ball or the Trackpad being arranged on 400 shell of computer equipment, be also possible to
External keyboard, Trackpad or mouse etc..The computer equipment 400 can be mobile phone, tablet computer, laptop, individual
Digital assistants or wearable device (such as Intelligent bracelet, smartwatch, intelligent helmet, intelligent glasses) etc..Those skilled in the art
Member is appreciated that structure shown in figure, only the schematic diagram of part-structure relevant to application scheme, composition pair
The restriction for the computer equipment 400 that application scheme is applied thereon, specific computer equipment 400 may include than in figure
Shown more or fewer components perhaps combine certain components or with different component layouts.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, program can be stored in a non-volatile computer readable storage medium
In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can for magnetic disk,
CD, read-only memory (Read-Only Memory, ROM) etc..
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, program can be stored in a non-volatile computer readable storage medium
In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can for magnetic disk,
CD, read-only memory (Read-Only Memory, ROM) etc..
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not
Therefore it is interpreted as the limitation to the application the scope of the patents.It should be pointed out that for those of ordinary skill in the art,
Without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection model of the application
It encloses.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (12)
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 true CN109167857A (en) | 2019-01-08 |
| CN109167857B 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) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109724640A (en) * | 2019-01-12 | 2019-05-07 | Oppo广东移动通信有限公司 | Proximity sensor calibration method, electronic device, and computer-readable storage medium |
| CN110609977A (en) * | 2019-08-06 | 2019-12-24 | 深圳市万普拉斯科技有限公司 | Noise floor adjustment processing method, device and computer equipment based on proximity sensor |
| CN111262986A (en) * | 2020-01-16 | 2020-06-09 | Oppo(重庆)智能科技有限公司 | Proximity sensor calibration method, calibration device and mobile terminal |
| CN111289956A (en) * | 2020-01-21 | 2020-06-16 | 维沃移动通信有限公司 | Electronic equipment and noise floor calibration method |
| CN111366939A (en) * | 2020-02-20 | 2020-07-03 | Oppo(重庆)智能科技有限公司 | Calibration method and device of distance sensor, terminal and storage medium |
| CN112911035A (en) * | 2021-01-21 | 2021-06-04 | 维沃移动通信有限公司 | Signal transceiving component, electronic device and position adjusting method |
| CN112945987A (en) * | 2021-01-28 | 2021-06-11 | 维沃移动通信有限公司 | Light guide assembly and detection method thereof |
| CN114185446A (en) * | 2020-09-15 | 2022-03-15 | 华为技术有限公司 | Calibration signal generation method, electronic device and computer storage medium |
| CN117665958A (en) * | 2024-01-31 | 2024-03-08 | 荣耀终端有限公司 | Calibration method and electronic equipment of proximity light sensor |
Citations (7)
| 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 |
| CN107102864A (en) * | 2017-05-16 | 2017-08-29 | 广东欧珀移动通信有限公司 | One kind puts out screen control method, device, storage medium and terminal |
| US20180074645A1 (en) * | 2016-09-09 | 2018-03-15 | Htc Corporation | Portable electronic device, operating method for the same, and non-transitory computer readable recording medium |
| CN107809500A (en) * | 2016-09-09 | 2018-03-16 | 宏达国际电子股份有限公司 | Portable electronic device, operation method thereof and recording medium using the method |
| CN107943345A (en) * | 2017-11-22 | 2018-04-20 | 广东欧珀移动通信有限公司 | 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 (7)
| 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 |
| US20180074645A1 (en) * | 2016-09-09 | 2018-03-15 | Htc Corporation | Portable electronic device, operating method for the same, and non-transitory computer readable recording medium |
| CN107809500A (en) * | 2016-09-09 | 2018-03-16 | 宏达国际电子股份有限公司 | Portable electronic device, operation method thereof and recording medium using the method |
| CN106791209A (en) * | 2017-03-10 | 2017-05-31 | 上海传英信息技术有限公司 | The self-checking device and method of distance of mobile terminal sensor |
| CN107102864A (en) * | 2017-05-16 | 2017-08-29 | 广东欧珀移动通信有限公司 | One kind puts out screen control method, device, storage medium and terminal |
| CN107943345A (en) * | 2017-11-22 | 2018-04-20 | 广东欧珀移动通信有限公司 | Method and device for calibrating proximity sensor, storage medium and electronic equipment |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109724640A (en) * | 2019-01-12 | 2019-05-07 | Oppo广东移动通信有限公司 | Proximity sensor calibration method, electronic device, and computer-readable storage medium |
| CN110609977A (en) * | 2019-08-06 | 2019-12-24 | 深圳市万普拉斯科技有限公司 | Noise floor adjustment processing method, device and computer equipment based on proximity sensor |
| CN110609977B (en) * | 2019-08-06 | 2023-08-11 | 深圳市万普拉斯科技有限公司 | Noise floor adjustment processing method, device and computer equipment based on proximity sensor |
| WO2021143878A1 (en) * | 2020-01-16 | 2021-07-22 | Oppo广东移动通信有限公司 | Method for calibrating proximity sensor, calibration apparatus, and mobile terminal |
| CN111262986A (en) * | 2020-01-16 | 2020-06-09 | Oppo(重庆)智能科技有限公司 | Proximity sensor calibration method, calibration device and mobile terminal |
| CN111289956B (en) * | 2020-01-21 | 2022-04-29 | 维沃移动通信有限公司 | Electronic equipment and noise floor calibration method |
| CN111289956A (en) * | 2020-01-21 | 2020-06-16 | 维沃移动通信有限公司 | Electronic equipment and noise floor calibration method |
| CN111366939A (en) * | 2020-02-20 | 2020-07-03 | 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 |
| CN112911035A (en) * | 2021-01-21 | 2021-06-04 | 维沃移动通信有限公司 | Signal transceiving component, electronic device and position adjusting method |
| CN112945987A (en) * | 2021-01-28 | 2021-06-11 | 维沃移动通信有限公司 | Light guide assembly and detection method thereof |
| CN112945987B (en) * | 2021-01-28 | 2024-03-19 | 维沃移动通信有限公司 | Light guide components and detection methods of light guide components |
| CN117665958A (en) * | 2024-01-31 | 2024-03-08 | 荣耀终端有限公司 | Calibration method and electronic equipment of proximity light sensor |
| CN117665958B (en) * | 2024-01-31 | 2024-05-24 | 荣耀终端有限公司 | Calibration method and electronic device for proximity light sensor |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109167857B (en) | 2022-06-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109167857A (en) | Calibration method, electronic device, storage medium, and computer apparatus | |
| CN110581904B (en) | Control method, control device, electronic device, and storage medium | |
| CN105280195B (en) | The processing method and processing device of voice signal | |
| CN109618031B (en) | Electronic device and control method thereof | |
| CN109120752A (en) | Electronic device | |
| CN109274787A (en) | Electronic device | |
| CN109032433A (en) | proximity sensor and electronic device | |
| CN109190465A (en) | A kind of light compensating lamp mould group, fingerprint identification method and terminal device | |
| CN109710119B (en) | Control method, control device, electronic device and storage medium | |
| CN208386645U (en) | Electronic device | |
| CN108989490B (en) | Control method, control device, electronic device, storage medium, and computer apparatus | |
| JP5327119B2 (en) | Mobile terminal device | |
| CN109298823A (en) | Control method, control device, electronic device and storage medium | |
| CN109756623A (en) | Control method, control device, electronic device, and storage medium | |
| CN109710109B (en) | Control method, control device, electronic device and storage medium | |
| CN109710110B (en) | Control method, control device, electronic device, and storage medium | |
| CN109743451A (en) | Control method, electronic device, computer apparatus, and storage medium | |
| CN208874600U (en) | electronic device | |
| CN109683750A (en) | Control method, electronic device, computer apparatus, and storage medium | |
| CN110393341B (en) | Chain assembly and wearable equipment | |
| CN109388282B (en) | Control method, electronic device, and storage medium | |
| CN211349136U (en) | Wearable device | |
| CN109068507A (en) | Electronic device | |
| CN109656429A (en) | Control method, electronic device, and storage medium | |
| CN110448017A (en) | A kind of chain assemblies and wearable device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |