CN106303021A - Screen work condition control method and device - Google Patents

Screen work condition control method and device Download PDF

Info

Publication number
CN106303021A
CN106303021A CN201610663491.7A CN201610663491A CN106303021A CN 106303021 A CN106303021 A CN 106303021A CN 201610663491 A CN201610663491 A CN 201610663491A CN 106303021 A CN106303021 A CN 106303021A
Authority
CN
China
Prior art keywords
value
proximity transducer
away
distance value
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610663491.7A
Other languages
Chinese (zh)
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610663491.7A priority Critical patent/CN106303021A/en
Publication of CN106303021A publication Critical patent/CN106303021A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The invention discloses a kind of screen work condition control method and device, wherein the method includes: when mobile terminal is in strong light environment, the transmitting pulse of proximity transducer is adjusted to preset value by former setting value, obtain the first distance value of collecting of proximity transducer and using this first distance value as proximity transducer corrected value, the transmitting pulse-recovery of proximity transducer is set to former setting value and obtains the second distance value that Real-time Collection arrives, control proximity transducer according to sensor correction value, second distance value and currently report away from event away from threshold values, and light away from event control screen according to this.The present invention solves the problem that mobile terminal screen easily extinguishes and cannot light under high light, improves proximity transducer and gathers the accuracy of distance value.

Description

Screen work condition control method and device
Technical field
The present invention relates to screen control technical field, particularly relate to a kind of screen work condition control method and device.
Background technology
Along with the development of mobile terminal technology, the intelligent mobile terminal such as smart mobile phone, panel computer, smart camera becomes Instrument indispensable in people's daily life.The most built-in various sensor, right to complete according to self function The control of mobile terminal.Wherein, proximity transducer is by detection face or human ear and the distance of mobile terminal screen, it is judged that people Face or human ear are the most enough with screen near and report close to event, or judge face or human ear and screen whether distance enough the farthest and on Report away from event, such that it is able to control the extinguishing of screen or light.Owing to the work of proximity transducer is complete based on infrared emission Become, when have object near when, infrared receiving tube be have received the infrared ray reflected, then obtained by analog digital conversion Proximity values, proximity values is the biggest, illustrate object the closer to.
But in the above prior art, when user takes on the telephone out of doors, owing to, in sunray, the most all containing big In the case of the infrared ray of amount, especially sunlight are relatively strong, infra-red intensity is the highest, and proximity transducer is easy to record one Bigger value, the measured value under i.e. measured value is more than non-high light under high light, and by contrasting with the threshold values set, obtain people Face or human ear are very close to the result of screen, thus report close to event, so, easily occur user use under high light mobile eventually End is made a phone call, and screen will extinguish the problem that cannot light.
Summary of the invention
The present invention provides a kind of screen work condition control method and device, by adjusting nearly sensor in strong light environment Transmitting pulse, it is thus achieved that proximity transducer corrected value so that proximity transducer according to this sensor correction value correction record away from From, and according to correction after distance report away from event with control screen light, solve under high light use mobile terminal make a phone call Time, screen easily extinguishes, it is impossible to the problem lighted.
First aspect present invention provides a kind of screen work condition control method, including:
When mobile terminal is in strong light environment, the transmitting pulse of proximity transducer is adjusted to preset by former setting value Value;
Obtain the first distance value that described proximity transducer collects, and using described first distance value as proximity transducer Corrected value;
The transmitting pulse-recovery of described proximity transducer is set to described former setting value, and obtains described proximity transducer The second distance value that Real-time Collection arrives;
Control described proximity transducer according to described sensor correction value, described second distance value and currently away from threshold values Report away from event, and light away from event control screen according to described.
Second aspect present invention provides a kind of screen work behavior control device, including:
Adjusting module, for when mobile terminal is in strong light environment, by the transmitting pulse of proximity transducer by former setting Value is adjusted to preset value;
Acquisition module, for obtaining the first distance value that described proximity transducer collects;
Processing module, is used for described first distance value as proximity transducer corrected value;
Described adjusting module, is additionally operable to the transmitting pulse-recovery of described proximity transducer is set to described former setting value;
Described acquisition module, is additionally operable to obtain the second distance value that described proximity transducer Real-time Collection arrives;
Control module, be used for controlling described proximity transducer according to described sensor correction value, described second distance value with And currently report away from event away from threshold values, and light away from event control screen according to described.
Knowable to the invention described above embodiment, the screen work condition control method of embodiment of the present invention offer and device, When judging that current environment is strong light environment, the transmitting pulse of proximity transducer is adjusted to preset value from former setting value, obtains The first distance value that now proximity transducer gathers and using this first distance value as proximity transducer corrected value, then by this transmitting Pulse recall to former setting value and obtain proximity transducer gather second distance value, this proximity transducer according to this corrected value, should Second distance value and currently away from threshold values report away from event, be to entangle according to the proximity transducer corrected value under strong light environment Obtain the most afterwards, solve the problem that mobile terminal screen easily extinguishes and cannot light under high light, improve close to sensing Device gathers the accuracy of distance value.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those skilled in the art, on the premise of not paying creative work, it is also possible to root Other accompanying drawing is obtained according to these accompanying drawings.
Accompanying drawing 1 shows the structured flowchart of a kind of mobile terminal;
Accompanying drawing 2 be first embodiment of the invention provide screen work condition control method realize schematic flow sheet;
Accompanying drawing 3 be second embodiment of the invention provide screen work condition control method realize schematic flow sheet;
Accompanying drawing 4 is the structural representation of the screen work behavior control device that third embodiment of the invention provides;
Accompanying drawing 5 is the structural representation of the screen work behavior control device that fourth embodiment of the invention provides.
Detailed description of the invention
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described reality Executing example is only a part of embodiment of the present invention, and not all embodiments.Based on the embodiment in the present invention, people in the art The every other embodiment that member is obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Accompanying drawing 1 shows the structured flowchart of a kind of mobile terminal.This mobile terminal can be, but not limited to include: needs are to screen Smart mobile phone that the duty of curtain carries out automatically controlling, panel computer, smart camera, Intelligent worn device etc..Such as accompanying drawing 1 Shown in, mobile terminal 20 includes memorizer 202, storage control 204, one or more (only illustrating one in figure) processor 206, Peripheral Interface 208, radio-frequency module 210, key-press module 212, audio-frequency module 214, Touch Screen 216 and photographing module 218.These assemblies pass through the mutual communication of one or more communication bus/holding wire 222.
Being appreciated that this structure shown in accompanying drawing 1 is only signal, the structure of mobile terminal 20 is not caused restriction by it. Such as, mobile terminal 20 may also include the assembly more or more less than shown in this accompanying drawing 1, or have with shown in this accompanying drawing 1 Different configurations.Each assembly shown in this accompanying drawing 1 can use hardware, software or a combination thereof to realize.
Memorizer 202 can be used for storing software program and module, such as the screen work state control in the embodiment of the present invention Programmed instruction/module that method and device processed is corresponding, processor 206 is stored in the software program in memorizer 202 by operation And module, thus perform the application of various function and data process, i.e. realize above-mentioned screen work condition control method.
Memorizer 202 can include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memorizer 202 can farther include The memorizer remotely located relative to processor 206, these remote memories can be connected to mobile terminal 20 by network.On The example stating network includes but not limited to the Internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 206 And the access of memorizer 202 can be carried out under the control of storage control 204 by other possible assemblies.
Various input/output devices are coupled to processor 206 and memorizer 202 by Peripheral Interface 208.Processor 206 Various softwares in run memory 202, instruction are to perform the various functions of mobile terminal 20 and to carry out data process.
In some instances, Peripheral Interface 208, processor 206 and storage control 204 can be real in one single chip Existing.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 210 is used for receiving and sending electromagnetic wave, it is achieved electromagnetic wave is changed with the mutual of the signal of telecommunication, thus with Communication network or other equipment carry out communication.Radio-frequency module 210 can include the various existing electricity for performing these functions Circuit component, such as, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memorizer etc..Radio-frequency module 210 can be carried out with various networks such as the Internet, intranet, the wireless network of preset type Communication or carry out communication by the wireless network of preset type and other equipment.The wireless network of above-mentioned preset type can wrap Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).The wireless network of above-mentioned preset type can use various communication Standard, agreement and technology, include, but are not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhancement mode mobile communication technology (Enhanced Data GSM Environment, EDGE), wide Band CDMA (Wideband Code Division Multiple Access, W-CDMA), CDMA (Code Division Access, CDMA), tdma (Time Division Multiple Access, TDMA), Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) is (such as IEEE-USA's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over Internet Protocol, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other are for mail, instant messaging and the agreement of short message, and any other is suitable Communications protocol, even can include those agreements being developed the most not yet.
Key-press module 212 provides user to carry out the interface inputted to mobile terminal 20, and user can be different by pressing Button is so that mobile terminal 20 performs different functions.
Audio-frequency module 214 provides a user with audio interface, and it can include one or more mike, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 208, and voice data is converted to electrical information, Electrical information is transmitted to speaker.Electrical information is converted to the sound wave that human ear can be heard by speaker.Voicefrequency circuit is also from mike Place receives electrical information, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 208 to carry out into one The process of step.Voice data can obtain at memorizer 202 or by radio-frequency module 210.Additionally, voice data can also Store to memorizer 202 or be transmitted by radio-frequency module 210.In some instances, audio-frequency module 214 may also include Hole broadcast by one earphone, for providing audio interface to earphone or other equipment.
Touch Screen 216 provides an output and inputting interface between mobile terminal 20 and user simultaneously.Specifically, touch Control screen 216 displays to the user that video frequency output, and the content of these video frequency output can include word, figure, video and any group thereof Close.Some output results correspond to some user interface object.Touch Screen 216 also receives the input of user, such as user Click, the gesture operation such as slip, in order to the input of these users is responded by user interface object.Detection user's input Technology can be based on resistance-type, condenser type or other the most possible touch control detection technology.Touch Screen 216 display unit Instantiation include, but are not limited to liquid crystal display or light emitting polymer displays.
Photographing module 218 can be such as one or more pick-up lens, the picture image before obtaining camera lens.
Refer to accompanying drawing 2, the realization stream of the screen work condition control method that accompanying drawing 2 provides for first embodiment of the invention Journey schematic diagram.The screen work condition control method that the present embodiment provides can be applicable in mobile terminal 20 as shown in Figure 1, As shown in Figure 2, the method mainly comprises the steps that
S101, when mobile terminal is in strong light environment, the transmitting pulse of proximity transducer is adjusted to by former setting value Preset value;
Built-in proximity transducer in mobile terminal, by this proximity transducer report close to event or away from event, control The extinguishing of mobile terminal screen processed or light.
Wherein, refer to that face or human ear and the distance of mobile terminal screen, less than preset distance, confirm people close to event Face or human ear are close to mobile terminal.Usually, when the control unit controlling screen state receives after event, control panel Curtain extinguishes.
Refer to that face or human ear and the distance of mobile terminal screen, more than preset distance, confirm face or people away from event Ear is away from mobile terminal.Usually, after the control unit controlling screen state receives away from event, control screen point Bright.
When mobile terminal is in strong light environment, the distance value that proximity transducer collects there will be exception, easily gathers To the distance value less than actual distance value.Concrete reason is, the infrared ray in high light causes proximity transducer mid-infrared to receive The false judgment of the device infrared mumber to receiving so that infrared remote receiver is on face or the ultrared basis of people's ear reflex Upper increase have received the infrared ray in high light, and the distance of erroneous judgement face or human ear is close to the screen of mobile terminal ahead of time.Therefore Need to distinguish the infrared ray in the high light that infrared remote receiver receives and face or the infrared ray of people's ear reflex.
Further, in order to confirm the concrete impact that proximity transducer is caused by the infrared ray in high light, will be close to sensing The transmitting pulse of device is adjusted to preset value by former setting value, and this preset value is a less value, transmitting pulse is being adjusted to During this preset value, the distance value that proximity transducer collects close or equal to the infrared reflection only gathered in high light formed away from Distance values, and the distance value formed close to the infrared reflection gathered in high light herein, be constrained to affect and light screen. That is, when launching pulse and being this preset value, can accurately or more accurately judge that infrared remote receiver receives from environment Infrared ray in light, thus more efficiently correct because of high light cause to the interference close to sensor acquisition data so that connect Nearly sensor more accurate acquisition is to face or human ear and the distance of mobile terminal screen, so that screen is in face or human ear Away from screen time point bright screen curtain, do not affect user's operation when not conversing to mobile terminal.
Wherein, launch pulse and refer to the transmitting pulse of proximity transducer middle infrared (Mid-IR) emitter.
S102, obtain the first distance value that this proximity transducer collects, and using this first distance value as close to sensing Device corrected value;
When transmitting pulse is adjusted to this preset value, obtain face that this proximity transducer collects or human ear with mobile eventually The first distance value between end screen, and using this first distance value as proximity transducer corrected value.
Proximity transducer corrected value, for correcting the error of the distance value that proximity transducer is measured.
S103, it is this former setting value by the transmitting pulse-recovery of this proximity transducer, and it is real-time to obtain this proximity transducer The second distance value collected;
When getting this first distance value, then it is this former setting value by the transmitting pulse-recovery of this proximity transducer, with The infrared ray of face or people's ear reflex is joined in the data that proximity transducer collects.
Further, obtaining this transmitting pulse when being this former setting value, this proximity transducer Real-time Collection is to face or people Second distance value between ear and mobile terminal screen.
S104, control this proximity transducer according to this sensor correction value, this second distance value and current away from threshold values Report away from event, and light away from event control screen according to this.
Away from threshold values, refer to, when the distance value that proximity transducer collects is more than when being somebody's turn to do away from threshold values, light screen.Deserve Before can be default away from threshold values, it is also possible to be by default adjust away from threshold values after in current application away from threshold values.
Under high light state, proximity transducer is often the judgement face too early because of high light or the close screen of human ear Curtain, thus extinguish screen, affect user's normal operating mobile terminal.Therefore, proximity transducer is controlled according to this sensor calibration After value correction, when second distance value is more than time currently away from threshold values, and this proximity transducer reports away from event, and obtaining should be away from thing Part basis should be lighted away from event control screen.
The screen work condition control method that the embodiment of the present invention provides, when judging that current environment is strong light environment, will The transmitting pulse of proximity transducer is adjusted to preset value from former setting value, obtains the first distance value that now proximity transducer gathers And using this first distance value as proximity transducer corrected value, then this transmitting pulse is recalled to former setting value and obtains close to sensing The second distance value that device gathers, this proximity transducer according to this corrected value, this second distance value and currently reports away from threshold values Away from event, be correct according to the proximity transducer corrected value under strong light environment after obtain, solve and move under high light The problem that terminal screen easily extinguishes and cannot light, improves proximity transducer and gathers the accuracy of distance value.
Refer to accompanying drawing 3, the realization stream of the screen work condition control method that accompanying drawing 3 provides for second embodiment of the invention Journey schematic diagram.The screen work condition control method that the present embodiment provides can be applicable in mobile terminal 20 as shown in Figure 1, As shown in Figure 3, the method mainly comprises the steps that
S201, utilize ambient light sensor obtain current light intensity angle value, if this current light intensity value exceedes default light intensity Angle value, then confirm that this mobile terminal is in strong light environment;
Being built-in with ambient light sensor in the terminal, whether mobile terminal is in strong light environment, can be by this environment Sensor judges, such as this light intensity value preset is 8000 luxs, when the current light that ambient light sensor gets Intensity level has exceeded 8000 luxs, then assert that this mobile terminal is currently in strong light environment, and now, proximity transducer may Caused the numerical exception of collection by the interference of high light, and and then draw abnormal reported event, reporting close to event of mistake Or away from event.
Wherein, refer to that face or human ear and the distance of mobile terminal screen, less than preset distance, confirm people close to event Face or human ear are close to mobile terminal.Usually, when the control unit controlling screen state receives after event, control panel Curtain extinguishes.
Refer to that face or human ear and the distance of mobile terminal screen, more than preset distance, confirm face or people away from event Ear is away from mobile terminal.Usually, after the control unit controlling screen state receives away from event, control screen point Bright.
S202, when mobile terminal is in strong light environment, the transmitting pulse of proximity transducer is adjusted to by former setting value Preset value;
Specifically, this preset value can be 0, i.e. by former setting value, the transmitting pulse of this proximity transducer is adjusted to 0, So, the infrared transmitting tube of proximity transducer does not launch infrared ray.Now, the infrared remote receiver of proximity transducer collects Infra-red intensity value is i.e. high light middle infrared (Mid-IR) intensity level, say, that in current strong light environment, allows proximity transducer collection To infra-red intensity value in increase part all come the infra-red intensity value in high light, the error component of the distance value collected Also entirely from the interference of high light.
This preset value can also be greater than other values of 0, such as, 0.1,0.2 etc., owing to proximity transducer reports away from thing Part is the distance value that gathered by contrast with away from the result obtained after threshold values, the distance value therefore gathered be not one absolutely To numerical value, and be probably an interval value, therefore, as long as the setting of this preset value has no effect on and reports away from event, be The scope of embodiment of the present invention protection.
S203, obtain the first distance value that this proximity transducer collects, and using this first distance value as close to sensing Device corrected value;
S204, it is this former setting value by the transmitting pulse-recovery of this proximity transducer, and it is real-time to obtain this proximity transducer The second distance value collected;
When getting this first distance value, then it is this former setting value by the transmitting pulse-recovery of this proximity transducer, and Obtain this transmitting pulse when being this former setting value, the second distance value that this proximity transducer Real-time Collection arrives.
S205, control this proximity transducer according to this sensor correction value, this second distance value and current away from threshold values Report away from event, and light away from event control screen according to this.
Control this proximity transducer according to this sensor correction value, this second distance value and currently to report far away from threshold values From event, specific implementation can be to be the following two kinds mode:
First kind of way: adjust current away from threshold values according to sensor correction value;
By this sensor correction value and this preset being added away from threshold values, obtain this currently away from threshold values so that when this When two distance values are more than this currently away from threshold values, proximity transducer reports away from event.That is, improve away from threshold values, so, adopt Collect to distance value can be only achieved more greatly and report the condition away from event.
The second way: adjust second distance value according to sensor correction value.
Obtain the difference between this sensor correction value and this second distance value so that when this difference more than this currently away from During threshold values, proximity transducer reports away from event.That is, this second distance value, equally, distance value to be collected more great talent are reduced Can reach to report the condition away from event.
It should be noted that owing to this sensor correction value is the volume value of a dynamic change, therefore, when preset Long, repeat and the pulse of launching of proximity transducer is adjusted to the step of preset value, i.e. when this is preset by former setting value Long, readjust the transmitting pulse of proximity transducer to this preset value, obtain that now this proximity transducer collects first away from Distance values, and using this first distance value as new proximity transducer corrected value, then by the transmitting pulse-recovery of this proximity transducer It is set to this former setting value, and obtains the second distance value that now proximity transducer Real-time Collection arrives, control proximity transducer root According to this new sensor correction value, real-time second distance value and currently report away from event away from threshold values, and remote according to this Light from event control screen, repetitive cycling above-mentioned steps, until mobile terminal leaves strong light environment, then stop above-mentioned acquisition and connect The step of nearly sensor correction value.
The screen work condition control method that the embodiment of the present invention provides, when judging that current environment is strong light environment, will The transmitting pulse of proximity transducer is adjusted to preset value from former setting value, obtains the first distance value that now proximity transducer gathers And using this first distance value as proximity transducer corrected value, then this transmitting pulse is recalled to former setting value and obtains close to sensing The second distance value that device gathers, this proximity transducer according to this corrected value, this second distance value and currently reports away from threshold values Away from event, be correct according to the proximity transducer corrected value under strong light environment after obtain, solve and move under high light The problem that terminal screen easily extinguishes and cannot light, improves proximity transducer and gathers the accuracy of distance value.
Referring to accompanying drawing 4, accompanying drawing 4 is that the structure of the screen work behavior control device that third embodiment of the invention provides is shown It is intended to, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.The screen work state control of accompanying drawing 4 example Device processed can be the executive agent of screen work condition control method that previous embodiment provides, its can be mobile terminal or One functional module of person's mobile terminal.The screen work behavior control device of accompanying drawing 4 example, specifically includes that adjusting module 301, acquisition module 302, processing module 303 and control module 304.Each functional module describes in detail as follows:
Adjusting module 301, for when mobile terminal is in strong light environment, is set the transmitting pulse of proximity transducer by former Definite value is adjusted to preset value.
When mobile terminal is in strong light environment, the distance value that proximity transducer collects there will be exception, easily gathers To the distance value less than actual distance value.Concrete reason is, the infrared ray in high light causes proximity transducer mid-infrared to receive The false judgment of the device infrared mumber to receiving so that infrared remote receiver is on face or the ultrared basis of people's ear reflex Upper increase have received the infrared ray in high light, and the distance of erroneous judgement face or human ear is close to the screen of mobile terminal ahead of time.Therefore Need to distinguish the infrared ray in the high light that infrared remote receiver receives and face or the infrared ray of people's ear reflex.
Further, in order to confirm the concrete impact that proximity transducer is caused by the infrared ray in high light, will be close to sensing The transmitting pulse of device is adjusted to preset value by former setting value, and this preset value is a less value, transmitting pulse is being adjusted to During this preset value, the distance value that proximity transducer collects close or equal to the infrared reflection only gathered in high light formed away from Distance values, and the distance value formed close to the infrared reflection gathered in high light herein, be constrained to affect and light screen. That is, when launching pulse and being this preset value, can accurately or more accurately judge that infrared remote receiver receives from environment Infrared ray in light, thus more efficiently correct because of high light cause to the interference close to sensor acquisition data so that connect Nearly sensor more accurate acquisition is to face or human ear and the distance of mobile terminal screen, so that screen is in face or human ear Away from screen time point bright screen curtain, do not affect user's operation when not conversing to mobile terminal.
Acquisition module 302, for obtaining the first distance value that this proximity transducer collects.
When transmitting pulse is adjusted to this preset value, obtain face that this proximity transducer collects or human ear with mobile eventually The first distance value between end screen.
Processing module 303, is used for this first distance value as proximity transducer corrected value.
Proximity transducer corrected value, for correcting the error of the distance value that proximity transducer is measured.
Adjusting module 301, is additionally operable to the transmitting pulse-recovery of this proximity transducer is set to this former setting value.
When getting this first distance value, then it is this former setting value by the transmitting pulse-recovery of this proximity transducer, with The infrared ray of face or people's ear reflex is joined in the data that proximity transducer collects.
Acquisition module 302, is additionally operable to obtain the second distance value that this proximity transducer Real-time Collection arrives.
Obtain this transmitting pulse when being this former setting value, this proximity transducer Real-time Collection to face or human ear with mobile eventually Second distance value between end screen.
Control module 304, is used for controlling this proximity transducer and according to this sensor correction value, this second distance value and works as Before report away from event away from threshold values, and light away from event control screen according to this.
Away from threshold values, refer to, when the distance value that proximity transducer collects is more than when being somebody's turn to do away from threshold values, light screen.Deserve Before can be default away from threshold values, it is also possible to be by default adjust away from threshold values after in current application away from threshold values.
Under high light state, proximity transducer is often the judgement face too early because of high light or the close screen of human ear Curtain, thus extinguish screen, affect user's normal operating mobile terminal.Therefore, proximity transducer is controlled according to this sensor calibration After value correction, when second distance value is more than time currently away from threshold values, and this proximity transducer reports away from event, and obtaining should be away from thing Part basis should be lighted away from event control screen.
The embodiment of the present invention does not uses up details, sees the description of earlier figures 2 and embodiment illustrated in fig. 3.
It should be noted that in the embodiment of the screen work behavior control device of the figures above 4 example, each function mould The division of block is merely illustrative of, in actual application can as required, the configuration requirement of such as corresponding hardware or software The convenient consideration realized, and above-mentioned functions distribution being completed by different functional modules, will the internal structure of this device divide Become different functional modules, to complete all or part of function described above.And, in actual application, in the present embodiment Corresponding functional module can be to be realized by corresponding hardware, it is also possible to by corresponding hardware perform corresponding software complete. Each embodiment that this specification provides all can apply foregoing description principle.
Knowable to the screen work behavior control device of above-mentioned accompanying drawing 4 example, when judging that current environment is strong light environment, The transmitting pulse of proximity transducer is adjusted to preset value from former setting value, obtains the first distance that now proximity transducer gathers It is worth and using this first distance value as proximity transducer corrected value, then this transmitting pulse is recalled to former setting value and obtains close to biography The second distance value that sensor gathers, this proximity transducer is according to this corrected value, this second distance value and currently away from threshold values Report away from event, be correct according to the proximity transducer corrected value under strong light environment after obtain, solve and move down at high light The problem that dynamic terminal screen easily extinguishes and cannot light, improves proximity transducer and gathers the accuracy of distance value.
Referring to accompanying drawing 5, accompanying drawing 5 is that the structure of the screen work behavior control device that fourth embodiment of the invention provides is shown It is intended to, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.The screen work state control of accompanying drawing 5 example Device processed can be the executive agent of screen work condition control method that previous embodiment provides, its can be mobile terminal or A functional module in person's mobile terminal.On the basis of the screen work behavior control device of accompanying drawing 4 example, real with the 3rd Execute unlike example, in the present embodiment:
Adjusting module 301, specifically for being adjusted to 0 by the transmitting pulse of proximity transducer by former setting value.
The transmitting pulse of this proximity transducer is adjusted to 0 by former setting value, so, the infrared transmitting tube of proximity transducer Do not launch infrared ray.Now, the infra-red intensity value that the infrared remote receiver of proximity transducer collects is i.e. high light mid-infrared Line strength value.
Control module 304, specifically for by this sensor correction value and this preset being added away from threshold values, obtaining this current Away from threshold values so that when this second distance value is more than this currently away from threshold values, this proximity transducer reports away from event.
By this sensor correction value and this preset being added away from threshold values, obtain this currently away from threshold values so that when this When two distance values are more than this currently away from threshold values, proximity transducer reports away from event.That is, improve away from threshold values, so, adopt Collect to distance value can be only achieved more greatly and report the condition away from event.
Control module 304, specifically for obtaining the difference between this sensor correction value and this second distance value so that when When this difference is more than this currently away from threshold values, this proximity transducer reports away from event.
Obtain the difference between this sensor correction value and this second distance value so that when this difference more than this currently away from During threshold values, proximity transducer reports away from event.That is, this second distance value, equally, distance value to be collected more great talent are reduced Can reach to report the condition away from event.
Further, this device also includes:
Obtain light intensity module 401, be used for utilizing ambient light sensor to obtain current light intensity angle value;
Confirming module 402, if exceeding default light intensity value for this current light intensity value, then confirming at this mobile terminal In strong light environment.
Being built-in with ambient light sensor in the terminal, whether mobile terminal is in strong light environment, can be by this environment Sensor judges, such as this light intensity value preset is 8000 luxs, when the current light that ambient light sensor gets Intensity level has exceeded 8000 luxs, then assert that this mobile terminal is currently in strong light environment, and now, proximity transducer may The numerical exception of collection is caused by the interference of high light.
The embodiment of the present invention does not uses up details, sees the description of earlier figures 2 to embodiment illustrated in fig. 4.
Knowable to the screen work behavior control device of above-mentioned accompanying drawing 5 example, when judging that current environment is strong light environment, The transmitting pulse of proximity transducer is adjusted to preset value from former setting value, obtains the first distance that now proximity transducer gathers It is worth and using this first distance value as proximity transducer corrected value, then this transmitting pulse is recalled to former setting value and obtains close to biography The second distance value that sensor gathers, this proximity transducer is according to this corrected value, this second distance value and currently away from threshold values Report away from event, be correct according to the proximity transducer corrected value under strong light environment after obtain, solve and move down at high light The problem that dynamic terminal screen easily extinguishes and cannot light, improves proximity transducer and gathers the accuracy of distance value.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can be passed through other Mode realize.Such as, device embodiment described above is only schematically, such as, the division of this module, the most only one Kind of logic function divides, actual can have when realizing other dividing mode, the most multiple modules or assembly can in conjunction with or It is desirably integrated into another system, or some features can be ignored, or do not perform.Another point, shown or discussed mutual it Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or module or communication link Connect, can be electrical, machinery or other form.
This as the module that separating component illustrates can be or may not be physically separate, shows as module Parts can be or may not be physical module, i.e. may be located at a place, or multiple net can also be distributed to In network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing module, it is also possible to It is that modules is individually physically present, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated mould Block both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
If this integrated module is using the form realization of software function module and as independent production marketing or use, Can be stored in a computer read/write memory medium.Based on such understanding, technical scheme substantially or What person said the part contributing prior art or this technical scheme completely or partially can be with the form body of software product Revealing to come, this computer software product is stored in a storage medium, including some instructions with so that a computer sets Standby (can be personal computer, server, or the network equipment etc.) perform the whole of each embodiment the method for the present invention or Part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store program code Medium.
It should be noted that for aforesaid each method embodiment, in order to simplicity describes, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some step can use other order or carry out simultaneously.Secondly, those skilled in the art also should know Knowing, it might not be all this that embodiment described in this description belongs to preferred embodiment, involved action and module Bright necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
It is more than to screen work condition control method provided by the present invention and the description of device, for the skill of this area Art personnel, according to the thought of the embodiment of the present invention, the most all will change, to sum up, This specification content should not be construed as limitation of the present invention.

Claims (11)

1. a screen work condition control method, it is characterised in that described method includes:
When mobile terminal is in strong light environment, the transmitting pulse of proximity transducer is adjusted to preset value by former setting value;
Obtain the first distance value that described proximity transducer collects, and described first distance value is corrected as proximity transducer Value;
The transmitting pulse-recovery of described proximity transducer is set to described former setting value, and it is real-time to obtain described proximity transducer The second distance value collected;
Control described proximity transducer according to described sensor correction value, described second distance value and currently to report away from threshold values Away from event, and light away from event control screen according to described.
2. screen work condition control method as claimed in claim 1, it is characterised in that described method also includes:
Every preset time period, repeat the described step that the transmitting pulse of proximity transducer is adjusted to preset value by former setting value Suddenly, until described mobile terminal leaves described strong light environment.
3. screen work condition control method as claimed in claim 1, it is characterised in that described by the transmitting of proximity transducer Pulse is adjusted to preset value by former setting value and includes:
The transmitting pulse of proximity transducer is adjusted to 0 by former setting value.
4. the screen work condition control method as described in any one of claims 1 to 3, it is characterised in that described in described control Proximity transducer according to described sensor correction value, described second distance value and currently reports away from event, tool away from threshold values Body includes:
By described sensor correction value and described preset being added away from threshold values, obtain described current away from threshold values so that work as institute State second distance value more than described current away from threshold values time, described proximity transducer reports away from event.
5. the screen work condition control method as described in any one of claims 1 to 3, it is characterised in that described in described control Proximity transducer according to described sensor correction value, described second distance value and currently reports away from event, tool away from threshold values Body includes:
Obtain the difference between described sensor correction value and described second distance value so that when described difference more than described currently During away from threshold values, described proximity transducer reports away from event.
6. screen work condition control method as claimed in claim 1, it is characterised in that described be in high light when mobile terminal During environment, include before the transmitting pulse of proximity transducer is adjusted to preset detected value by former setting value:
Ambient light sensor is utilized to obtain current light intensity angle value;
If described current light intensity angle value exceedes default light intensity value, then confirm that described mobile terminal is in strong light environment.
7. a screen work behavior control device, it is characterised in that described device includes:
Adjusting module, for when mobile terminal is in strong light environment, is adjusted the transmitting pulse of proximity transducer by former setting value Whole for preset value;
Acquisition module, for obtaining the first distance value that described proximity transducer collects;
Processing module, is used for described first distance value as proximity transducer corrected value;
Described adjusting module, is additionally operable to the transmitting pulse-recovery of described proximity transducer is set to described former setting value;
Described acquisition module, is additionally operable to obtain the second distance value that described proximity transducer Real-time Collection arrives;
Control module, is used for controlling described proximity transducer and according to described sensor correction value, described second distance value and works as Before report away from event away from threshold values, and light away from event control screen according to described.
8. screen work behavior control device as claimed in claim 7, it is characterised in that described adjusting module, specifically for The transmitting pulse of proximity transducer is adjusted to 0 by former setting value.
9. screen work behavior control device as claimed in claim 7 or 8, it is characterised in that described control module, specifically uses In by described sensor correction value and described preset being added away from threshold values, obtain described current away from threshold values so that when described Second distance value more than described current away from threshold values time, described proximity transducer reports away from event.
10. screen work behavior control device as claimed in claim 7 or 8, it is characterised in that described control module, specifically For obtaining the difference between described sensor correction value and described second distance value so that when described difference more than described currently During away from threshold values, described proximity transducer reports away from event.
11. screen work behavior control devices as claimed in claim 7, it is characterised in that described device also includes:
Obtain light intensity module, be used for utilizing ambient light sensor to obtain current light intensity angle value;
Confirming module, if exceeding default light intensity value for described current light intensity angle value, then confirming that described mobile terminal is in Strong light environment.
CN201610663491.7A 2016-08-12 2016-08-12 Screen work condition control method and device Pending CN106303021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610663491.7A CN106303021A (en) 2016-08-12 2016-08-12 Screen work condition control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610663491.7A CN106303021A (en) 2016-08-12 2016-08-12 Screen work condition control method and device

Publications (1)

Publication Number Publication Date
CN106303021A true CN106303021A (en) 2017-01-04

Family

ID=57669768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610663491.7A Pending CN106303021A (en) 2016-08-12 2016-08-12 Screen work condition control method and device

Country Status (1)

Country Link
CN (1) CN106303021A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257415A (en) * 2017-07-18 2017-10-17 广东欧珀移动通信有限公司 A kind of control method of proximity transducer, device, storage medium and mobile terminal
CN107450817A (en) * 2017-07-31 2017-12-08 广东欧珀移动通信有限公司 Proximity test method, apparatus, storage medium and electronic equipment
WO2019015416A1 (en) * 2017-07-18 2019-01-24 Oppo广东移动通信有限公司 Screen state control method and device, storage medium, and mobile terminal
US11159672B2 (en) 2017-07-18 2021-10-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling proximity sensor, device, and mobile terminal
CN114125148A (en) * 2022-01-11 2022-03-01 荣耀终端有限公司 Control method of electronic equipment operation mode, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN102301684A (en) * 2011-06-24 2011-12-28 华为终端有限公司 Method and device through which a terminal determines approach of an object
EP2687813A1 (en) * 2012-07-18 2014-01-22 Samsung Electronics Co., Ltd Proximity sensor and proximity sensing method using light quantity of reflection light
CN105718025A (en) * 2016-01-15 2016-06-29 广东欧珀移动通信有限公司 Method and device for controlling infrared proximity sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN102301684A (en) * 2011-06-24 2011-12-28 华为终端有限公司 Method and device through which a terminal determines approach of an object
EP2687813A1 (en) * 2012-07-18 2014-01-22 Samsung Electronics Co., Ltd Proximity sensor and proximity sensing method using light quantity of reflection light
CN105718025A (en) * 2016-01-15 2016-06-29 广东欧珀移动通信有限公司 Method and device for controlling infrared proximity sensor

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257415A (en) * 2017-07-18 2017-10-17 广东欧珀移动通信有限公司 A kind of control method of proximity transducer, device, storage medium and mobile terminal
WO2019015416A1 (en) * 2017-07-18 2019-01-24 Oppo广东移动通信有限公司 Screen state control method and device, storage medium, and mobile terminal
US11159672B2 (en) 2017-07-18 2021-10-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling proximity sensor, device, and mobile terminal
US11443701B2 (en) 2017-07-18 2022-09-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Screen state control method, device, and mobile terminal
CN107450817A (en) * 2017-07-31 2017-12-08 广东欧珀移动通信有限公司 Proximity test method, apparatus, storage medium and electronic equipment
CN107450817B (en) * 2017-07-31 2019-12-31 Oppo广东移动通信有限公司 Proximity detection method, proximity detection device, storage medium, and electronic apparatus
US11094267B2 (en) 2017-07-31 2021-08-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Proximity detection method, storage medium, and electronic device
CN114125148A (en) * 2022-01-11 2022-03-01 荣耀终端有限公司 Control method of electronic equipment operation mode, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN106303021A (en) Screen work condition control method and device
CN110139262B (en) Bluetooth communication control method and related product
CN106331320A (en) Method and device for controlling state of screen
CN106231626B (en) A kind of method and device sending measurement report
CN107402387A (en) Movement tendency based on ultrasonic wave determines method, apparatus and readable storage medium storing program for executing
US11599608B2 (en) Unlocking control method and related products
CN107562453A (en) Notification message classifying indication method and device
CN106815025A (en) Sensing data report method and device
CN109561420A (en) A kind of method and relevant device of emergency help
CN105404394A (en) Display interface display control method and mobile terminal
CN108964838A (en) transmission rate adjusting method, device and electronic device
CN106331258A (en) Call methods, call apparatus and call system
CN108521877A (en) Measuring configuration, report method and device, base station and user equipment
CN106341365A (en) New account information deletion method and device
CN108880751A (en) transmission rate adjusting method, device and electronic device
CN107991664A (en) Calibration method, device and the computer-readable recording medium of ultrasonic wave threshold value
CN106375031B (en) The detection method and mobile terminal of radio-frequency channel
CN107479802A (en) Screen luminance adjustment method and device
CN106507447A (en) A kind of Wi Fi hotspot connection methods and mobile terminal
CN105824509A (en) Method and device for arranging icons
CN110221882A (en) Display methods, device, mobile terminal and storage medium
CN108449787A (en) Connect control method, device and electronic equipment
CN108989545A (en) Control method, device, mobile terminal and the computer-readable medium of mobile terminal
CN106534534A (en) Working mode switching method and mobile terminal
CN105828290A (en) Method and device for selecting terminal to process business event

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104