CN111625129A - Screen control method and device, electronic equipment and readable storage medium - Google Patents

Screen control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111625129A
CN111625129A CN202010406482.6A CN202010406482A CN111625129A CN 111625129 A CN111625129 A CN 111625129A CN 202010406482 A CN202010406482 A CN 202010406482A CN 111625129 A CN111625129 A CN 111625129A
Authority
CN
China
Prior art keywords
threshold value
infrared sensor
value
threshold
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010406482.6A
Other languages
Chinese (zh)
Other versions
CN111625129B (en
Inventor
童晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010406482.6A priority Critical patent/CN111625129B/en
Publication of CN111625129A publication Critical patent/CN111625129A/en
Application granted granted Critical
Publication of CN111625129B publication Critical patent/CN111625129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • 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

The embodiment of the invention provides a screen control method, a screen control device, electronic equipment and a readable storage medium, wherein the electronic equipment is provided with an SAR sensor and an infrared sensor, and the method comprises the following steps: under the condition that the electronic equipment is in a preset working scene, acquiring a first measurement value of the SAR sensor and a second measurement value of the infrared sensor; determining a corresponding infrared sensor threshold value according to the first measurement value; and controlling the screen of the electronic equipment to be extinguished or lightened according to the second measured value and the threshold value of the infrared sensor. In the embodiment of the invention, the fact that a user is close to or far away from the electronic equipment is determined through the first measured value of the SAR sensor, and then the corresponding infrared sensor threshold value is determined, so that the infrared sensor threshold value can meet the current scene, the screen is controlled to be extinguished or lightened, and the problem that the electronic equipment is influenced to be lightened or extinguished due to oil stains can be solved.

Description

Screen control method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a screen control method and device, electronic equipment and a readable storage medium.
Background
The infrared sensor is widely applied to various electronic equipment and is mainly used for controlling the on-off of a screen of the electronic equipment, but the phenomenon that the infrared sensor is shielded by oil stains often occurs in the actual application process, so that the on-off control of the screen is influenced.
The oil stain problem refers to that human body secretions or skin care products remain on the surface of an infrared hole Touch Panel (TP) during the process of using electronic equipment by a user, so that the noise value of an infrared bottom is large and exceeds a bright screen threshold value, infrared detection is wrong, the screen cannot be controlled to be lightened, and the operation of the user is influenced.
Disclosure of Invention
The embodiment of the invention provides a screen control method and device, electronic equipment and a readable storage medium, and solves the problem that the brightness and the extinguishment of a screen of the electronic equipment are influenced by an oil stain phenomenon in the use process of the conventional electronic equipment.
In a first aspect, an embodiment of the present invention provides a screen control method, which is applied to an electronic device, where the electronic device has an SAR sensor and an infrared sensor, and the method includes:
under the condition that the electronic equipment is in a preset working scene, acquiring a first measurement value of the SAR sensor and a second measurement value of the infrared sensor;
determining a corresponding infrared sensor threshold value according to the first measurement value;
and controlling the screen of the electronic equipment to be turned off or turned on according to the second measurement value and the threshold value of the infrared sensor.
In a second aspect, an embodiment of the present invention provides a screen control device, where the screen control device has a SAR sensor and an infrared sensor, and the screen control device includes:
the acquisition module is used for acquiring a first measurement value of the SAR sensor and a second measurement value of the infrared sensor under the condition that the electronic equipment is in a preset working scene;
the determining module is used for determining a corresponding infrared sensor threshold value according to the first measurement value;
and the control module is used for controlling the screen of the electronic equipment to be turned off or turned on according to the second measurement value and the infrared sensor threshold value.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program stored on the memory and executable on the processor, where the program, when executed by the processor, implements the steps of the screen control method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored on the readable storage medium, and when executed by a processor, the computer program implements the steps of the screen control method according to the first aspect.
In the embodiment of the invention, the fact that a user is close to or far away from the electronic equipment is determined through the first measured value of the SAR sensor, then the corresponding infrared sensor threshold value is determined, the infrared sensor threshold value can meet the current scene, the screen of the electronic equipment is controlled to be extinguished or lightened, and the problem that the electronic equipment is influenced to be extinguished due to oil stains is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1a is one of application scenarios of the SAR sensor;
fig. 1b is a second schematic view of an application scenario of the SAR sensor;
FIG. 1c is a schematic diagram of a SAR sensor;
FIG. 2a is a flowchart illustrating a screen control method according to an embodiment of the present invention;
FIG. 2b is a graph illustrating the relationship between thresholds of a screen according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a second schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Herein, relational terms such as "first" and "second", and the like, are used solely to distinguish one from another of like names, and do not imply a relationship or order between the names.
In the embodiment of the present invention, the electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, an Ultra-Mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like.
To better understand the method of the embodiment of the present invention, the following technical contents are introduced first:
regarding the infrared sensor: the infrared sensor will have a base value, i.e. a calibration value measured when no object is blocking the infrared light sensitive aperture. With a blockage in front of the infrared, the current infrared reading will become larger, resulting in an increment (i.e., current reading-base value). When the infrared position of screen has the greasy dirt, can produce a fixed increment, if it is less to set for the threshold increment, because of the infrared reading value that the greasy dirt produced can surpass bright screen threshold value, lead to the problem of unable bright screen.
Regarding a Specific Absorption rate sensor (SAR sensor) device: the SARsensor is a metal sensor, such as an antenna, a Flexible Printed Circuit (FPC), an Indium Tin Oxide (ITO), or the like.
Referring to fig. 1a and 1b, a parasitic capacitance Cp is formed between a copper block on a Printed Circuit Board (PVB) and a sensor in a surrounding environment, and an electric field around the sensor may pass through a solder resist layer to interact with the outside. When a finger or a human face approaches the sensor, the peripheral electric field lines of the sensor are changed to form a capacitor Cf with the sensor, so that the capacitance detected by the sensor is changed from Cp to Cp + Cf.
Referring to fig. 1c, which shows the basic principle of the SAR sensor, the detection Pin CS0 Pin of the SAR sensor is connected to the upper antenna or other metal surface, when the human body approaches or moves away from the upper antenna, the approach or away threshold is triggered, and the SAR sensor transmits the data to the processor for processing.
Referring to fig. 2a, an embodiment of the present invention provides a screen control method, where an execution subject of the method is an electronic device, the electronic device has an SAR sensor and an infrared sensor, and the method includes the following steps:
step 201: under the condition that the electronic equipment is in a preset working scene, acquiring a first measurement value of the SAR sensor and a second measurement value of the infrared sensor;
in the embodiment of the present invention, the preset working scene refers to a scene in which the screen needs to be controlled to be turned off or turned on according to the measurement value of the infrared sensor, for example: the method and the device for monitoring the working scene are used for monitoring the working scene, and the communication scene, the video chat scene and the like.
Specifically, since the infrared sensor has a base value, the second measurement value may be recorded as an increment + base value.
Step 202: determining a corresponding infrared sensor threshold value according to the first measurement value;
in the embodiment of the invention, the infrared sensor threshold value is used for determining and controlling the screen of the electronic equipment to be turned off or turned on in combination with the second measured value, and the corresponding relation between the first measured value and the infrared sensor threshold value is pre-configured in the electronic equipment, so that the corresponding infrared sensor threshold value is selected based on the measured value of the SAR sensor.
It can be understood that since the SAR sensor determines that the limb of the user is close to or far from the electronic device based on the change of the electric field, the first measurement value of the SAR sensor is not affected by the oil stain, and thus it is possible to determine whether the current user is close to the electronic device or far from the electronic device through the first measurement value. And after the position relation between the user and the electronic equipment is determined through the first measurement value, selecting a proper infrared sensor threshold value.
Step 203: and controlling the screen of the electronic equipment to be extinguished or lightened according to the second measured value and the threshold value of the infrared sensor.
In the embodiment of the invention, the infrared sensor threshold value selected based on the first measurement value can meet the current scene, and the screen of the electronic equipment is controlled to be turned off or turned on by comparing the second measurement value with the infrared sensor threshold value.
In some embodiments, the step 202 includes the following sub-steps:
(1) determining that the threshold value of the infrared sensor comprises a third threshold value and a fourth threshold value under the condition that the first measured value is greater than or equal to the first threshold value;
(2) determining that the infrared sensor threshold value comprises a fifth threshold value and a sixth threshold value under the condition that the first measured value is less than or equal to the second threshold value;
the first threshold is greater than the second threshold, the third threshold is greater than the fourth threshold, the fifth threshold is greater than the sixth threshold, and the sixth threshold is greater than the third threshold.
In the embodiment of the invention, when the limb of the user approaches the electronic device, the first measurement value of the SAR sensor is increased; when the limb of the user is far away from the electronic device, the first measured value of the SAR sensor is reduced, so that whether the current scene of the user using the electronic device is close to the electronic device or far away from the electronic device is determined by setting the first threshold value and the second threshold value based on the first measured value of the SAR sensor.
When the scene using the electronic equipment is that a user approaches the electronic equipment, namely under the condition that the first measurement value of the SAR sensor is large, a smaller third threshold value and a smaller fourth threshold value are selected to control the screen of the electronic equipment to be turned off or turned on; when the scene using the electronic device is that the user is far away from the electronic device, namely the first measured value of the SAR sensor is small, the larger fifth threshold value and the larger sixth threshold value are selected to control the screen of the electronic device to be turned off or turned on.
Specifically, the relationship between the threshold values is shown in fig. 2B, where the first threshold value is denoted as E, the second threshold value is denoted as F, E is greater than F, the third threshold value is denoted as a + base value, the fourth threshold value is denoted as B + base value, the fifth threshold value is denoted as C + base value, and the sixth threshold value is denoted as D + base value.
Taking an electronic device as a mobile phone and a preset working scene as a call scene as an example, whether a first measurement value of an SAR sensor triggers a proximity threshold or a distance threshold is used to identify whether the electronic device is close to or far from a human ear in the call scene, and a corresponding infrared sensor threshold value is called. When SAR is close to a human body (the measurement value of the SAR sensor is greater than or equal to a first threshold value E), the threshold value of the infrared sensor is called under the first threshold value condition; when Sar is far away from the human body (the measurement value of the Sar sensor is less than or equal to the second threshold value F F), the threshold value of the infrared sensor is called the threshold value under the second threshold condition.
Accordingly, the step 203 includes the following sub-steps:
(1) under the condition that the first measured value is greater than or equal to the first threshold value, the threshold value of the infrared sensor comprises a third threshold value and a fourth threshold value, and correspondingly, under the condition that the second measured value is greater than or equal to the third threshold value, the screen of the electronic equipment is controlled to be turned off;
(2) under the condition that the first measured value is greater than or equal to the first threshold value, the infrared sensor threshold value comprises a third threshold value and a fourth threshold value, and correspondingly, under the condition that the second measured value is less than or equal to the fourth threshold value, the screen of the electronic equipment is controlled to be lightened;
(3) under the condition that the first measured value is greater than or equal to the second threshold value, the threshold value of the infrared sensor comprises a fifth threshold value and a sixth threshold value, and correspondingly, under the condition that the second measured value is greater than or equal to the fifth threshold value, the screen of the electronic equipment is controlled to be turned off;
(4) and in the case that the first measured value is greater than or equal to the second threshold value, the infrared sensor threshold value comprises a fifth threshold value and a sixth threshold value, and correspondingly, in the case that the second measured value is less than or equal to the sixth threshold value, the screen of the electronic equipment is controlled to be lightened.
In the embodiment of the invention, for the infrared sensor threshold value of the same gear, namely the infrared sensor threshold value when the SAR sensor displays the threshold value close to the user; or when the SAR sensor displays the threshold value far away from the user, the threshold value of the infrared sensor is obtained. For example, the threshold value of the infrared sensor when the SAR is close to this gear includes a third threshold value and a fourth threshold value, or the threshold value of the infrared sensor when the SAR is far from this gear includes a fifth threshold value and a sixth threshold value. When the second measurement is greater than or equal to a larger threshold, for example: the second measured value is greater than or equal to a third threshold value or a fifth threshold value, and the screen of the electronic equipment is controlled to be turned off; when the second measurement is less than or equal to the smaller threshold, for example: and when the second measured value is less than or equal to the fourth threshold value or the sixth threshold value, controlling the screen of the electronic equipment to be lightened.
Further, the step 202 further includes:
determining that the threshold value of the current infrared sensor is unchanged under the condition that the first measurement value is smaller than the first threshold value and larger than the second threshold value;
the step 203 further includes: under the condition that the threshold value of the infrared sensor comprises a third threshold value and a fourth threshold value, and the second measurement value is smaller than the third threshold value and larger than the fourth threshold value, controlling the current screen state of the electronic equipment to be unchanged;
and under the condition that the threshold value of the infrared sensor comprises a fifth threshold value and a sixth threshold value, and the second measured value is smaller than the fifth threshold value and larger than the sixth threshold value, controlling the current screen state of the electronic equipment to be unchanged.
In the embodiment of the invention, it is considered that when a user uses the electronic device, even if the user does not change the posture, the measured value of the sensor fluctuates with a certain amplitude, and if the fluctuation amplitude is just close to the threshold value for switching between the two scenes, the situation that the electronic device is switched repeatedly between the two scenes may occur.
In particular, two threshold values are set for the SAR sensor, the currently determined infrared sensor threshold value being maintained when the first measurement value of the SAR sensor is between the two threshold values, for example: when the first measured value is changed from being larger than or equal to the first threshold value to being smaller than the first threshold value and larger than the second threshold value, the current infrared sensor threshold value is kept as the third threshold value and the fourth threshold value, and therefore the electronic equipment can be prevented from being repeatedly switched between the third threshold value and the fourth threshold value. Similarly, when the first measured value is changed from being smaller than or equal to the second threshold value to being smaller than the first threshold value and being larger than the second threshold value, the current infrared sensor threshold value is kept unchanged between the fifth threshold value and the sixth threshold value, so that the electronic equipment can be prevented from being switched repeatedly between the fifth threshold value and the sixth threshold value.
It can be understood that, when the electronic device leaves the factory, the threshold value of the infrared sensor may be set as any one of the third, fourth, fifth, and sixth threshold values by default, and if the first measurement value of the SAR sensor is between the first threshold value and the second threshold value when the electronic device is used for the first time, the infrared sensor may directly adopt the threshold value set by default when leaving the factory, and after the first measurement value of the SAR sensor changes, the threshold value of the infrared sensor is determined according to the above method.
Two threshold values are also set for the infrared sensor, and when the second measurement value of the infrared sensor is between the two threshold values, the current screen state of the current electronic device is maintained unchanged, for example: when the second measured value is greater than or equal to the third threshold value, is smaller than the third threshold value and is greater than the fourth threshold value, the screen of the electronic device keeps in a turned-off state.
Referring to fig. 3, an embodiment of the present invention provides a screen control device 300, where the screen control device 300 has a SAR sensor and an infrared sensor, and the screen control device 300 includes:
an obtaining module 301, configured to obtain a first measurement value of the SAR sensor and a second measurement value of the infrared sensor when the electronic device is in a preset working scene;
a determining module 302, configured to determine a corresponding infrared sensor threshold according to the first measurement value;
and the control module 303 is configured to control the screen of the electronic device to be turned off or turned on according to the second measurement value and the infrared sensor threshold value.
The determining module includes:
a first determining unit 302, configured to determine that the infrared sensor threshold value includes a third threshold value and a fourth threshold value when the first measurement value is greater than or equal to a first threshold value;
a second determining unit, configured to determine that the infrared sensor threshold value includes a fifth threshold value and a sixth threshold value when the first measurement value is less than or equal to a second threshold value;
the first threshold is greater than the second threshold, the third threshold is greater than the fourth threshold, the fifth threshold is greater than the sixth threshold, and the sixth threshold is greater than the third threshold.
The determining module 302 further includes:
and the third determining unit is used for determining that the current threshold value of the infrared sensor is unchanged under the condition that the first measurement value is smaller than the first threshold value and larger than the second threshold value.
The control module 303 includes:
the first control unit is used for controlling the screen of the electronic equipment to be turned off under the condition that the threshold value of the infrared sensor comprises a third threshold value and a fourth threshold value, and the second measured value is greater than or equal to the third threshold value;
the second control unit is used for controlling the screen of the electronic equipment to be lightened under the condition that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value, and the second measured value is smaller than or equal to the fourth threshold value;
the third control unit is used for controlling the screen of the electronic equipment to be turned off under the condition that the threshold value of the infrared sensor comprises a fifth threshold value and a sixth threshold value, and the second measured value is greater than or equal to the fifth threshold value;
and the fourth control unit is used for controlling the screen of the electronic equipment to be lightened under the condition that the threshold value of the infrared sensor comprises a fifth threshold value and a sixth threshold value, and the second measured value is smaller than or equal to the sixth threshold value.
The control module 303 further includes:
the fifth control unit is used for controlling the current screen state of the electronic equipment to be unchanged under the condition that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value, and the second measured value is smaller than the third threshold value and larger than the fourth threshold value;
and the sixth control unit is configured to control the current screen state of the electronic device to be unchanged when the infrared sensor threshold value includes a fifth threshold value and a sixth threshold value, and the second measurement value is smaller than the fifth threshold value and larger than the sixth threshold value.
In the embodiment of the invention, the fact that the user is close to or far away from the electronic equipment is determined through the first measured value of the SAR sensor, then the corresponding infrared sensor threshold value is determined, the infrared sensor threshold value can meet the current scene, and the electronic equipment can be controlled to be turned off or turned on through the second measured value of the infrared sensor and the infrared sensor threshold value.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device having a SAR sensor and an infrared sensor for implementing various embodiments of the present invention, and as shown, the electronic device 400 includes but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Preferably, a computer program stored on the memory 409 and executable on said processor 410, which computer program when executed by the processor 410 performs the steps of:
under the condition that the electronic equipment is in a preset working scene, acquiring a first measurement value of the SAR sensor and a second measurement value of the infrared sensor;
determining a corresponding infrared sensor threshold value according to the first measurement value;
and controlling the screen of the electronic equipment to be turned off or turned on according to the second measurement value and the threshold value of the infrared sensor.
Therefore, the fact that the user is close to or far away from the electronic equipment is determined through the first measured value of the SAR sensor, then the corresponding infrared sensor threshold value is determined, the infrared sensor threshold value can meet the current scene, and the electronic equipment can be controlled to be turned off or turned on through the second measured value of the infrared sensor and the infrared sensor threshold value.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the method embodiment shown in fig. 2, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
An embodiment of the present invention further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the method embodiment shown in fig. 2, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A screen control method applied to an electronic device having a SAR sensor and an infrared sensor, the method comprising:
under the condition that the electronic equipment is in a preset working scene, acquiring a first measurement value of the SAR sensor and a second measurement value of the infrared sensor;
determining a corresponding infrared sensor threshold value according to the first measurement value;
and controlling the screen of the electronic equipment to be turned off or turned on according to the second measurement value and the threshold value of the infrared sensor.
2. The method of claim 1, wherein determining a corresponding infrared sensor threshold value from the first measurement comprises:
determining that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value when the first measurement value is greater than or equal to a first threshold value;
determining that the infrared sensor threshold value comprises a fifth threshold value and a sixth threshold value when the first measurement value is less than or equal to a second threshold value;
the first threshold is greater than the second threshold, the third threshold is greater than the fourth threshold, the fifth threshold is greater than the sixth threshold, and the sixth threshold is greater than the third threshold.
3. The method of claim 2, wherein determining a corresponding infrared sensor threshold value from the first measurement further comprises:
and determining that the current infrared sensor threshold value is unchanged under the condition that the first measured value is smaller than the first threshold value and larger than the second threshold value.
4. The method of claim 2, wherein controlling the screen of the electronic device to be extinguished or lit according to the second measurement value and the infrared sensor threshold value comprises:
controlling the screen of the electronic equipment to be turned off under the condition that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value and the second measured value is greater than or equal to the third threshold value;
controlling the screen of the electronic equipment to be lightened under the condition that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value, and the second measured value is smaller than or equal to the fourth threshold value;
controlling the screen of the electronic equipment to be turned off under the condition that the infrared sensor threshold value comprises a fifth threshold value and a sixth threshold value and the second measured value is greater than or equal to the fifth threshold value;
and controlling the screen of the electronic equipment to be lightened under the condition that the infrared sensor threshold value comprises a fifth threshold value and a sixth threshold value and the second measured value is smaller than or equal to the sixth threshold value.
5. The method of claim 4, wherein said blanking or lighting a screen of the electronic device according to the second measurement value and the infrared sensor threshold value further comprises:
under the condition that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value, and the second measurement value is smaller than the third threshold value and larger than the fourth threshold value, controlling the current screen state of the electronic equipment to be unchanged;
and under the condition that the threshold value of the infrared sensor comprises a fifth threshold value and a sixth threshold value, and the second measurement value is smaller than the fifth threshold value and larger than the sixth threshold value, controlling the current screen state of the electronic equipment to be unchanged.
6. A screen control device having a SAR sensor and an infrared sensor, the device comprising:
the acquisition module is used for acquiring a first measurement value of the SAR sensor and a second measurement value of the infrared sensor under the condition that the electronic equipment is in a preset working scene;
the determining module is used for determining a corresponding infrared sensor threshold value according to the first measurement value;
and the control module is used for controlling the screen of the electronic equipment to be turned off or turned on according to the second measurement value and the infrared sensor threshold value.
7. The apparatus of claim 6, wherein the determining module comprises:
a first determining unit, configured to determine that the infrared sensor threshold value includes a third threshold value and a fourth threshold value when the first measurement value is greater than or equal to a first threshold value;
a second determining unit, configured to determine that the infrared sensor threshold value includes a fifth threshold value and a sixth threshold value when the first measurement value is less than or equal to a second threshold value;
the first threshold is greater than the second threshold, the third threshold is greater than the fourth threshold, the fifth threshold is greater than the sixth threshold, and the sixth threshold is greater than the third threshold.
8. The apparatus of claim 7, wherein the determining module further comprises:
and the third determining unit is used for determining that the current threshold value of the infrared sensor is unchanged under the condition that the first measurement value is smaller than the first threshold value and larger than the second threshold value.
9. The apparatus of claim 7, wherein the control module comprises:
the first control unit is used for controlling the screen of the electronic equipment to be turned off under the condition that the threshold value of the infrared sensor comprises a third threshold value and a fourth threshold value, and the second measured value is greater than or equal to the third threshold value;
the second control unit is used for controlling the screen of the electronic equipment to be lightened under the condition that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value, and the second measured value is smaller than or equal to the fourth threshold value;
the third control unit is used for controlling the screen of the electronic equipment to be turned off under the condition that the threshold value of the infrared sensor comprises a fifth threshold value and a sixth threshold value, and the second measured value is greater than or equal to the fifth threshold value;
and the fourth control unit is used for controlling the screen of the electronic equipment to be lightened under the condition that the threshold value of the infrared sensor comprises a fifth threshold value and a sixth threshold value, and the second measured value is smaller than or equal to the sixth threshold value.
10. The apparatus of claim 9, wherein the control module further comprises:
the fifth control unit is used for controlling the current screen state of the electronic equipment to be unchanged under the condition that the infrared sensor threshold value comprises a third threshold value and a fourth threshold value, and the second measured value is smaller than the third threshold value and larger than the fourth threshold value;
and the sixth control unit is configured to control the current screen state of the electronic device to be unchanged when the infrared sensor threshold value includes a fifth threshold value and a sixth threshold value, and the second measurement value is smaller than the fifth threshold value and larger than the sixth threshold value.
11. An electronic device comprising a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the screen control method of any one of claims 1 to 5.
12. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the screen control method according to any one of claims 1 to 5.
CN202010406482.6A 2020-05-14 2020-05-14 Screen control method and device, electronic equipment and readable storage medium Active CN111625129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010406482.6A CN111625129B (en) 2020-05-14 2020-05-14 Screen control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010406482.6A CN111625129B (en) 2020-05-14 2020-05-14 Screen control method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111625129A true CN111625129A (en) 2020-09-04
CN111625129B CN111625129B (en) 2022-09-27

Family

ID=72257968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010406482.6A Active CN111625129B (en) 2020-05-14 2020-05-14 Screen control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111625129B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356153A (en) * 2021-12-30 2022-04-15 广东明创软件科技有限公司 Control method, control device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484141A (en) * 2016-10-19 2017-03-08 广东欧珀移动通信有限公司 The method to set up of threshold value and mobile terminal
CN106790978A (en) * 2016-11-18 2017-05-31 广东欧珀移动通信有限公司 The control method of mobile terminal screen state, device and mobile terminal
CN106973163A (en) * 2017-03-30 2017-07-21 努比亚技术有限公司 The dynamic calibration method and its device of a kind of infrared proximity transducer
CN107528958A (en) * 2017-08-04 2017-12-29 广东欧珀移动通信有限公司 Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal
CN108156655A (en) * 2018-01-03 2018-06-12 上海传英信息技术有限公司 A kind of method and its system that mobile phone radiation is reduced using Distance-sensing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484141A (en) * 2016-10-19 2017-03-08 广东欧珀移动通信有限公司 The method to set up of threshold value and mobile terminal
CN106790978A (en) * 2016-11-18 2017-05-31 广东欧珀移动通信有限公司 The control method of mobile terminal screen state, device and mobile terminal
CN106973163A (en) * 2017-03-30 2017-07-21 努比亚技术有限公司 The dynamic calibration method and its device of a kind of infrared proximity transducer
CN107528958A (en) * 2017-08-04 2017-12-29 广东欧珀移动通信有限公司 Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal
CN108156655A (en) * 2018-01-03 2018-06-12 上海传英信息技术有限公司 A kind of method and its system that mobile phone radiation is reduced using Distance-sensing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356153A (en) * 2021-12-30 2022-04-15 广东明创软件科技有限公司 Control method, control device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111625129B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN108347759B (en) Anti-interference method of flexible screen and mobile terminal
CN108319390B (en) Control method of flexible screen and mobile terminal
CN109032445B (en) Screen display control method and terminal equipment
CN110174993B (en) Display control method, terminal equipment and computer readable storage medium
CN110045807B (en) Voltage control method and terminal
CN110531915B (en) Screen operation method and terminal equipment
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN108008859B (en) Screen control method and mobile terminal
CN109407949B (en) Display control method and terminal
CN107728923B (en) Operation processing method and mobile terminal
CN111258468B (en) Information processing method and electronic equipment
CN111562896A (en) Screen projection method and electronic equipment
CN108984145B (en) Brightness adjusting method and electronic equipment
CN111443815A (en) Vibration reminding method and electronic equipment
CN111142679A (en) Display processing method and electronic equipment
CN111158485B (en) Screen control method and electronic equipment
CN110442261B (en) Electronic equipment and touch operation detection method thereof
CN109343811B (en) Display adjustment method and terminal equipment
CN108388459B (en) Message display processing method and mobile terminal
CN108170310B (en) Touch screen control method and mobile terminal
CN108469944B (en) Display control method and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant