CN106791120A - Mobile terminal puts out the control method and device of screen - Google Patents

Mobile terminal puts out the control method and device of screen Download PDF

Info

Publication number
CN106791120A
CN106791120A CN201611226123.2A CN201611226123A CN106791120A CN 106791120 A CN106791120 A CN 106791120A CN 201611226123 A CN201611226123 A CN 201611226123A CN 106791120 A CN106791120 A CN 106791120A
Authority
CN
China
Prior art keywords
infrared energy
energy value
screen
value
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611226123.2A
Other languages
Chinese (zh)
Other versions
CN106791120B (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

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

Abstract

The present invention relates to control method and device that a kind of mobile terminal puts out screen.Methods described includes:Obtain the infrared energy value that the continuous predetermined number of times of proximity transducer is received;Maximum infrared energy value and minimum infrared energy value are obtained from the infrared energy value of the continuous predetermined number of times, and obtains the difference of the maximum infrared energy value and minimum infrared energy value;Detect the maximum infrared energy value and be more than the first energy threshold with the difference of the minimum infrared energy value, screen control mode switching will then be put out and enter immunity mode, the immunity mode will refer to that will put out screen threshold value to be configured for controlling the default infrared energy value for putting out screen.Also be not in put out the situation that screen, bright screen are constantly converted, it is to avoid splashette appearance when the infrared energy value detected under the superpower environment of light occurs data dithering.

Description

Mobile terminal puts out the control method and device of screen
Technical field
The present invention relates to mobile terminal, more particularly to a kind of mobile terminal puts out the control method and device of screen.
Background technology
With the development of mobile communication technology, increasing user is conversed or transmission information using mobile terminal. When being conversed using mobile terminal by mistake, it is sometimes desirable to by mobile terminal near face, in order to prevent to grasp when close Make or save electric energy, it will usually put out screen when mobile terminal is near face.The bright screen when mobile terminal is away from face, to facilitate use Family uses.
Traditional mobile terminal indoors etc. scene when, when there is no object near mobile terminal, the infrared ray value one of detection As can be more stable, and under the stronger environment of light, the interference of easy high light, the infrared ray value for being easily caused detection can go out Now shake, it is suddenly big or suddenly small, the threshold value bob of screen and bright screen is being put out, cause the screen of mobile terminal to occur one bright one and go out change Indefinite splashette phenomenon, reduces the stability that mobile terminal is controlled screen light on and off.
The content of the invention
Control method and device that a kind of mobile terminal puts out screen are the embodiment of the invention provides, can be improved to screen light on and off control The stability of system, it is to avoid splashette occurs.
A kind of mobile terminal puts out the control method of screen, including:
Obtain the infrared energy value that the continuous predetermined number of times of proximity transducer is received;
Maximum infrared energy value and minimum infrared ray energy are obtained from the infrared energy value of the continuous predetermined number of times Value, and obtain the difference of the maximum infrared energy value and minimum infrared energy value;
Detect the maximum infrared energy value and be more than the first energy cut-off with the difference of the minimum infrared energy value Value, then will put out screen control mode switching and enter immunity mode, and the immunity mode refers to that will put out screen threshold value to be configured for The default infrared energy value of screen is put out in control.
A kind of mobile terminal puts out the control device of screen, including:
Acquisition module, for obtaining the infrared energy value that the continuous predetermined number of times of proximity transducer is received;
Difference acquisition module, for obtaining maximum infrared energy from the infrared energy value of the continuous predetermined number of times Value and minimum infrared energy value, and obtain the difference of the maximum infrared energy value and minimum infrared energy value;
Mode control module, the difference for detecting the maximum infrared energy value and the minimum infrared energy value Value is more than the first energy threshold, then will put out screen control mode switching and enter immunity mode, and the immunity mode refers to put out Screen threshold value is configured for controlling the default infrared energy value for putting out screen.
Above-mentioned mobile terminal puts out the control method and device of screen, by obtaining the infrared energy value of continuous predetermined number of times, Therefrom obtain the difference of maximum infrared energy value and minimum infrared energy value, and detect maximum infrared energy value with most When the difference of small infrared energy value is more than the first energy threshold, screen threshold value will be put out and be configured for controlling to put out the default red of screen Outside line energy value puts out screen threshold value so that puts out screen control mode and enters immunity mode, that is detected under the superpower environment of light is red Also be not in put out the situation that screen, bright screen are constantly converted, it is to avoid splashette appearance when outside line energy value occurs data dithering.
Brief description of the drawings
Fig. 1 be one embodiment in mobile terminal put out screen control method applied environment schematic diagram;
Fig. 2 is the internal structure schematic diagram of mobile terminal in one embodiment;
Fig. 3 be one embodiment in mobile terminal put out screen control method flow chart;
Fig. 4 be one embodiment in mobile terminal put out screen control device structured flowchart;
Fig. 5 is the structured flowchart of the control device that mobile terminal puts out screen in another embodiment;
Fig. 6 is the structured flowchart of the control device that mobile terminal puts out screen in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes Say, without departing from the scope of the invention, the first client can be referred to as the second client, and similarly, can be by Second client is referred to as the first client.First client and the second client both client, but it is not same visitor Family end.
Fig. 1 be one embodiment in mobile terminal put out screen control method applied environment schematic diagram.As shown in figure 1, should Applied environment includes barrier 110 and mobile terminal 1 20.The transmitting terminal of the proximity transducer 122 of mobile terminal 1 20 sends infrared Line, infrared ray runs into the receiving terminal reception that the back reflection of barrier 110 is approached sensor 122, and infrared ray is sent into processor Process and obtain infrared energy value, and by the storage of infrared energy value in a register.Mobile terminal 1 20 reads register In infrared energy value, obtain the infrared energy value of continuous predetermined number of times, and obtain the infrared ray energy of continuous predetermined number of times The difference of maximum infrared energy value and minimum infrared energy value in value, judges maximum infrared energy value with minimum infrared ray Whether the difference of energy value is more than the first energy threshold, if so, will then put out screen control mode switching enters immunity mode, it is described anti- Jamming pattern refers to that will put out screen threshold value to be configured for controlling the default infrared energy value for putting out screen.
Fig. 2 is the internal structure schematic diagram of mobile terminal in one embodiment.As shown in Fig. 2 the mobile terminal includes leading to Cross processor, non-volatile memory medium, built-in storage, network interface, proximity transducer, the sound collection of system bus connection Module, loudspeaker, display screen and input unit.Wherein, the non-volatile memory medium of mobile terminal is stored with operating system, also The control device of screen is put out including a kind of mobile terminal, the control device that the mobile terminal puts out screen is used to realize that a kind of mobile terminal puts out The control method of screen.The processor is used to provide calculating and control ability, supports the operation of whole terminal.It is interior in mobile terminal Memory provides environment for the operation that the mobile terminal in non-volatile memory medium puts out the control device of screen, in the built-in storage Computer-readable instruction can be stored, when the computer-readable instruction is by the computing device, may be such that the processor is held A kind of mobile terminal of row puts out the control method of screen.Network interface leads to for carrying out network with server or base station or other-end etc. Letter.The display screen of mobile terminal can be LCDs or electric ink display screen etc., and input unit can be display screen Button, trace ball or Trackpad, or the external key set on the touch layer, or terminal enclosure of upper covering Disk, Trackpad or mouse etc..The mobile terminal can be mobile phone, panel computer or personal digital assistant etc..Art technology Personnel are appreciated that the structure shown in Fig. 2, and only the block diagram of the part-structure related to application scheme, is not constituted The restriction of the terminal being applied thereon to application scheme, specific terminal can include more more or less than shown in figure Part, or some parts are combined, or arranged with different parts.
Fig. 3 be one embodiment in mobile terminal put out screen control method flow chart.As shown in figure 3, a kind of mobile whole The control method of screen is put out at end, including:
Step 302, obtains the infrared energy value that the continuous predetermined number of times of proximity transducer is received.
In one embodiment, proximity transducer is need not to contact the sensor that detection object is detected.Mobile whole The infrared ray of proximity transducer monitoring transmitting when conversing is held to judge whether mobile terminal presses close to face etc..
Predetermined number of times can set as needed, such as 5 times, 10 inferior.The infrared energy value that continuous predetermined number of times is received Refer to proximity transducer according to certain sample frequency receiving infrared-ray energy value, the infrared ray energy of the predetermined number of times of continuous sampling Value.
In one embodiment, predetermined number of times can be more than or equal to 2 times.
In one embodiment, predetermined number of times is also greater than or equal to 5 times.
The infrared emission end transmitting infrared light pulse signal of the proximity transducer of mobile terminal, the receiving terminal of proximity transducer Receive infrared light.When barrier is near mobile terminal, a refraction of infrared light is had, the receiving terminal of proximity transducer receives red After outer light, carry out analog-digital converter and convert to obtain infrared energy value.When there is no any object to block, proximity transducer Receiving terminal receives the infrared energy value minimum that infrared light is obtained, when object is constantly close to, the infrared energy of detection Value constantly becomes big, and when object presses close to mobile terminal completely, infrared energy value reaches maximum.When object slowly away from when, The infrared energy value of detection can slowly diminish again, and when completely no object is blocked, the infrared energy value of detection is minimum.
According to setting different inside IC (integrated circuit, surface-mounted integrated circuit), register have 8,10,12 The difference of position etc., the range of infrared energy value is also different, and corresponding respectively is 256,1024 and 4096 etc..Such as 10 Device, when normally being blocked without object, infrared energy value is that 50, theoretically 0 no any object blocks transmitting, but has portion Dividend outside line is from internal diffraction to receiving terminal, so there is certain low noise value.When barrier (such as face) is slowly close to, refraction Infrared ray is more and more stronger, and the infrared light for receiving is more, and infrared energy value is increasing, for example infrared energy value 100- 200-400, slowly becomes big, and when all pressing close to device, infrared ray all reflexes to receiving terminal, full scale 1024 occurs.
Step 304, obtains maximum infrared energy value and minimum from the infrared energy value of the continuous predetermined number of times Infrared energy value, and obtain the difference of the maximum infrared energy value and minimum infrared energy value.
In one embodiment, the infrared energy value of continuous predetermined number of times can be ranked up, then further according to sequence Result obtains maximum infrared energy value and minimum infrared energy value, and maximum infrared energy value is subtracted into minimum infrared ray energy Value obtains both differences.
For example, the infrared energy value of continuous 10 times is 20,124,50,15,510,430,120,189,451,323,51. To the infrared energy values of continuous 10 times according to being ranked up from big to small, then the ranking results for obtaining are 510,451,430, 323、189、124、120、51、50、15.It is 510 to obtain maximum infrared energy value, and minimum infrared energy value is 15, maximum Infrared energy value 510 is 495 with the difference of minimum infrared energy value 15.
Step 306, detects the difference of the maximum infrared energy value and the minimum infrared energy value more than the One energy threshold, then will put out screen control mode switching and enter immunity mode, and the immunity mode refers to that will put out screen threshold value to match somebody with somebody It is set to the default infrared energy value that screen is put out for control.
In one embodiment, the first energy threshold can set as needed.Such as the first energy threshold is 50, difference 495 are more than 50, then will put out screen control mode switching and enter immunity mode, that is, will put out screen threshold value and be configured for control and put out The default infrared energy value of screen.The default infrared energy value for being used to control to put out screen is a larger infrared ray energy Value.For controlling the default infrared energy value for putting out screen larger, accordingly even when data dithering is very serious, screen flash will not be also put out Screen.Default infrared energy value for controlling to put out screen can be 1000 etc..It refers to that mobile terminal screen extinguishes to put out screen, it is impossible to entered Row corresponding operating.It is mobile whole when infrared energy value is detected more than for controlling to put out the default infrared energy value of screen End can switch into from bright screen puts out screen.Bright screen refers to that the screen of mobile terminal is lit, and can check information or be operated.
Above-mentioned mobile terminal puts out the control method of screen, by obtaining the infrared energy value of continuous predetermined number of times, therefrom obtains The difference of maximum infrared energy value and minimum infrared energy value is taken, and it is infrared with minimum to detect maximum infrared energy value When the difference of heat input value is more than the first energy threshold, screen threshold value will be put out and be configured for controlling the default infrared ray energy for putting out screen Value so that put out screen control mode and enter immunity mode, the infrared energy value detected under the superpower environment of light occurs Also be not in the situation for putting out the continuous conversion of screen, bright screen, it is to avoid splashette appearance during data dithering.
In one embodiment, above-mentioned mobile terminal puts out the control method of screen, also includes:Obtain in the time of specifying close to biography Maximum infrared energy value, the maximum infrared energy value is used for as described in the infrared energy value that sensor is received The default infrared energy value of screen is put out in control.The specified time can be arranged as required to, such as half an hour etc..
In one embodiment, above-mentioned mobile terminal puts out the control method of screen, also includes:Detect the maximum infrared ray Energy value is not more than the first energy threshold with the difference of the minimum infrared energy value, judges the red of the continuous predetermined number of times Difference in outside line energy value with the presence or absence of adjacent infrared energy value twice is more than the second energy threshold;If judging continuously to refer to There is the difference of adjacent infrared energy value twice in the infrared energy value for determining number of times more than the second energy threshold, then will be described Put out screen control mode switching and enter immunity mode.
In one embodiment, the maximum infrared energy value and minimum infrared energy in continuous predetermined number of times are detected The difference of value is not more than the first energy threshold, whether there is in the infrared energy value that can determine whether the continuous predetermined number of times The difference of adjacent infrared energy value twice is more than the second energy threshold.Second energy threshold is small than the first energy threshold.
In one embodiment, above-mentioned mobile terminal puts out the control method of screen, also includes:Judge described continuous specified time Difference in several infrared energy values in the absence of adjacent infrared energy value twice is more than the second energy threshold, then judge described Whether the infrared energy value of continuous predetermined number of times is all higher than first is put out screen threshold value;If the infrared ray energy of the continuous predetermined number of times Value is all higher than first and puts out screen threshold value, then will put out screen control mode switching and enter immunity mode.
In one embodiment, first puts out screen threshold value less than the default infrared energy value that screen is put out for control.For example First puts out screen threshold value can be for 300,350 etc..
In one embodiment, above-mentioned mobile terminal puts out the control method of screen, also includes:The frequency of detection interference light, Frequency of the receives frequency of proximity transducer less than the interference light in control mobile terminal.
In one embodiment, the frequency of interference source is gathered by sample devices, obtains disturbing the frequency of light.Control connects The receives frequency of nearly sensor, can be by controlling reception interval time of proximity transducer, control less than the frequency of interference light The receives frequency of proximity transducer.Reception interval time is more long, then receives frequency is smaller.Reception interval time refers to close to sensing The time interval of the adjacent receiving infrared-ray twice of device.
In one embodiment, the frequency of the receives frequency less than interference light of control proximity transducer, can be by switch Control, i.e., by switching the frequency of the reception signal of control proximity transducer, when switch is in open mode, proximity transducer connects The collection of letters number, when switch is closed, proximity transducer cannot receive signal.
Produce the infrared energy value of the frequency of interference light, detection that saltus step occurs because of interference sources such as high lights, cause movement There is splashette phenomenon in terminal, the frequency of the receives frequency less than interference light of the proximity transducer by controlling mobile terminal, drop The influence of infrared energy value of the frequency of low interference light to detecting.
In one embodiment, the frequency of the detection interference light, the frequency of proximity transducer in control mobile terminal Less than the frequency of the interference light, including:Detection interference source frequency, obtains the least interference light in the interference source frequency Frequency, control the frequency of the receives frequency less than the least interference light of proximity transducer in the mobile terminal.
In one embodiment, the frequency of the interference light for being produced by interference source is unstable in itself, detects interference source During multiple frequencies, the frequency of the least interference light of interference source frequency is chosen, control the reception of the proximity transducer of mobile terminal Frequency of the frequency less than least interference light.By controlling the receives frequency of proximity transducer less than the frequency of least interference light Rate, can further reduce influence of the frequency of interference light to testing result, reduce splashette occurrence probability.
Fig. 4 be one embodiment in mobile terminal put out screen control device structured flowchart.As shown in figure 4, a kind of mobile Terminal puts out the control device 400 of screen, including acquisition module 402, difference acquisition module 404, mode control module 406.Wherein:
Acquisition module 402 is used to obtain the infrared energy value that the continuous predetermined number of times of proximity transducer is received.
Predetermined number of times can set as needed, such as 5 times, 10 inferior.
Difference acquisition module 404 is used to obtain maximum infrared ray energy from the infrared energy value of the continuous predetermined number of times Value and minimum infrared energy value, and obtain the difference of the maximum infrared energy value and minimum infrared energy value.
In one embodiment, the infrared energy value of continuous predetermined number of times can be ranked up, then further according to sequence Result obtains maximum infrared energy value and minimum infrared energy value, and maximum infrared energy value is subtracted into minimum infrared ray energy Value obtains both differences.
Mode control module 406 is used to detect the maximum infrared energy value with the minimum infrared energy value Difference is more than the first energy threshold, then will put out screen control mode switching and enter immunity mode, the immunity mode refer to by Screen threshold value is put out to be configured for controlling the default infrared energy value for putting out screen.
In one embodiment, the first energy threshold can set as needed.This is used to control to put out the default infrared of screen Heat input value is a larger infrared energy value.For controlling the default infrared energy value for putting out screen larger, so i.e. Make data dithering very serious, will not also put out screen flash screen.
Above-mentioned mobile terminal puts out the control device of screen, by obtaining the infrared energy value of continuous predetermined number of times, therefrom obtains The difference of maximum infrared energy value and minimum infrared energy value is taken, and it is infrared with minimum to detect maximum infrared energy value When the difference of heat input value is more than the first energy threshold, screen threshold value will be put out and be configured for controlling the default infrared ray energy for putting out screen Value so that put out screen control mode and enter immunity mode, the infrared energy value detected under the superpower environment of light occurs Also be not in the situation for putting out the continuous conversion of screen, bright screen, it is to avoid splashette appearance during data dithering.
Fig. 5 is the structured flowchart of the control device that mobile terminal puts out screen in another embodiment.As shown in figure 5, a kind of move Dynamic terminal puts out the control device of screen, except including acquisition module 402, difference acquisition module 404, mode control module 406, also wrapping Include judge module 408.Wherein:
Judge module 408 is used to detect the maximum infrared energy value with the difference of the minimum infrared energy value No more than the first energy threshold, judges in the infrared energy value of the continuous predetermined number of times with the presence or absence of adjacent twice infrared The difference of heat input value is more than the second energy threshold.
If mode control module 406 be additionally operable to exist in the infrared energy value for judge continuous predetermined number of times it is adjacent twice Infrared energy value difference be more than the second energy threshold, then by it is described put out screen control mode switching enter immunity mode.
In one embodiment, judge module 408 is additionally operable to judge the infrared energy value of the continuous predetermined number of times In in the absence of adjacent infrared energy value twice difference be more than the second energy threshold, then judge the red of the continuous predetermined number of times Whether outside line energy value is all higher than first is put out screen threshold value.
If the infrared energy value that the mode control module 406 is additionally operable to the continuous predetermined number of times is all higher than first and puts out Screen threshold value, then will put out screen control mode switching and enter immunity mode.
Fig. 6 is the structured flowchart of the control device that mobile terminal puts out screen in another embodiment.As shown in figure 5, a kind of move Dynamic terminal puts out the control device of screen, except including acquisition module 402, difference acquisition module 404, mode control module 406, judgement Module 408, also including configuration module 410 and frequency control module 412.Wherein:
Maximum is infrared during configuration module 410 is used to obtain the infrared energy value that proximity transducer is received in the specified time Heat input value, using the maximum infrared energy value as the default infrared energy value that screen is put out for control.
Frequency control module 412 is used to detect the frequency of interference light, the reception of proximity transducer in control mobile terminal Frequency of the frequency less than the interference light.
The frequency of interference source is gathered by sample devices, obtains disturbing the frequency of light.Control the reception of proximity transducer Frequency, can be by controlling reception interval time of proximity transducer less than the frequency of interference light, and control proximity transducer connects Receive frequency.Reception interval time is more long, then receives frequency is smaller.Reception interval time refers to that proximity transducer is adjacent to be received twice Ultrared time interval.The frequency of the receives frequency less than interference light of proximity transducer is controlled, can be by switching control, i.e., By switching the frequency of the reception signal of control proximity transducer, when switch is in open mode, proximity transducer receives signal, When switch is closed, proximity transducer cannot receive signal.
In one embodiment, frequency control module 412 is additionally operable to detection interference source frequency, obtains the interference source frequency In least interference light frequency, control the receives frequency of proximity transducer in the mobile terminal to be less than the least interference The frequency of light.
In one embodiment, because the frequency of the interference light of interference source is unstable in itself, the multiple of interference source is detected During frequency, the frequency of the least interference light in interference source frequency is chosen, control the reception of proximity transducer of mobile terminal frequently Frequency of the rate less than least interference light.By controlling the receives frequency of proximity transducer less than the frequency of least interference light, Influence of the frequency of interference light to testing result can be further reduced, splashette occurrence probability is reduced.
In one embodiment, above-mentioned mobile terminal put out screen control device may include acquisition module 402, difference obtain mould It is any possible group in block 404, mode control module 406, judge module 408, configuration module 410 and frequency control module 412 Close.
The division that above-mentioned mobile terminal puts out modules in the control device of screen is only used for for example, in other embodiment In, the control device that mobile terminal puts out screen can be as required divided into different modules, put out screen to complete above-mentioned mobile terminal Control device all or part of function.
Present invention also offers a kind of mobile terminal.A kind of mobile terminal, including memory, processor and storage are in storage On device and the computer program that can run on a processor, following steps are realized during the computing device described program:
Obtain the infrared energy value that the continuous predetermined number of times of proximity transducer is received;
Maximum infrared energy value and minimum infrared ray energy are obtained from the infrared energy value of the continuous predetermined number of times Value, and obtain the difference of the maximum infrared energy value and minimum infrared energy value;
Detect the maximum infrared energy value and be more than the first energy cut-off with the difference of the minimum infrared energy value Value, then will put out screen control mode switching and enter immunity mode, and the immunity mode refers to that will put out screen threshold value to be configured for The default infrared energy value of screen is put out in control.
Above-mentioned mobile terminal, by obtaining the infrared energy value of continuous predetermined number of times, therefrom obtains maximum infrared ray energy The difference of value and minimum infrared energy value, and detect the difference of maximum infrared energy value and minimum infrared energy value During more than the first energy threshold, screen threshold value will be put out and be configured for controlling the default infrared energy value for putting out screen so that put out screen Control mode enters immunity mode, when there is data dithering in the infrared energy value detected under the superpower environment of light, It is not in the situation for putting out the continuous conversion of screen, bright screen, it is to avoid splashette appearance.
In one embodiment, processor is also used to carry out:Detect the maximum infrared energy value with it is described most The difference of small infrared energy value is not more than the first energy threshold, is in the infrared energy value for judging the continuous predetermined number of times The no difference that there is adjacent infrared energy value twice is more than the second energy threshold;If judging the infrared ray of continuous predetermined number of times There is the difference of adjacent infrared energy value twice in energy value more than the second energy threshold, then cut the screen control mode of putting out Swap-in enters immunity mode.
In one embodiment, processor is also used to carry out:Judge the infrared energy of the continuous predetermined number of times Difference in value in the absence of adjacent infrared energy value twice is more than the second energy threshold, then judge the continuous predetermined number of times Whether infrared energy value is all higher than first is put out screen threshold value;If the infrared energy value of the continuous predetermined number of times is all higher than first Screen threshold value is put out, then will be put out screen control mode switching and be entered immunity mode.
In one embodiment, processor is also used to carry out:What proximity transducer was received in the acquisition specified time is red Maximum infrared energy value in outside line energy value, the default of screen is put out using the maximum infrared energy value as described for control Infrared energy value.
In one embodiment, processor is also used to carry out:The frequency of detection interference light, connects in control mobile terminal Frequency of the receives frequency of nearly sensor less than the interference light.
In one embodiment, processor is also used to carry out:Detection interference source frequency, in the acquisition interference source frequency Least interference light frequency, control the receives frequency of proximity transducer in the mobile terminal to be less than the least interference light The frequency of line.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of mobile terminal puts out the control method of screen, it is characterised in that including:
Obtain the infrared energy value that the continuous predetermined number of times of proximity transducer is received;
Maximum infrared energy value and minimum infrared energy value are obtained from the infrared energy value of the continuous predetermined number of times, And obtain the difference of the maximum infrared energy value and minimum infrared energy value;
Detect the maximum infrared energy value and be more than the first energy threshold with the difference of the minimum infrared energy value, then Screen control mode switching will be put out and enter immunity mode, the immunity mode will refer to that will put out screen threshold value and be configured for control to put out The default infrared energy value of screen.
2. mobile terminal according to claim 1 puts out the control method of screen, it is characterised in that methods described also includes:
Detect the maximum infrared energy value and be not more than the first energy threshold with the difference of the minimum infrared energy value, Judge in the infrared energy value of the continuous predetermined number of times with the presence or absence of adjacent infrared energy value twice difference more than the Two energy thresholds;
If there is the difference of adjacent infrared energy value twice in the infrared energy value for judging continuous predetermined number of times more than the Two energy thresholds, then enter immunity mode by the screen control mode switching that puts out.
3. mobile terminal according to claim 2 puts out the control method of screen, it is characterised in that methods described also includes:
Judge that the difference in the infrared energy value of the continuous predetermined number of times in the absence of adjacent infrared energy value twice is big In the second energy threshold, then judge whether the infrared energy value of the continuous predetermined number of times is all higher than first and puts out screen threshold value;
If the infrared energy value of the continuous predetermined number of times is all higher than first puts out screen threshold value, screen control mode switching will be put out and entered Enter immunity mode.
4. mobile terminal according to any one of claim 1 to 3 puts out the control method of screen, it is characterised in that the side Method also includes:
Maximum infrared energy value in the infrared energy value that proximity transducer is received in the time of specifying is obtained, by the maximum Infrared energy value is used as the default infrared energy value.
5. mobile terminal according to any one of claim 1 to 3 puts out the control method of screen, it is characterised in that the side Method also includes:
The frequency of detection interference light, frequency of the receives frequency of proximity transducer less than the interference light in control mobile terminal Rate.
6. a kind of mobile terminal puts out the control device of screen, it is characterised in that including:
Acquisition module, for obtaining the infrared energy value that the continuous predetermined number of times of proximity transducer is received;
Difference acquisition module, for obtained from the infrared energy value of the continuous predetermined number of times maximum infrared energy value and Minimum infrared energy value, and obtain the difference of the maximum infrared energy value and minimum infrared energy value;
Mode control module is big with the difference of the minimum infrared energy value for detecting the maximum infrared energy value In the first energy threshold, then will put out screen control mode switching and enter immunity mode, the immunity mode will refer to that will put out screen threshold Value is configured for controlling the default infrared energy value for putting out screen.
7. mobile terminal according to claim 6 puts out the control device of screen, it is characterised in that described device also includes:
Judge module, is not more than for detecting the maximum infrared energy value with the difference of the minimum infrared energy value First energy threshold, judges to whether there is adjacent infrared energy twice in the infrared energy value of the continuous predetermined number of times The difference of value is more than the second energy threshold;
If the mode control module be additionally operable in the infrared energy value for judge continuous predetermined number of times to exist it is adjacent twice The difference of infrared energy value is more than the second energy threshold, then the screen control mode switching that puts out is entered into immunity mode.
8. mobile terminal according to claim 7 puts out the control device of screen, it is characterised in that the judge module is additionally operable to Judge in the infrared energy value of the continuous predetermined number of times in the absence of adjacent infrared energy value twice difference more than the Two energy thresholds, then judge whether the infrared energy value of the continuous predetermined number of times is all higher than first and puts out screen threshold value;
If the infrared energy value that the mode control module is additionally operable to the continuous predetermined number of times is all higher than first and puts out screen threshold value, Screen control mode switching will then be put out and enter immunity mode.
9. the mobile terminal according to any one of claim 6 to 8 puts out the control device of screen, it is characterised in that the dress Putting also includes:
Configuration module, for obtaining maximum infrared energy in the infrared energy value that proximity transducer is received in the specified time Value, using the maximum infrared energy value as the default infrared energy value.
10. the mobile terminal according to any one of claim 6 to 8 puts out the control device of screen, it is characterised in that the dress Putting also includes:
Frequency control module, the frequency for detecting interference light, the receives frequency of proximity transducer is small in control mobile terminal In the frequency of the interference light.
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 true CN106791120A (en) 2017-05-31
CN106791120B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012028A (en) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer-readable recording medium
CN108076220A (en) * 2017-11-29 2018-05-25 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer readable storage medium
CN108093127A (en) * 2017-11-29 2018-05-29 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer readable storage medium
CN108111671A (en) * 2017-11-29 2018-06-01 广东欧珀移动通信有限公司 anti-interference method, electronic device and computer readable storage medium
CN112260672A (en) * 2020-10-19 2021-01-22 深圳市太美亚电子科技有限公司 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

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012028A (en) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer-readable recording medium
CN108076220A (en) * 2017-11-29 2018-05-25 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer readable storage medium
CN108093127A (en) * 2017-11-29 2018-05-29 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer readable storage medium
CN108111671A (en) * 2017-11-29 2018-06-01 广东欧珀移动通信有限公司 anti-interference 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
CN108012028B (en) * 2017-11-29 2020-12-29 Oppo广东移动通信有限公司 Anti-jamming method, electronic device, and computer-readable storage medium
CN108111671B (en) * 2017-11-29 2021-03-23 Oppo广东移动通信有限公司 Anti-jamming method, electronic device, and computer-readable storage medium
CN112260672A (en) * 2020-10-19 2021-01-22 深圳市太美亚电子科技有限公司 Method for adjusting induction distance of infrared device
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

Also Published As

Publication number Publication date
CN106791120B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN106791120A (en) Mobile terminal puts out the control method and device of screen
CN107943345B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
CN106855782B (en) A kind of method, apparatus and terminal for preventing from accidentally touching
CN107294522A (en) Response method, device, storage medium and electronic equipment based on touch key-press
US10466849B2 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
US20120044210A1 (en) Electronic device with sliding touch control function and sliding touch control method thereof
CN107450817B (en) Proximity detection method, proximity detection device, storage medium, and electronic apparatus
EP3435199B1 (en) Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen
CN107942306B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
US10775932B2 (en) Method, mobile terminal and non-transitory computer-readable storage medium for response control of touch screen
CN106775085B (en) A kind of method, device and mobile terminal of screen edge false-touch prevention
CN107835033A (en) Control method, device, terminal device and the storage medium of antenna tuning switch
CN107463290B (en) Response control method and device for touch operation, storage medium and mobile terminal
CN111650575A (en) Obstacle detection method, obstacle detection device, electronic device, and storage medium
CN111338725A (en) Interface layout method and related product
CN108492837B (en) Method, device and storage medium for detecting audio burst white noise
CN107291294B (en) Control method for sensitivity of touch screen and mobile terminal
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor
CN104077050A (en) Terminal operating method
CN107466387A (en) A kind of method and device for detecting touch manner
JP6974620B2 (en) Notification message processing method and terminal
CN107341094A (en) The time-consuming measuring method of startup item and device
CN109510896B (en) Proximity sensor selection method and device, storage medium and electronic device
CN108170360B (en) Control method of gesture function and mobile terminal
CN106686222A (en) Ambient light sensor control method, ambient light sensor control device and 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
CB02 Change of applicant information
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.

GR01 Patent grant
GR01 Patent grant