WO2018210145A1 - 一种息屏控制方法、装置、存储介质和电子设备 - Google Patents

一种息屏控制方法、装置、存储介质和电子设备 Download PDF

Info

Publication number
WO2018210145A1
WO2018210145A1 PCT/CN2018/085677 CN2018085677W WO2018210145A1 WO 2018210145 A1 WO2018210145 A1 WO 2018210145A1 CN 2018085677 W CN2018085677 W CN 2018085677W WO 2018210145 A1 WO2018210145 A1 WO 2018210145A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
signal strength
screen
intensity value
threshold
Prior art date
Application number
PCT/CN2018/085677
Other languages
English (en)
French (fr)
Inventor
周意保
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP18802794.0A priority Critical patent/EP3627808A4/en
Publication of WO2018210145A1 publication Critical patent/WO2018210145A1/zh
Priority to US16/677,265 priority patent/US11011131B2/en

Links

Images

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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • 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

Definitions

  • the present application relates to the field of electronic device technologies, and in particular, to a screen-out control method, apparatus, storage medium, and electronic device.
  • the embodiment of the present application provides a screen blanking control method, device, storage medium, and electronic device, which can improve the stability of the screen blanking control.
  • an embodiment of the present application provides a screen blanking control method, including:
  • the screen-out control is performed according to the signal strength calibration value and the screen-out threshold.
  • the embodiment of the present application further provides a screen-out control device, including: an acquisition module, a calculation module, a first determination module, a determination module, and a control module;
  • the acquiring module is configured to acquire a preset number of proximity sensor signal strength values
  • the calculating module is configured to calculate an average intensity value of the plurality of signal strength values
  • the first determining module is configured to determine whether a first difference between the average intensity value and an initial intensity value of the proximity sensor is greater than a preset value
  • the determining module is configured to determine the first difference as a signal strength calibration value when the first determining module determines to be YES;
  • the control module is configured to perform screen-off control according to the signal strength calibration value and the blackout threshold.
  • the present application further provides a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform the above-described screen-out control method.
  • the present application further provides an electronic device, including a processor and a memory, the memory storing a plurality of instructions, and the processor loading the instructions in the memory to perform the following steps:
  • the screen-out control is performed according to the signal strength calibration value and the screen-out threshold.
  • FIG. 1 is a schematic flowchart of a screen blanking control method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a proximity sensor according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another proximity sensor according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart diagram of another method for controlling the screen for extinction provided by the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a screen-out control device according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another screen-out control device according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of still another screen-out control device according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the principles of the present application operate using many other general purpose or special purpose computing, communication environments, or configurations.
  • Examples of well-known computing systems, environments, and configurations suitable for use in the present application may include, but are not limited to, hand-held phones, personal computers, servers, multi-processor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.
  • users tend to stick film in order to protect the display screen.
  • the market conditions are various, each user's habits are different, some users prefer film, some users do not apply film, some users will stick steel film, etc. Etc., because the internal part of the electronic device has a transmitting end and a receiving end. If there is a film covering, it will inevitably increase the light intensity value of the receiving end. If it is too large, it may directly cause the near-interest screen to be off, which may affect the user's use.
  • the embodiment of the present application provides a screen-out control method, including: receiving a time acquisition instruction, and acquiring a current time according to the time acquisition instruction, determining whether the current time is within a preset time range, and if yes, determining the Whether the wireless local area network of the electronic device is currently in the off state, and if not in the off state, the wireless local area network is switched to the off state.
  • the method After calculating an average intensity value of the plurality of signal strength values, determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value, the method also includes:
  • a step of determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value is performed.
  • the step of determining, according to the average intensity value, whether the fluctuation amplitude of the plurality of signal strength values is less than a preset fluctuation amplitude comprises:
  • the step of performing the screen-off control according to the signal strength calibration value and the screen-out threshold includes:
  • the screen blanking control is performed according to the target signal strength value and the blackout threshold.
  • the step of performing the screen-off control according to the target signal strength value and the blackout threshold includes:
  • the method further includes:
  • the screen is lit.
  • the method before the performing the screen-off control according to the signal strength calibration value and the blanking threshold, the method further includes:
  • the step of performing the screen-out control based on the signal strength calibration value and the screen-out threshold is performed.
  • FIG. 1 is a schematic flowchart of a screen blanking control method according to Embodiment 1 of the present application.
  • the screen blanking control method of this embodiment includes:
  • Step S101 Acquire a proximity sensor signal strength value of a preset number of times.
  • an infrared proximity sensor can be used in an electronic device, and the proximity sensing of the sensor is implemented by detecting an infrared light emitted by an IRLED (Infrared Light-Emitting Diode) through an external barrier.
  • the amount of infrared energy to determine proximity or departure generally includes an emission sensor, that is, the LED lamp emits infrared light, and a receiving sensor that receives infrared light.
  • the electronic equipment is calibrated to a fixed value near the factory, which is the initial intensity value of the proximity sensor.
  • the initial intensity value of the proximity sensor if there is no occlusion, will always display its initial value, and the data Will be more stable.
  • the value of the read light intensity becomes large.
  • the internal chip processor at the receiving end includes an analog-to-digital converter to obtain a specific infrared light intensity value.
  • the value at the receiving end is the smallest. As the object approaches, the value continues to increase until the full scale.
  • 70 is a transparent substrate, and the light-emitting sensor 21 and the light-receiving sensor 22 constitute a proximity sensor 20, and the proximity sensor is disposed on the printed circuit board 40.
  • the transparent substrate 70 is an ink layer, and the ink layer may include a light-transmitting ink layer 51 and a light-shielding ink layer 52.
  • the light-shielding ink layer 52 includes a first light-transmissive region 61 for emitting light and a second transparent surface for receiving light. Light area 62.
  • the approaching process is: the light emitting sensor 21 generates infrared rays, and the infrared rays are transmitted to the outside through the first light transmitting region 61, and the infrared rays are received by the light receiving sensor 22 through the second light transmitting region 62 after hitting the blocking object 70.
  • the surface of the transparent substrate 70 is covered with a display film 10, such as a tempered film. Then, after a part of the infrared rays are emitted from the light emitter 21, they are reflected inside the electronic device after being reflected to the film 10. For example, the ink layer, the transparent substrate 70, and the film 10 are continuously reflected inside the electronic device, and finally the light receiving sensor 22 is reflected. Received. The partially reflected light causes the light intensity value measured by the proximity sensor to be larger than the actual value, which affects the accuracy of the data. Furthermore, an ambient light sensor 30 can be arranged beside the light receiver sensor 22 for sensing ambient light.
  • the preset number of times can be set according to actual conditions, for example, 50 times, and data is collected every 10 seconds to obtain sampling data of the distance sensor in the electronic device for 50 consecutive times in 500 seconds.
  • the data jitter is very small, basically in single digits, such as 801, 805, 803 readings.
  • Step S102 calculating an average intensity value of the plurality of signal intensity values.
  • all the foregoing values may be added, and then divided by the number to obtain an average intensity value of the plurality of signal intensity values.
  • the light intensity value of the distance sensor is sampled n times to obtain n light intensity values such as Q1, Q2, Q3, ..., Qn, and Q1+Q2+Q3+...+Qn is calculated and The result is divided by n to get the average intensity value.
  • step S103 it is determined whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value. If yes, step S104 is performed, and if not, the process ends.
  • the light intensity value needs to be calibrated only when the average light intensity value is much larger than the initial intensity value of the proximity sensor.
  • the initial intensity value of the proximity sensor is 1000
  • the preset value may be 500, that is, only when the average light intensity value is greater than 1000 and exceeds 500, that is, the average light intensity value is greater than 1500, the received light is required.
  • the intensity value is calibrated. If it is not greater than, no further processing is necessary.
  • Step S104 determining the first difference value as a signal strength calibration value.
  • the first difference may be set as a calibration value. For example, if it is 500, the value can be written into the register, and the calibration value is subtracted every time the sample is read. In this way, no matter what film is attached, how much can be increased, it can be guaranteed that the automatic calibration will be about 1000 at the factory, which will not cause the problem that the screen is not bright.
  • step S05 the screen blanking control is performed according to the signal strength calibration value and the blackout threshold.
  • the current light intensity value is obtained, and the signal intensity calibration value is used to perform calibration to obtain a final light intensity value, and then the screen is extinguished according to the final light intensity value and the blackout threshold.
  • control For example, the screen blanking intensity is 1800.
  • the threshold value exceeds 1800, the threshold is triggered, an interruption occurs, and the screen is started.
  • the user finishes the call he slowly moves away.
  • the approach value is less than 1800, the brightness threshold is triggered, an interruption occurs, and the screen is started.
  • the step of performing the screen-off control according to the signal strength calibration value and the blanking threshold may specifically include:
  • the screen-out control is performed according to the target signal strength value and the screen-out threshold.
  • the blackout threshold and the bright screen threshold may also be set to be different.
  • the brightness threshold may be set to 1700 while the blanking threshold is set to 1800. After the light intensity value exceeds 1800 and the screen is extinguished, it is further determined whether the current light intensity is less than 1700, and if less than 1700, the electronic device screen is illuminated.
  • the screen-out control method provided by the present application is mostly used for an electronic device during a call, for example, when the user answers the call and places the electronic device on the ear, the screen is extinguished to prevent false touches.
  • the call ends when the electronic device is away from the user and then lights up the screen again.
  • the method may further include:
  • the step of performing the screen-out control based on the signal strength calibration value and the blanking threshold is performed.
  • the screen blanking control method can obtain a preset number of proximity sensor signal strength values, calculate an average intensity value of the plurality of signal intensity values, and determine the average intensity value and the initial intensity value of the proximity sensor. Whether the first difference is greater than a preset value, and if so, determining the first difference as a signal strength calibration value, and performing the screen blanking control according to the signal strength calibration value and the blackout threshold.
  • the device can automatically calibrate the light intensity value received by the distance sensor after the user applies the film to the electronic device device, and performs the screen-off control according to the calibrated light intensity value and the blackout threshold, so that the electronic device can be interfered by the film or the like. In order to avoid abnormal screen flash on the screen of the electronic device due to inaccurate reading data, the stability of the screen-out control is effectively improved.
  • FIG. 4 is a schematic flowchart diagram of another method for controlling the screen blanking according to an embodiment of the present application. Includes the following steps:
  • Step S201 Acquire a preset number of proximity sensor signal strengths.
  • an infrared proximity sensor can be used in an electronic device.
  • the preset number of times can be 50 times, and data is collected every 10 seconds to obtain sampling data of the distance sensor in the electronic device for 50 consecutive times in 500 seconds.
  • an inductive proximity sensor can also be used in an electronic device, which is composed of an LC high frequency oscillator and an amplification processing circuit, and uses a metal object to generate an internal object when approaching the oscillation induction head capable of generating an electromagnetic field. Eddy current, this eddy current reacts to the proximity sensor, so that the proximity sensor's oscillation ability is attenuated, and the parameters of the internal circuit are changed, thereby obtaining the intensity value.
  • the limitation of this type of sensor is that the object that can be detected must be a metal object.
  • a capacitive proximity sensor can also be used, the measuring head of which is usually one plate constituting the capacitor, and the other plate is the object itself, and the object and the proximity sensor when the object moves toward the proximity sensor.
  • the dielectric constant changes so that the state of the circuit connected to the measuring head also changes, thereby obtaining an intensity value.
  • Step S202 calculating an average intensity value of the plurality of signal intensity values.
  • the light intensity value of the distance sensor is sampled n times to obtain n light intensity values such as Q1, Q2, Q3, ..., Qn, and Q1+Q2+Q3+...+Qn is calculated and The result is divided by n to get the average intensity value.
  • Step S203 respectively acquiring a second difference between the plurality of signal strength values and the average intensity value.
  • the protective film is attached to the display screen of the mobile phone, even if the received light intensity value of the distance sensor is increased, it is in a period of time without other obstructions.
  • the light intensity value will also be relatively stable, so it is necessary to judge whether the display screen of the electronic device device is currently filmed.
  • determining whether the fluctuation amplitude of the plurality of signal strength values is less than the preset fluctuation amplitude according to the average intensity value, and if less than, determining that the electronic device is currently in a stable state Take further action.
  • the average intensity value is 1600, and calculating Q1-1600, Q2-1600, Q3-1600, ..., Qn-1600, respectively. Get n second differences.
  • Step S204 calculating a fluctuation amplitude according to the second difference and the average intensity value.
  • the second difference needs to be processed by the absolute value, and then the second difference can be divided by the average intensity value to obtain the fluctuation. Amplitude.
  • step S205 it is determined whether the fluctuation amplitude is less than the preset fluctuation amplitude. If yes, step S206 is performed, and if not, the flow is ended.
  • the above-mentioned preset fluctuation amplitude can be set to 20%, and as long as the fluctuation amplitude is less than 20%, it is considered to be in a stable state.
  • Step S206 determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value, and if yes, executing step S207, and if not, ending the flow.
  • the initial intensity value of the proximity sensor is 1000
  • the preset value may be 500, that is, only when the average light intensity value is greater than 1000 and exceeds 500, that is, the average light intensity value is greater than 1500, the received light is required.
  • the intensity value is calibrated.
  • step S207 the first difference is determined as a signal strength calibration value.
  • the value can be written into the register, and each time the sample is read, the calibration value is subtracted to obtain the final light intensity value.
  • Step S208 performing screen-out control according to the signal strength calibration value and the screen-out threshold.
  • the current light intensity value is obtained, and the signal intensity calibration value is used to perform calibration to obtain a final light intensity value, and then the screen is extinguished according to the final light intensity value and the blackout threshold. control.
  • the screen blanking control method can acquire the signal strength of the proximity sensor of a preset number of times, calculate the average intensity value of the plurality of signal intensity values, and obtain the second signal strength value and the second value of the average intensity value respectively. a difference, calculating a fluctuation amplitude according to the second difference and the average intensity value, determining whether the fluctuation amplitude is smaller than a preset fluctuation amplitude, and if yes, determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset The value, if yes, determines the first difference as the signal strength calibration value and performs the screen-out control based on the signal strength calibration value and the blackout threshold.
  • the device can automatically calibrate the light intensity value received by the distance sensor after the user applies the film to the electronic device device, and performs the screen-off control according to the calibrated light intensity value and the blackout threshold, so that the electronic device can be interfered by the film or the like.
  • the stability of the screen-out control is effectively improved.
  • the embodiment of the present application further provides a screen-out control device, including: an acquisition module, a calculation module, a first determination module, a determination module, and a control module;
  • the acquiring module is configured to acquire a preset number of proximity sensor signal strength values
  • the calculating module is configured to calculate an average intensity value of the plurality of signal strength values
  • the first determining module is configured to determine whether a first difference between the average intensity value and an initial intensity value of the proximity sensor is greater than a preset value
  • the determining module is configured to determine the first difference as a signal strength calibration value when the first determining module determines to be YES;
  • the control module is configured to perform screen-off control according to the signal strength calibration value and the blackout threshold.
  • the device further includes: a second determining module
  • the second determining module is configured to: after the calculating module calculates an average intensity value of the plurality of signal strength values, the first determining module determines the first value of the average intensity value and the initial intensity value of the proximity sensor Whether the fluctuation amplitude of the plurality of signal strength values is less than a preset fluctuation amplitude according to the average intensity value before the difference is greater than a preset value;
  • the first determining module is specifically configured to: when the second determining module determines to be YES, perform the step of determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value .
  • the second determining module specifically includes: an obtaining submodule, a calculating submodule, and a determining submodule;
  • the acquiring submodule is configured to respectively acquire a second difference between the plurality of signal strength values and the average intensity value
  • the calculating submodule is configured to calculate the fluctuation amplitude according to the second difference value and the average intensity value
  • the determining sub-module is configured to determine whether the fluctuation amplitude is less than a preset fluctuation amplitude.
  • control module is configured to acquire a current signal strength value of the proximity sensor, and perform calibration on the current signal strength value according to the signal strength calibration value to obtain a target signal strength value, according to the The target signal strength value and the blackout threshold are used to perform the screen-out control.
  • the apparatus further includes: a third determining module
  • the third determining module is configured to determine, before the control module performs the screen-out control according to the signal strength calibration value and the blackout threshold, whether the electronic device is currently in a call state;
  • the control module is specifically configured to perform the screen blanking control according to the signal strength calibration value and the blackout threshold when the third determining module determines to be YES.
  • the embodiment of the present application further provides an apparatus based on the above-described screen blanking control method.
  • the meaning of the noun is the same as that in the above-mentioned screen-out control method.
  • FIG. 5 is a schematic structural diagram of a screen blanking control device 30 according to an embodiment of the present disclosure.
  • the device 30 includes: an obtaining module 301, a calculating module 302, a first determining module 303, a determining module 304, and a control module. 305;
  • the obtaining module 301 is configured to acquire a preset number of proximity sensor signal strength values
  • the calculating module 302 is configured to calculate an average intensity value of the plurality of signal strength values
  • the first determining module 303 is configured to determine whether a first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value
  • the determining module 304 is configured to determine, when the first determining module 303 determines that the first difference is a signal strength calibration value
  • the control module 305 is configured to perform screen-off control according to the signal strength calibration value and the blackout threshold.
  • the device may further include: a second determining module 306;
  • the second determining module 306 is configured to: after the calculating module 302 calculates the average intensity values of the plurality of signal strength values, the first determining module 303 determines whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset. Before the value, determining whether the fluctuation amplitude of the plurality of signal intensity values is less than the preset fluctuation amplitude according to the average intensity value;
  • the first determining module 303 is specifically configured to: when the second determining module 306 determines YES, perform a step of determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value.
  • the second determining module 306 may specifically include: an obtaining submodule 3061, a computing submodule 3062, and a determining submodule 3063;
  • the obtaining submodule 3061 is configured to separately obtain a second difference between the plurality of signal strength values and the average intensity value
  • the calculating sub-module 3062 is configured to calculate a fluctuation amplitude according to the second difference value and the average intensity value;
  • the determining sub-module 3063 is configured to determine whether the fluctuation amplitude is less than a preset fluctuation amplitude.
  • the screen-out control device provided by the embodiment of the present application can obtain the proximity sensor signal strength value by the acquisition module 301 by a preset number of times, and the calculation module 302 calculates the average intensity value of the plurality of signal strength values, and is determined by the first determination module. 303: determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value. If yes, the determining module 304 determines the first difference value as a signal strength calibration value, and the control module 305 determines the signal strength according to the signal strength. The screen threshold is turned off to control the screen.
  • the device can automatically calibrate the light intensity value received by the distance sensor after the user applies the film to the electronic device device, and performs the screen-off control according to the calibrated light intensity value and the blackout threshold, so that the electronic device can be interfered by the film or the like.
  • the stability of the screen-out control is effectively improved.
  • the present application also provides a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the screen-out control method described above.
  • the application also provides an electronic device, such as an electronic device such as a tablet computer or a mobile phone.
  • the processor in the electronic device loads the instructions corresponding to the process of one or more applications into the memory according to the following steps, and the processor runs the application stored in the memory to implement various functions:
  • the screen-out control is performed according to the signal strength calibration value and the screen-out threshold.
  • the processor is also used to perform the following steps:
  • a step of determining whether the first difference between the average intensity value and the initial intensity value of the proximity sensor is greater than a preset value is performed.
  • the processor is configured to perform the following steps:
  • the processor when the screen blanking control is performed according to the signal strength calibration value and the blackout threshold, the processor is configured to perform the following steps:
  • the screen blanking control is performed according to the target signal strength value and the blackout threshold.
  • the processor when the screen blanking control is performed according to the target signal strength value and the blackout threshold, the processor is configured to perform the following steps:
  • the processor is further configured to perform the following steps:
  • the screen is lit.
  • the processor is further configured to perform the following steps before the blanking control is performed according to the signal strength calibration value and the blackout threshold:
  • the step of performing the screen-out control based on the signal strength calibration value and the screen-out threshold is performed.
  • FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic device 500 can include a radio frequency (RF) circuit 501, a memory 502 including one or more computer readable storage media, an input unit 503, a display unit 504, a sensor 504, an audio circuit 506, and wireless fidelity ( WiFi, Wireless Fidelity module 507, processor 508 including one or more processing cores, and power supply 509 and the like.
  • RF radio frequency
  • FIG. 8 does not constitute a limitation to the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the radio frequency circuit 501 can be used for transmitting and receiving information, or receiving and transmitting signals during a call. Specifically, after receiving the downlink information of the base station, the radio network is processed by one or more processors 508; in addition, the data related to the uplink is sent to the base station. .
  • the radio frequency circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc.
  • SIM Subscriber Identity Module
  • LNA Low Noise Amplifier
  • the wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (CDMA). Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • Code Division Multiple Access Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • Memory 502 can be used to store applications and data.
  • the application stored in the memory 502 contains executable code. Applications can form various functional modules.
  • the processor 508 executes various functional applications and data processing by running an application stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices (such as audio data, phone books, etc.).
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 may also include a memory controller to provide access to memory 502 by processor 508 and input unit 503.
  • the input unit 503 can be configured to receive input numbers, character information or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 503 can include a touch-sensitive surface as well as other input devices.
  • Touch-sensitive surfaces also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program.
  • the touch sensitive surface may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 508 is provided and can receive commands from the processor 508 and execute them.
  • touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 503 can also include other input devices.
  • other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a fingerprint recognition module, a trackball, a mouse, a joystick, and the like.
  • Display unit 504 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be constructed from graphics, text, icons, video, and any combination thereof.
  • the display unit 504 can include a display panel.
  • the display panel can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
  • the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 508 to determine the type of the touch event, and then the processor 508 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel.
  • the touch-sensitive surface and display panel are implemented as two separate components to perform input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
  • the electronic device can also include at least one type of sensor 505, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel when the electronic device moves to the ear, and/or Backlighting.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the electronic device can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • the audio circuit 506 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • the audio circuit 506 can convert the received audio data into an electrical signal, which is transmitted to a speaker, and converted into a sound signal output by the speaker.
  • the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 506 and converted into
  • the audio data is processed by the audio data output processor 508, transmitted via the RF circuit 501 to, for example, another electronic device, or the audio data is output to the memory 502 for further processing.
  • the audio circuit 506 may also include an earbud jack to provide communication of the peripheral earphones with the electronic device.
  • Wireless Fidelity is a short-range wireless transmission technology.
  • the wireless device can help users send and receive e-mail, browse web pages and access streaming media through the wireless fidelity module 507, which provides users with wireless broadband Internet access.
  • FIG. 8 shows the wireless fidelity module 507, it can be understood that it does not belong to the essential configuration of the electronic device, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 508 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, executes the electronic device by running or executing an application stored in the memory 502, and calling data stored in the memory 502.
  • the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 508.
  • the electronic device also includes a power source 509 (such as a battery) that supplies power to the various components.
  • a power source 509 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 508 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 509 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the electronic device may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing modules refer to the foregoing method embodiments, and details are not described herein again.
  • a program to instruct related hardware can be stored in a computer readable storage medium, such as It is stored in a memory of the electronic device and executed by at least one processor within the electronic device, and may include a flow of an embodiment such as a screen-out control method during execution.
  • the storage medium may include: a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
  • the above is a detailed description of a screen-out control method, apparatus, storage medium and electronic device provided by the embodiments of the present application.
  • the functional modules may be integrated into one processing chip, or each module may exist physically or separately.
  • One or more modules are integrated in one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the principles and implementations of the present application are described in the following by using specific examples. The description of the above embodiments is only for helping to understand the method of the present application and its core ideas. Meanwhile, for those skilled in the art, according to the present application, There is a change in the scope of the present invention and the scope of application, and the contents of this specification should not be construed as limiting the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本申请实施例公开了一种熄屏控制方法,包括:获取预设次数的接近传感器信号强度值,计算平均强度值,判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值,若是,将第一差值确定为信号强度校准值,根据信号强度校准值以及熄屏阈值进行熄屏控制。本申请还提供一种熄屏控制装置、存储介质和电子设备。

Description

一种息屏控制方法、装置、存储介质和电子设备
本申请要求于2017年05月16日提交中国专利局、申请号为CN201710343828.0、发明名称为“一种息屏控制方法、装置、存储介质和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备技术领域,具体涉及一种熄屏控制方法、装置、存储介质和电子设备。
背景技术
随着电子设备技术的发展,电子设备已经开始从以前简单地提供通话设备渐渐变成一个通用软件运行的平台。该平台不再以提供通话管理为主要目的,而是提供一个包括通话管理、游戏娱乐、办公记事、移动支付等各类应用软件在内的运行环境,给用户的工作和生活都带来了极大的便利。
目前的市场上距离传感器已经成为电子设备的一个标配的内置器件。在电子设备的通话过程中,通话双方只需通过声音进行沟通,此时通常会根据电子设备和用户脸部之间的距离来控制屏幕的显示和关闭。具体是通过传感器发射的红外线来判断手机是否贴近脸部,贴近时可以关闭LCD背光,起到省电的作用,同时对于电容触摸屏来讲,可以防误触。
发明内容
本申请实施例提供一种熄屏控制方法、装置、存储介质和电子设备,可以提高熄屏控制的稳定性。
第一方面,本申请实施例提供一种熄屏控制方法,包括:
获取预设次数的接近传感器信号强度值;
计算所述多个信号强度值的平均强度值,并判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值;
若是,则将所述第一差值确定为信号强度校准值;
根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
第二方面,本申请实施例还提供了一种熄屏控制装置,包括:获取模块、计算模块、第一判断模块、确定模块以及控制模块;
所述获取模块,用于获取预设次数的接近传感器信号强度值;
所述计算模块,用于计算所述多个信号强度值的平均强度值;
所述第一判断模块,用于判断所述平均强度值与所述接近传感器的初始强度值的第一 差值是否大于预设值;
所述确定模块,用于当所述第一判断模块判断为是时,将所述第一差值确定为信号强度校准值;
所述控制模块,用于根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
第三方面,本申请还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述的熄屏控制方法。
第四方面,本申请还提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
获取预设次数的接近传感器信号强度值;
计算所述多个信号强度值的平均强度值,并判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值;
若是,则将所述第一差值确定为信号强度校准值;
根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种熄屏控制方法的流程示意图。
图2为本申请实施例提供的一种接近传感器的感光示意图。
图3为本申请实施例提供的另一种接近传感器的感光示意图。
图4为本申请实施例提供的另一种熄屏控制方法的流程示意图。
图5为本申请实施例提供的一种熄屏控制装置的结构示意图。
图6为本申请实施例提供的另一种熄屏控制装置的结构示意图。
图7为本申请实施例提供的又一种熄屏控制装置的结构示意图。
图8为本申请实施例提供的电子设备的结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符 号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本申请的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本申请的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。目前,在实际使用中,用户为了保护显示屏往往会贴膜,市场情况多种多样,每个用户的习惯都不同,有的用户喜欢贴膜,有的用户不贴膜,有的用户会贴钢化膜等等,因为电子设备内部是有发射端和接收端的,如果有贴膜遮挡,必然会加大接收端的光强度值,加得过大可能会直接导致接近息屏不亮,影响用户使用。
以下将分别进行详细说明。
本实施例将从熄屏控制的装置的角度进行描述,该装置具体可以集成在电子设备中,该电子设备可以为移动互连接网络设备(如智能手机、平板电脑)等具备电子设备。
本申请实施例提供一种熄屏控制方法,包括:接收时间获取指令,并根据所述时间获取指令获取当前时间,判断所述当前时间是否处于预设时间范围之内,若是,则判断所述电子设备的无线局域网络当前是否处于关闭状态,若不处于关闭状态,则将所述无线局域网络切换为关闭状态。
一实施例中,在计算所述多个信号强度值的平均强度值之后,判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值之前,所述方法还包括:
根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度;
若是,则执行判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值的步骤。
一实施例中,所述根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度的步骤具体包括:
分别获取所述多个信号强度值与所述平均强度值的第二差值;
根据所述第二差值以及所述平均强度值计算所述波动幅度;
判断所述波动幅度是否小于预设波动幅度。
一实施例中,所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制的步骤具体包括:
获取所述接近传感器当前信号强度值;
根据所述信号强度校准值对所述当前信号强度值进行校准,以得到目标信号强度值;
根据所述目标信号强度值以及熄屏阈值进行熄屏控制。
一实施例中,所述根据所述目标信号强度值以及熄屏阈值进行熄屏控制的步骤,包括:
判断所述目标信号强度值是否大于所述熄屏阈值;
若大于,则熄灭屏幕。
一实施例中,在所述熄灭屏幕之后,所述方法还包括:
获取亮屏阈值,所述亮屏阈值低于所述息屏阈值;
继续获取所述目标信号强度值并判断是否小于所述亮屏阈值;
若小于,则点亮屏幕。
一实施例中,在所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制之前,所述方法还包括:
判断电子设备当前是否为通话状态;
若为通话状态,则执行根据所述信号强度校准值以及熄屏阈值进行熄屏控制的步骤。
本实施例将从熄屏控制装置的角度进行描述,该装置具体可以集成在电子设备中。
请参阅图1,图1为本申请实施例一提供的一种熄屏控制方法的流程示意图,本实施例的熄屏控制方法包括:
步骤S101,获取预设次数的接近传感器信号强度值。
具体的,距离传感器的种类可以有多种,是根据不同的原理和不同的方法做成,不同的距离传感器对物体的感知方式也不同,比如有电感式接近传感器、电容式接近传感器和红外线接近传感器等等。在本申请实施例当中,可以在电子设备中使用红外线接近传感器,该传感器的接近感应的实现是通过传感器侦测IRLED(Infrared Light-Emitting Diode,红外发光二极管)发射的红外通过外界阻挡反射回来的红外能量的多少来判断接近或者离开,一般包括一个发射传感器,即LED灯发射红外光,一个接收传感器,即接收红外光。
电子设备设备出厂时都会校准到一个固定值附近,即为接近传感器的初始强度值,一般来说,接近传感器的初始强度值,如果没有任何遮挡,就会一直显示的是其初始值,而且数据会比较稳定。然而当屏幕表面覆盖贴膜后就会导致读取的光强度值变大。
当物体接近的时候,会有红外光的反射,接收端内部芯片处理器包括模数转换器,得出具体红外光强值。没有任何物体遮挡的时候,接收端的数值是最小的,在物体不断靠近 的时候,数值不断变大,直到满量程为止。如图2所示,70为透明基板,光发射传感器21和光接受传感器22组成接近传感器20,且该接近传感器设置在印刷电路板40上面。透明基板70下的为油墨层,油墨层可以包括透光油墨层51和遮光油墨层52,遮光油墨层52上面包括用于发射光线的第一透光区域61和用于接收光线的第二透光区域62。接近过程为:光发射传感器21产生红外线,红外线穿过第一透光区域61传输至外界,碰到遮挡物70后红外线穿过第二透光区域62被光接受传感器22所接收。
若用户在显示屏表面贴了贴膜,如图3所示,透明基板70表面覆盖的为显示屏贴膜10,比如为钢化膜。则还有一部分红外线在光发射器21发射后,在反射至贴膜10后在电子设备内部进行反射,比如经油墨层、透明基板70和贴膜10在电子设备内部不断反射,最后被光接受传感器22所接收。该部分反射光就会使接近传感器测得的光强度值比实际偏大,影响数据的准确性。此外在光接收器传感器22旁边还可以设置一个环境光传感器30,用于感应外界环境光。
在本申请实施例当中,上属预设次数可以根据实际情况来设定,比如为50次,每10秒采集一次数据,以得到电子设备中距离传感器在500秒内连续50次的采样数据,在没有遮挡物时,该数据跳动非常小,基本在个位数跳动,比如801、805、803一类的读值。
步骤S102,计算多个信号强度值的平均强度值。
在本申请实施例当中,在获取上述多个信号强度值之后,可以将上述数值全部相加,然后除以个数即可得到多个信号强度值的平均强度值。比如,在预设时间段内,对距离传感器的光强度值进行n次采样,以得到Q1、Q2、Q3……Qn等n个光强度值,计算Q1+Q2+Q3+……+Qn并将结果除以n即可得到其平均强度值。
步骤S103,判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值,若是,则执行步骤S104,若否,则结束流程。
具体的,在本申请实施例中,只有当上述平均光强度值远大于接近传感器的初始强度值时,才需要对光强度值进行校准。比如,接近传感器的初始强度值为1000,上述预设值可以为500,即只有当平均光强度值大于1000且超过500时,也即平均光强度值大于1500时,才需要对接收到的光强度值进行校准。若不大于,则可不必进行进一步处理。
步骤S104,将第一差值确定为信号强度校准值。
当确定平均强度值与接近传感器的初始强度值的第一差值大于预设值时,可以将上述第一差值设为校准值。比如为500,则可以将该数值写入寄存器里面,以后每次采样读值,都减去这个校准值。这样不管贴什么膜,增加多大,都可以保证,自动校准到出厂时的1000左右,不会导致息屏不亮的问题。
步骤S05,根据信号强度校准值以及熄屏阈值进行熄屏控制。
具体的,在用户使用电子设备的过程中,获取当前的光强度值,并根据信号强度校准值进行校准,以得到最终的光强度值,然后根据最终的光强度值以及熄屏阈值进行熄屏控制。比如,熄屏强度值为1800,当用户接起电话时,随着物体的靠近,接近数据慢慢增大,超过1800阀值后,触发阀值,产生中断,开始息屏,当息屏后,用户打完电话,慢慢远离,当接近值小于1800时,触发亮屏阀值,产生中断,开始亮屏。
也即,在本申请实施例当中,上述根据信号强度校准值以及熄屏阈值进行熄屏控制的步骤可以具体包括:
获取接近传感器当前信号强度值;
根据信号强度校准值对当前信号强度值进行校准,以得到目标信号强度值;
根据目标信号强度值以及熄屏阈值进行熄屏控制。
进一步的,还可以将熄屏阈值和亮屏阈值设置为不同,比如,在将熄屏阈值设置为1800的同时,可以将亮屏阈值设置为1700。在光强度值超过1800并熄灭屏幕之后,进一步判断当前光强度是否小于1700,若小于1700则点亮电子设备屏幕。
考虑到本申请提供的熄屏控制方法大都用于电子设备在通话时,比如用户接听通话并将电子设备放置耳边时,熄灭屏幕可达到防误触的作用。通话结束电子设备远离用户后重新点亮屏幕。
所以,在本申请实施例当中,在根据信号强度校准值以及熄屏阈值进行熄屏控制之前,上述方法还可以包括:
判断电子设备当前是否为通话状态;
若为通话状态,则执行根据信号强度校准值以及熄屏阈值进行熄屏控制的步骤。
由上可知,本申请实施例提供的熄屏控制方法可以获取预设次数的接近传感器信号强度值,计算多个信号强度值的平均强度值,并判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值,若是,则将第一差值确定为信号强度校准值,根据信号强度校准值以及熄屏阈值进行熄屏控制。本方案可以在用户对电子设备设备贴膜后,自动校准距离传感器接收到的光强度值,并根据校准后的光强度值以及熄屏阈值进行熄屏控制,因此能够在电子设备受到贴膜等干扰时,避免由于读取数据不准确致电子设备屏幕异常闪屏,有效提升了熄屏控制的稳定性。
进一步的,请参阅图4,图4为本申请实施例提供的另一种熄屏控制方法的流程示意图。包括以下步骤:
步骤S201,获取预设次数的接近传感器信号强度。
比如,可以在电子设备中使用红外线接近传感器,预设次数可以为50次,每10秒采集一次数据,以得到电子设备中距离传感器在500秒内连续50次的采样数据。
在其他实施例当中,还可以在电子设备中使用电感式接近传感器,它由LC高频振荡器和放大处理电路组成,利用金属物体在接近这个能产生电磁场的震荡感应头时,使物体内部产生涡流,这个涡流反作用于接近传感器,使接近传感器震荡能力衰减,内部电路的参数发生变化,由此得到强度值。不过这种传感器的局限性是所能检测的物体必须是金属物体。
在另一实施例当中,还可以使用电容式接近传感器,它的测量头通常是构成电容器的一个极板,而另一个极板是物体的本身,当物体移向接近传感器时,物体和接近传感器的介电常数发上变化,使得和测量头相连的电路状态也随之发生变化,由此得到强度值。
步骤S202,计算多个信号强度值的平均强度值。
比如,在预设时间段内,对距离传感器的光强度值进行n次采样,以得到Q1、Q2、Q3……Qn等n个光强度值,计算Q1+Q2+Q3+……+Qn并将结果除以n即可得到其平均强度值。
步骤S203,分别获取多个信号强度值与平均强度值的第二差值。
具体的,考虑到在实际使用当中,若手机显示屏上面贴了保护膜后,即使会增大距离传感器的接收到的光强度值,其在无其他遮挡物的情况下,在一段时间内的光强度值也会比较稳定,因此需要判断电子设备设备的显示屏当前是否被贴膜。具体可以通过在计算多个信号强度值的平均强度值之后,根据平均强度值判断多个信号强度值的波动幅度是否小于预设波动幅度,若小于,则可以确定电子设备当前处于稳定状态,可以进行进一步操作。
具体的,分别获取多个信号强度值与平均强度值的第二差值,比如,平均强度值为1600,分别计算Q1-1600、Q2-1600、Q3-1600、……、Qn-1600,以得到n个第二差值。
步骤S204,根据第二差值以及平均强度值计算波动幅度。
可以理解的是,上述通过多个信号强度值与平均强度值计算第二差值后,需要对第二差值进行绝对值处理,然后可以将第二差值除以平均强度值,以得到波动幅度。
步骤S205,判断该波动幅度是否小于预设波动幅度,若是,则执行步骤S206,若否,则结束流程。
比如,上述预设波动幅度可以设置为20%,只要波动幅度小于20%,即认为处于稳定状态。
步骤S206,判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值,若是,则执行步骤S207,若否,则结束流程。
比如,接近传感器的初始强度值为1000,上述预设值可以为500,即只有当平均光强 度值大于1000且超过500时,也即平均光强度值大于1500时,才需要对接收到的光强度值进行校准。
步骤S207,将第一差值确定为信号强度校准值。
比如第一差值为500,则可以将该数值写入寄存器里面,以后每次采样读值,都减去这个校准值,即可得到最终的光强度值。
步骤S208,根据信号强度校准值以及熄屏阈值进行熄屏控制。
具体的,在用户使用电子设备的过程中,获取当前的光强度值,并根据信号强度校准值进行校准,以得到最终的光强度值,然后根据最终的光强度值以及熄屏阈值进行熄屏控制。
由上可知,本申请实施例提供的熄屏控制方法可以获取预设次数的接近传感器信号强度,计算多个信号强度值的平均强度值,分别获取多个信号强度值与平均强度值的第二差值,根据第二差值以及平均强度值计算波动幅度,判断该波动幅度是否小于预设波动幅度,若是,则判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值,若是,则将第一差值确定为信号强度校准值,并根据信号强度校准值以及熄屏阈值进行熄屏控制。本方案可以在用户对电子设备设备贴膜后,自动校准距离传感器接收到的光强度值,并根据校准后的光强度值以及熄屏阈值进行熄屏控制,因此能够在电子设备受到贴膜等干扰时,避免由于读取数据不准确致电子设备屏幕异常闪屏,有效提升了熄屏控制的稳定性。
本申请实施例还提供一种熄屏控制装置,包括:获取模块、计算模块、第一判断模块、确定模块以及控制模块;
所述获取模块,用于获取预设次数的接近传感器信号强度值;
所述计算模块,用于计算所述多个信号强度值的平均强度值;
所述第一判断模块,用于判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值;
所述确定模块,用于当所述第一判断模块判断为是时,将所述第一差值确定为信号强度校准值;
所述控制模块,用于根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
在一实施例中,所述装置还包括:第二判断模块;
所述第二判断模块,用于当计算模块计算所述多个信号强度值的平均强度值之后,所述第一判断模块判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值之前,根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度;
所述第一判断模块,具体用于当所述第二判断模块判断为是时,执行判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值的步骤。
在一实施例中,所述第二判断模块具体包括:获取子模块、计算子模块以及判断子模块;
所述获取子模块,用于分别获取所述多个信号强度值与所述平均强度值的第二差值;
所述计算子模块,用于根据所述第二差值以及所述平均强度值计算所述波动幅度;
所述判断子模块,用于判断所述波动幅度是否小于预设波动幅度。
在一实施例中,所述控制模块,具体用于获取所述接近传感器当前信号强度值,根据所述信号强度校准值对所述当前信号强度值进行校准,以得到目标信号强度值,根据所述目标信号强度值以及熄屏阈值进行熄屏控制。
在一实施例中,所述装置还包括:第三判断模块;
所述第三判断模块,用于在所述控制模块根据所述信号强度校准值以及熄屏阈值进行熄屏控制之前,判断电子设备当前是否为通话状态;
所述控制模块,具体用于当所述第三判断模块判断为是时,根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
为了便于更好的实施本申请实施例提供的熄屏控制方法,本申请实施例还提供了一种基于上述熄屏控制方法的装置。其中名词的含义与上述熄屏控制方法中相同,具体实现细节可以参考方法实施例中的说明。
请参阅图5,图5为本申请实施例提供的一种熄屏控制装置30的结构示意图,该装置30包括:获取模块301、计算模块302、第一判断模块303、确定模块304以及控制模块305;
该获取模块301,用于获取预设次数的接近传感器信号强度值;
该计算模块302,用于计算多个信号强度值的平均强度值;
该第一判断模块303,用于判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值;
该确定模块304,用于当第一判断模块303判断为是时,将第一差值确定为信号强度校准值;
该控制模块305,用于根据信号强度校准值以及熄屏阈值进行熄屏控制。
在一实施例中,如图6所示,在该熄屏控制装置30当中,上述装置还可以包括:第二判断模块306;
该第二判断模块306,用于当计算模块302计算多个信号强度值的平均强度值之后,第一判断模块303判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值之 前,根据平均强度值判断多个信号强度值的波动幅度是否小于预设波动幅度;
该第一判断模块303,具体用于当第二判断模块306判断为是时,执行判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值的步骤。
在一实施例中,如图7所示,其中,该第二判断模块306可以具体包括:获取子模块3061、计算子模块3062以及判断子模块3063;
该获取子模块3061,用于分别获取多个信号强度值与平均强度值的第二差值;
该计算子模块3062,用于根据第二差值以及平均强度值计算波动幅度;
该判断子模块3063,用于判断波动幅度是否小于预设波动幅度。
由上可知,本申请实施例提供的熄屏控制装置可以通过获取模块301获取预设次数的接近传感器信号强度值,计算模块302计算多个信号强度值的平均强度值,并由第一判断模块303判断平均强度值与接近传感器的初始强度值的第一差值是否大于预设值,若是,则确定模块304将第一差值确定为信号强度校准值,控制模块305根据信号强度校准值以及熄屏阈值进行熄屏控制。本方案可以在用户对电子设备设备贴膜后,自动校准距离传感器接收到的光强度值,并根据校准后的光强度值以及熄屏阈值进行熄屏控制,因此能够在电子设备受到贴膜等干扰时,避免由于读取数据不准确致电子设备屏幕异常闪屏,有效提升了熄屏控制的稳定性。
本申请还提供一种存储介质,该存储介质中存储有多条指令,该指令适于由处理器加载以执行上面所述的熄屏控制方法。
本申请还提供一种电子设备,如平板电脑、手机等电子设备。电子设备中的处理器会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器中,并由处理器来运行存储在存储器中的应用程序,从而实现各种功能:
获取预设次数的接近传感器信号强度值;
计算所述多个信号强度值的平均强度值,并判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值;
若是,则将所述第一差值确定为信号强度校准值;
根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
在一实施例中,在计算所述多个信号强度值的平均强度值之后,判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值之前,所述处理器还用于执行以下步骤:
根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度;
若是,则执行判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大 于预设值的步骤。
在一实施例中,所述根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度时,所述处理器用于执行以下步骤:
分别获取所述多个信号强度值与所述平均强度值的第二差值;
根据所述第二差值以及所述平均强度值计算所述波动幅度;
判断所述波动幅度是否小于预设波动幅度。
在一实施例中,所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制时,所述处理器用于执行以下步骤:
获取所述接近传感器当前信号强度值;
根据所述信号强度校准值对所述当前信号强度值进行校准,以得到目标信号强度值;
根据所述目标信号强度值以及熄屏阈值进行熄屏控制。
在一实施例中,所述根据所述目标信号强度值以及熄屏阈值进行熄屏控制时,所述处理器用于执行以下步骤:
判断所述目标信号强度值是否大于所述熄屏阈值;
若大于,则熄灭屏幕。
在一实施例中,在所述熄灭屏幕之后,所述处理器还用于执行以下步骤:
获取亮屏阈值,所述亮屏阈值低于所述息屏阈值;
继续获取所述目标信号强度值并判断是否小于所述亮屏阈值;
若小于,则点亮屏幕。
在一实施例中,在所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制之前,所述处理器还用于执行以下步骤:
判断电子设备当前是否为通话状态;
若为通话状态,则执行根据所述信号强度校准值以及熄屏阈值进行熄屏控制的步骤。
请参阅图8,图8为本申请实施例提供的电子设备结构示意图。该电子设备500可以包括射频(RF,Radio Frequency)电路501、包括有一个或一个以上计算机可读存储介质的存储器502、输入单元503、显示单元504、传感器504、音频电路506、无线保真(WiFi,Wireless Fidelity)模块507、包括有一个或者一个以上处理核心的处理器508、以及电源509等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
射频电路501可用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器508处理;另外,将涉及上行的数据发送 给基站。通常,射频电路501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,射频电路501还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器508通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器508和输入单元503对存储器502的访问。
输入单元503可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元503可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器508,并能接收处理器508发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元503还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、指纹识别模组、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元504可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种 图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元504可包括显示面板。可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器508以确定触摸事件的类型,随后处理器508根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图8中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。
电子设备还可包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路506可通过扬声器、传声器提供用户与电子设备之间的音频接口。音频电路506可将接收到的音频数据转换成电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路506接收后转换为音频数据,再将音频数据输出处理器508处理后,经射频电路501以发送给比如另一电子设备,或者将音频数据输出至存储器502以便进一步处理。音频电路506还可能包括耳塞插孔,以提供外设耳机与电子设备的通信。
无线保真(WiFi)属于短距离无线传输技术,电子设备通过无线保真模块507可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了无线保真模块507,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器508是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器508可包括一个或多个处理核心;优选的,处理器508可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主 要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器508中。
电子设备还包括给各个部件供电的电源509(比如电池)。优选的,电源可以通过电源管理系统与处理器508逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源509还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管图8中未示出,电子设备还可以包括摄像头、蓝牙模块等,在此不再赘述。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如熄屏控制方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本申请实施例提供的一种熄屏控制方法、装置、存储介质和电子设备进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种熄屏控制方法,其中,包括以下步骤:
    获取预设次数的接近传感器信号强度值;
    计算所述多个信号强度值的平均强度值,并判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值;
    若是,则将所述第一差值确定为信号强度校准值;
    根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
  2. 如权利要求1所述的熄屏控制方法,其中,在计算所述多个信号强度值的平均强度值之后,判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值之前,所述方法还包括:
    根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度;
    若是,则执行判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值的步骤。
  3. 如权利要求2所述的熄屏控制方法,其中,所述根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度的步骤具体包括:
    分别获取所述多个信号强度值与所述平均强度值的第二差值;
    根据所述第二差值以及所述平均强度值计算所述波动幅度;
    判断所述波动幅度是否小于预设波动幅度。
  4. 如权利要求1所述的熄屏控制方法,其中,所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制的步骤具体包括:
    获取所述接近传感器当前信号强度值;
    根据所述信号强度校准值对所述当前信号强度值进行校准,以得到目标信号强度值;
    根据所述目标信号强度值以及熄屏阈值进行熄屏控制。
  5. 如权利要求4所述的熄屏控制方法,其中,所述根据所述目标信号强度值以及熄屏阈值进行熄屏控制的步骤,包括:
    判断所述目标信号强度值是否大于所述熄屏阈值;
    若大于,则熄灭屏幕。
  6. 如权利要求5所述的熄屏控制方法,其中,在所述熄灭屏幕之后,所述方法还包括:
    获取亮屏阈值,所述亮屏阈值低于所述息屏阈值;
    继续获取所述目标信号强度值并判断是否小于所述亮屏阈值;
    若小于,则点亮屏幕。
  7. 如权利要求1所述的熄屏控制方法,其中,在所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制之前,所述方法还包括:
    判断电子设备当前是否为通话状态;
    若为通话状态,则执行根据所述信号强度校准值以及熄屏阈值进行熄屏控制的步骤。
  8. 一种熄屏控制装置,其中,包括:获取模块、计算模块、第一判断模块、确定模块以及控制模块;
    所述获取模块,用于获取预设次数的接近传感器信号强度值;
    所述计算模块,用于计算所述多个信号强度值的平均强度值;
    所述第一判断模块,用于判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值;
    所述确定模块,用于当所述第一判断模块判断为是时,将所述第一差值确定为信号强度校准值;
    所述控制模块,用于根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
  9. 如权利要求8所述的熄屏控制装置,其中,所述装置还包括:第二判断模块;
    所述第二判断模块,用于当计算模块计算所述多个信号强度值的平均强度值之后,所述第一判断模块判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值之前,根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度;
    所述第一判断模块,具体用于当所述第二判断模块判断为是时,执行判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值的步骤。
  10. 如权利要求9所述的熄屏控制装置,其中,所述第二判断模块具体包括:获取子模块、计算子模块以及判断子模块;
    所述获取子模块,用于分别获取所述多个信号强度值与所述平均强度值的第二差值;
    所述计算子模块,用于根据所述第二差值以及所述平均强度值计算所述波动幅度;
    所述判断子模块,用于判断所述波动幅度是否小于预设波动幅度。
  11. 如权利要求8所述的熄屏控制装置,其中,
    所述控制模块,具体用于获取所述接近传感器当前信号强度值,根据所述信号强度校准值对所述当前信号强度值进行校准,以得到目标信号强度值,根据所述目标信号强度值以及熄屏阈值进行熄屏控制。
  12. 如权利要求8所述的熄屏控制装置,其中,所述装置还包括:第三判断模块;
    所述第三判断模块,用于在所述控制模块根据所述信号强度校准值以及熄屏阈值进行 熄屏控制之前,判断电子设备当前是否为通话状态;
    所述控制模块,具体用于当所述第三判断模块判断为是时,根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行权利要求1-7中任一项所述的熄屏控制方法。
  14. 一种电子设备,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
    获取预设次数的接近传感器信号强度值;
    计算所述多个信号强度值的平均强度值,并判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值;
    若是,则将所述第一差值确定为信号强度校准值;
    根据所述信号强度校准值以及熄屏阈值进行熄屏控制。
  15. 根据权利要求14所述的电子设备,其中,在计算所述多个信号强度值的平均强度值之后,判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值之前,所述处理器还用于执行以下步骤:
    根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度;
    若是,则执行判断所述平均强度值与所述接近传感器的初始强度值的第一差值是否大于预设值的步骤。
  16. 根据权利要求15所述的电子设备,其中,所述根据所述平均强度值判断所述多个信号强度值的波动幅度是否小于预设波动幅度时,所述处理器用于执行以下步骤:
    分别获取所述多个信号强度值与所述平均强度值的第二差值;
    根据所述第二差值以及所述平均强度值计算所述波动幅度;
    判断所述波动幅度是否小于预设波动幅度。
  17. 根据权利要求14所述的电子设备,其中,所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制时,所述处理器用于执行以下步骤:
    获取所述接近传感器当前信号强度值;
    根据所述信号强度校准值对所述当前信号强度值进行校准,以得到目标信号强度值;
    根据所述目标信号强度值以及熄屏阈值进行熄屏控制。
  18. 根据权利要求17所述的电子设备,其中,所述根据所述目标信号强度值以及熄屏阈值进行熄屏控制时,所述处理器用于执行以下步骤:
    判断所述目标信号强度值是否大于所述熄屏阈值;
    若大于,则熄灭屏幕。
  19. 根据权利要求18所述的电子设备,其中,在所述熄灭屏幕之后,所述处理器还用于执行以下步骤:
    获取亮屏阈值,所述亮屏阈值低于所述息屏阈值;
    继续获取所述目标信号强度值并判断是否小于所述亮屏阈值;
    若小于,则点亮屏幕。
  20. 根据权利要求14所述的电子设备,其中,在所述根据所述信号强度校准值以及熄屏阈值进行熄屏控制之前,所述处理器还用于执行以下步骤:
    判断电子设备当前是否为通话状态;
    若为通话状态,则执行根据所述信号强度校准值以及熄屏阈值进行熄屏控制的步骤。
PCT/CN2018/085677 2017-05-16 2018-05-04 一种息屏控制方法、装置、存储介质和电子设备 WO2018210145A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18802794.0A EP3627808A4 (en) 2017-05-16 2018-05-04 SCREEN EXTINGUISHING CONTROL METHOD AND APPARATUS, STORAGE MEDIUM, AND ELECTRONIC DEVICE
US16/677,265 US11011131B2 (en) 2017-05-16 2019-11-07 Off-screen control method determining signal intensity calibration value for filmed display screen

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710343828.0A CN107102864A (zh) 2017-05-16 2017-05-16 一种熄屏控制方法、装置、存储介质和终端
CN201710343828.0 2017-05-16

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/677,265 Continuation US11011131B2 (en) 2017-05-16 2019-11-07 Off-screen control method determining signal intensity calibration value for filmed display screen

Publications (1)

Publication Number Publication Date
WO2018210145A1 true WO2018210145A1 (zh) 2018-11-22

Family

ID=59669712

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085677 WO2018210145A1 (zh) 2017-05-16 2018-05-04 一种息屏控制方法、装置、存储介质和电子设备

Country Status (4)

Country Link
US (1) US11011131B2 (zh)
EP (1) EP3627808A4 (zh)
CN (1) CN107102864A (zh)
WO (1) WO2018210145A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11170732B2 (en) 2019-11-08 2021-11-09 Boe Technology Group Co., Ltd. Smart mirror, device and method for controlling screen state of electronic device, and storage medium

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102864A (zh) * 2017-05-16 2017-08-29 广东欧珀移动通信有限公司 一种熄屏控制方法、装置、存储介质和终端
CN108012028B (zh) * 2017-11-29 2020-12-29 Oppo广东移动通信有限公司 抗干扰方法、电子装置和计算机可读存储介质
CN108076220B (zh) * 2017-11-29 2020-07-07 Oppo广东移动通信有限公司 抗干扰方法、电子装置和计算机可读存储介质
CN108093127B (zh) * 2017-11-29 2020-12-04 Oppo广东移动通信有限公司 抗干扰方法、电子装置和计算机可读存储介质
CN108307020B (zh) * 2017-12-25 2020-09-22 维沃移动通信有限公司 检测方法及移动终端
CN108415024B (zh) * 2018-01-24 2020-06-23 Oppo广东移动通信有限公司 接近传感器校准方法、装置、移动终端及计算机可读介质
CN108600546B (zh) * 2018-04-28 2020-04-24 维沃移动通信有限公司 一种环境光检测方法及移动终端
CN112995410B (zh) * 2018-06-15 2022-06-17 Oppo广东移动通信有限公司 接近检测方法及相关设备
CN108829542B (zh) * 2018-06-20 2022-03-29 Oppo广东移动通信有限公司 移动终端及其控制方法、存储介质
CN108989566A (zh) * 2018-08-01 2018-12-11 Oppo广东移动通信有限公司 控制方法、电子装置和计算机可读存储介质
CN109271061B (zh) * 2018-09-26 2021-06-18 Oppo广东移动通信有限公司 屏幕闪烁处理方法和装置
CN109167857B (zh) * 2018-09-30 2022-06-07 Oppo广东移动通信有限公司 校准方法、电子装置、存储介质和计算机设备
CN109558034B (zh) * 2018-11-08 2020-11-03 珠海格力电器股份有限公司 一种防止终端误触的方法及装置
CN109724640B (zh) * 2019-01-12 2021-04-06 Oppo广东移动通信有限公司 接近传感器校准方法、电子装置及计算机可读存储介质
TWI688882B (zh) 2019-03-29 2020-03-21 華碩電腦股份有限公司 電子裝置及其控制方法
CN110275637B (zh) * 2019-06-24 2023-03-24 Oppo广东移动通信有限公司 接近传感器的校准方法、装置、存储介质和电子设备
US11430407B2 (en) * 2019-09-25 2022-08-30 Vishay Semiconductor Gmbh Under display sensors, systems and methods
CN110794715B (zh) * 2019-11-04 2020-12-22 珠海格力电器股份有限公司 一种电器控制方法、装置及电器
CN112859050B (zh) * 2019-11-27 2023-09-15 宇龙计算机通信科技(深圳)有限公司 光距离传感器的校正方法、装置、存储介质及终端
CN112104862B (zh) * 2020-08-19 2023-09-01 惠州市德赛西威汽车电子股份有限公司 一种车载多媒体接近感应校准方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150346897A1 (en) * 2014-05-29 2015-12-03 Semiconductor Energy Laboratory Co., Ltd. Program and information processing device
CN105262882A (zh) * 2015-08-28 2016-01-20 上海卓易科技股份有限公司 一种距离感应自动校准方法及装置
CN105959461A (zh) * 2016-04-14 2016-09-21 广东欧珀移动通信有限公司 屏幕感应控制方法、装置及终端设备
CN107102864A (zh) * 2017-05-16 2017-08-29 广东欧珀移动通信有限公司 一种熄屏控制方法、装置、存储介质和终端

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7633076B2 (en) * 2005-09-30 2009-12-15 Apple Inc. Automated response to and sensing of user activity in portable devices
US8000736B2 (en) * 2007-01-06 2011-08-16 Apple Inc. User programmable switch for portable data processing devices
WO2010145031A1 (en) * 2009-06-19 2010-12-23 Research In Motion Limited Portable electronic device with face touch detection
TW201205042A (en) * 2010-07-23 2012-02-01 Capella Microsystems Corp Electronic apparatus, proximity sensor and control method thereof
WO2012063387A1 (ja) * 2010-11-10 2012-05-18 パナソニック株式会社 非接触ポジションセンシング装置及び非接触ポジションセンシング方法
WO2011150887A2 (zh) * 2011-06-24 2011-12-08 华为终端有限公司 一种调整红外接近传感器的感知阈值的方法和装置
CN103123394B (zh) * 2011-11-21 2015-08-26 比亚迪股份有限公司 一种设置近距离传感器阈值的方法及系统
CN103297594B (zh) * 2012-02-28 2016-05-18 索尼爱立信移动通讯有限公司 通话模式自动切换方法和装置
US8854335B2 (en) * 2012-03-22 2014-10-07 Eminent Electronic Technology Corp. Ltd. Electronic apparatus having touch sensing ability and non-touch sensing ability and control method thereof
CN102665008B (zh) * 2012-05-08 2013-11-13 广东欧珀移动通信有限公司 一种触屏手机红外接近传感器的检测算法
CN103369142B (zh) * 2013-07-09 2015-02-04 广东欧珀移动通信有限公司 一种防止打电话误操作的方法及系统
KR101572331B1 (ko) * 2013-12-26 2015-11-30 (주)멜파스 터치스크린패널을 이용하여 근접 센싱 기능을 제공하는 터치 센싱 시스템 및 방법
US9740397B2 (en) * 2014-03-27 2017-08-22 Intel Corporation System and method to control a touchscreen user interface
CN103941310B (zh) 2014-04-09 2017-02-15 苏州佳世达电通有限公司 近距离传感器的校正方法及系统
EP2988479B1 (en) * 2014-08-19 2019-01-30 Semtech Corporation Capacitive proximity sensor and mobile device
CN104202480B (zh) * 2014-09-12 2016-08-24 深圳市邦华电子有限公司 自适应型校准的测距方法和手持通话型通讯设备
US9983745B2 (en) * 2014-09-19 2018-05-29 Kabushiki Kaisha Tokai Rika Denki Seisakusho Touch sensor device and controller
CN108710469B (zh) * 2016-04-28 2021-06-01 Oppo广东移动通信有限公司 一种应用程序的启动方法及移动终端和介质产品
CN105915717A (zh) * 2016-05-26 2016-08-31 广东欧珀移动通信有限公司 屏幕亮灭控制方法、装置和移动终端
CN106254661B (zh) * 2016-08-15 2019-09-13 Oppo广东移动通信有限公司 一种接近传感器的数据处理方法、装置及移动终端
CN106850982B (zh) * 2017-01-20 2019-08-06 Oppo广东移动通信有限公司 显示屏状态控制方法及装置
CN106850101B (zh) * 2017-02-14 2019-09-13 Oppo广东移动通信有限公司 显示屏状态控制方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150346897A1 (en) * 2014-05-29 2015-12-03 Semiconductor Energy Laboratory Co., Ltd. Program and information processing device
CN105262882A (zh) * 2015-08-28 2016-01-20 上海卓易科技股份有限公司 一种距离感应自动校准方法及装置
CN105959461A (zh) * 2016-04-14 2016-09-21 广东欧珀移动通信有限公司 屏幕感应控制方法、装置及终端设备
CN107102864A (zh) * 2017-05-16 2017-08-29 广东欧珀移动通信有限公司 一种熄屏控制方法、装置、存储介质和终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3627808A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11170732B2 (en) 2019-11-08 2021-11-09 Boe Technology Group Co., Ltd. Smart mirror, device and method for controlling screen state of electronic device, and storage medium

Also Published As

Publication number Publication date
EP3627808A1 (en) 2020-03-25
CN107102864A (zh) 2017-08-29
EP3627808A4 (en) 2020-03-25
US20200074956A1 (en) 2020-03-05
US11011131B2 (en) 2021-05-18

Similar Documents

Publication Publication Date Title
US11011131B2 (en) Off-screen control method determining signal intensity calibration value for filmed display screen
CN107943345B (zh) 接近传感器的校准方法、装置、存储介质和电子设备
CN107942306B (zh) 接近传感器的校准方法、装置、存储介质和电子设备
CN107966209B (zh) 环境光检测方法、装置、存储介质和电子设备
US10862595B2 (en) Method for processing radio frequency interference, and electronic device
WO2018201848A1 (zh) 一种光学指纹采集方法及相关产品
CN106993227B (zh) 一种进行信息展示的方法和装置
CN106850983B (zh) 一种熄屏控制方法、装置、终端和存储介质
WO2018201849A1 (zh) 光学指纹采集方法及相关产品
KR102640072B1 (ko) 화면 표시의 제어 방법 및 전자기기
CA3087731C (en) Screen on-and-off state control method and mobile terminal
US20140354567A1 (en) Apparatus and method for operating proximity sensing function in electronic device having touch screen
JP5688330B2 (ja) 携帯端末、バックライト制御プログラムおよびバックライト制御方法
JP6068660B2 (ja) 文字選出方法、文字選出装置、端末装置、プログラム及び記録媒体
JP7329150B2 (ja) タッチボタン、制御方法及び電子機器
CN106487984B (zh) 一种调整音量的方法和装置
KR102552626B1 (ko) 압력 검측 장치, 스크린 어셈블리 및 이동 단말기
US20180007632A1 (en) Terminal Control Method and Terminal
CN107291280B (zh) 一种触摸屏灵敏度的调整方法、装置及终端设备
CN110753155A (zh) 一种接近检测方法及终端设备
CN107782250B (zh) 一种深度信息测量方法、装置和移动终端
CN107888758B (zh) 屏幕色彩调整方法、移动终端及计算机可读存储介质
US11327639B2 (en) Split view exiting method, split view exiting device, and electronic device
CN110851014B (zh) 触摸识别方法、装置、存储介质及终端设备
WO2020052494A1 (zh) 一种终端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18802794

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018802794

Country of ref document: EP

Effective date: 20191216