CN107968883A - Distance state detection method, device, storage medium and electronic equipment - Google Patents

Distance state detection method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107968883A
CN107968883A CN201711176004.5A CN201711176004A CN107968883A CN 107968883 A CN107968883 A CN 107968883A CN 201711176004 A CN201711176004 A CN 201711176004A CN 107968883 A CN107968883 A CN 107968883A
Authority
CN
China
Prior art keywords
state
display screen
electronic equipment
transmission power
signal strength
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
Application number
CN201711176004.5A
Other languages
Chinese (zh)
Other versions
CN107968883B (en
Inventor
张海平
周意保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711176004.5A priority Critical patent/CN107968883B/en
Publication of CN107968883A publication Critical patent/CN107968883A/en
Application granted granted Critical
Publication of CN107968883B publication Critical patent/CN107968883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the present application provides a kind of distance state detection method, device, storage medium and electronic equipment, and the distance state detection method includes:Obtain the dispaly state of display screen;Preset signals transmission power is obtained according to the dispaly state;Proximity sensor is controlled with the preset signals transmission power emission detection signal;Obtain the reflected signal strength value that the proximity sensor receives;The distance state of electronic equipment is judged according to the reflected signal strength value.In the distance state detection method, when display screen is in different dispaly states, transmission power during proximity sensor emission detection signal is different, so as to can both ensure that electronic equipment can accurately detect the distance between exterior object state, proximity sensor can be reduced again to the influence caused by the display performance of display screen, improve the stability for showing on-screen-display message.

Description

Distance state detection method, device, storage medium and electronic equipment
Technical field
This application involves technical field of electronic equipment, more particularly to a kind of distance state detection method, device, storage medium And electronic equipment.
Background technology
With the fast development of electronic technology, the electronic equipment such as smart mobile phone, tablet computer is increasingly popularized. Wherein, the electronic equipment such as smart mobile phone, tablet computer all has display screen.
In general, the non-display area in portion is provided with proximity sensor on a display screen.Proximity sensor is used to detect electronics Between equipment and exterior object close to or away from state so that the display screen of control electronics puts out screen or bright screen.
The content of the invention
The embodiment of the present application provides a kind of distance state detection method, device, storage medium and electronic equipment, can improve Show the stability of on-screen-display message.
The embodiment of the present application provides a kind of distance state detection method, and applied to electronic equipment, the electronic equipment includes Display screen and proximity sensor, the display screen include display area, positive throwing of the proximity sensor on the display screen Shadow is located at the display area, and the distance state detection method includes:
The dispaly state of display screen is obtained, the dispaly state includes bright screen state and puts out screen state;
Preset signals transmission power is obtained according to the dispaly state;
The proximity sensor is controlled with the preset signals transmission power emission detection signal;
The reflected signal strength value that the proximity sensor receives is obtained, the reflected signal passes through for the detectable signal Reflected signal caused by exterior object reflection;
The distance state of the electronic equipment is judged according to the reflected signal strength value, the distance state includes close State and remote state.
The embodiment of the present application also provides a kind of distance state detection device, applied to electronic equipment, the electronic equipment bag Include display screen and proximity sensor, the display screen includes display area, the proximity sensor on the display screen just Projection is located at the display area, and the distance state detection device includes:
First acquisition module, for obtaining the dispaly state of display screen, the dispaly state includes bright screen state and puts out screen State;
Second acquisition module, for obtaining preset signals transmission power according to the dispaly state;
Control module, for controlling the proximity sensor with the preset signals transmission power emission detection signal;
3rd acquisition module, the reflected signal strength value received for obtaining the proximity sensor, the reflection letter Number for the detectable signal through exterior object reflect caused by reflected signal;
Judgment module, for judging the distance state of the electronic equipment according to the reflected signal strength value, it is described away from Include proximity state and away from state from state.
The embodiment of the present application also provides a kind of storage medium, computer program is stored with the storage medium, when described When computer program is run on computers so that the computer performs above-mentioned distance state detection method.
The embodiment of the present application also provides a kind of electronic equipment, including processor and memory, is stored with the memory Computer program, the processor by calling the computer program stored in the memory, for perform it is above-mentioned away from From condition detection method.
Distance state detection method provided by the embodiments of the present application, including:Obtain the dispaly state of display screen, the display State includes bright screen state and puts out screen state;Preset signals transmission power is obtained according to the dispaly state;The close sensing of control Device is with the preset signals transmission power emission detection signal;Obtain the reflected signal strength that the proximity sensor receives Value, the reflected signal for the detectable signal through exterior object reflect caused by reflected signal;According to the reflected signal Intensity level judges the distance state of electronic equipment, and the distance state includes proximity state and away from state.The distance state In detection method, when display screen is in different dispaly states, transmission power during proximity sensor emission detection signal is not With, so as to can not only ensure that electronic equipment can accurately detect the distance between exterior object state, but also it can reduce and connect Nearly sensor improves the stability for showing on-screen-display message to the influence caused by the display performance of display screen.
Brief description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment Attached drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the first structure diagram of electronic equipment provided by the embodiments of the present application.
Fig. 2 is second of structure diagram of electronic equipment provided by the embodiments of the present application.
Fig. 3 is the first flow diagram of distance state detection method provided by the embodiments of the present application.
Fig. 4 is second of flow diagram of distance state detection method provided by the embodiments of the present application.
Fig. 5 is the third flow diagram of distance state detection method provided by the embodiments of the present application.
Fig. 6 is the 4th kind of flow diagram of distance state detection method provided by the embodiments of the present application.
Fig. 7 is the 5th kind of flow diagram of distance state detection method provided by the embodiments of the present application.
Fig. 8 is the 6th kind of flow diagram of distance state detection method provided by the embodiments of the present application.
Fig. 9 is the 7th kind of flow diagram of distance state detection method provided by the embodiments of the present application.
Figure 10 is the application scenarios schematic diagram of distance state detection method provided by the embodiments of the present application.
Figure 11 is the first structure diagram of distance state detection device provided by the embodiments of the present application.
Figure 12 is second of structure diagram of distance state detection device provided by the embodiments of the present application.
Figure 13 is the third structure diagram of distance state detection device provided by the embodiments of the present application.
Figure 14 is the third structure diagram of electronic equipment provided by the embodiments of the present application.
Figure 15 is the 4th kind of structure diagram of electronic equipment provided by the embodiments of the present application.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, the every other implementation that those skilled in the art are obtained under the premise of not making the creative labor Example, belongs to the protection domain of the application.
Term " first ", " second ", " the 3rd " in the description and claims of this application and above-mentioned attached drawing etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this The object of sample description can exchange in the appropriate case.In addition, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive include.For example, contain the process of series of steps, method or contain a series of modules or list The device of member, electronic equipment, system are not necessarily limited to those steps or module or the unit clearly listed, and can also include not having The step of clearly listing or module or unit, can also include for these processes, method, apparatus, electronic equipment or system Intrinsic other steps or module or unit.
With reference to figure 1, Fig. 1 is the structure diagram of electronic equipment provided by the embodiments of the present application.Wherein, electronic equipment 100 Including cover board 10, display screen 20, circuit board 30, housing 40 and the proximity sensor 50 inside the housing 40.
Cover board 10 is installed on display screen 20, to cover display screen 20.Cover board 10 can be transparent glass cover plate.At some In embodiment, cover board 10 can be with glass cover-plates made of material such as sapphires.
Display screen 20 is installed on housing 40, to form the display surface of electronic equipment 100.In certain embodiments, show Screen 20 includes display area 21 and non-display area 22.Wherein, display area 21 is used to show the information such as image, text.It is non-aobvious Show that region 22 does not show information.Non-display area 22 can be used for setting some functional units, such as camera, fingerprint recognition mould The functional units such as group.In certain embodiments, the non-display area 22 can include spaced multiple regions.For example, Non-display area 22 can be included positioned at two regions of 21 upper and lower part of display area.
In certain embodiments, display screen 20 can be displayed in full screen.That is, display screen 20 only includes display area 21, and Do not include non-display area, as shown in Figure 2.
In certain embodiments, display screen 20 can be liquid crystal display (Liquid Crystal Display, LCD) or Person's organic light-emitting diode (OLED) display screen (Organic Light-Emitting Diode, OLED).
Circuit board 30 is installed on inside housing 40.Circuit board 30 can be the mainboard of electronic equipment 100.Can on circuit board 30 To be integrated with the functional units such as camera and processor.Meanwhile display screen 20 can be electrically connected to circuit board 30.
In certain embodiments, it is provided with display control circuit on circuit board 30.The display control circuit is to display screen 20 output electric signals, information is shown with control display screen 20.
Housing 40 is used for the exterior contour for forming electronic equipment 100.The material of housing 40 can be plastics or metal.Housing 40 can be integrally formed.
Proximity sensor 50 is installed on inside housing 40.Meanwhile the proximity sensor 50 is electrically connected to the circuit board 30.For example, proximity sensor 50 can be integrated on circuit board 30.The proximity sensor 50 can be infrared sensor, surpass The sensor of the types such as sonic sensor.The proximity sensor 50 be used to detecting electronic equipment 100 and exterior object (for example, User face) the distance between state.The distance state includes proximity state and away from state.Performed in electronic equipment 100 During some functions, such as during execution call function, when being in proximity state between electronic equipment 100 and user face, electronics Equipment 100 can put out screen with control display screen 20, to prevent the maloperation of user;Locate when between electronic equipment 100 and user face When away from state, electronic equipment 100 can be with 20 bright screen of control display screen, to perform normal display function.
In the embodiment of the present application, proximity sensor 50 can be located at the lower section of display area 21 of display screen 20.That is, connect Nearly orthographic projection of the sensor 50 on display screen 20 is located at the display area 21 of the display screen 20.It should be understood that connect at this time The detectable signal that nearly sensor 50 is launched is transmitted to the external world after penetrating the display area 21 of the display screen 20.The detectable signal Reflected signal is produced after exterior object reflects, the reflected signal enters after penetrating the display area 21 of the display screen 20 In proximity sensor 50.So as to which proximity sensor 50 can detect the intensity level of the reflected signal received.
Since proximity sensor 50 detects the distance between electronic equipment 100 and exterior object (for example, being used for face) shape During state, the detectable signal that proximity sensor 50 is launched penetrates the display area 21 of the display screen 20, and the detectable signal Through exterior object reflect caused by reflected signal can also penetrate the display area 21 of the display screen 20, therefore proximity sensor 50 during the work time can impact the display performance of display screen 20 so that the display area 21 of the display screen 20 exists The situation of flicker.
The embodiment of the present application provides a kind of distance state detection method, and the distance state detection method can be applied to electricity In sub- equipment.The electronic equipment can be the equipment such as smart mobile phone, tablet computer.The electronic equipment is any of the above-described implementation Electronic equipment 100 described in example.As shown in figure 3, the distance state detection method, may comprise steps of:
S110, obtains the dispaly state of display screen, and the dispaly state includes bright screen state and puts out screen state.
Electronic equipment can obtain the dispaly state of display screen.The dispaly state includes bright screen state and puts out screen state. During in bright screen state, display screen can show the information such as image, text, can also sense the touch control operation of user, and perform Corresponding function.In when putting out screen state, display screen does not show information, also the touch control operation of user is not responded.
It should be noted that when display screen is in and puts out screen state, electronic equipment can normally perform other functions.Example Such as, electronic equipment can play audio, can perform voice communication etc. with other users with server exchange data.
S120, preset signals transmission power is obtained according to the dispaly state.
After electronic equipment gets the dispaly state of display screen, preset signals transmitting can be obtained according to the dispaly state Power.Wherein, the preset signals transmission power can be the magnitude of power prestored in the electronic device, such as 100mw (milliwatt).Wherein, multiple and different magnitude of powers can be prestored in electronic equipment.Display screen is in different dispaly states When, the preset signals transmission power that electronic equipment is got is different.
S130, control proximity sensor is with the preset signals transmission power emission detection signal.
After electronic equipment gets preset signals transmission power, control proximity sensor is with the preset signals transmission power Emission detection signal.Wherein, electronic equipment can realize control proximity sensor by controlling the electric current of proximity sensor Transmission power.
The detectable signal can be the signals such as infrared ray, ultrasonic wave.The signal type of the detectable signal depends on connecing The type of nearly sensor.
S140, obtains the reflected signal strength value that the proximity sensor receives, and the reflected signal is the detection Signal through exterior object reflect caused by reflected signal.
With reference to figure 10, after proximity sensor emission detection signal, the detectable signal penetrates the display area of display screen, with After be transmitted to the external world.When detectable signal touches exterior object (for example, user face), reflected signal is produced.The reflection The signal type of signal is identical with the signal type of detectable signal.After reflected signal penetrates the display area of display screen, enter In proximity sensor.Proximity sensor can detect the intensity level of the reflected signal received.
At this time, electronic equipment can obtain the reflected signal strength value that the proximity sensor receives.
S150, the distance state of electronic equipment is judged according to the reflected signal strength value, and the distance state includes connecing Nearly state and remote state.
After electronic equipment gets the reflected signal strength value that proximity sensor receives, according to the reflected signal strength Value judges the distance state of electronic equipment.The distance state is between electronic equipment and exterior object (for example, user face) Distance state.The distance state includes proximity state and away from state.
Then, electronic equipment can put out screen or bright screen according to the distance state judged come control display screen.For example, Electronic equipment is in communication process, and when display screen is in bright screen state, if electronic equipment is in proximity state, electronics is set It is standby that screen can be put out with control display screen;When display screen, which is in, puts out screen state, if electronic equipment is in away from state, electronic equipment Can be with the bright screen of control display screen.
In certain embodiments, as shown in figure 4, step S120, according to the dispaly state obtain preset signals transmitting work( Rate, comprises the following steps:
S121, when the dispaly state of the display screen is bright screen state, obtains the first signal transmission power;
S122, when the dispaly state of the display screen is puts out screen state, acquisition secondary signal transmission power, described first Signal transmission power is less than the secondary signal transmission power.
Wherein, the first signal transmission power and secondary signal transmission power can be prestored in electronic equipment.Described One signal transmission power is corresponding with the bright screen state of display screen.The secondary signal transmission power and display screen put out screen state pair Should.Wherein, first signal transmission power is less than the secondary signal transmission power.For example, the first signal transmission power is 50mw, secondary signal transmission power are 150mw.
After electronic equipment gets the dispaly state of display screen, if the dispaly state is bright screen state, electronic equipment Transfer the first signal transmission power of storage;If for the dispaly state to put out screen state, electronic equipment transfers the second of storage Signal transmission power.
Display in the proximity sensor course of work to display screen impacts so that situation about flickering occurs in display screen. It is understood that the flicker level of display screen is related to transmission power during proximity sensor emission detection signal.Close to biography The transmission power of sensor is bigger, is flickered caused by display screen more serious.The transmission power of proximity sensor is smaller, to display screen Caused by flicker it is lighter.When proximity sensor results only in display screen slight flicker, and user can not discover the slight of display screen During flicker, it is believed that proximity sensor influences to be eliminated caused by display screen at this time.
In certain embodiments, as shown in figure 5, step S121, when the dispaly state of the display screen is bright screen state, The first signal transmission power is obtained, is comprised the following steps:
S1211, when the dispaly state of the display screen is bright screen state, obtains the brightness of the display screen;
S1212, determines the brightness section residing for the brightness;
S1213, the first signal transmission power is obtained according to the brightness section.
It should be noted that when display screen is in different brightness, the flicker for same degree, the perception of user is Different.For example, when the brightness of display screen is brighter, flicker of the user for display screen is more sensitive;When the brightness of display screen When dark, user is not easy to perceive the flicker of display screen.That is, the flicker for same degree, when the brightness of display screen is brighter, User can perceive, and when the brightness of display screen is dark, user cannot perceive.
Wherein, the brightness that display screen can be directed in electronic equipment prestores multiple brightness sections, and for each bright Spend section and one corresponding first signal transmission power is set.For example, can be stored in electronic equipment (40,60], (60,80], (80,100] etc. three brightness sections.(40,60], (60,80], (80,100] etc. three brightness sections it is corresponding first letter Number transmission power is 70mw, 60mw, 50mw.
When the dispaly state of display screen is bright screen state, electronic equipment can obtain the brightness of display screen.Then, electronics Equipment determines the brightness section residing for the brightness, and obtains corresponding first signal according to identified brightness section and launch work( Rate.
For example, the brightness of display screen be 70, then the brightness section residing for the brightness of display screen for (60,80].Then, electronics The first signal transmission power that equipment obtains is 60mw.
In certain embodiments, as shown in fig. 6, step S121, when the dispaly state of the display screen is bright screen state, The first signal transmission power is obtained, is comprised the following steps:
S1214, when the dispaly state of the display screen is bright screen state, obtains the display of the display screen predeterminable area Color, the predeterminable area are the region on the display screen with the proximity sensor face;
S1215, the first signal transmission power is obtained according to the display color.
It should be noted that when display screen shows different colours, the flicker for same degree, the perception of user is not With.For example, when display screen shows red, flicker of the user for display screen is more sensitive;And when display screen display white When, user is not easy to perceive the flicker of display screen.That is, the flicker for same degree, when display screen shows red, Yong Huneng It is enough to perceive, and when display screen shows white, user cannot perceive.
It is understood that proximity sensor exists only in the flicker caused by display screen the predeterminable area of display screen. Wherein, the predeterminable area is the region on display screen with proximity sensor face.For the predeterminable area on display screen it Outer region, proximity sensor will not impact, and flashing state just also is not present.
Wherein, difference can be prestored for the different display color of the predeterminable area of display screen in electronic equipment The first signal transmission power.For example, predeterminable area display for display screen is red, blueness, white set the respectively One signal transmission power is 75mw, 65mw, 55mw.
When the dispaly state of display screen is bright screen state, electronic equipment can obtain the predeterminable area of display screen Display color.Then, the first signal transmission power is obtained according to the display color.
For example, the display color of the predeterminable area of display screen is red, then the first signal that electronic equipment obtains is sent out It is 75mw to penetrate power.
In certain embodiments, when display screen is in bright screen state, electronic equipment can obtain the brightness of display screen with And the display color of the predeterminable area of display screen, and the transmitting of the first signal is obtained according to the brightness and display color Power.
In certain embodiments, as shown in fig. 7, step S150, according to the reflected signal strength value judging electronic equipment Distance state, comprise the following steps:
S151, signal strength threshold is obtained according to the dispaly state;
S152, the distance of the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value State.
Wherein, signal strength threshold can be prestored in electronic equipment.The signal strength threshold can be deposited in advance The signal strength values of storage in the electronic device.The signal strength threshold is used to judge to be between electronic equipment and exterior object Proximity state or remote state.
After electronic equipment gets reflected signal strength value, the signal strength threshold stored in electronic equipment is further obtained Value.Then, electronic equipment can be by the reflected signal strength value compared with the signal strength threshold, to be reflected Magnitude relationship between signal strength values and signal strength threshold.Then, electronic equipment is according to reflected signal strength value and signal Magnitude relationship between intensity threshold judges the distance state of the electronic equipment.
In certain embodiments, as shown in figure 8, step S151, according to the dispaly state obtain signal strength threshold, bag Include following steps:
S1511, when the dispaly state of the display screen is bright screen state, obtains first threshold;
Step S152, the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value Distance state, comprises the following steps:
S1521, judges whether the reflected signal strength value is more than the first threshold;
S1522, if the reflected signal strength value is more than the first threshold, is judged as that the electronic equipment is in and connects Nearly state.
Wherein, the signal strength threshold includes first threshold.The first threshold is to prestore in the electronic device Signal strength values.For example, the first threshold can be 200.The first threshold is used to be in bright screen state in display screen When, triggering control display screen puts out screen.
After electronic equipment gets reflected signal strength value, if the display screen of the electronic equipment is in bright screen state, Electronic equipment obtains the first threshold.Then, electronic equipment carries out the reflected signal strength value and the first threshold Compare, to judge whether the reflected signal strength value is more than the first threshold.If the reflected signal strength value is more than institute First threshold is stated, then judging result is in proximity state for the electronic equipment.At this time, electronic equipment can be put out with control display screen Screen.If the reflected signal strength value is less than or equal to the first threshold, electronic equipment can be with termination process.
For example, the reflected signal strength value that electronic equipment is got is 300.Then the reflected signal strength value is more than described First threshold 200.At this time, the distance state of electronic equipment is proximity state.Electronic equipment can put out screen with control display screen.
In certain embodiments, as shown in figure 9, step S151, according to the dispaly state obtain signal strength threshold, bag Include following steps:
S1512, when the dispaly state of the display screen is puts out screen state, obtains second threshold;
Step S152, the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value Distance state, comprises the following steps:
S1523, judges whether the reflected signal strength value is less than the second threshold;
S1524, if the reflected signal strength value is less than the second threshold, is judged as that the electronic equipment is in remote From state.
Wherein, the signal strength threshold includes second threshold.The second threshold is to prestore in the electronic device Signal strength values.For example, the second threshold can be 600.The second threshold, which is used to be in display screen, puts out screen state When, trigger the bright screen of control display screen.
After electronic equipment gets reflected signal strength value, if the display screen of the electronic equipment, which is in, puts out screen state, Electronic equipment obtains the second threshold.Then, electronic equipment carries out the reflected signal strength value and the second threshold Compare, to judge whether the reflected signal strength value is less than the second threshold.If the reflected signal strength value is less than institute Second threshold is stated, then judging result is in away from state for the electronic equipment.At this time, electronic equipment can be bright with control display screen Screen.If the reflected signal strength value is greater than or equal to the second threshold, electronic equipment can be with termination process.
For example, the reflected signal strength value that electronic equipment is got is 500.Then the reflected signal strength value is less than described Second threshold 600.At this time, the distance state of electronic equipment is away from state.Electronic equipment can be with the bright screen of control display screen.
When it is implemented, the application is not producing conflict from the limitation of the execution sequence of described each step In the case of, some steps can also use other orders to carry out or be carried out at the same time.
From the foregoing, it will be observed that distance state detection method provided by the embodiments of the present application, including:Obtain the display shape of display screen State, the dispaly state include bright screen state and put out screen state;Preset signals transmission power is obtained according to the dispaly state;Control Proximity sensor processed is with the preset signals transmission power emission detection signal;Obtain the reflection that the proximity sensor receives Signal strength values, the reflected signal for the detectable signal through exterior object reflect caused by reflected signal;According to described Reflected signal strength value judges the distance state of electronic equipment, and the distance state includes proximity state and away from state.It is described In distance state detection method, when display screen is in different dispaly states, transmitting during proximity sensor emission detection signal Power is different, so that can not only ensure that electronic equipment can accurately detect the distance between exterior object state, but also can To reduce proximity sensor to the influence caused by the display performance of display screen, the stability for showing on-screen-display message is improved.
The embodiment of the present application also provides a kind of distance state detection device, and the distance state detection device can be integrated in In electronic equipment, the electronic equipment can be the equipment such as smart mobile phone, tablet computer.The electronic equipment is any of the above-described reality Apply the electronic equipment 100 described in example.
As shown in figure 11, distance state detection device 200 can include:First acquisition module 201, the second acquisition module 202nd, control module 203, the 3rd acquisition module 204 and judgment module 205.
First acquisition module 201, for obtaining the dispaly state of display screen, the dispaly state includes bright screen state and puts out Screen state.
Wherein, the first acquisition module 201 can obtain the dispaly state of display screen.The dispaly state includes bright screen state With put out screen state.During in bright screen state, display screen can show the information such as image, text, can also sense the touch-control of user Operation, and perform corresponding function.In when putting out screen state, display screen does not show information, also not to the touch control operation of user into Row response.
It should be noted that when display screen is in and puts out screen state, electronic equipment can normally perform other functions.Example Such as, electronic equipment can play audio, can perform voice communication etc. with other users with server exchange data.
Second acquisition module 202, for obtaining preset signals transmission power according to the dispaly state.
After first acquisition module 201 gets the dispaly state of display screen, the second acquisition module 202 can be according to described aobvious Show that state obtains preset signals transmission power.Wherein, the preset signals transmission power can be stored in advance in electronic equipment In magnitude of power, such as 100mw (milliwatt).Wherein, multiple and different magnitude of powers can be prestored in electronic equipment.It is aobvious When display screen is in different dispaly states, the preset signals transmission power that the second acquisition module 202 is got is different.
Control module 203, for controlling proximity sensor with the preset signals transmission power emission detection signal.
After second acquisition module 202 gets preset signals transmission power, control module 203 controls proximity sensor with institute State preset signals transmission power emission detection signal.Wherein, control module 203 can by control the electric current of proximity sensor come Realize the transmission power of control proximity sensor.
The detectable signal can be the signals such as infrared ray, ultrasonic wave.The signal type of the detectable signal depends on connecing The type of nearly sensor.
3rd acquisition module 204, the reflected signal strength value received for obtaining the proximity sensor, the reflection Signal for the detectable signal through exterior object reflect caused by reflected signal.
After proximity sensor emission detection signal, the detectable signal penetrates the display area of display screen, is then transmitted to It is extraneous.When detectable signal touches exterior object (for example, user face), reflected signal is produced.The letter of the reflected signal Number type is identical with the signal type of detectable signal.After reflected signal penetrates the display area of display screen, enter close to sensing In device.Proximity sensor can detect the intensity level of the reflected signal received.
At this time, the 3rd acquisition module 204 can obtain the reflected signal strength value that the proximity sensor receives.
Judgment module 205, for judging the distance state of electronic equipment, the distance according to the reflected signal strength value State includes proximity state and away from state.
After 3rd acquisition module 204 gets the reflected signal strength value that proximity sensor receives, judgment module 205 The distance state of electronic equipment is judged according to the reflected signal strength value.The distance state is electronic equipment and exterior object The distance between (for example, user face) state.The distance state includes proximity state and away from state.
Then, electronic equipment can according to the distance state that judgment module 205 is judged come control display screen put out screen or Bright screen.For example, it is in electronic equipment in communication process, when display screen is in bright screen state, if electronic equipment is in close State, then electronic equipment screen can be put out with control display screen;When display screen, which is in, puts out screen state, if electronic equipment is in away from shape State, then electronic equipment can be with the bright screen of control display screen.
In certain embodiments, as shown in figure 12, the second acquisition module 202 includes:First acquisition submodule 2021, second Acquisition submodule 2022.
First acquisition submodule 2021, for when the dispaly state of the display screen is bright screen state, obtaining the first letter Number transmission power;
Second acquisition submodule 2022, for when the dispaly state of the display screen is puts out screen state, obtaining the second letter Number transmission power, first signal transmission power are less than the secondary signal transmission power.
Wherein, the first signal transmission power and secondary signal transmission power can be prestored in electronic equipment.Described One signal transmission power is corresponding with the bright screen state of display screen.The secondary signal transmission power and display screen put out screen state pair Should.Wherein, first signal transmission power is less than the secondary signal transmission power.For example, the first signal transmission power is 50mw, secondary signal transmission power are 150mw.
After first acquisition module 201 gets the dispaly state of display screen, if the dispaly state is bright screen state, the One acquisition submodule 2021 transfers the first signal transmission power of storage;If to put out screen state, second obtains the dispaly state Submodule 2022 is taken to transfer the secondary signal transmission power of storage.
Display in the proximity sensor course of work to display screen impacts so that situation about flickering occurs in display screen. It is understood that the flicker level of display screen is related to transmission power during proximity sensor emission detection signal.Close to biography The transmission power of sensor is bigger, is flickered caused by display screen more serious.The transmission power of proximity sensor is smaller, to display screen Caused by flicker it is lighter.When proximity sensor results only in display screen slight flicker, and user can not discover the slight of display screen During flicker, it is believed that proximity sensor influences to be eliminated caused by display screen at this time.
In certain embodiments, the first acquisition submodule 2021 is used to perform following steps:
When the dispaly state of the display screen is bright screen state, the brightness of the display screen is obtained;
Determine the brightness section residing for the brightness;
First signal transmission power is obtained according to the brightness section.
It should be noted that when display screen is in different brightness, the flicker for same degree, the perception of user is Different.For example, when the brightness of display screen is brighter, flicker of the user for display screen is more sensitive;When the brightness of display screen When dark, user is not easy to perceive the flicker of display screen.That is, the flicker for same degree, when the brightness of display screen is brighter, User can perceive, and when the brightness of display screen is dark, user cannot perceive.
Wherein, the brightness that display screen can be directed in electronic equipment prestores multiple brightness sections, and for each bright Spend section and one corresponding first signal transmission power is set.For example, can be stored in electronic equipment (40,60], (60,80], (80,100] etc. three brightness sections.(40,60], (60,80], (80,100] etc. three brightness sections it is corresponding first letter Number transmission power is 70mw, 60mw, 50mw.
When the dispaly state of display screen is bright screen state, the first acquisition submodule 2021 can obtain the bright of display screen Degree.Then, the first acquisition submodule 2021 determines the brightness section residing for the brightness, and is obtained according to identified brightness section Take corresponding first signal transmission power.
For example, the brightness of display screen be 70, then the brightness section residing for the brightness of display screen for (60,80].Then, first The first signal transmission power that acquisition submodule 2021 obtains is 60mw.
In certain embodiments, the first acquisition submodule 2021 is used to perform following steps:
When the dispaly state of the display screen is bright screen state, the display color of the display screen predeterminable area is obtained, The predeterminable area is the region on the display screen with the proximity sensor face;
First signal transmission power is obtained according to the display color.
It should be noted that when display screen shows different colours, the flicker for same degree, the perception of user is not With.For example, when display screen shows red, flicker of the user for display screen is more sensitive;And when display screen display white When, user is not easy to perceive the flicker of display screen.That is, the flicker for same degree, when display screen shows red, Yong Huneng It is enough to perceive, and when display screen shows white, user cannot perceive.
It is understood that proximity sensor exists only in the flicker caused by display screen the predeterminable area of display screen. Wherein, the predeterminable area is the region on display screen with proximity sensor face.For the predeterminable area on display screen it Outer region, proximity sensor will not impact, and flashing state just also is not present.
Wherein, difference can be prestored for the different display color of the predeterminable area of display screen in electronic equipment The first signal transmission power.For example, predeterminable area display for display screen is red, blueness, white set the respectively One signal transmission power is 75mw, 65mw, 55mw.
When the dispaly state of display screen is bright screen state, the first acquisition submodule 2021 can obtain the described of display screen The display color of predeterminable area.Then, the first signal transmission power is obtained according to the display color.
For example, the display color of the predeterminable area of display screen is red, then the first acquisition submodule 2021 obtains First signal transmission power is 75mw.
In certain embodiments, when display screen is in bright screen state, the first acquisition submodule 2021 can obtain display The brightness of screen and the display color of the predeterminable area of display screen, and obtain according to the brightness and display color One signal transmission power.
In certain embodiments, as shown in figure 13, judgment module 205 includes:3rd acquisition submodule 2051, judge submodule Block 2052.
3rd acquisition submodule 2051, for obtaining signal strength threshold according to the dispaly state;
Judging submodule 2052, described in being judged according to the signal strength threshold and the reflected signal strength value The distance state of electronic equipment.
Wherein, signal strength threshold can be prestored in electronic equipment.The signal strength threshold can be deposited in advance The signal strength values of storage in the electronic device.The signal strength threshold is used to judge to be between electronic equipment and exterior object Proximity state or remote state.
After 3rd acquisition module 204 gets reflected signal strength value, the 3rd acquisition submodule 2051 obtains electronic equipment The signal strength threshold of middle storage.Then, judging submodule 2052 can be strong by the reflected signal strength value and the signal Degree threshold value is compared, to obtain the magnitude relationship between reflected signal strength value and signal strength threshold.Then, submodule is judged Block 2052 judges the distance of the electronic equipment according to the magnitude relationship between reflected signal strength value and signal strength threshold State.
In certain embodiments, the 3rd acquisition submodule 2051 is used to perform following steps:
When the dispaly state of the display screen is bright screen state, first threshold is obtained;
Judging submodule 2052 is used to perform following steps:
Judge whether the reflected signal strength value is more than the first threshold;
If the reflected signal strength value is more than the first threshold, it is judged as that the electronic equipment is in close to shape State.
Wherein, the signal strength threshold includes first threshold.The first threshold is to prestore in the electronic device Signal strength values.For example, the first threshold can be 200.The first threshold is used to be in bright screen state in display screen When, triggering control display screen puts out screen.
After 3rd acquisition module 204 gets reflected signal strength value, if the display screen of the electronic equipment is in bright screen State, then the 3rd acquisition submodule 2051 obtain the first threshold.Then, judging submodule 2052 is strong by the reflected signal Angle value is compared with the first threshold, to judge whether the reflected signal strength value is more than the first threshold.If institute State reflected signal strength value and be more than the first threshold, then 2052 judging result of judging submodule is in for the electronic equipment and connects Nearly state.At this time, electronic equipment can put out screen with control display screen.If the reflected signal strength value is less than or equal to described first Threshold value, can be with termination process.
For example, the reflected signal strength value that the 3rd acquisition module 204 is got is 300.The then reflected signal strength value More than the first threshold 200.At this time, the distance state of electronic equipment is proximity state.Electronic equipment can be with control display screen Put out screen.
In certain embodiments, the 3rd acquisition submodule 2051 is used to perform following steps:
When the dispaly state of the display screen is puts out screen state, second threshold is obtained;
Judging submodule 2052 is used to perform following steps:
Judge whether the reflected signal strength value is less than the second threshold;
If the reflected signal strength value is less than the second threshold, it is judged as that the electronic equipment is in away from shape State.
Wherein, the signal strength threshold includes second threshold.The second threshold is to prestore in the electronic device Signal strength values.For example, the second threshold can be 600.The second threshold, which is used to be in display screen, puts out screen state When, trigger the bright screen of control display screen.
After 3rd acquisition module 204 gets reflected signal strength value, if the display screen of the electronic equipment, which is in, puts out screen State, then the 3rd acquisition submodule 2051 obtain the second threshold.Then, judging submodule 2052 is strong by the reflected signal Angle value is compared with the second threshold, to judge whether the reflected signal strength value is less than the second threshold.If institute State reflected signal strength value and be less than the second threshold, then 2052 judging result of judging submodule is in remote for the electronic equipment From state.At this time, electronic equipment can be with the bright screen of control display screen.If the reflected signal strength value is greater than or equal to described second Threshold value, can be with termination process.
For example, the reflected signal strength value that the 3rd acquisition module 204 is got is 500.The then reflected signal strength value Less than the second threshold 600.At this time, the distance state of electronic equipment is away from state.Electronic equipment can be with control display screen Bright screen.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made Realized for same or several entities.
From the foregoing, it will be observed that distance state detection device 200 provided by the embodiments of the present application, is obtained by the first acquisition module 201 The dispaly state of display screen is taken, the dispaly state includes bright screen state and puts out screen state;Second acquisition module 202 is according to described Dispaly state obtains preset signals transmission power;Control module 203 controls proximity sensor with the preset signals transmission power Emission detection signal;3rd acquisition module 204 obtains the reflected signal strength value that the proximity sensor receives, the reflection Signal for the detectable signal through exterior object reflect caused by reflected signal;Judgment module 205 is according to the reflected signal Intensity level judges the distance state of electronic equipment, and the distance state includes proximity state and away from state.The distance state Detection device can obtain different transmission powers according to the different dispaly states of display screen, and control proximity sensor to obtain The transmission power got carrys out emission detection signal, so as to can both ensure that electronic equipment can be detected accurately between exterior object Distance state, and proximity sensor can be reduced to the influence caused by the display performance of display screen, improve display screen and show The stability of information.
The embodiment of the present application also provides a kind of electronic equipment.The electronic equipment includes display screen and proximity sensor, institute Stating display screen includes display area, and orthographic projection of the proximity sensor on the display screen is located at the display area.Institute It can be the equipment such as smart mobile phone, tablet computer to state electronic equipment.As shown in figure 14, electronic equipment 300 includes 301 He of processor Memory 302.Wherein, processor 301 is electrically connected with memory 302.
Processor 301 is the control centre of electronic equipment 300, utilizes various interfaces and the whole electronic equipment of connection Various pieces, by running or calling the computer program being stored in memory 302, and call and are stored in memory 302 Interior data, perform the various functions and processing data of electronic equipment, so as to carry out integral monitoring to electronic equipment.
In the present embodiment, processor 301 in electronic equipment 300 can according to the steps, by one or one with On the corresponding instruction of process of computer program be loaded into memory 302, and be stored in storage by processor 301 to run Computer program in device 302, so as to fulfill various functions:
The dispaly state of display screen is obtained, the dispaly state includes bright screen state and puts out screen state;
Preset signals transmission power is obtained according to the dispaly state;
The proximity sensor is controlled with the preset signals transmission power emission detection signal;
The reflected signal strength value that the proximity sensor receives is obtained, the reflected signal passes through for the detectable signal Reflected signal caused by exterior object reflection;
The distance state of the electronic equipment is judged according to the reflected signal strength value, the distance state includes close State and remote state.
In certain embodiments, the preset signals transmission power includes the first signal transmission power and secondary signal is launched Power, when obtaining preset signals transmission power according to the dispaly state, processor 301 performs following steps:
When the dispaly state of the display screen is bright screen state, the first signal transmission power is obtained;
When the dispaly state of the display screen is puts out screen state, secondary signal transmission power, first signal are obtained Transmission power is less than the secondary signal transmission power.
In certain embodiments, when the dispaly state of the display screen is bright screen state, the first signal transmitting work(is obtained During rate, processor 301 performs following steps:
When the dispaly state of the display screen is bright screen state, the brightness of the display screen is obtained;
Determine the brightness section residing for the brightness;
First signal transmission power is obtained according to the brightness section.
In certain embodiments, when the dispaly state of the display screen is bright screen state, the first signal transmitting work(is obtained During rate, processor 301 performs following steps:
When the dispaly state of the display screen is bright screen state, the display color of the display screen predeterminable area is obtained, The predeterminable area is the region on the display screen with the proximity sensor face;
First signal transmission power is obtained according to the display color.
In certain embodiments, when judging the distance state of the electronic equipment according to the reflected signal strength value, place Manage device 301 and perform following steps:
Signal strength threshold is obtained according to the dispaly state;
The distance state of the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value.
In certain embodiments, the signal strength threshold includes first threshold, and signal is obtained according to the dispaly state During intensity threshold, processor 301 performs following steps:
When the dispaly state of the display screen is bright screen state, first threshold is obtained;
The distance state of the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value When, processor 301 performs following steps:
Judge whether the reflected signal strength value is more than the first threshold;
If the reflected signal strength value is more than the first threshold, it is judged as that the electronic equipment is in close to shape State.
In certain embodiments, the signal strength threshold includes second threshold, and signal is obtained according to the dispaly state During intensity threshold, processor 301 performs following steps:
When the dispaly state of the display screen is puts out screen state, second threshold is obtained;
The distance state of the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value When, processor 301 performs following steps:
Judge whether the reflected signal strength value is less than the second threshold;
If the reflected signal strength value is less than the second threshold, it is judged as that the electronic equipment is in away from shape State.
Memory 302 can be used for storage computer program and data.Include in the computer program that memory 302 stores The instruction that can be performed within a processor.Computer program can form various functions module.Processor 301 is stored in by calling The computer program of memory 302, so as to perform various functions application and data processing.
In certain embodiments, as shown in figure 15, electronic equipment 300 further includes:Radio circuit 303, display screen 304, control Circuit 305, input unit 306, voicefrequency circuit 307, sensor 308 and power supply 309 processed.Wherein, processor 301 is respectively with penetrating Frequency circuit 303, display screen 304, control circuit 305, input unit 306, voicefrequency circuit 307, sensor 308 and power supply 309 It is electrically connected.
Radio circuit 303 is used for transceiving radio frequency signal, with by wireless communication and the network equipment or other electronic equipments into Row communication.
Display screen 304 is each available for the information and electronic equipment for showing by information input by user or being supplied to user Kind graphical user interface, these graphical user interface can be made of image, text, icon, video and its any combination.
Control circuit 305 is electrically connected with display screen 304, and information is shown for control display screen 304.
Input unit 306 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Produce the keyboard related with user setting and function control, mouse, operation lever, optics or the input of trace ball signal.Wherein, Input unit 306 can include fingerprint recognition module.
Voicefrequency circuit 307 can provide the audio interface between user and electronic equipment by loudspeaker, microphone.
Sensor 308 is used to gather external environmental information.Sensor 308 can include ambient light sensor, acceleration One or more in the sensors such as sensor, gyroscope.
The all parts that power supply 309 is used for electron equipment 300 are powered.In certain embodiments, power supply 309 can pass through Power-supply management system and processor 301 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
Although not shown in Figure 15, electronic equipment 300 can also include camera, bluetooth module etc., and details are not described herein.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of electronic equipment, the electronic equipment performs following steps:Obtain The dispaly state of display screen, the dispaly state include bright screen state and put out screen state;Obtained according to the dispaly state default Signal transmission power;Proximity sensor is controlled with the preset signals transmission power emission detection signal;Obtain described close to biography The reflected signal strength value that sensor receives, the reflected signal for the detectable signal through exterior object reflect caused by it is anti- Penetrate signal;The distance state of electronic equipment is judged according to the reflected signal strength value, the distance state includes proximity state With remote state.Electronic equipment provided by the embodiments of the present application, when display screen is in different dispaly states, proximity sensor hair Transmission power when penetrating detectable signal is different, thus can both ensure electronic equipment can accurately detect with exterior object it Between distance state, and proximity sensor can be reduced to the influence caused by the display performance of display screen, improve and show screen display Show the stability of information.
The embodiment of the present application also provides a kind of storage medium, computer program is stored with the storage medium, when described When computer program is run on computers, the computer performs the distance state detection side described in any of the above-described embodiment Method.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by computer program, and the computer program can be stored in meter In calculation machine readable storage medium storing program for executing, the storage medium can include but is not limited to:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Distance state detection method, device, storage medium and the electronic equipment provided above the embodiment of the present application into Go and be discussed in detail, specific case used herein is set forth the principle and embodiment of the application, and the above is implemented The explanation of example is only intended to help and understands the present processes and its core concept;Meanwhile for those skilled in the art, according to According to the thought of the application, there will be changes in specific embodiments and applications, in conclusion this specification content It should not be construed as the limitation to the application.

Claims (13)

  1. A kind of 1. distance state detection method, applied to electronic equipment, it is characterised in that the electronic equipment include display screen and Proximity sensor, the display screen include display area, and orthographic projection of the proximity sensor on the display screen is located at institute Display area is stated, the distance state detection method includes:
    The dispaly state of display screen is obtained, the dispaly state includes bright screen state and puts out screen state;
    Preset signals transmission power is obtained according to the dispaly state;
    The proximity sensor is controlled with the preset signals transmission power emission detection signal;
    The reflected signal strength value that the proximity sensor receives is obtained, the reflected signal is the detectable signal through outside Reflected signal caused by object reflection;
    The distance state of the electronic equipment is judged according to the reflected signal strength value, the distance state includes proximity state With remote state.
  2. 2. distance state detection method according to claim 1, it is characterised in that the preset signals transmission power includes First signal transmission power and secondary signal transmission power, it is described that preset signals transmission power is obtained according to the dispaly state Step includes:
    When the dispaly state of the display screen is bright screen state, the first signal transmission power is obtained;
    When the dispaly state of the display screen is puts out screen state, secondary signal transmission power, the first signal transmitting are obtained Power is less than the secondary signal transmission power.
  3. 3. distance state detection method according to claim 2, it is characterised in that described when the display shape of the display screen When state is bright screen state, the first signal transmission power is obtained, including:
    When the dispaly state of the display screen is bright screen state, the brightness of the display screen is obtained;
    Determine the brightness section residing for the brightness;
    First signal transmission power is obtained according to the brightness section.
  4. 4. distance state detection method according to claim 2, it is characterised in that described when the display shape of the display screen When state is bright screen state, the first signal transmission power is obtained, including:
    When the dispaly state of the display screen is bright screen state, the display color of the display screen predeterminable area is obtained, it is described Predeterminable area is the region on the display screen with the proximity sensor face;
    First signal transmission power is obtained according to the display color.
  5. 5. distance state detection method according to any one of claims 1 to 4, it is characterised in that described according to described anti- Penetrating the step of signal strength values judge the distance state of the electronic equipment includes:
    Signal strength threshold is obtained according to the dispaly state;
    The distance state of the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value.
  6. 6. distance state detection method according to claim 5, it is characterised in that the signal strength threshold includes first Threshold value, described the step of obtaining signal strength threshold according to the dispaly state, include:
    When the dispaly state of the display screen is bright screen state, first threshold is obtained;
    The distance state that the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value The step of include:
    Judge whether the reflected signal strength value is more than the first threshold;
    If the reflected signal strength value is more than the first threshold, it is judged as that the electronic equipment is in proximity state.
  7. 7. distance state detection method according to claim 5, it is characterised in that the signal strength threshold includes second Threshold value, described the step of obtaining signal strength threshold according to the dispaly state, include:
    When the dispaly state of the display screen is puts out screen state, second threshold is obtained;
    The distance state that the electronic equipment is judged according to the signal strength threshold and the reflected signal strength value The step of include:
    Judge whether the reflected signal strength value is less than the second threshold;
    If the reflected signal strength value is less than the second threshold, it is judged as that the electronic equipment is in away from state.
  8. A kind of 8. distance state detection device, applied to electronic equipment, it is characterised in that the electronic equipment include display screen and Proximity sensor, the display screen include display area, and orthographic projection of the proximity sensor on the display screen is located at institute Display area is stated, the distance state detection device includes:
    First acquisition module, for obtaining the dispaly state of display screen, the dispaly state includes bright screen state and puts out screen state;
    Second acquisition module, for obtaining preset signals transmission power according to the dispaly state;
    Control module, for controlling the proximity sensor with the preset signals transmission power emission detection signal;
    3rd acquisition module, the reflected signal strength value received for obtaining the proximity sensor, the reflected signal are The detectable signal through exterior object reflect caused by reflected signal;
    Judgment module, it is described apart from shape for judging the distance state of the electronic equipment according to the reflected signal strength value State includes proximity state and away from state.
  9. 9. distance state detection device according to claim 8, it is characterised in that the preset signals transmission power includes First signal transmission power and secondary signal transmission power, second acquisition module include:
    First acquisition submodule, for when the dispaly state of the display screen is bright screen state, obtaining the first signal transmitting work( Rate;
    Second acquisition submodule, for when the dispaly state of the display screen is puts out screen state, obtaining secondary signal transmitting work( Rate, first signal transmission power are less than the secondary signal transmission power.
  10. 10. distance state detection device according to claim 9, it is characterised in that first acquisition submodule is used for:
    When the dispaly state of the display screen is bright screen state, the brightness of the display screen is obtained;
    Determine the brightness section residing for the brightness;
    First signal transmission power is obtained according to the brightness section.
  11. 11. distance state detection device according to claim 9, it is characterised in that first acquisition submodule is used for:
    When the dispaly state of the display screen is bright screen state, the display color of the display screen predeterminable area is obtained, it is described Predeterminable area is the region on the display screen with the proximity sensor face;
    First signal transmission power is obtained according to the display color.
  12. 12. a kind of storage medium, it is characterised in that computer program is stored with the storage medium, when the computer journey When sequence is run on computers so that the computer perform claim requires 1 to 7 any one of them distance state detection side Method.
  13. 13. a kind of electronic equipment, it is characterised in that the electronic equipment includes processor and memory, is deposited in the memory Computer program is contained, the processor is by calling the computer program stored in the memory, for right of execution Profit requires 1 to 7 any one of them distance state detection method.
CN201711176004.5A 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment Active CN107968883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711176004.5A CN107968883B (en) 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711176004.5A CN107968883B (en) 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107968883A true CN107968883A (en) 2018-04-27
CN107968883B CN107968883B (en) 2020-08-14

Family

ID=62001477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711176004.5A Active CN107968883B (en) 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107968883B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737661A (en) * 2018-06-06 2018-11-02 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
CN108924358A (en) * 2018-07-03 2018-11-30 Oppo广东移动通信有限公司 proximity sensor control method, electronic device and computer readable storage medium
CN108989494A (en) * 2018-06-27 2018-12-11 北京小米移动软件有限公司 A kind of electronic equipment
CN108983211A (en) * 2018-07-02 2018-12-11 Oppo广东移动通信有限公司 Proximity sensor and its control method, electronic device and computer readable storage medium
CN109040417A (en) * 2018-06-06 2018-12-18 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
CN109144227A (en) * 2018-07-17 2019-01-04 Oppo广东移动通信有限公司 Processing method, storage medium and the electronic equipment of finger print information
CN109195206A (en) * 2018-07-17 2019-01-11 Oppo广东移动通信有限公司 Control method, storage medium and the electronic equipment of display screen state
CN111239750A (en) * 2020-01-03 2020-06-05 歌尔股份有限公司 Proximity sensor testing method and proximity sensor testing system
US10855831B2 (en) 2018-06-06 2020-12-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Control method for electronic device, electronic device, computer-readable storage medium
CN112153207A (en) * 2019-06-26 2020-12-29 北京小米移动软件有限公司 Terminal and control method of display panel
CN113299192A (en) * 2021-05-24 2021-08-24 维沃移动通信有限公司 Display module and electronic device
CN113454486A (en) * 2019-02-04 2021-09-28 ams国际有限公司 Proximity sensing based on rate change detection
CN113777621A (en) * 2020-06-09 2021-12-10 北京小米移动软件有限公司 Electronic device, relative position relation detection method and device, and storage medium
CN114172983A (en) * 2020-09-10 2022-03-11 华为技术有限公司 Proximity optical sensor control method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120235633A1 (en) * 2008-09-27 2012-09-20 Kesler Morris P Wireless energy transfer with variable size resonators for implanted medical devices
CN103677559A (en) * 2012-08-28 2014-03-26 三星电子株式会社 Low power detection apparatus and method for displaying information
JP5750524B2 (en) * 2014-03-06 2015-07-22 東芝テック株式会社 Wireless tag communication method, wireless tag communication device, and wireless tag communication program
CN105025159A (en) * 2015-06-05 2015-11-04 广东欧珀移动通信有限公司 A proximity sensor adjusting method and apparatus
CN204834000U (en) * 2015-06-05 2015-12-02 厦门普丽特光电科技有限公司 Photochromic homogeneity correcting unit of LED display screen
EP2950596A1 (en) * 2014-05-30 2015-12-02 Apple Inc. Determination of device body location
CN106020423A (en) * 2016-05-25 2016-10-12 努比亚技术有限公司 Screen control device and method for terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120235633A1 (en) * 2008-09-27 2012-09-20 Kesler Morris P Wireless energy transfer with variable size resonators for implanted medical devices
CN103677559A (en) * 2012-08-28 2014-03-26 三星电子株式会社 Low power detection apparatus and method for displaying information
JP5750524B2 (en) * 2014-03-06 2015-07-22 東芝テック株式会社 Wireless tag communication method, wireless tag communication device, and wireless tag communication program
EP2950596A1 (en) * 2014-05-30 2015-12-02 Apple Inc. Determination of device body location
CN105025159A (en) * 2015-06-05 2015-11-04 广东欧珀移动通信有限公司 A proximity sensor adjusting method and apparatus
CN204834000U (en) * 2015-06-05 2015-12-02 厦门普丽特光电科技有限公司 Photochromic homogeneity correcting unit of LED display screen
CN106020423A (en) * 2016-05-25 2016-10-12 努比亚技术有限公司 Screen control device and method for terminal

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10855831B2 (en) 2018-06-06 2020-12-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Control method for electronic device, electronic device, computer-readable storage medium
US11226669B2 (en) 2018-06-06 2022-01-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Control method for electronic device, electronic device, computer-readable storage medium
US11032411B2 (en) 2018-06-06 2021-06-08 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Control method for electronic device, electronic device, computer readable storage medium
CN109040417A (en) * 2018-06-06 2018-12-18 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
CN108737661B (en) * 2018-06-06 2021-03-23 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium, and computer apparatus
CN108737661A (en) * 2018-06-06 2018-11-02 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
WO2019233408A1 (en) * 2018-06-06 2019-12-12 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Control method for electronic device, electronic device, computer-readable storage medium
CN108989494A (en) * 2018-06-27 2018-12-11 北京小米移动软件有限公司 A kind of electronic equipment
US11265406B2 (en) 2018-06-27 2022-03-01 Beijing Xiaomi Mobile Software Co., Ltd. Electronic device
CN108983211A (en) * 2018-07-02 2018-12-11 Oppo广东移动通信有限公司 Proximity sensor and its control method, electronic device and computer readable storage medium
CN108924358A (en) * 2018-07-03 2018-11-30 Oppo广东移动通信有限公司 proximity sensor control method, electronic device and computer readable storage medium
CN109195206A (en) * 2018-07-17 2019-01-11 Oppo广东移动通信有限公司 Control method, storage medium and the electronic equipment of display screen state
CN109144227A (en) * 2018-07-17 2019-01-04 Oppo广东移动通信有限公司 Processing method, storage medium and the electronic equipment of finger print information
CN109195206B (en) * 2018-07-17 2022-01-07 Oppo广东移动通信有限公司 Control method of display screen state, storage medium and electronic equipment
CN113454486A (en) * 2019-02-04 2021-09-28 ams国际有限公司 Proximity sensing based on rate change detection
CN112153207A (en) * 2019-06-26 2020-12-29 北京小米移动软件有限公司 Terminal and control method of display panel
CN111239750A (en) * 2020-01-03 2020-06-05 歌尔股份有限公司 Proximity sensor testing method and proximity sensor testing system
CN111239750B (en) * 2020-01-03 2023-03-03 歌尔光学科技有限公司 Proximity sensor testing method and proximity sensor testing system
CN113777621A (en) * 2020-06-09 2021-12-10 北京小米移动软件有限公司 Electronic device, relative position relation detection method and device, and storage medium
CN114172983A (en) * 2020-09-10 2022-03-11 华为技术有限公司 Proximity optical sensor control method and related equipment
WO2022053006A1 (en) * 2020-09-10 2022-03-17 华为技术有限公司 Proximity light sensor control method and related device
CN113299192A (en) * 2021-05-24 2021-08-24 维沃移动通信有限公司 Display module and electronic device
CN113299192B (en) * 2021-05-24 2023-08-22 维沃移动通信有限公司 Display assembly and electronic device

Also Published As

Publication number Publication date
CN107968883B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN107968883A (en) Distance state detection method, device, storage medium and electronic equipment
EP3562131B1 (en) Display screen state control method and apparatus, storage medium, and electronic device
CN108021161A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
CN107945769A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
CN108737652A (en) Luminance control method for display screen, device, storage medium and electronic equipment
CN107796984A (en) A kind of information cuing method and mobile terminal
CN107783887B (en) Control method of mobile terminal and mobile terminal
CN107945733B (en) Brightness of display screen method of adjustment, device, storage medium and electronic equipment
CN107450817A (en) Proximity test method, apparatus, storage medium and electronic equipment
CN106569762A (en) Dual-screen terminal light-up method and device as well as dual-screen terminal
CN110231900A (en) A kind of application icon display methods and terminal
CN109032488A (en) Processing method, storage medium and the electronic equipment of blank screen gesture
CN109871246A (en) A kind of message display method and terminal device
CN107959752A (en) Display screen condition control method, device, storage medium and terminal
CN107645609A (en) A kind of brightness adjusting method and mobile terminal
CN109600297A (en) A kind of mark sweep-out method and terminal device
CN108345474A (en) Startup method, starter and the mobile terminal of application program
CN111163260A (en) Camera starting method and electronic equipment
CN107818038A (en) A kind of information cuing method and mobile terminal
CN111158485B (en) Screen control method and electronic equipment
CN108376096A (en) A kind of message display method and mobile terminal
CN110231906A (en) The display methods and terminal device of people of unread information
CN107665081A (en) Display screen condition control method, device, storage medium and terminal
CN109144227A (en) Processing method, storage medium and the electronic equipment of finger print information
CN108614651A (en) A kind of mobile terminal and infrared detection method

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant