CN108924358A - proximity sensor control method, electronic device and computer readable storage medium - Google Patents

proximity sensor control method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN108924358A
CN108924358A CN201810717860.5A CN201810717860A CN108924358A CN 108924358 A CN108924358 A CN 108924358A CN 201810717860 A CN201810717860 A CN 201810717860A CN 108924358 A CN108924358 A CN 108924358A
Authority
CN
China
Prior art keywords
performance number
proximity sensor
screen
transmission power
mobile terminal
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.)
Pending
Application number
CN201810717860.5A
Other languages
Chinese (zh)
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 CN201810717860.5A priority Critical patent/CN108924358A/en
Publication of CN108924358A publication Critical patent/CN108924358A/en
Pending legal-status Critical Current

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
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

A kind of proximity sensor control method, electronic device and computer readable storage medium, are related to field of communication technology.Proximity sensor control method therein includes:Mobile terminal screen state is detected, if screen state is bright screen state, the transmission power for being reduced close to sensor is the first performance number.Above-mentioned proximity sensor control method, electronic device and computer readable storage medium can eliminate screen flash, and simple and easy, save and calculate cost.

Description

Proximity sensor control method, electronic device and computer readable storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of proximity sensor control methods, electronic device and calculating Machine readable storage medium storing program for executing.
Background technique
Shield the epoch comprehensively in mobile phone, as Mobile phone screen accounting is higher and higher, entire screen front is left for without space Infrared proximity transducer is laid out, and sad outer proximity sensor is installed under screen will become mainstream technology means.Due to The photoelectric effect of OLED (Organic Light-Emitting Diode) display screen, infrared proximity transmitting terminal show screen It influences, an infrared light surely measured will lead to screen corresponding region and flash under bright screen state.
In the prior art, whether the data validations mobile phones such as the infrared light intensity value sensed by infrared proximity transducer are located In proximity state, to eliminate screen flash, but confirm that process is calculated because being related to the data of multiple steps, cumbersome and additional increase Calculate cost and time.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of proximity sensor control method, electronic device and computer-readable Storage medium can eliminate splashette by being simply reduced close to sensor emission power, and reduce calculate cost and calculate when Between.
The embodiment of the invention provides a kind of proximity sensor control methods, including:
Detect mobile terminal screen state;
If the screen state is bright screen state, the transmission power for being reduced close to sensor is the first performance number.
The embodiment of the invention provides a kind of electronic devices, including:
Detection module, for detecting mobile terminal screen state;
Control module, if being bright screen state for the screen state, the transmission power for being reduced close to sensor is the One performance number.
The embodiment of the invention provides a kind of electronic devices, including:Proximity sensor, processor, is stored in institute at memory State the computer program that can be run on memory and on the processor, which is characterized in that the processor executes the meter When calculation machine program, the proximity sensor control method as described in aforementioned is realized.
The embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer program, the meter When calculation machine program is executed by processor, the proximity sensor control method as described in any one as described in aforementioned is realized.
Various embodiments of the present invention detect the screen state of mobile terminal, if screen is bright screen state, are reduced close to sense There is a possibility that splashette in the transmission power of device, reduction, and simple and easy to do, avoid many and diverse increased calculating cost of calculating institute.
Detailed description of the invention
Fig. 1 is the flow diagram for the proximity sensor control method that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides proximity sensor control method flow diagram;
Fig. 3 be another embodiment of the present invention provides proximity sensor control method flow diagram;
Fig. 4 be another embodiment of the present invention provides proximity sensor control method flow diagram;
Fig. 5 is the structural schematic diagram for the electronic device that one embodiment of the invention provides;
Fig. 6 be another embodiment of the present invention provides electronic device structural schematic diagram;
Fig. 7 is the hardware structural diagram of electronic device provided in an embodiment of the present invention.
Specific embodiment
Further to illustrate that the present invention is the technical means and efficacy realizing predetermined goal of the invention and being taken, below in conjunction with Attached drawing and preferred embodiment, to specific embodiment, structure, feature and its effect according to the present invention, detailed description is as follows.
Referring to Fig. 1, Fig. 1 is the proximity sensor control method schematic diagram that one embodiment of the invention provides.The close biography Sensor control method can be applied to mobile terminal, and mobile terminal includes mobile phone, laptop, tablet computer, vehicle-mounted computer, intelligence The electronic device that energy wearable device etc. can use on the move, and proximity sensor is provided with below screen, the close biography Sensor concretely infrared proximity transducer, including transmitting terminal and receiving end.Transmitting terminal has one or more infrared emission lights Source emits infrared light to outside screen, and receiving end receives after encountering object reflection, by the energy of received infrared light, Judge whether there is object proximity.The proximity sensor control method includes:
101, mobile terminal screen state is detected;
The screen state of mobile terminal includes bright screen state and screen state of going out, and bright screen state includes illuminating state, further includes Breath screen display (AOD, Always On Display) state.
Wherein, illuminating state refers to that screen is constantly in bright screen state, user browsed using mobile terminal, game, When instant messaging etc. operates, screen state is all illuminating state.AOD state is the screen when mobile terminal is in the lock state Partial region keeps long one kind that is bright and showing the information such as time and notice and bright screen state.
If 102, the screen state is bright screen state, the transmission power for being reduced close to sensor is the first performance number.
The transmission power of proximity sensor, which shows screen, to be had an impact, under bright screen state, proximity sensor transmitting The certain energy of light arrival will lead to screen corresponding region and flash, in order to reduce or thoroughly avoid this splashette phenomenon, drop The transmission power of low proximity sensor is the first performance number, which is set in advance in the control system of proximity sensor In, it is not in splashette phenomenon, or, there is slight splashette, but not shadow when the transmission power of proximity sensor is the first performance number Ring the experience of user.
If the screen state is screen state of going out, the transmission power of proximity sensor is not adjusted.It, will not under screen state of going out Splashette caused by occurring because of transmission power size.
Further, when there is incoming call, in order to improve the accuracy of detection proximity state, sensor emission power is turned up, Specifically, the transmission power of proximity sensor can be reverted to the former performance number before reducing for the first performance number.It can also mention Other a height of pre-set performance numbers.
In the embodiment of the present invention, the screen state of mobile terminal is detected, if screen is bright screen state, is reduced close to sense There is a possibility that splashette in the transmission power of device, reduction, and simple and easy to do, avoid many and diverse increased calculating cost of calculating institute.
Referring to Fig. 2, Fig. 2 be another embodiment of the present invention provides proximity sensor control method schematic diagram.This is close Sensor control method can be applied to mobile terminal, mobile terminal include mobile phone, laptop, tablet computer, vehicle-mounted computer, The electronic device that intelligent wearable device etc. can use on the move, and proximity sensor is provided with below screen, this is close Sensor concretely infrared proximity transducer.The proximity sensor control method includes:
201, mobile terminal screen state is detected;
The screen state of detection mobile terminal is bright screen state or goes out screen state.Bright screen state includes AOD state.
If 202, screen state is breath screen display state, the brightness for reducing mobile terminal screen is predetermined luminance value, and The transmission power for being reduced close to sensor is the second performance number.
If screen state is AOD state, that is, current screen state is bright screen state, then reduces the bright of mobile terminal screen Degree is predetermined luminance value, which is less than the brightness value of the initial setting up of screen.And it is reduced close to the transmitting of sensor Power is the second performance number.While reducing screen intensity, it is reduced close to the transmission power of sensor, second performance number is big In the first performance number being equal in embodiment illustrated in fig. 1.After reducing screen intensity, more difficult generation splashette, therefore reduce The transmission power of proximity sensor can be equal or slightly larger than first performance number.
If the screen state is screen state of going out, the transmission power of proximity sensor is not adjusted.It, will not under screen state of going out Splashette caused by occurring because of transmission power size.
Further, when there is incoming call, in order to improve the accuracy of detection proximity state, sensor emission power is turned up, Specifically, the transmission power of proximity sensor can be reverted to the former performance number before reducing for the second performance number.It can also mention Other a height of pre-set performance numbers.
In the embodiment of the present invention, the screen state of mobile terminal is detected, if screen is bright screen state, reduces the bright of screen Degree, and it is reduced close to the transmission power of sensor, there is a possibility that splashette to reduce, and simple and easy to do, avoids many and diverse Calculate the increased calculating cost of institute.
Referring to Fig. 3, Fig. 3 be another embodiment of the present invention provides proximity sensor control method schematic diagram.This is close Sensor control method can be applied to mobile terminal, mobile terminal include mobile phone, laptop, tablet computer, vehicle-mounted computer, The electronic device that intelligent wearable device etc. can use on the move, and proximity sensor is provided with below screen, this is close Sensor concretely infrared proximity transducer.The proximity sensor control method includes:
301, mobile terminal screen state is detected;
The screen state of detection mobile terminal is bright screen state or goes out screen state.Bright screen state includes AOD state.
If 302, screen state is breath screen display state, by the corresponding mobile terminal screen in proximity sensor region Interface be set as black background, and be reduced close to sensor transmission power be third performance number.
If screen state is AOD state, that is, current screen state is bright screen state, then by proximity sensor region The interface of corresponding mobile terminal screen is set as black background, and the transmission power for being reduced close to sensor is third power Value.While setting black background for the interface of the corresponding mobile terminal screen in proximity sensor region, reduction is connect The transmission power of nearly sensor, the third performance number are more than or equal to the first performance number in embodiment illustrated in fig. 1.Biography will approached After the corresponding screen area of sensor is set as black background, the optical signal that proximity sensor issues passes through black background part, more The transmission power that splashette is less likely to occur, therefore is reduced close to sensor can be equal or slightly larger than first performance number.
Wherein, black background, interface are set by the interface of the corresponding mobile terminal screen in proximity sensor region The region of upper setting black background can be the range of covering proximity sensor region, be also possible to wider, not shadow It rings user and uses mobile terminal.Setting background is also possible to other dark-backgrounds, can achieve the effect that close to black background ?.
If the screen state is screen state of going out, the transmission power of proximity sensor is not adjusted.It, will not under screen state of going out Splashette caused by occurring because of transmission power size.
Further, when there is incoming call, in order to improve the accuracy of detection proximity state, sensor emission power is turned up, Specifically, the transmission power of proximity sensor can be reverted to the former performance number before reducing for third performance number.It can also mention Other a height of pre-set performance numbers.
In the embodiment of the present invention, the screen state of mobile terminal is detected, if screen is bright screen state, proximity sensor institute In region, the interface of corresponding mobile terminal screen is set as black background, and is reduced close to the transmission power of sensor, thus There is a possibility that splashette in reduction, and simple and easy to do, avoids many and diverse increased calculating cost of calculating institute.
Referring to Fig. 4, Fig. 4 be another embodiment of the present invention provides proximity sensor control method schematic diagram.This is close Sensor control method can be applied to mobile terminal, mobile terminal include mobile phone, laptop, tablet computer, vehicle-mounted computer, The electronic device that intelligent wearable device etc. can use on the move, and proximity sensor is provided with below screen, this is close Sensor concretely infrared proximity transducer.The proximity sensor control method includes:
401, mobile terminal screen state is detected;
The screen state of detection mobile terminal is bright screen state or goes out screen state.Bright screen state includes AOD state.
If 402, screen state is breath screen display state, the brightness for reducing mobile terminal screen is predetermined luminance value, and Black background is set by the interface of the corresponding mobile terminal screen in proximity sensor region, and is reduced close to sensor Transmission power be the 4th performance number;
If screen state is AOD state, that is, current screen state is bright screen state, then reduces the bright of mobile terminal screen Degree, and black background is set by the interface of the corresponding mobile terminal screen in proximity sensor region, and be reduced close to The transmission power of sensor is third performance number.Screen intensity is being reduced, and by the corresponding shifting in proximity sensor region While the interface of dynamic terminal screen is set as black background, it is reduced close to the transmission power of sensor, the 4th performance number can More than or equal to the first performance number in embodiment illustrated in fig. 1, the second power that can also be more than or equal in embodiment illustrated in fig. 2 Value, the third performance number that can also be more than or equal in embodiment illustrated in fig. 3.Screen intensity is being reduced, and by proximity sensor pair After the screen area answered is set as black background, proximity sensor is not allowed more compared with aforementioned Fig. 1, Fig. 2 and embodiment illustrated in fig. 3 Splashette easily occurs, therefore the transmission power for being reduced close to sensor can be equal or slightly larger than first performance number, second function Rate value or the third performance number.
If the screen state is screen state of going out, the transmission power of proximity sensor is not adjusted.It, will not under screen state of going out Splashette caused by occurring because of transmission power size.
If 403, have incoming call, the transmission power of proximity sensor is risen into the 5th performance number from the 4th performance number.
5th performance number can be one all different from aforementioned first performance number, the second performance number, third performance number Value, is also possible to one of which value.
When there is incoming call, in order to improve the accuracy of detection proximity state, sensor emission power is turned up.
In the embodiment of the present invention, the screen state of mobile terminal is detected, if screen is bright screen state, reduces screen intensity, The interface of the corresponding mobile terminal screen in proximity sensor region is set as black background simultaneously, and is reduced close to sensor Transmission power, there is a possibility that splashette to reduce, and it is simple and easy to do, avoid many and diverse calculating institute is increased from being calculated as This, and when there is incoming call, the transmission power is improved, to improve the accuracy of detection proximity state.
Referring to Fig. 5, Fig. 5 is the electronic device construction schematic diagram that one embodiment of the invention provides.The electronic device can be with It is that mobile terminal, including mobile phone, laptop, tablet computer, vehicle-mounted computer, intelligent wearable device etc. can use on the move Electronic device, and be provided with proximity sensor below the screen of electronic device, the proximity sensor is concretely infrared Proximity sensor.The electronic device includes:
Detection module 501, for detecting mobile terminal screen state;
The screen state of mobile terminal includes bright screen state and screen state of going out, and bright screen state includes illuminating state, further includes AOD state.
Control module 502, if being bright screen state for the screen state, the transmission power for being reduced close to sensor is the One performance number.
The transmission power of proximity sensor, which shows screen, to be had an impact, under bright screen state, proximity sensor transmitting The certain energy of light arrival will lead to screen corresponding region and flash, in order to reduce or thoroughly avoid this splashette phenomenon, drop The transmission power of low proximity sensor is the first performance number, which is set in advance in the control system of proximity sensor In, it is not in splashette phenomenon, or, there is slight splashette, but not shadow when the transmission power of proximity sensor is the first performance number Ring the experience of user.
In the embodiment of the present invention, the screen state of mobile terminal is detected, if screen is bright screen state, is reduced close to sense There is a possibility that splashette in the transmission power of device, reduction, and simple and easy to do, avoid many and diverse increased calculating cost of calculating institute.
Referring to Fig. 6, Fig. 6 be another embodiment of the present invention provides electronic device construction schematic diagram.The electronic device can To be that mobile terminal, including mobile phone, laptop, tablet computer, vehicle-mounted computer, intelligent wearable device etc. can make on the move Electronic device, and it is provided with proximity sensor below the screen of electronic device, the proximity sensor is concretely red Outer proximity sensor.Electronic device shown in the electronic device and Fig. 5 the difference is that:
The bright screen state is breath screen display state.
Control module 502 includes:First control submodule 5021, the second control submodule 5022 and third control submodule 5023。
First control submodule 5021, the brightness for reducing mobile terminal screen are predetermined luminance value;
Second control submodule 5022, the transmission power for reducing proximity sensor are the second performance number, the second power Value is more than or equal to the first performance number;
Third control submodule 5023, for setting the interface of the corresponding mobile terminal screen in proximity sensor region It is set to black background;
Second control submodule 5022 is also used in third control submodule 5023 that proximity sensor region is corresponding The interface of mobile terminal screen when being set as black background, the transmission power for being reduced close to sensor is third performance number, the Three performance numbers are more than or equal to the first performance number;
Second control submodule 5022, the brightness for being also used to reduce mobile terminal screen in the first control submodule 5021 are Predetermined luminance value, and third control submodule 5023 sets the interface of the corresponding mobile terminal screen in proximity sensor region When being set to black background, the transmission power for being reduced close to sensor is the 4th performance number, and the 4th performance number is more than or equal to the first function Rate value.
Further, control module 502, if be also used to incoming call, by the transmission power of proximity sensor from the 4th Performance number rises to the 5th performance number.
Details is not use up in the present embodiment, referring to the description of foregoing embodiments.
In the embodiment of the present invention, detection module detects the screen state of mobile terminal, if screen is bright screen state, controls mould The first control submodule in block reduces screen intensity, and third control submodule is by the corresponding movement in proximity sensor region The interface of terminal screen is set as black background, and the second control submodule is reduced close to the transmission power of sensor, to reduce There is a possibility that splashette, and simple and easy to do, avoids many and diverse increased calculating cost of calculating institute, and when there is incoming call, control Molding block improves the transmission power, to improve the accuracy of detection proximity state.
Illustratively, above-mentioned electronic device can be various types of calculating that are mobile or portable and executing wireless communication Any one of machine system equipment.Specifically, electronic device can be 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), laptop computer, PDA, portable Internet appliance, sound Happy player and data storage device, other handheld devices and wrist-watch, earphone, pendant, earphone etc., electronic device is also Can for other wearable devices (for example, such as electronic glasses, electronics clothes, electronics bracelet, electronics necklace, electronics tatoo, The headset equipment (HMD) of electronic equipment or smartwatch).
Electronic device can also be that any one of multiple electronic equipments, multiple electronic equipments include but is not limited to honeycomb Phone, smart phone, other wireless telecom equipments, personal digital assistant, audio player, other media players, music note It records device, video recorder, camera, other medium recorders, radio, Medical Devices, vehicle transport instrument, calculator, may be programmed Remote controler, pager, laptop computer, desktop computer, printer, netbook computer, personal digital assistant (PDA), just Formula multimedia player (PMP), Motion Picture Experts Group (MPEG-1 or MPEG-2) audio layer 3 (MP3) player are taken, it is portable Medical Devices and digital camera and combinations thereof.
In some cases, electronic device can execute multiple functions and (for example, playing music, show video, store picture And send and receive call).If desired, electronic device can be such as cellular phone, media player, other hands The portable device of holding equipment, watch equipment, pendant equipment, receiver device or other compact portable equipment.
As shown in fig. 7, electronic equipment 110 may include control circuit, which may include storage and processing electricity Road 130.The storage and processing circuit 130 may include memory, such as hard drive memory, nonvolatile memory (example Such as flash memory or be used to form solid state drive other electronic programmable limit deletings memory), volatile memory (example Such as either statically or dynamically random access memory) etc., the embodiment of the present application is with no restriction.Store and process the place in circuit 130 Reason circuit can be used for the operating of controlling electronic devices 110.The processing circuit can microprocessor based on one or more, micro-control Device processed, digital signal processor, baseband processor, power management unit, audio codec chip, specific integrated circuit are shown Show driver IC etc. to realize.
Storage and processing circuit 130 can be used for running the software in electronic equipment 110, such as the Internet browser application journey Sequence, voice over internet protocol (Voice over Internet Protocol, VOIP) call application program, Email Application program, media play-back application, operation system function etc..These softwares can be used for executing some control operations, example Such as, based on the Image Acquisition of camera, the ambient light measurement based on ambient light sensor, based on proximity sensor close to sensing Device measurement, the information display function that the positioning indicators such as status indicator lamp based on light emitting diode are realized, based on touch The touch event of sensor detects, function associated with information is shown on multiple (such as layering) displays, with execution The associated operation of wireless communication function, operation associated with collecting and generating audio signal, is pressed with collection and treatment button Other functions etc. in the associated control operation of event data and electronic equipment 110 are pressed, the embodiment of the present application does not limit System.
Electronic equipment 110 can also include input-output circuit 142.Input-output circuit 142 can be used for setting electronics Standby 110 realization data are output and input, i.e. permission electronic equipment 110 allows electronic equipment from outer equipment receiving data and also 110 export data to external equipment from electronic equipment 110.Input-output circuit 142 may further include sensor 132. Sensor 132 may include ambient light sensor, the proximity sensor based on light and capacitor, and touch sensor is (for example, be based on light Touch sensor and/or capacitive touch sensors, wherein touch sensor can be a part of touching display screen, can also Independently to be used as a touch sensor arrangement), acceleration transducer and other sensors etc..
Input-output circuit 142 can also include one or more displays, such as display 114.Display 114 can To include liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, using other aobvious Show combination one or several kinds of in the display of technology.Display 114 may include touch sensor array (that is, display 14 can be touching display screen).Touch sensor can be by transparent touch sensor electrode (such as tin indium oxide (ITO) Electrode) capacitive touch sensors that array is formed, or it can be the touch sensor formed using other touching techniques, example Such as sound wave touch-control, pressure sensible touch, resistive touch, optical touch etc., the embodiment of the present application is with no restriction.
Electronic equipment 110 can also include audio component 136.Audio component 136 can be used for providing for electronic equipment 110 Audio input and output function.Audio component 136 in electronic equipment 110 may include loudspeaker, microphone, buzzer, sound Adjust generator and other for generating and detecting the component of sound.
Telecommunication circuit 138 can be used for providing the ability with external device communication for electronic equipment 110.Telecommunication circuit 138 It may include analog- and digital- input-output interface circuit, and the radio communication circuit based on radiofrequency signal and/or optical signal. Radio communication circuit in telecommunication circuit 138 may include radio-frequency transceiver circuitry, power amplifier circuit, low noise amplification Device, switch, filter and antenna.For example, the radio communication circuit in telecommunication circuit 138 may include for passing through transmitting The circuit of near-field communication (Near Field Communication, NFC) is supported with near-field coupling electromagnetic signal is received.Example Such as, telecommunication circuit 138 may include near-field communication aerial and near-field communication transceiver.Telecommunication circuit 138 can also include honeycomb Telephone transceiver and antenna, wireless lan transceiver circuit and antenna etc..
Electronic equipment 110 can further include battery, power management circuitry and other input-output units 140.It is defeated Enter-output unit 140 may include button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, hair Optical diode and other positioning indicators etc..
User can input a command for the operation of controlling electronic devices 110 by input-output circuit 142, and can be with Status information and other outputs from electronic equipment 110 are received using the output data of input-output circuit 142 to realize.
Further, the embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable storages Medium can be in the electronic device being set in the various embodiments described above, which can be earlier figures 7 Memory in illustrated embodiment.It is stored with computer program on the computer readable storage medium, which is held by processor Realize earlier figures 1 to proximity sensor control method described in embodiment illustrated in fig. 4 when row.
In above-described embodiment, all emphasizes particularly on different fields to the description of each embodiment, may refer to other realities in some embodiment Apply the associated description of example.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality Relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or the device that include a series of elements not only include those elements, but also including Other elements that are not explicitly listed, or further include for this process, method, article or the intrinsic element of device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, there is also other identical elements in article or device.
The above are to proximity sensor and its control method provided herein, electronic device and computer-readable storage The description of medium according to the thought of the embodiment of the present application, in specific embodiment and applies model for those skilled in the art Place that there will be changes, to sum up, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of proximity sensor control method, which is characterized in that including:
Detect mobile terminal screen state;
If the screen state is bright screen state, the transmission power for being reduced close to sensor is the first performance number.
2. the method as described in claim 1, which is characterized in that the bright screen state is breath screen display state, then the method Further include:
If the screen state is breath screen display state, the brightness for reducing the mobile terminal screen is predetermined luminance Value, and the transmission power for being reduced close to sensor is the second performance number;
Wherein, second performance number is more than or equal to first performance number.
3. the method as described in claim 1, which is characterized in that the bright screen state is breath screen display state, then the method Further include:
If the screen state is breath screen display state, by the corresponding movement in the proximity sensor region The interface of terminal screen is set as black background, and the transmission power for being reduced close to sensor is third performance number;
Wherein, the third performance number is more than or equal to first performance number.
4. the method as described in claim 1, which is characterized in that the bright screen state is breath screen display state, then the method Further include:
If the screen state is breath screen display state, the brightness for reducing the mobile terminal screen is predetermined luminance Value, and black background is set by the interface of the corresponding mobile terminal screen in the proximity sensor region, and The transmission power for being reduced close to sensor is the 4th performance number;
Wherein, the 4th performance number is more than or equal to first performance number.
5. method as claimed in claim 4, which is characterized in that the transmission power for being reduced close to sensor is the 4th power Further include after value:
If have incoming call, the transmission power of proximity sensor is risen into the 5th performance number from the 4th performance number.
6. a kind of electronic device, which is characterized in that including:
Detection module, for detecting mobile terminal screen state;
Control module, if being bright screen state for the screen state, the transmission power for being reduced close to sensor is the first function Rate value.
7. electronic device as claimed in claim 6, which is characterized in that the bright screen state is breath screen display state, then described Control module includes:
First control submodule, the brightness for reducing the mobile terminal screen are predetermined luminance value;
Second control submodule is the second performance number for reducing the transmission power of proximity sensor, and second performance number is big In equal to first performance number;
Third control submodule, for setting the interface of the corresponding mobile terminal screen in the proximity sensor region It is set to black background;
Second control submodule is also used in the third control submodule that the proximity sensor region is corresponding The interface of mobile terminal screen when being set as black background, the transmission power for being reduced close to sensor is third power Value, the third performance number are more than or equal to first performance number;
Second control submodule, be also used to be in the brightness that first control submodule reduces the mobile terminal screen Predetermined luminance value, and the third control submodule is by the corresponding mobile terminal screen in the proximity sensor region Interface when being set as black background, the transmission power for being reduced close to sensor is the 4th performance number, and the 4th performance number is big In equal to first performance number.
8. electronic device as claimed in claim 7, which is characterized in that the control module will if be also used to incoming call The transmission power of proximity sensor rises to the 5th performance number from the 4th performance number.
9. a kind of electronic device, including:Proximity sensor, processor, is stored on the memory and can be described memory The computer program run on processor, which is characterized in that when the processor executes the computer program, realize such as right It is required that proximity sensor control method described in any one in 1 to 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being executed by processor, the proximity sensor control method as described in any one in claim 1 to 5 is realized.
CN201810717860.5A 2018-07-03 2018-07-03 proximity sensor control method, electronic device and computer readable storage medium Pending CN108924358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810717860.5A CN108924358A (en) 2018-07-03 2018-07-03 proximity sensor control method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810717860.5A CN108924358A (en) 2018-07-03 2018-07-03 proximity sensor control method, electronic device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108924358A true CN108924358A (en) 2018-11-30

Family

ID=64423433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810717860.5A Pending CN108924358A (en) 2018-07-03 2018-07-03 proximity sensor control method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108924358A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618031A (en) * 2018-12-25 2019-04-12 Oppo广东移动通信有限公司 Electronic device and its control method
CN109686310A (en) * 2019-01-25 2019-04-26 京东方科技集团股份有限公司 A kind of display device and its driving method
CN109724640A (en) * 2019-01-12 2019-05-07 Oppo广东移动通信有限公司 Proximity sensor calibration method, electronic device and computer readable storage medium
CN109859637A (en) * 2019-01-31 2019-06-07 维沃移动通信有限公司 A kind of electronic equipment and its control method
CN112153217A (en) * 2020-09-17 2020-12-29 Oppo广东移动通信有限公司 Terminal, screen state control method, computer device, and storage medium
CN113497836A (en) * 2020-04-01 2021-10-12 北京小米移动软件有限公司 Distance sensor, control method thereof and mobile terminal
CN114172983A (en) * 2020-09-10 2022-03-11 华为技术有限公司 Proximity optical sensor control method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369142A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Method and system for avoiding call-up malfunction
CN107943345A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Calibration method, device, storage medium and the electronic equipment of proximity sensor
CN107948419A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Electronic device
CN107968883A (en) * 2017-11-22 2018-04-27 广东欧珀移动通信有限公司 Distance state detection method, device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369142A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Method and system for avoiding call-up malfunction
CN107943345A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Calibration method, device, storage medium and the electronic equipment of proximity sensor
CN107948419A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Electronic device
CN107968883A (en) * 2017-11-22 2018-04-27 广东欧珀移动通信有限公司 Distance state detection method, device, storage medium and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618031A (en) * 2018-12-25 2019-04-12 Oppo广东移动通信有限公司 Electronic device and its control method
CN109618031B (en) * 2018-12-25 2020-06-12 Oppo广东移动通信有限公司 Electronic device and control method thereof
CN109724640A (en) * 2019-01-12 2019-05-07 Oppo广东移动通信有限公司 Proximity sensor calibration method, electronic device and computer readable storage medium
CN109686310A (en) * 2019-01-25 2019-04-26 京东方科技集团股份有限公司 A kind of display device and its driving method
CN109686310B (en) * 2019-01-25 2021-01-26 京东方科技集团股份有限公司 Display device and driving method thereof
CN109859637A (en) * 2019-01-31 2019-06-07 维沃移动通信有限公司 A kind of electronic equipment and its control method
CN113497836A (en) * 2020-04-01 2021-10-12 北京小米移动软件有限公司 Distance sensor, control method thereof and mobile terminal
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
CN112153217A (en) * 2020-09-17 2020-12-29 Oppo广东移动通信有限公司 Terminal, screen state control method, computer device, and storage medium

Similar Documents

Publication Publication Date Title
CN108924358A (en) proximity sensor control method, electronic device and computer readable storage medium
CN104765446A (en) Electronic device and method of controlling electronic device
CN107256068B (en) The acquisition method and Related product of fingerprint
CN209594090U (en) Electronic equipment
CN108983211A (en) Proximity sensor and its control method, electronic device and computer readable storage medium
CN106850983A (en) One kind puts out screen control method, device and terminal
WO2018133642A1 (en) Fingerprint recognition module, fingerprint recognition method, and related product
CN107015703A (en) Solve lock control method and Related product
CN107292235A (en) The acquisition method and Related product of fingerprint
CN109407833A (en) Manipulate method, apparatus, electronic equipment and the storage medium of electronic equipment
CN108769387A (en) Application control method and relevant device
CN107193473A (en) Solve lock control method and Related product
CN107426439A (en) Screen starts method, device and mobile terminal
CN107728923A (en) The processing method and mobile terminal of a kind of operation
CN107194227A (en) Solve lock control method and Related product
CN107193474A (en) Solve lock control method and Related product
CN108769401A (en) Signal detecting method and related product
CN109067978A (en) Button operation processing method, device, storage medium and electronic equipment
CN108834206A (en) The control method and electronic device of electronic device
CN109857317A (en) A kind of control method and terminal device of terminal device
CN107317917B (en) Application control method and Related product
CN108834013A (en) A kind of wearable device electric quantity balancing method and Related product
CN108595105A (en) Light filling lamp control method, device, storage medium and electronic equipment
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace
CN107231461A (en) The acquisition method and Related product of fingerprint

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130

RJ01 Rejection of invention patent application after publication