CN105519086A - Method and device for controlling proximity optical sensor, and mobile terminal - Google Patents

Method and device for controlling proximity optical sensor, and mobile terminal Download PDF

Info

Publication number
CN105519086A
CN105519086A CN201480041100.7A CN201480041100A CN105519086A CN 105519086 A CN105519086 A CN 105519086A CN 201480041100 A CN201480041100 A CN 201480041100A CN 105519086 A CN105519086 A CN 105519086A
Authority
CN
China
Prior art keywords
close
optical sensor
data
mobile terminal
state information
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
CN201480041100.7A
Other languages
Chinese (zh)
Other versions
CN105519086B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105519086A publication Critical patent/CN105519086A/en
Application granted granted Critical
Publication of CN105519086B publication Critical patent/CN105519086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/38Displays

Abstract

Embodiments of the present invention relate to a method and device for controlling a proximity optical sensor, and a mobile terminal. The method comprises: acquiring state information reported by a proximity optical sensor of a mobile terminal during a voice call of the mobile terminal; determining whether the state of the proximity optical sensor is abnormal according to the state information; and if the state of the proximity optical sensor is abnormal, turning off the proximity optical sensor during the voice call. According to the method and device for controlling a proximity optical sensor, and the mobile terminal provided by the embodiments of the present invention, a display screen of the mobile terminal can be illuminated when the state of the proximity optical sensor is abnormal.

Description

Close to the control method of optical sensor, device and mobile terminal
Technical field
The embodiment of the present invention relates to electronic technology, particularly a kind of control method close to optical sensor, device and mobile terminal.
Background technology
Along with developing rapidly of science and technology, increasing user's choice for use touch screen type mobile terminal.For prevent user in communication process due to touch mobile terminal screen and cause misoperation, be typically employed in the built-in mode close to optical sensor in mobile terminal, the screen of mobile terminal controlled.
In prior art, such as user is when calling, be triggered close to optical sensor and start working, now outwards can launch infrared light continuously close to optical sensor, after infrared light runs into barrier, barrier is by infrared light reflection tieback photosensors, this reflects infrared light can be received close to the photodiode in optical sensor, by transmitting and receiving the time of infrared light, obtain close to the distance between optical sensor and barrier, realize the control of mobile terminal display screen being turned off the light or lighting with this.Such as: when mobile terminal is close to barrier, the display screen of mobile terminal is turned off the light, and when mobile terminal is away from barrier, mobile terminal display screen is lit.
But in prior art, the state close to optical sensor in mobile terminal may be abnormal.When close to optical sensor abnormal state, carry out in the process of voice call at this mobile terminal of use, mobile terminal possibly cannot receive the state information reported close to optical sensor or the state information receiving mistake, now the display screen of mobile terminal will be closed and keep closed condition always, causes the display screen of mobile terminal to be lit.
Summary of the invention
The embodiment of the present invention provides a kind of control method close to optical sensor, device and mobile terminal, during in order to solve the abnormal state close to optical sensor of mobile terminal in prior art, this mobile terminal problem that its display screen cannot be lit in voice call process.
First aspect, the embodiment of the present invention provides a kind of control method close to optical sensor, comprising:
Carry out at mobile terminal in the process of voice call, obtain the state information reported close to optical sensor of described mobile terminal;
Judge that whether the described state close to optical sensor is abnormal according to described state information;
If the described abnormal state close to optical sensor, then close described close to optical sensor in the process of described voice call.
In conjunction with first aspect, in the first possible implementation of first aspect, describedly judge whether the described state close to optical sensor comprises extremely according to described state information:
If described state information is invalid data, then judge the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data; Or
If described state information is empty, then judge the described abnormal state close to optical sensor.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second of first aspect is possible, describedly judge whether the described state close to optical sensor comprises extremely according to described state information:
If described state information is valid data, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor, the initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the first possible implementation of first aspect or first aspect, in the third possible implementation of first aspect, describedly judge whether the described state close to optical sensor comprises extremely according to described state information: judge that whether the described state close to optical sensor is abnormal according to the ambient light intensity change information that the ambient light sensor of described state information and described mobile terminal reports;
If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor;
The initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the first possible implementation of first aspect or first aspect, in the 4th kind of possible implementation of first aspect, describedly judge whether the described state close to optical sensor comprises extremely according to described state information:
If described state information is valid data, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor;
The initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the first possible implementation of first aspect or first aspect, in the 5th kind of possible implementation of first aspect, describedly judge whether the described state close to optical sensor comprises extremely according to described state information:
Judge that whether the described state close to optical sensor is abnormal according to the ambient light intensity change information that the ambient light sensor of described state information and described mobile terminal reports;
If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor;
The initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the first the 5th kind of possible implementation to first aspect of first aspect, first aspect, in the 6th kind of possible implementation of first aspect, described method also comprises:
Closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
Second aspect, the embodiment of the present invention provides a kind of control device close to optical sensor, comprising:
Acquisition module, for carrying out in the process of voice call at mobile terminal, obtains the state information reported close to optical sensor of described mobile terminal;
Judge module, for judging that according to described state information whether the described state close to optical sensor is abnormal;
Processing module, if for the described abnormal state close to optical sensor, then closes described close to optical sensor in the process of described voice call.
In conjunction with second aspect, in the first possible implementation of second aspect, described judge module comprises:
First judging unit, if be invalid data for described state information, then judges the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data; And/or
Second judging unit, if be empty for described state information, then judges the described abnormal state close to optical sensor.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described judge module comprises:
3rd judging unit, if be valid data for described state information, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor, the initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with second aspect, in the third possible implementation of second aspect, described judge module comprises:
4th judging unit, the ambient light intensity change information for reporting according to the ambient light sensor of described state information and described mobile terminal judges that whether the described state close to optical sensor is abnormal; If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with second aspect, in the 4th kind of possible implementation of second aspect, described judge module comprises:
5th judging unit, if be valid data for described state information, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with second aspect, in the 5th kind of possible implementation of second aspect, described judge module comprises:
6th judging unit, the ambient light intensity change information for reporting according to the ambient light sensor of described state information and described mobile terminal judges that whether the described state close to optical sensor is abnormal; If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the first the 5th kind of possible implementation to second aspect of second aspect, second aspect, in the 6th kind of possible implementation of first aspect, described device also comprises:
Light display panel module, for closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
The third aspect, the embodiment of the present invention provides a kind of mobile terminal, comprising:
Close to optical sensor, for carrying out in the process of voice call at mobile terminal, uploaded state information;
Processor, for obtaining the described described state information reported close to optical sensor;
Described processor, also for judging that according to described state information whether the described state close to optical sensor is abnormal; If the described abnormal state close to optical sensor, then close described close to optical sensor in the process of described voice call.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described processor when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is invalid data, then judge the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data; Or
If described state information is empty, then judge the described abnormal state close to optical sensor.
In conjunction with the third aspect, in the implementation that the second of the third aspect is possible, described processor when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is valid data, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor, the initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the third aspect, in the third possible implementation of the third aspect, described mobile terminal also comprises:
Ambient light sensor, for reporting ambient light intensity change information;
Described processor, when judging that according to described state information whether the described state close to optical sensor is abnormal, specifically for:
Judge that whether the described state close to optical sensor is abnormal according to described state information and described ambient light intensity change information; If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the third aspect, in the 4th kind of possible implementation of the third aspect, described processor when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is valid data, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the third aspect, in the 5th kind of possible implementation of the third aspect, described mobile terminal also comprises: ambient light sensor, for reporting ambient light intensity change information;
Described processor when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
Judge that whether the described state close to optical sensor is abnormal according to the ambient light intensity change information that the ambient light sensor of described state information and described mobile terminal reports; If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In conjunction with the first the 5th kind of possible implementation to the third aspect of the third aspect, the third aspect, in the 6th kind of possible implementation of the third aspect, described mobile terminal also comprises:
Touch-screen, for closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
Control method close to optical sensor provided by the invention, device and mobile terminal, by carrying out in the process of voice call at mobile terminal, obtain the state information reported close to optical sensor of mobile terminal, judge that whether the state close to optical sensor is abnormal according to state information, if know the abnormal state close to optical sensor, then close close to optical sensor in the process of voice call, the shielding of mobile terminal function key is removed, thus making mobile terminal in voice call process, its display screen also can be lit.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the present invention close to the control method embodiment one of optical sensor;
Fig. 2 is the structural representation of the present invention close to the control device embodiment one of optical sensor;
Fig. 3 is the structural representation of the present invention close to the control device embodiment two of optical sensor;
Fig. 4 is the structural representation of mobile terminal embodiment one provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of the present invention close to the control method embodiment one of optical sensor.Embodiments provide a kind of control method close to optical sensor, the method can be performed by the device performed arbitrarily close to the control method of optical sensor, and this device can pass through software and/or hardware implementing.In the present embodiment, this device can be in the terminal integrated.As shown in Figure 1, the method for the present embodiment can comprise:
Step 101, carry out at mobile terminal in the process of voice call, obtain the state information reported close to optical sensor of mobile terminal.
In this step, the process of voice call comprise mobile terminal and opposite equip. set up converse be connected and connect after carry out the process conversed.Particularly, for calling party, the process of voice call comprise mobile terminal and opposite equip. set up converse be connected and connect after carry out these two stages of voice call; For the side of answering, the process of voice call carries out the stage of voice call after can only including and connecting phone, also can comprise setting up call and connecting and carry out these two stages of voice call after connecting.Carry out at mobile terminal in the process of voice call, be triggered close to optical sensor and start working, simultaneously by the state information report that collects to mobile terminal.
Step 102, judge that the state close to optical sensor is whether abnormal according to state information.
If step 103 is close to the abnormal state of optical sensor, then close close to optical sensor in the process of described voice call.
In prior art, when starting working when being triggered close to optical sensor, the function key of mobile terminal is understood conductively-closed and does not play a role.If the abnormal state close to optical sensor in mobile terminal, when using this mobile terminal to carry out voice call, mobile terminal possibly cannot receive the state information reported close to optical sensor or the state information receiving mistake, now the display screen of mobile terminal will be closed and keep closed condition always, and the display screen of mobile terminal cannot be lit.In the present embodiment, close to optical sensor by after state information report mobile terminal, if mobile terminal judges the abnormal state close to optical sensor, then close close to optical sensor in the process of voice call.Such as: in concrete implementation procedure, can by adding the class close to photocontrol at framework layer, adopt the method positive closing of registration failure close to optical sensor, for the mode of positive closing close to optical sensor, can select diverse ways according to actual needs, the present embodiment is not limited this.It will be understood by those skilled in the art that after closing close to optical sensor, the function key of mobile terminal can normally work, and user can light the display screen of mobile terminal by pressing function key.
The control method close to optical sensor that the embodiment of the present invention provides, by carrying out in the process of voice call at mobile terminal, obtain the state information reported close to optical sensor of mobile terminal, judge that whether the state close to optical sensor is abnormal according to state information, if know the abnormal state close to optical sensor, then close close to optical sensor in the process of voice call, the shielding of mobile terminal function key is removed, thus making mobile terminal in the process of voice call, its display screen also can be lit.
On the basis of the above-mentioned control method embodiment one close to optical sensor, judge whether extremely have following several method close to the state of optical sensor according to state information.In the application process of reality, any one method following can be adopted to judge:
The first: if state information is invalid data, then judge the abnormal state close to optical sensor.
Particularly, after starting working when being triggered close to optical sensor, periodically outwards infrared light can be launched close to optical sensor, after infrared light runs into barrier, barrier is by infrared light reflection tieback photosensors, close to optical sensor, the infrared light reflected is converted into corresponding sampled data, and this sampled data and the first predetermined threshold value pre-set are compared, according to comparative result to mobile terminal reporting close to data with away from data, wherein, sampled data is corresponding with close to the distance between optical sensor and barrier.When sampled data is less than the first predetermined threshold value, close to optical sensor to mobile terminal reporting close to data, represent and be less than the first predetermined threshold value close to the distance between optical sensor and barrier; When sampled data is more than or equal to the first predetermined threshold value, close to optical sensor to mobile terminal reporting away from data, represent and be more than or equal to the first predetermined threshold value close to the distance between optical sensor and barrier.It will be understood by those skilled in the art that the distance between mobile terminal to barrier is far away, this sampled data is larger, and the distance between mobile terminal to barrier is nearer, and this sampled data is less.Wherein, the first predetermined threshold value is chosen according to practical experience, such as, can be 5cm, and for choosing of the first predetermined threshold value occurrence, the present embodiment is not particularly limited at this.
In concrete implementation procedure, represent close to data with away from data close to optical sensor by the data default to mobile terminal reporting one, such as: report 0 representative close to data, report 9 to represent away from data.Whether after mobile terminal receives the state information reported close to optical sensor, dynamically will detect this state information is close to data or away from data.In actual applications, can detect by adopting the mode of database configuration, such as: data 0 and 9 are stored in a database, the state information at every turn got is mated with store in database 0 and 9 by mobile terminal, if acquisition for mobile terminal to the state information reported close to light be from close to data 0 with away from the different invalid data of data 9, then can judge to draw the abnormal state close to optical sensor.
The second: if state information is empty, then judge the abnormal state close to optical sensor.
Particularly, if mobile terminal does not get any data reported close to optical sensor, then know the abnormal state close to optical sensor, this may be damaged close to optical sensor.
The third: if state information is valid data, and the state information got in preset time period does not comprise away from data, then judge the abnormal state close to optical sensor.
Particularly, after starting working when being triggered close to optical sensor, periodically outwards infrared light can be launched close to optical sensor, after infrared light runs into barrier, barrier is by infrared light reflection tieback photosensors, close to optical sensor, the infrared light reflected is converted into corresponding sampled data, and this sampled data and the first predetermined threshold value pre-set are compared, according to comparative result to mobile terminal reporting close to data with away from data, wherein, sampled data is corresponding with close to the distance between optical sensor and barrier.When sampled data is less than the first predetermined threshold value, close to optical sensor to mobile terminal reporting close to data, represent and be less than the first predetermined threshold value close to the distance between optical sensor and barrier; When sampled data is more than or equal to the first predetermined threshold value, close to optical sensor to mobile terminal reporting away from data, represent and be more than or equal to the first predetermined threshold value close to the distance between optical sensor and barrier.It will be understood by those skilled in the art that the distance between mobile terminal to barrier is far away, this sampled data is larger, and the distance between mobile terminal to barrier is nearer, and this sampled data is less.Wherein, the first predetermined threshold value can be chosen according to practical experience, such as, can be 5cm, and for choosing of the first predetermined threshold value occurrence, the present embodiment is not particularly limited at this.
In addition, the initial time of preset time period is the initial time that mobile terminal carries out voice call, specifically, for calling party, the initial time of voice call can refer to that mobile terminal sets up with opposite equip. the initial time conversed and be connected, for the side of answering, the initial time after the initial time of voice call refers to and connects.No matter be set up the moment of conversing and being connected from mobile terminal with opposite equip., or from carrying out the moment of voice call after connecting, in preset time period, with having certain reaction time per family, just mobile terminal can be moved in one's ear.Therefore, in preset time period, close to there being certain distance between optical sensor and barrier, now, can to mobile terminal reporting away from data close to optical sensor, represent and be more than or equal to the first predetermined threshold value close to the distance between optical sensor and barrier.After the time period of presetting, mobile terminal moves to and starts in one's ear to carry out normal voice call by user, now starts to report close to data close to optical sensor, represents and is less than the first predetermined threshold value close to the distance between optical sensor and barrier.Wherein, preset time period is generally the physiological reaction time of user, such as, can be 500-1000 millisecond, and for the choosing of occurrence of preset time period, the present embodiment is not particularly limited at this.If the data that mobile terminal gets in preset time period are all close to data, when not comprising away from data, then can judge to draw that entering dirt close to optical sensor damages.
Alternatively, on the basis of the third determination methods, can also adopt and the mode that the ambient light intensity change information that the ambient light sensor of state information and mobile terminal reports combines is judged that whether the state close to optical sensor is abnormal.Particularly, if state information is valid data, the state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of mobile terminal exceeds the second predetermined threshold value, then judge the abnormal state close to optical sensor.
The ambient light intensity change information of mobile terminal can be gathered by ambient light sensor, and the data of collection are reported mobile terminal by ambient light sensor simultaneously.Mobile terminal is by judging whether the ambient light intensity change of this mobile terminal in preset time period exceeds the second predetermined threshold value, can know whether the ambient light intensity around mobile terminal occurs significantly to change.If occur significantly to change in preset time period environment luminous intensity, then illustrate that user is calling or receiving calls, if now only report close to data in preset time period close to optical sensor, then illustrate that entering dirt close to optical sensor damages.By the mode that ambient light sensor combines with close to optical sensor, judge that whether the state close to optical sensor is abnormal, the accuracy of judgement can be improved greatly.Wherein, the second predetermined threshold value can be chosen according to practical experience, and for choosing of the second predetermined threshold value occurrence, the present embodiment is not particularly limited at this.
4th kind: if state information is valid data, and the number close to data comprised in the state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the abnormal state close to optical sensor.
Particularly, after starting working when being triggered close to optical sensor, now periodically outwards launch infrared light close to optical sensor, after infrared light runs into barrier, barrier is by infrared light reflection tieback photosensors, close to optical sensor, the infrared light reflected is converted into corresponding sampled data, and this sampled data and the first predetermined threshold value pre-set are compared, according to comparative result to mobile terminal reporting close to data with away from data, wherein, sampled data is corresponding with close to the distance between optical sensor and barrier.When sampled data is less than the first predetermined threshold value, close to optical sensor to mobile terminal reporting close to data, represent and be less than the first predetermined threshold value close to the distance between optical sensor and barrier; When sampled data is more than or equal to the first predetermined threshold value, close to optical sensor to mobile terminal reporting away from data, represent and be more than or equal to the first predetermined threshold value close to the distance between optical sensor and barrier.It will be understood by those skilled in the art that the distance between mobile terminal to barrier is far away, this sampled data is larger, and the distance between mobile terminal to barrier is nearer, and this sampled data is less.Wherein, the first predetermined threshold value can be chosen according to practical experience, such as, can be 5cm, and for choosing of the first predetermined threshold value occurrence, the present embodiment is not particularly limited at this.
Often report once close to data close to optical sensor in preset time period, mobile terminal just carries out a logout, and this logout is stored in database, if the number of times of logout is more than or equal to the 3rd predetermined threshold value, abnormal state close to optical sensor is then described, likely enters dirt and damage.Wherein, preset time period is generally the physiological reaction time of user, such as, can be 500-1000 millisecond; 3rd predetermined threshold value can be chosen according to practical experience, such as, can be 10, and for the choosing of occurrence of preset time period and the 3rd predetermined threshold value, the present embodiment is not all particularly limited at this.By recording the number of times close to data reported close to optical sensor, judging that whether the state close to optical sensor is abnormal, the accuracy of judgement can be improved.
Preferably, on basis of the third and the 4th kind of determination methods, state information can also be adopted, ambient light intensity change information that the ambient light sensor of mobile terminal reports and the mode that the 3rd predetermined threshold value combines judge that whether the state close to optical sensor is abnormal.Particularly, if state information is valid data, the number close to data comprised in the state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of mobile terminal exceeds the second predetermined threshold value, then judge the abnormal state close to optical sensor, likely there occurs and damage into dirt.By recording the number of times close to data reported close to optical sensor, and combining environmental intensity variation information judges that whether the state close to optical sensor is abnormal, drastically increases the accuracy of judgement.
It should be noted that, when know close to optical sensor belong to damage into dirt time, can Recovery processing be carried out, dust is removed, the number of times close to data reported close to optical sensor recorded in database be wiped in the lump meanwhile.
The control method close to optical sensor that the embodiment of the present invention provides, by carrying out in the process of voice call at mobile terminal, obtain the state information reported close to optical sensor of mobile terminal, according to the difference of state information, judge that whether the state close to optical sensor is abnormal, if know the abnormal state close to optical sensor, then close close to optical sensor in the process of voice call, the shielding of mobile terminal function key is removed, thus making mobile terminal in voice call process, its display screen also can be lit.
Further, after closedown is close to optical sensor, under the state that the display screen of mobile terminal is turned off the light, if detect, the physical button on mobile terminal is triggered, then light display screen.
Particularly, after being closed close to optical sensor, the function key of mobile terminal can normally work, now, when user is in communication process, and under the display screen of mobile terminal is in the state of turning off the light, be triggered if mobile terminal receives physical button, can be such as that user performs pressing operation, then display screen be lit.
Fig. 2 is the structural representation of the present invention close to the control device embodiment one of optical sensor, and as shown in Figure 2, the control device close to optical sensor that the embodiment of the present invention provides comprises acquisition module 201, judge module 202 and processing module 203.
Wherein, acquisition module 201, for carrying out in the process of voice call at mobile terminal, obtains the state information reported close to optical sensor of described mobile terminal;
Judge module 202 is for judging that according to described state information whether the described state close to optical sensor is abnormal;
If processing module 203 is for the described abnormal state close to optical sensor, then close described close to optical sensor in the process of described voice call.
The control device close to optical sensor that the embodiment of the present invention provides, by carrying out in the process of voice call at mobile terminal, obtain the state information reported close to optical sensor of mobile terminal, judge that whether the state close to optical sensor is abnormal according to state information, if know the abnormal state close to optical sensor, then close close to optical sensor in the process of voice call, the shielding of the function key of mobile terminal is removed, thus in the process of mobile terminal in voice call, its display screen also can be lit.
Fig. 3 is the structural representation of the present invention close to the control device embodiment two of optical sensor, and as shown in Figure 3, the present embodiment is on basis embodiment illustrated in fig. 2, and judge module 202 comprises:
If the first judging unit 2021 is invalid data for described state information, then judge the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data;
If the second judging unit 2022 is empty for described state information, then judge the described abnormal state close to optical sensor.
Alternatively, described judge module 202 comprises:
If the 3rd judging unit 2023 is valid data for described state information, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
Alternatively, described judge module 202 comprises:
For the ambient light intensity change information for reporting according to the ambient light sensor of described state information and described mobile terminal, 4th judging unit 2024 judges that whether the described state close to optical sensor is abnormal; If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
Alternatively, described judge module 202 comprises:
If the 5th judging unit 2025 is valid data for described state information, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
Alternatively, described judge module 202 comprises:
For the ambient light intensity change information reported according to the ambient light sensor of described state information and described mobile terminal, 6th judging unit 2026 judges that whether the described state close to optical sensor is abnormal; If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
The control device close to optical sensor that the embodiment of the present invention provides, by carrying out in the process of voice call at mobile terminal, obtain the state information reported close to optical sensor of mobile terminal, judge that whether the state close to optical sensor is abnormal according to state information, if know the abnormal state close to optical sensor, then close close to optical sensor in the process of voice call, the shielding of the function key of mobile terminal is removed, thus mobile terminal is in the process of voice call, its display screen also can be lit.
It should be noted that, when the state information that mobile terminal receives is valid data, adopt any one unit in the 3rd judging unit 2023, the 4th judging unit 2024, the 5th judging unit 2025 and the 6th judging unit 2026, all can judge that whether the state close to optical sensor is abnormal.
Alternatively, described device also comprises:
Light display panel module 204 for closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
Fig. 4 is the structural representation of mobile terminal embodiment one provided by the invention, the mobile terminal that the embodiment of the present invention provides may be used for the method implementing the embodiment of the present invention realization shown in above-mentioned Fig. 1, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the various embodiments of the present invention shown in Fig. 1.
This mobile terminal can be mobile phone, and shown in Fig. 4 is the block diagram of the part-structure of the mobile phone 400 relevant to various embodiments of the present invention.
As shown in Figure 4, mobile phone 400 comprises: RF (radiofrequency, radio frequency) circuit 420, memory 430, input unit 440, display unit 450, close to parts such as optical sensor 460, ambient light sensor 410, voicefrequency circuit 470, processor 480 and power supplys 490.It will be understood by those skilled in the art that the handset structure shown in Fig. 4 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 4 each component parts to mobile phone 400:
RF circuit 420 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 480; In addition, up data are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupler, LNA (lownoiseamplifier, low noise amplifier), duplexer etc.In addition, RF circuit 420 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (globalsystemofmobilecommunication, be called for short: GSM), general packet radio service (generalpacketradioservice, be called for short: GPRS), code division multiple access (codedivisionmultipleaccess, be called for short: CDMA), Wideband Code Division Multiple Access (WCDMA) (widebandcodedivisionmultipleaccess, be called for short: WCDMA), Long Term Evolution (longtermevolution, be called for short: LTE), Email, Short Message Service (shortmessagingservice, be called for short: SMS) etc.
Memory 430 can be used for storing software program and module, and processor 480 is stored in software program and the module of memory 430 by running, thus performs various function application and the data processing of mobile phone 400.Memory 430 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, view data, phone directory etc.) etc. created according to the use of mobile phone 400.In addition, memory 430 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input unit 440 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 400 and function controls the input of relevant key signals.Particularly, input unit 440 can comprise touch-screen 441 and other input equipments 442.Touch-screen 441, also referred to as contact panel, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on touch-screen 441 or near touch-screen 441 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, touch-screen 441 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 480, and the order that energy receiving processor 480 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize touch-screen 441.Except touch-screen 441, input unit 440 can also comprise other input equipments 442.Particularly, other input equipments 442 can include but not limited to one or more in physical keyboard, function key (such as volume control button, power switch button etc.), trace ball, mouse, action bars etc.
Display unit 450 can be used for the various menus showing information or the information being supplied to user and the mobile phone 400 inputted by user.Display unit 450 can comprise display floater 451, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display floater 441.Further, touch-screen 441 can cover display floater 451, when touch-screen 441 detects thereon or after neighbouring touch operation, send processor 480 to determine the type of touch event, on display floater 451, provide corresponding vision to export with preprocessor 480 according to the type of touch event.Although in the diagram, touch-screen 441 and display floater 451 be as two independently parts to realize input and the input function of mobile phone 400, but in certain embodiments, can by integrated to touch-screen 441 and display floater 451 and realize the input and output function of mobile phone 400.
Close to optical sensor 460, can detect and whether have object to come close to or in contact with mobile phone, when mobile phone 400 moves in one's ear, display floater 451 and/or backlight can be closed.
Mobile phone 400 can also comprise other transducer, such as ambient light sensor 410, the light and shade of environmentally light can regulate the brightness of display floater 451; Mobile phone 400 is other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 470, loud speaker 471, microphone 472 can provide the audio interface between user and mobile phone 400.Voicefrequency circuit 470 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 471, by loud speaker 471 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 472, be converted to voice data after being received by voicefrequency circuit 470, then voice data exported to RF circuit 420 to send to such as another mobile phone, or export voice data to memory 430 to process further.
Processor 480 is control centres of mobile phone 400, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 430 and/or module is stored in by running or performing, and call the data be stored in memory 430, perform various function and the deal with data of mobile phone 400, thus integral monitoring is carried out to mobile phone.Optionally, processor 480 can comprise one or more processing unit; Preferably, processor 480 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 480.
Mobile phone 400 also comprises the power supply 490 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 480 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 400 can also comprise Wireless Fidelity, and (wirelessfidelity is called for short: WiFi) module, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, close to optical sensor 460 also for carrying out in the process of voice call at mobile terminal, uploaded state information.According to described state information, processor 480 also for obtaining the described described state information reported close to optical sensor, and judges that whether the described state close to optical sensor is abnormal; If the described abnormal state close to optical sensor, then close described close to optical sensor in the process of described voice call.
The mobile terminal of the present embodiment, may be used for the technical scheme performing the control method close to optical sensor that any embodiment of the present invention provides, it realizes principle and technique effect is similar, repeats no more herein.
In embodiments of the present invention, processor 480 when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is invalid data, then judge the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data; Or
If described state information is empty, then judge the described abnormal state close to optical sensor.
Further, processor 480 when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is valid data, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor, the initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
Further, ambient light sensor 410 is also for reporting ambient light intensity change information;
Processor 480 when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
Judge that whether the described state close to optical sensor is abnormal according to described state information and described ambient light intensity change information; If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
Further, processor 480 when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is valid data, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
Further, processor 480 when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
Judge that whether the described state close to optical sensor is abnormal according to the ambient light intensity change information that the ambient light sensor of described state information and described mobile terminal reports; If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
In embodiments of the present invention, touch-screen 441 for closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
The mobile terminal of the present embodiment, may be used for the technical scheme performing the control method close to optical sensor that any embodiment of the present invention provides, it realizes principle and technique effect is similar, repeats no more herein.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the application contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to the technical scheme of the application to be described, is not intended to limit; Although with reference to previous embodiment to present application has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of each embodiment technical scheme of the application.

Claims (21)

1. close to a control method for optical sensor, it is characterized in that, comprising:
Carry out at mobile terminal in the process of voice call, obtain the state information reported close to optical sensor of described mobile terminal;
Judge that whether the described state close to optical sensor is abnormal according to described state information;
If the described abnormal state close to optical sensor, then close described close to optical sensor in the process of described voice call.
2. method according to claim 1, is characterized in that, describedly judges whether the described state close to optical sensor comprises extremely according to described state information:
If described state information is invalid data, then judge the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data; Or
If described state information is empty, then judge the described abnormal state close to optical sensor.
3. method according to claim 1 and 2, is characterized in that, describedly judges whether the described state close to optical sensor comprises extremely according to described state information:
If described state information is valid data, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor, the initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
4. method according to claim 1 and 2, is characterized in that, describedly judges whether the described state close to optical sensor comprises extremely according to described state information:
Judge that whether the described state close to optical sensor is abnormal according to the ambient light intensity change information that the ambient light sensor of described state information and described mobile terminal reports;
If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor;
The initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
5. method according to claim 1 and 2, is characterized in that, describedly judges whether the described state close to optical sensor comprises extremely according to described state information:
If described state information is valid data, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor;
The initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
6. want the method described in 1 or 2 according to right, it is characterized in that, describedly judge whether the described state close to optical sensor comprises extremely according to described state information:
Judge that whether the described state close to optical sensor is abnormal according to the ambient light intensity change information that the ambient light sensor of described state information and described mobile terminal reports;
If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor;
The initial time of described preset time period is the initial time that described mobile terminal carries out voice call;
Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
7. the method according to any one of claim 1-6, is characterized in that, described method also comprises:
Closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
8. close to a control device for optical sensor, it is characterized in that, comprising:
Acquisition module, for carrying out in the process of voice call at mobile terminal, obtains the state information reported close to optical sensor of described mobile terminal;
Judge module, for judging that according to described state information whether the described state close to optical sensor is abnormal;
Processing module, if for the described abnormal state close to optical sensor, then closes described close to optical sensor in the process of described voice call.
9. device according to claim 8, is characterized in that, described judge module comprises:
First judging unit, if be invalid data for described state information, then judges the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data; And/or
Second judging unit, if be empty for described state information, then judges the described abnormal state close to optical sensor.
10. device according to claim 8, is characterized in that, described judge module comprises:
3rd judging unit, if be valid data for described state information, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
11. devices according to claim 8, is characterized in that, described judge module comprises:
4th judging unit, the ambient light intensity change information for reporting according to the ambient light sensor of described state information and described mobile terminal judges that whether the described state close to optical sensor is abnormal; If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
12. devices according to claim 8, is characterized in that, described judge module comprises:
5th judging unit, if be valid data for described state information, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
13. devices according to claim 8, is characterized in that, described judge module comprises:
6th judging unit, the ambient light intensity change information for reporting according to the ambient light sensor of described state information and described mobile terminal judges that whether the described state close to optical sensor is abnormal; If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
14. devices according to Claim 8 described in-13 any one, it is characterized in that, described device also comprises:
Light display panel module, for closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
15. 1 kinds of mobile terminals, is characterized in that, comprising:
Close to optical sensor, for carrying out in the process of voice call at mobile terminal, uploaded state information;
Processor, for obtaining the described described state information reported close to optical sensor;
Described processor, also for judging that according to described state information whether the described state close to optical sensor is abnormal; If the described abnormal state close to optical sensor, then close described close to optical sensor in the process of described voice call.
16. mobile terminals according to claim 15, is characterized in that, described processor when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is invalid data, then judge the described abnormal state close to optical sensor; Described invalid data be from close to data with away from the different data of data; Wherein, describedly first predetermined threshold value is less than for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data; Or
If described state information is empty, then judge the described abnormal state close to optical sensor.
17. mobile terminals according to claim 15, is characterized in that, described processor when judging that according to described state information the described state close to optical sensor is whether abnormal, specifically for:
If described state information is valid data, and the described state information got in preset time period does not comprise away from data, then judge the described abnormal state close to optical sensor, the initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
18. mobile terminals according to claim 15, is characterized in that, described mobile terminal also comprises:
Ambient light sensor, for reporting ambient light intensity change information;
Described processor, when judging that according to described state information whether the described state close to optical sensor is abnormal, specifically for:
Judge that whether the described state close to optical sensor is abnormal according to described state information and described ambient light intensity change information; If described state information is valid data, the described state information got in preset time period does not comprise away from data, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises described away from data with close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
19. mobile terminals according to claim 15, is characterized in that, described processor, when judging that according to described state information whether the described state close to optical sensor is abnormal, specifically for:
If described state information is valid data, and the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
20. mobile terminals according to claim 15, is characterized in that, described mobile terminal also comprises: ambient light sensor, for reporting ambient light intensity change information;
Described processor, when judging that according to described state information whether the described state close to optical sensor is abnormal, specifically for:
Judge that whether the described state close to optical sensor is abnormal according to the ambient light intensity change information that the ambient light sensor of described state information and described mobile terminal reports; If described state information is valid data, the number close to data comprised in the described state information got in preset time period is more than or equal to the 3rd predetermined threshold value, and the change of the ambient light intensity of described mobile terminal exceeds the second predetermined threshold value, then judge the described abnormal state close to optical sensor; The initial time of described preset time period is the initial time that described mobile terminal carries out voice call; Described valid data comprises away from data and described close to data; Describedly be less than first predetermined threshold value for representing described close to the distance between optical sensor and barrier close to data; Describedly be more than or equal to described first predetermined threshold value for representing described close to the distance between optical sensor and described barrier away from data.
21. mobile terminals according to claim 15-20, it is characterized in that, described mobile terminal also comprises:
Touch-screen, for closedown described close to optical sensor after, under the state that the display screen of described mobile terminal is turned off the light, if detect, the physical button on described mobile terminal is triggered, then light described display screen.
CN201480041100.7A 2014-09-30 2014-09-30 Close to the control method of optical sensor, device and mobile terminal Active CN105519086B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/087965 WO2016049861A1 (en) 2014-09-30 2014-09-30 Method and device for controlling proximity optical sensor, and mobile terminal

Publications (2)

Publication Number Publication Date
CN105519086A true CN105519086A (en) 2016-04-20
CN105519086B CN105519086B (en) 2019-04-16

Family

ID=55629288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480041100.7A Active CN105519086B (en) 2014-09-30 2014-09-30 Close to the control method of optical sensor, device and mobile terminal

Country Status (2)

Country Link
CN (1) CN105519086B (en)
WO (1) WO2016049861A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060274A (en) * 2016-07-14 2016-10-26 广东欧珀移动通信有限公司 Method and device for reporting ambient light sensor data and mobile terminal
CN106199620A (en) * 2016-07-11 2016-12-07 广东欧珀移动通信有限公司 Data processing method, data handling system and terminal unit
CN106713572A (en) * 2016-12-27 2017-05-24 广东欧珀移动通信有限公司 Data reporting control method, device and terminal
CN107765232A (en) * 2017-09-27 2018-03-06 歌尔科技有限公司 The calibration method and device of proximity transducer
CN108989490A (en) * 2018-06-06 2018-12-11 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
CN109448641A (en) * 2018-11-30 2019-03-08 Oppo广东移动通信有限公司 Method for controlling backlight thereof and device, computer-readable medium and electronic equipment
CN109542279A (en) * 2018-10-30 2019-03-29 维沃移动通信有限公司 A kind of terminal equipment control method and terminal device
CN110580879A (en) * 2018-06-07 2019-12-17 华为技术有限公司 Terminal device and display screen control method
CN111182115A (en) * 2019-12-27 2020-05-19 北京华为数字技术有限公司 Anomaly detection method and device for proximity sensor and mobile terminal

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
CN102917124A (en) * 2012-09-27 2013-02-06 东莞宇龙通信科技有限公司 Method for dynamically adjusting threshold of distance sensor, and mobile terminal
US20130260834A1 (en) * 2012-04-03 2013-10-03 Voxer Ip Llc Proximity detection system for operating a mobile communication device in either a handset mode or speakerphone mode
CN103353621A (en) * 2013-06-14 2013-10-16 广东欧珀移动通信有限公司 Method for calibrating proximity sensor of mobile terminal, and mobile terminal

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
US20130260834A1 (en) * 2012-04-03 2013-10-03 Voxer Ip Llc Proximity detection system for operating a mobile communication device in either a handset mode or speakerphone mode
CN102917124A (en) * 2012-09-27 2013-02-06 东莞宇龙通信科技有限公司 Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN103353621A (en) * 2013-06-14 2013-10-16 广东欧珀移动通信有限公司 Method for calibrating proximity sensor of mobile terminal, and mobile terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106199620B (en) * 2016-07-11 2018-09-21 广东欧珀移动通信有限公司 Data processing method, data processing system and terminal device
CN106199620A (en) * 2016-07-11 2016-12-07 广东欧珀移动通信有限公司 Data processing method, data handling system and terminal unit
CN106060274B (en) * 2016-07-14 2019-08-30 Oppo广东移动通信有限公司 A kind of report method, device and the mobile terminal of ambient light sensor data
CN106060274A (en) * 2016-07-14 2016-10-26 广东欧珀移动通信有限公司 Method and device for reporting ambient light sensor data and mobile terminal
CN106713572A (en) * 2016-12-27 2017-05-24 广东欧珀移动通信有限公司 Data reporting control method, device and terminal
CN106713572B (en) * 2016-12-27 2019-12-06 Oppo广东移动通信有限公司 Data reporting control method, device and terminal
CN107765232A (en) * 2017-09-27 2018-03-06 歌尔科技有限公司 The calibration method and device of proximity transducer
CN107765232B (en) * 2017-09-27 2023-10-24 歌尔科技有限公司 Calibration method and device of proximity sensor
CN108989490A (en) * 2018-06-06 2018-12-11 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
CN108989490B (en) * 2018-06-06 2020-04-28 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium, and computer apparatus
CN110580879B (en) * 2018-06-07 2021-07-20 华为技术有限公司 Terminal device and display screen control method
CN110580879A (en) * 2018-06-07 2019-12-17 华为技术有限公司 Terminal device and display screen control method
CN109542279A (en) * 2018-10-30 2019-03-29 维沃移动通信有限公司 A kind of terminal equipment control method and terminal device
CN109448641A (en) * 2018-11-30 2019-03-08 Oppo广东移动通信有限公司 Method for controlling backlight thereof and device, computer-readable medium and electronic equipment
CN111182115B (en) * 2019-12-27 2022-06-10 荣耀终端有限公司 Method and device for detecting abnormity of proximity sensor and mobile terminal
CN111182115A (en) * 2019-12-27 2020-05-19 北京华为数字技术有限公司 Anomaly detection method and device for proximity sensor and mobile terminal

Also Published As

Publication number Publication date
CN105519086B (en) 2019-04-16
WO2016049861A1 (en) 2016-04-07

Similar Documents

Publication Publication Date Title
CN105519086A (en) Method and device for controlling proximity optical sensor, and mobile terminal
CN104135500B (en) The method and system that prompting application upgrades
CN103458124B (en) A kind of shutdown processing method of terminal, device and terminal equipment
CN102833419B (en) Method and terminal for controlling screen state
CN102917326B (en) The communication means of double card bilateral terminal, device and double card bilateral terminal
CN105430600A (en) Data transmission method and terminal
CN104657105A (en) Method and device for starting voice input function of terminal
CN104427083A (en) Volume adjusting method and device
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN104383681A (en) Game process control method and device as well as mobile terminal
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN106528212A (en) Application starting method and terminal
CN104850274A (en) Method and device for realizing key function by infrared induction
CN104657666A (en) Method and device for optimizing terminal operation environment
CN102811287A (en) Communication method and device thereof
CN103312597B (en) A kind of speech message generation method and device
CN103561400A (en) Method for initiating communication, device thereof and mobile terminal
CN105303361A (en) Alarm clock adjusting method and device as well as terminal
CN103399705A (en) Method, device and equipment for remotely controlling terminal equipment
CN104133757A (en) Method for obtaining memory information and terminal
CN103312907B (en) Voice channel allocation management method, voice server and communication system
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
CN105120181A (en) Image pickup method and device of mobile terminal
CN103828335A (en) Terminal and method for automatically answering incoming calls
CN106708633A (en) Method for increasing WiFi workstation mode disabling speed of terminal, and mobile terminal

Legal Events

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