CN106791120B - Control method and device for screen-off of mobile terminal - Google Patents

Control method and device for screen-off of mobile terminal Download PDF

Info

Publication number
CN106791120B
CN106791120B CN201611226123.2A CN201611226123A CN106791120B CN 106791120 B CN106791120 B CN 106791120B CN 201611226123 A CN201611226123 A CN 201611226123A CN 106791120 B CN106791120 B CN 106791120B
Authority
CN
China
Prior art keywords
infrared energy
screen
value
mobile terminal
frequency
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.)
Active
Application number
CN201611226123.2A
Other languages
Chinese (zh)
Other versions
CN106791120A (en
Inventor
周意保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611226123.2A priority Critical patent/CN106791120B/en
Publication of CN106791120A publication Critical patent/CN106791120A/en
Application granted granted Critical
Publication of CN106791120B publication Critical patent/CN106791120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The invention relates to a method and a device for controlling screen turning off of a mobile terminal. The method comprises the following steps: acquiring infrared energy values received by the proximity sensor for continuously appointed times; acquiring a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the continuous designated times, and acquiring a difference value between the maximum infrared energy value and the minimum infrared energy value; and switching a screen-off control mode into an anti-interference mode when detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold value, wherein the anti-interference mode is to configure the screen-off threshold value into a preset infrared energy value for controlling screen-off. When the data jitter takes place for the infrared energy value that detects under the superstrong environment of light, the condition that the screen is put out, the continuous transform of bright screen also can not appear, has avoided the splash screen to appear.

Description

Control method and device for screen-off of mobile terminal
Technical Field
The present invention relates to a mobile terminal, and in particular, to a method and an apparatus for controlling a screen of a mobile terminal to be turned off.
Background
With the development of mobile communication technology, more and more users use mobile terminals to talk or transmit information. When a mobile terminal is used for communication, the mobile terminal needs to be close to a human face sometimes, and in order to prevent misoperation or save electric energy when the mobile terminal is close to the human face, the mobile terminal is usually turned off when the mobile terminal is close to the human face. And when the mobile terminal is far away from the face, the screen is lightened, so that the mobile terminal is convenient for a user to use.
Traditional mobile terminal is when scenes such as indoor, when no object is close to mobile terminal, the infrared value of detection generally can be more stable, and under the environment that light is stronger, the interference of easy highlight, the infrared value that leads to detecting easily can appear shaking, neglect little, beat about the threshold value of putting out screen and bright screen, lead to mobile terminal's screen to appear one and go out the indefinite phenomenon of twinkling of an eye, reduced mobile terminal to the stability of screen bright go out control.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling screen turn-off of a mobile terminal, which can improve the stability of control on and off of a screen and avoid screen flashing.
A control method for turning off a screen of a mobile terminal comprises the following steps:
acquiring infrared energy values received by the proximity sensor for continuously appointed times;
acquiring a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the continuous designated times, and acquiring a difference value between the maximum infrared energy value and the minimum infrared energy value;
and switching a screen-off control mode into an anti-interference mode when detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold value, wherein the anti-interference mode is to configure the screen-off threshold value into a preset infrared energy value for controlling screen-off.
A control device for turning off a screen of a mobile terminal comprises:
the acquisition module is used for acquiring the infrared energy value received by the proximity sensor for continuously appointed times;
a difference value obtaining module, configured to obtain a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the consecutive specified times, and obtain a difference value between the maximum infrared energy value and the minimum infrared energy value;
and the mode control module is used for switching the screen-off control mode into an anti-interference mode when detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold value, wherein the anti-interference mode is that the screen-off threshold value is configured into a preset infrared energy value for controlling screen-off.
According to the control method and device for extinguishing the screen of the mobile terminal, the difference value between the maximum infrared energy value and the minimum infrared energy value is obtained by obtaining the infrared energy values of the continuous appointed times, and when the difference value between the maximum infrared energy value and the minimum infrared energy value is detected to be larger than the first energy threshold value, the screen extinguishing threshold value is configured to be the preset infrared energy value screen extinguishing threshold value for controlling the screen to be extinguished, so that the screen extinguishing control mode enters the anti-interference mode, when the data jitter occurs to the detected infrared energy value in the ultra-strong light environment, the conditions of screen extinguishing and continuous change of the screen lightening can not occur, and the screen flickering is avoided.
Drawings
Fig. 1 is a schematic diagram of an application environment of a control method for turning off a screen of a mobile terminal in an embodiment;
FIG. 2 is a diagram illustrating an internal structure of a mobile terminal according to an embodiment;
FIG. 3 is a flowchart illustrating a method for controlling a screen-off of a mobile terminal according to an embodiment;
FIG. 4 is a block diagram of a control apparatus for turning off a screen of a mobile terminal according to an embodiment;
fig. 5 is a block diagram of a control device for turning off a screen of a mobile terminal in another embodiment;
fig. 6 is a block diagram of a control device for turning off a screen of a mobile terminal in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.
Fig. 1 is a schematic application environment diagram of a control method for turning off a screen of a mobile terminal in an embodiment. As shown in fig. 1, the application environment includes an obstacle 110 and a mobile terminal 120. The transmitting end of the proximity sensor 122 of the mobile terminal 120 transmits infrared rays, the infrared rays encounter the obstacle 110 and are reflected and received by the receiving end of the proximity sensor 122, the infrared rays are transmitted to the processor to be processed to obtain an infrared ray energy value, and the infrared ray energy value is stored in the register. The mobile terminal 120 reads the infrared energy value in the register, obtains the infrared energy value for the consecutive specified times, obtains a difference between a maximum infrared energy value and a minimum infrared energy value among the infrared energy values for the consecutive specified times, and determines whether the difference between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold value, if so, the screen-off control mode is switched to enter an anti-interference mode, and the anti-interference mode is that the screen-off threshold value is configured to be a preset infrared energy value for controlling screen-off.
Fig. 2 is a schematic diagram of an internal structure of the mobile terminal in one embodiment. As shown in fig. 2, the mobile terminal includes a processor, a nonvolatile storage medium, an internal memory, a network interface, a proximity sensor, a sound collection module, a speaker, a display screen, and an input device, which are connected through a system bus. The mobile terminal comprises a nonvolatile storage medium and a mobile terminal screen-off control device, wherein the nonvolatile storage medium of the mobile terminal stores an operating system, and the mobile terminal screen-off control device is used for realizing a mobile terminal screen-off control method. The processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The internal memory in the mobile terminal provides an environment for the operation of the control device for turning off the screen of the mobile terminal in the nonvolatile storage medium, and the internal memory can store computer readable instructions, and when the computer readable instructions are executed by the processor, the processor can be caused to execute a control method for turning off the screen of the mobile terminal. The network interface is used for network communication with a server or a base station or other terminals. The display screen of the mobile terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a terminal shell, or an external keyboard, a touch pad or a mouse. The mobile terminal can be a mobile phone, a tablet computer or a personal digital assistant and the like. Those skilled in the art will appreciate that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Fig. 3 is a flowchart of a method for controlling screen-off of a mobile terminal in an embodiment. As shown in fig. 3, a method for controlling screen-off of a mobile terminal includes:
step 302, an infrared energy value received by the proximity sensor for a specified number of consecutive times is obtained.
In one embodiment, the proximity sensor is a sensor that detects without touching a detection object. When the mobile terminal is in a call, the proximity sensor monitors the emitted infrared rays to judge whether the mobile terminal is close to the face or not.
The designated times can be set according to needs, such as 5 times, 10 times and the like. The infrared energy value received by the proximity sensor for the specified times is the infrared energy value of the specified times of continuous sampling after the proximity sensor receives the infrared energy value according to a certain sampling frequency.
In one embodiment, the specified number of times may be greater than or equal to 2 times.
In one embodiment, the specified number of times may also be greater than or equal to 5 times.
An infrared transmitting end of a proximity sensor of the mobile terminal transmits an infrared light pulse signal, and a receiving end of the proximity sensor receives infrared light. When the barrier is close to the mobile terminal, infrared light is refracted, and after the infrared light is received by the receiving end of the proximity sensor, the infrared energy value is obtained through conversion by the analog-to-digital converter. When no object is shielded, the receiving end of the proximity sensor receives infrared light to obtain the minimum infrared energy value, when the object is close to, the detected infrared energy value is continuously increased, and when the object is close to the mobile terminal completely, the infrared energy value reaches the maximum value. When the object is away from the device slowly, the detected infrared energy value is reduced slowly, and when the object is not shielded completely, the detected infrared energy value is minimum.
According to the different internal settings of an Integrated Circuit (IC), the registers have differences of 8 bits, 10 bits, 12 bits, etc., and the ranges of the infrared energy values are different, which correspond to 256, 1024, 4096, etc. For example, in a 10-bit device, when there is no object block, the infrared energy value is 50, theoretically 0, no object block is emitted, but some infrared rays are diffracted from the inside to the receiving end, so that there is a certain low noise value. When an obstacle (such as a face) approaches slowly, the refracted infrared ray is stronger and stronger, and the received infrared ray is more and more, the infrared energy value is larger and larger, for example, the infrared energy value is 100-.
Step 304, obtaining a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the continuous designated times, and obtaining a difference value between the maximum infrared energy value and the minimum infrared energy value.
In one embodiment, the infrared energy values of the successive designated times can be sorted, then the maximum infrared energy value and the minimum infrared energy value are obtained according to the sorting result, and the difference value between the maximum infrared energy value and the minimum infrared energy value is obtained by subtracting the minimum infrared energy value from the maximum infrared energy value.
For example, the infrared energy values for 10 consecutive times are 20, 124, 50, 15, 510, 430, 120, 189, 451, 323, 51. Sorting the infrared energy values of 10 times in succession from large to small results in the sorting results 510, 451, 430, 323, 189, 124, 120, 51, 50, 15. The maximum ir energy value is 510, the minimum ir energy value is 15, and the difference between the maximum ir energy value 510 and the minimum ir energy value 15 is 495.
And 306, switching the screen-off control mode into an anti-interference mode when detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold value, wherein the anti-interference mode is to configure the screen-off threshold value as a preset infrared energy value for controlling screen-off.
In one embodiment, the first energy threshold may be set as desired. For example, if the first energy threshold is 50 and the difference 495 is greater than 50, the screen-off control mode is switched to enter the anti-interference mode, that is, the screen-off threshold is configured to be a preset infrared energy value for controlling screen-off. The preset infrared energy value for controlling the screen to be extinguished is a larger infrared energy value. The preset infrared energy value for controlling screen-off is large, so that even if the data jitter is severe, the screen-off and screen-flashing can not be carried out. The preset infrared energy value for controlling the screen-off may be 1000, etc. The screen off means that the screen of the mobile terminal is off and corresponding operation cannot be carried out. When the infrared energy value is detected to be larger than the preset infrared energy value for controlling screen extinguishing, the mobile terminal can be switched from the bright screen to the screen extinguishing. The bright screen means that the screen of the mobile terminal is lighted, information can be viewed or operated, and the like.
According to the control method for extinguishing the screen of the mobile terminal, the difference value between the maximum infrared energy value and the minimum infrared energy value is obtained by obtaining the infrared energy values of the continuous appointed times, and when the difference value between the maximum infrared energy value and the minimum infrared energy value is detected to be larger than the first energy threshold value, the screen extinguishing threshold value is configured to be the preset infrared energy value for controlling the screen extinguishing, so that the screen extinguishing control mode enters the anti-interference mode, when the data jitter occurs to the detected infrared energy value in the ultra-strong light environment, the conditions of screen extinguishing and continuous screen lightening change can not occur, and the screen flickering is avoided.
In an embodiment, the method for controlling the screen of the mobile terminal to be turned off further includes: and acquiring the maximum infrared energy value in the infrared energy values received by the proximity sensor within the appointed time, and taking the maximum infrared energy value as the preset infrared energy value for controlling screen extinguishing. The designated time may be set as desired, such as half an hour or the like.
In an embodiment, the method for controlling the screen of the mobile terminal to be turned off further includes: detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is not greater than a first energy threshold value, and judging whether the difference value between the infrared energy values of two adjacent times in the infrared energy values of the continuous specified times is greater than a second energy threshold value or not; and if the difference between the two adjacent infrared energy values in the infrared energy values of the continuous designated times is larger than a second energy threshold value, switching the screen-off control mode to enter an anti-interference mode.
In one embodiment, it is further determined whether the difference between the two adjacent infrared energy values is greater than the second energy threshold value. The second energy threshold may be less than the first energy threshold.
In an embodiment, the method for controlling the screen of the mobile terminal to be turned off further includes: judging whether the difference between the infrared energy values of two adjacent times does not exist in the infrared energy values of the continuous appointed times is larger than a second energy threshold value, and judging whether the infrared energy values of the continuous appointed times are all larger than a first screen-off threshold value; and if the infrared energy values of the continuous appointed times are all larger than a first screen-off threshold value, switching a screen-off control mode into an anti-interference mode.
In one embodiment, the first de-latching threshold is less than a predetermined infrared energy value used to control de-latching. For example, the first screenout threshold may be 300, 350, etc.
In an embodiment, the method for controlling the screen of the mobile terminal to be turned off further includes: and detecting the frequency of the interference light, and controlling the receiving frequency of the proximity sensor in the mobile terminal to be smaller than the frequency of the interference light.
In one embodiment, the frequency of the interference source is collected by a sampling device to obtain the frequency of the interference light. The receiving frequency of the proximity sensor is controlled to be smaller than the frequency of the interference light, and the receiving frequency of the proximity sensor can be controlled by controlling the receiving interval time of the proximity sensor. The longer the reception interval time, the smaller the reception frequency. The receiving interval time refers to the time interval between two adjacent times of receiving infrared rays by the proximity sensor.
In one embodiment, the receiving frequency of the proximity sensor is controlled to be lower than the frequency of the interference light, and the control can be performed by a switch, that is, the frequency of the receiving signal of the proximity sensor is controlled by the switch, when the switch is in an open state, the proximity sensor receives the signal, and when the switch is in a closed state, the proximity sensor cannot receive the signal.
Because interference sources such as strong light and the like generate frequency of interference light, the detected infrared energy value jumps, so that the mobile terminal has a screen flickering phenomenon.
In one embodiment, the detecting the frequency of the disturbing light and controlling the frequency of the proximity sensor in the mobile terminal to be less than the frequency of the disturbing light comprises: detecting the frequency of an interference source, acquiring the frequency of the minimum interference light in the frequency of the interference source, and controlling the receiving frequency of a proximity sensor in the mobile terminal to be smaller than the frequency of the minimum interference light.
In one embodiment, because the frequency of the interference light generated by the interference source is not stable, when a plurality of frequencies of the interference source are detected, the frequency of the minimum interference light of the interference source frequency is selected, and the receiving frequency of the proximity sensor of the mobile terminal is controlled to be smaller than the frequency of the minimum interference light. By controlling the receiving frequency of the proximity sensor to be smaller than the frequency of the minimum interference light, the influence of the frequency of the interference light on the detection result can be further reduced, and the occurrence probability of screen flashing is reduced.
Fig. 4 is a block diagram of a control device for turning off a screen of a mobile terminal in one embodiment. As shown in fig. 4, a control apparatus 400 for turning off a screen of a mobile terminal includes an acquisition module 402, a difference value obtaining module 404, and a mode control module 406. Wherein:
the acquisition module 402 is used to acquire the infrared energy value received by the proximity sensor for a specified number of consecutive times.
The designated times can be set according to needs, such as 5 times, 10 times and the like.
The difference obtaining module 404 is configured to obtain a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the consecutive designated times, and obtain a difference between the maximum infrared energy value and the minimum infrared energy value.
In one embodiment, the infrared energy values of the successive designated times can be sorted, then the maximum infrared energy value and the minimum infrared energy value are obtained according to the sorting result, and the difference value between the maximum infrared energy value and the minimum infrared energy value is obtained by subtracting the minimum infrared energy value from the maximum infrared energy value.
The mode control module 406 is configured to switch the screen-off control mode to an anti-interference mode when detecting that a difference between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold, where the anti-interference mode is configured to configure the screen-off threshold as a preset infrared energy value for controlling screen-off.
In one embodiment, the first energy threshold may be set as desired. The preset infrared energy value for controlling the screen to be extinguished is a larger infrared energy value. The preset infrared energy value for controlling screen-off is large, so that even if the data jitter is severe, the screen-off and screen-flashing can not be carried out.
Above-mentioned mobile terminal puts out controlling means of screen, infrared energy value through acquireing the continuous appointed number of times, obtain the difference of maximum infrared energy value and minimum infrared energy value from it, and when detecting the difference of maximum infrared energy value and minimum infrared energy value and being greater than first energy threshold value, will put out the screen threshold value configuration and be used for controlling the predetermined infrared energy value of putting out the screen, make and put out the screen control mode and get into anti-interference mode, when the infrared energy value that detects takes place the data jitter under the superstrong environment of light, also can not appear putting out the screen, the condition of the continuous transform of bright screen, the screen flicker appearance has been avoided.
Fig. 5 is a block diagram of a control device for turning off a screen of a mobile terminal in another embodiment. As shown in fig. 5, the control apparatus for turning off a screen of a mobile terminal includes a determining module 408 in addition to an acquiring module 402, a difference obtaining module 404 and a mode control module 406. Wherein:
the determining module 408 is configured to detect that a difference between the maximum infrared energy value and the minimum infrared energy value is not greater than a first energy threshold, and determine whether a difference between two adjacent infrared energy values in the infrared energy values of the consecutive designated times is greater than a second energy threshold.
The mode control module 406 is further configured to switch the screen-off control mode to enter the anti-interference mode if it is determined that the difference between the two adjacent infrared energy values is greater than the second energy threshold value in the infrared energy values of the consecutive specified times.
In an embodiment, the determining module 408 is further configured to determine whether the difference between the two adjacent infrared energy values of the consecutive specified times is greater than a second energy threshold, and then determine whether the infrared energy values of the consecutive specified times are both greater than a first screen-off threshold.
The mode control module 406 is further configured to switch the screen-off control mode to enter the anti-interference mode if the infrared energy values of the consecutive designated times are all greater than the first screen-off threshold value.
Fig. 6 is a block diagram of a control device for turning off a screen of a mobile terminal in another embodiment. As shown in fig. 5, the control apparatus for turning off a screen of a mobile terminal includes a configuration module 410 and a frequency control module 412 in addition to an acquisition module 402, a difference value acquisition module 404, a mode control module 406 and a determination module 408. Wherein:
the configuration module 410 is configured to obtain a maximum infrared energy value among infrared energy values received by the proximity sensor within a specified time, and use the maximum infrared energy value as the preset infrared energy value for controlling screen turning off.
The frequency control module 412 is configured to detect a frequency of the interference light, and control a receiving frequency of the proximity sensor in the mobile terminal to be smaller than the frequency of the interference light.
And acquiring the frequency of the interference source through sampling equipment to obtain the frequency of the interference light. The receiving frequency of the proximity sensor is controlled to be smaller than the frequency of the interference light, and the receiving frequency of the proximity sensor can be controlled by controlling the receiving interval time of the proximity sensor. The longer the reception interval time, the smaller the reception frequency. The receiving interval time refers to the time interval between two adjacent times of receiving infrared rays by the proximity sensor. The receiving frequency of the proximity sensor is controlled to be smaller than the frequency of the interference light, the frequency of the receiving signal of the proximity sensor can be controlled through the switch, namely the frequency of the receiving signal of the proximity sensor is controlled through the switch, when the switch is in an open state, the proximity sensor receives the signal, and when the switch is in a closed state, the proximity sensor cannot receive the signal.
In one embodiment, the frequency control module 412 is further configured to detect the interference source frequency, obtain a frequency of a minimum interference light in the interference source frequency, and control a receiving frequency of a proximity sensor in the mobile terminal to be less than the frequency of the minimum interference light.
In one embodiment, since the frequency of the interference light of the interference source is not stable, when a plurality of frequencies of the interference source are detected, the frequency of the minimum interference light in the frequencies of the interference source is selected, and the receiving frequency of the proximity sensor of the mobile terminal is controlled to be smaller than the frequency of the minimum interference light. By controlling the receiving frequency of the proximity sensor to be smaller than the frequency of the minimum interference light, the influence of the frequency of the interference light on the detection result can be further reduced, and the occurrence probability of screen flashing is reduced.
In one embodiment, the above-mentioned control device for turning off the screen of the mobile terminal may include any possible combination of the acquisition module 402, the difference value obtaining module 404, the mode control module 406, the determination module 408, the configuration module 410, and the frequency control module 412.
The division of each module in the control device for turning off the screen of the mobile terminal is only used for illustration, and in other embodiments, the control device for turning off the screen of the mobile terminal may be divided into different modules as needed to complete all or part of the functions of the control device for turning off the screen of the mobile terminal.
The invention also provides the mobile terminal. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of:
acquiring infrared energy values received by the proximity sensor for continuously appointed times;
acquiring a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the continuous designated times, and acquiring a difference value between the maximum infrared energy value and the minimum infrared energy value;
and switching a screen-off control mode into an anti-interference mode when detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold value, wherein the anti-interference mode is to configure the screen-off threshold value into a preset infrared energy value for controlling screen-off.
Above-mentioned mobile terminal, through the infrared energy value of acquireing appointed number of times in succession, obtain the difference of maximum infrared energy value and minimum infrared energy value from it, and when detecting the difference of maximum infrared energy value and minimum infrared energy value and being greater than first energy threshold value, will put out the screen threshold value configuration and be used for controlling the predetermined infrared energy value of putting out the screen, make and put out the screen control mode and get into anti-interference mode, when the infrared energy value that detects takes place the data shake under the superstrong environment of light, also can not appear putting out the screen, the condition that the bright screen constantly changes, the flashing screen has been avoided appearing.
In one embodiment, the processor is further configured to perform: detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is not greater than a first energy threshold value, and judging whether the difference value between the infrared energy values of two adjacent times in the infrared energy values of the continuous specified times is greater than a second energy threshold value or not; and if the difference between the two adjacent infrared energy values in the infrared energy values of the continuous designated times is larger than a second energy threshold value, switching the screen-off control mode to enter an anti-interference mode.
In one embodiment, the processor is further configured to perform: judging whether the difference between the infrared energy values of two adjacent times does not exist in the infrared energy values of the continuous appointed times is larger than a second energy threshold value, and judging whether the infrared energy values of the continuous appointed times are all larger than a first screen-off threshold value; and if the infrared energy values of the continuous appointed times are all larger than a first screen-off threshold value, switching a screen-off control mode into an anti-interference mode.
In one embodiment, the processor is further configured to perform: and acquiring the maximum infrared energy value in the infrared energy values received by the proximity sensor within the appointed time, and taking the maximum infrared energy value as the preset infrared energy value for controlling screen extinguishing.
In one embodiment, the processor is further configured to perform: and detecting the frequency of the interference light, and controlling the receiving frequency of the proximity sensor in the mobile terminal to be smaller than the frequency of the interference light.
In one embodiment, the processor is further configured to perform: detecting the frequency of an interference source, acquiring the frequency of the minimum interference light in the frequency of the interference source, and controlling the receiving frequency of a proximity sensor in the mobile terminal to be smaller than the frequency of the minimum interference light.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A control method for turning off a screen of a mobile terminal is characterized by comprising the following steps:
acquiring infrared energy values received by the proximity sensor for continuously appointed times;
acquiring a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the continuous designated times, and acquiring a difference value between the maximum infrared energy value and the minimum infrared energy value;
when the difference value between the maximum infrared energy value and the minimum infrared energy value is larger than a first energy threshold value, switching a screen-off control mode into an anti-interference mode, wherein the anti-interference mode is to configure the screen-off threshold value into a preset infrared energy value for controlling screen-off;
controlling the receiving times of the proximity sensor in the mobile terminal by controlling the receiving interval time of the proximity sensor;
and detecting the frequency of interference light rays, and controlling the receiving frequency of the proximity sensor in the mobile terminal to be smaller than the frequency of the interference light rays.
2. The method for controlling the screen of the mobile terminal to be turned off according to claim 1, wherein the method further comprises:
detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is not greater than a first energy threshold value, and judging whether the difference value between the infrared energy values of two adjacent times in the infrared energy values of the continuous specified times is greater than a second energy threshold value or not;
and if the difference between the two adjacent infrared energy values in the infrared energy values of the continuous designated times is larger than a second energy threshold value, switching the screen-off control mode to enter an anti-interference mode.
3. The method for controlling the screen of the mobile terminal to be turned off according to claim 2, wherein the method further comprises:
judging whether the difference between the infrared energy values of two adjacent times does not exist in the infrared energy values of the continuous appointed times is larger than a second energy threshold value, and judging whether the infrared energy values of the continuous appointed times are all larger than a first screen-off threshold value;
and if the infrared energy values of the continuous appointed times are all larger than a first screen-off threshold value, switching a screen-off control mode into an anti-interference mode.
4. The method for controlling the screen-off of the mobile terminal according to any one of claims 1 to 3, wherein the method further comprises:
and acquiring the maximum infrared energy value in the infrared energy values received by the proximity sensor within the appointed time, and taking the maximum infrared energy value as the preset infrared energy value.
5. The method for controlling screen-off of a mobile terminal according to any of claims 1 to 3, wherein the detecting the frequency of the interference light and controlling the receiving frequency of the proximity sensor in the mobile terminal to be less than the frequency of the interference light comprises:
detecting interference source frequency, acquiring the frequency of minimum interference light in the interference source frequency, and controlling the receiving frequency of the proximity sensor in the mobile terminal to be smaller than the frequency of the minimum interference light.
6. A control device for turning off a screen of a mobile terminal is characterized by comprising:
the acquisition module is used for acquiring the infrared energy value received by the proximity sensor for continuously appointed times;
a difference value obtaining module, configured to obtain a maximum infrared energy value and a minimum infrared energy value from the infrared energy values of the consecutive specified times, and obtain a difference value between the maximum infrared energy value and the minimum infrared energy value;
the mode control module is used for switching a screen-off control mode into an anti-interference mode when detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is greater than a first energy threshold value, wherein the anti-interference mode is to configure the screen-off threshold value as a preset infrared energy value for controlling screen-off;
the frequency control module is used for controlling the receiving frequency of the proximity sensor in the mobile terminal by controlling the receiving interval time of the proximity sensor;
and the frequency control module is used for detecting the frequency of interference light and controlling the receiving frequency of the proximity sensor in the mobile terminal to be smaller than the frequency of the interference light.
7. The apparatus for controlling screen-off of a mobile terminal according to claim 6, wherein the apparatus further comprises:
the judging module is used for detecting that the difference value between the maximum infrared energy value and the minimum infrared energy value is not greater than a first energy threshold value, and judging whether the difference value between the infrared energy values of two adjacent times in the infrared energy values of the continuous specified times is greater than a second energy threshold value or not;
and the mode control module is also used for switching the screen-off control mode into an anti-interference mode if judging that the difference between the infrared energy values of two adjacent times is greater than a second energy threshold value in the infrared energy values of the continuous specified times.
8. The device for controlling screen-off of a mobile terminal according to claim 7, wherein the determining module is further configured to determine whether the difference between two adjacent infrared energy values of the consecutive specified times is greater than a second energy threshold value, and then determine whether the infrared energy values of the consecutive specified times are both greater than a first screen-off threshold value;
and the mode control module is also used for switching the screen-off control mode into an anti-interference mode if the infrared energy values of the continuous designated times are all larger than a first screen-off threshold value.
9. The control device for turning off the screen of the mobile terminal according to any one of claims 6 to 8, wherein the device further comprises:
and the configuration module is used for acquiring the maximum infrared energy value in the infrared energy values received by the proximity sensor within the appointed time, and taking the maximum infrared energy value as the preset infrared energy value.
10. The device for controlling screen extinguishing of a mobile terminal according to any one of claims 6 to 8, wherein the frequency control module is further configured to detect a frequency of an interference source, obtain a frequency of a minimum interference light ray in the frequency of the interference source, and control a receiving frequency of the proximity sensor in the mobile terminal to be smaller than the frequency of the minimum interference light ray.
11. A mobile terminal comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201611226123.2A 2016-12-27 2016-12-27 Control method and device for screen-off of mobile terminal Active CN106791120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611226123.2A CN106791120B (en) 2016-12-27 2016-12-27 Control method and device for screen-off of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611226123.2A CN106791120B (en) 2016-12-27 2016-12-27 Control method and device for screen-off of mobile terminal

Publications (2)

Publication Number Publication Date
CN106791120A CN106791120A (en) 2017-05-31
CN106791120B true CN106791120B (en) 2020-05-12

Family

ID=58921642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611226123.2A Active CN106791120B (en) 2016-12-27 2016-12-27 Control method and device for screen-off of mobile terminal

Country Status (1)

Country Link
CN (1) CN106791120B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111671B (en) * 2017-11-29 2021-03-23 Oppo广东移动通信有限公司 Anti-jamming method, electronic device, and computer-readable storage medium
CN108012028B (en) * 2017-11-29 2020-12-29 Oppo广东移动通信有限公司 Anti-jamming method, electronic device, and computer-readable storage medium
CN108076220B (en) * 2017-11-29 2020-07-07 Oppo广东移动通信有限公司 Anti-jamming method, electronic device, and computer-readable storage medium
CN108093127B (en) * 2017-11-29 2020-12-04 Oppo广东移动通信有限公司 Anti-jamming method, electronic device, and computer-readable storage medium
CN112260672B (en) * 2020-10-19 2024-02-06 深圳市太美亚电子科技有限公司 Method for adjusting induction distance of infrared device
CN113514902A (en) * 2021-06-22 2021-10-19 Tcl通讯(宁波)有限公司 Infrared proximity sensor dynamic threshold adjustment method and mobile device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941310A (en) * 2014-04-09 2014-07-23 苏州佳世达电通有限公司 Correcting method and system of proximity sensor
JP2014200057A (en) * 2013-03-12 2014-10-23 Kddi株式会社 Mobile terminal device, and method and program for abnormality detection
CN105739699A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Control method of message prompt, and terminal equipment
CN105939427A (en) * 2016-07-06 2016-09-14 广东欧珀移动通信有限公司 Control method of infrared proximity sensor, device and mobile terminal
CN105959492A (en) * 2016-07-06 2016-09-21 广东欧珀移动通信有限公司 Control method and device for infrared proximity sensor and mobile terminal
CN106101402A (en) * 2016-06-01 2016-11-09 广东欧珀移动通信有限公司 Adjust the method and system of proximity transducer threshold of perception current

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014200057A (en) * 2013-03-12 2014-10-23 Kddi株式会社 Mobile terminal device, and method and program for abnormality detection
CN103941310A (en) * 2014-04-09 2014-07-23 苏州佳世达电通有限公司 Correcting method and system of proximity sensor
CN105739699A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Control method of message prompt, and terminal equipment
CN106101402A (en) * 2016-06-01 2016-11-09 广东欧珀移动通信有限公司 Adjust the method and system of proximity transducer threshold of perception current
CN105939427A (en) * 2016-07-06 2016-09-14 广东欧珀移动通信有限公司 Control method of infrared proximity sensor, device and mobile terminal
CN105959492A (en) * 2016-07-06 2016-09-21 广东欧珀移动通信有限公司 Control method and device for infrared proximity sensor and mobile terminal

Also Published As

Publication number Publication date
CN106791120A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106791120B (en) Control method and device for screen-off of mobile terminal
CN106855782B (en) A kind of method, apparatus and terminal for preventing from accidentally touching
US11568888B2 (en) Terminal control method, terminal and non-transitory computer readable storage medium
CN107484231B (en) Screen parameter adjusting method, device, terminal and computer readable storage medium
CN105959461B (en) Screen induction control method and device and terminal equipment
US11435824B2 (en) Prompt method and apparatus for eye-protection mode, electronic device and storage medium
CN106790978B (en) Control method, device and the mobile terminal of mobile terminal screen state
CN106681637B (en) A kind of touch screen display methods, device and mobile terminal
US9424418B2 (en) Information processing device and method for switching password input mode
CN109240551B (en) Method for controlling electronic device by using gestures and related product
CN109327691B (en) Image shooting method and device, storage medium and mobile terminal
US20210141878A1 (en) Unlocking control method and related products
CN106921788B (en) Mobile terminal control method and mobile terminal
CN109120864B (en) Light supplement processing method and device, storage medium and mobile terminal
CN106020447B (en) The proximity sensor parameter regulation means and system of touch type electronic equipment
CN108881875A (en) Image white balancing treatment method, device, storage medium and terminal
CN108196664A (en) screen display method, device, storage medium and terminal
US20200050275A1 (en) Method and appratus for human-machine interaction, terminal, and computer-readable storage medium
CN108960213A (en) Method for tracking target, device, storage medium and terminal
CN109040729A (en) Image white balance correcting, device, storage medium and terminal
CN110958352B (en) Network signal display method, device, storage medium and mobile terminal
CN112834031A (en) Electronic device and sensor control method
CN111605478B (en) Atmosphere lamp control and audio transmission method and device, atmosphere lamp controller and vehicle machine
CN106060274B (en) A kind of report method, device and the mobile terminal of ambient light sensor data
CN107071552B (en) Setting method, device, playback equipment and the controlling terminal of playback equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant