CN105975090A - Event-reporting control method and device for proximity sensor and mobile terminal - Google Patents

Event-reporting control method and device for proximity sensor and mobile terminal Download PDF

Info

Publication number
CN105975090A
CN105975090A CN201610454111.9A CN201610454111A CN105975090A CN 105975090 A CN105975090 A CN 105975090A CN 201610454111 A CN201610454111 A CN 201610454111A CN 105975090 A CN105975090 A CN 105975090A
Authority
CN
China
Prior art keywords
proximity transducer
event
event information
mobile terminal
preset time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610454111.9A
Other languages
Chinese (zh)
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610454111.9A priority Critical patent/CN105975090A/en
Publication of CN105975090A publication Critical patent/CN105975090A/en
Pending legal-status Critical Current

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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an event-reporting control method and device for a proximity sensor and a mobile terminal. The method includes the steps that when then proximity sensor is used by a current application, whether event information reported by the proximity sensor is received in first preset time or not is judged; if it is judged that the event information reported by the proximity sensor is not received in the first preset time, the proximity sensor is controlled to report the event information again in second preset time. By means of the method, when it is judged that the event information reported by the proximity sensor is not received in the first preset time, the proximity sensor is controlled to report the event information again in the second preset time, so that the mobile terminal obtains the event information reported by the proximity sensor in time, and it is accordingly avoided that the mobile terminal misses the event information reported by the proximity sensor, and the state of the mobile terminal can not be adjusted in time.

Description

The control method of proximity transducer reported event, device and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to the control method of a kind of proximity transducer reported event, device And mobile terminal.
Background technology
Along with maturation and the development of mobile communication technology, the function of mobile terminal such as mobile phone gets more and more, and people pass through mobile phone It is possible not only to carry out conversing, sending short messages, it is also possible to carrying out paying, storing individual privacy information etc., therefore, mobile phone becomes For the part that people's daily life is indispensable.
At present, in order to prevent user misoperation mobile terminal, or mobile terminal is in the power consumption that bright screen state causes, close Sensor has been widely used in each application program of mobile terminal, such as, in communication process, when mobile phone is near in one's ear, The infrared light intensity being reflected received according to proximity transducer controls mobile terminal and puts out screen, when mobile phone is away from time in one's ear, The infrared light intensity being reflected received according to proximity transducer controls the screen of mobile terminal and lights, and converses to reduce False triggering to mobile terminal in journey.The most such as, during using fingerprint to control in the terminal, according to close to sensing Information received in device controls the duty of fingerprint sensor.Specifically, judging to move by proximity transducer When dynamic terminal is in object proximity state, control fingerprint sensor in a dormant state.Judging to move by proximity transducer When dynamic terminal is in object away from state, control fingerprint sensor in running order.
The state using proximity transducer is controlled by the operating system of mobile terminal, and control process includes state reporting, shape State accepts, state processing, changing interface, call etc..Control process is complex, and owing to mobile terminal using Being on the increase of application program in proximity transducer, system needs event to be processed to get more and more, and system easily goes out present condition leakage The problem identified, such as, the layer that drives in mobile terminal has reported the proximity state of proximity transducer, but in mobile terminal Upper strata do not receive, thus so that mobile terminal can not carry out subsequent treatment according to the proximity state of proximity transducer.
Summary of the invention
The purpose of the present invention is intended to solve one of above-mentioned technical problem the most to a certain extent.
To this end, the first of the present invention purpose is to propose the control method of a kind of proximity transducer reported event, the method exists When judging not receive in the first Preset Time the event information that proximity transducer reports, control proximity transducer second Reported event information again in Preset Time so that mobile terminal can get the event information that proximity transducer reports in time, Thus avoid the event information that mobile terminal omission proximity transducer reports and the feelings failing to adjust in time the state of mobile terminal The generation of condition.
Second object of the present invention is to propose the control device of a kind of proximity transducer reported event.
Third object of the present invention is to propose a kind of mobile terminal.
Fourth object of the present invention is to propose a kind of mobile terminal.
To achieve these goals, the control method of the proximity transducer reported event of first aspect present invention embodiment, including: When current application program uses proximity transducer, it is judged that whether receive on described proximity transducer in the first Preset Time The event information of report;If judging not receive in the first Preset Time the event information that proximity transducer reports, then control Described proximity transducer reported event information again in the second Preset Time.
The control method of proximity transducer reported event according to embodiments of the present invention, uses close to sensing in current application program During device, it is judged that whether receive the event information that proximity transducer reports in the first Preset Time, and judging first When not receiving the event information that proximity transducer reports in Preset Time, control proximity transducer in the second Preset Time again Secondary reported event information.Thus so that mobile terminal can get the event information that proximity transducer reports in time, thus Avoid mobile terminal and omit the event information that reports of proximity transducer and the situation that fails to adjust in time the state of mobile terminal Occur, and then mobile terminal can be adjusted according to the event information reported in time by mobile terminal so that mobile terminal More intelligent, improve user's user experience to mobile terminal.
According to one embodiment of present invention, in the second Preset Time, thing is again reported at the described proximity transducer of described control After part information, described method also includes:
The event information again reported according to described proximity transducer controls mobile terminal and performs to operate accordingly.
According to one embodiment of present invention, control mobile at the described event information again reported according to described proximity transducer Before terminal performs operation accordingly, described method also includes:
Judge whether receive, in described second Preset Time, the event information that described proximity transducer reports again;
If receiving the event information that described proximity transducer reports again in judging the second Preset Time, then perform described The event information again reported according to described proximity transducer controls mobile terminal and performs operating procedure accordingly.
According to one embodiment of present invention, described method also includes:
If not receiving the event information that described proximity transducer reports again in judging the second Preset Time, then connect described The event information of nearly sensor is set to predeterminable event, and controls described mobile terminal according to the execution of described predeterminable event accordingly Operation.
According to one embodiment of present invention, described event information includes, close to event with away from event, connecing described in described control Nearly sensor reported event information again in the second Preset Time, including:
Obtain the current proximity values that described proximity transducer receives;
Judge that whether described current proximity values is more than predetermined threshold value;
If judging, described current proximity values is more than predetermined threshold value, it is determined that described mobile terminal is in object proximity state, and Control described proximity transducer and report described close to event in described second Preset Time;
If judging, described current proximity values is not more than predetermined threshold value, it is determined that described mobile terminal is in object away from state, And control described proximity transducer and report described away from event in described second Preset Time.
To achieve these goals, the control device of the proximity transducer reported event of second aspect present invention embodiment, including: Whether the first judge module, for when current application program uses proximity transducer, it is judged that receive in the first Preset Time The event information reported to described proximity transducer;Control module, for not receiving judging in the first Preset Time During the event information that proximity transducer reports, control described proximity transducer reported event information again in the second Preset Time.
The control device of proximity transducer reported event according to embodiments of the present invention, uses close to sensing in current application program During device, it is judged that whether receive the event information that proximity transducer reports in the first Preset Time, and judging first When not receiving the event information that proximity transducer reports in Preset Time, control proximity transducer in the second Preset Time again Secondary reported event information.Thus so that mobile terminal can get the event information that proximity transducer reports in time, thus Avoid mobile terminal and omit the event information that reports of proximity transducer and the situation that fails to adjust in time the state of mobile terminal Occur, and then mobile terminal can be adjusted according to the event information reported in time by mobile terminal so that mobile terminal More intelligent, improve user's user experience to mobile terminal.
According to one embodiment of present invention, described device also includes:
First processing module, reports in the second Preset Time again for controlling described proximity transducer in described control module The event information again reported according to described proximity transducer after event information controls mobile terminal and performs to operate accordingly.
According to one embodiment of present invention, described device also includes:
Second judge module, for judging that whether receiving described proximity transducer in described second Preset Time reports again Event information;
Wherein, described first processing module, it is additionally operable to judging to receive described proximity transducer in the second Preset Time During the event information again reported, the event information again reported according to described proximity transducer controls mobile terminal and performs correspondence Ground operation.
According to one embodiment of present invention, described device also includes:
Second processing module, does not receives, in judging the second Preset Time, the event that described proximity transducer reports again During information, the event information of described proximity transducer is set to predeterminable event, and controls described mobile terminal according to described pre- If event performs to operate accordingly.
According to one embodiment of present invention, described event information includes close to event with away from event, described control module, Specifically for:
Obtain the current proximity values that described proximity transducer receives, and judge whether described current proximity values is more than predetermined threshold value, If judging, described current proximity values is more than predetermined threshold value, it is determined that described mobile terminal is in object proximity state, and controls Described proximity transducer reports described close to event in described second Preset Time, if judging, described current proximity values is little In predetermined threshold value, it is determined that described mobile terminal is in object away from state, and controls described proximity transducer described second Report described away from event in Preset Time.
To achieve these goals, the mobile terminal of third aspect present invention embodiment, including second aspect present invention embodiment The control device of proximity transducer reported event.
Mobile terminal according to embodiments of the present invention, when current application program uses proximity transducer, it is judged that preset first Whether receive the event information that proximity transducer reports in time, and connect judging not receive in the first Preset Time During the event information that nearly sensor reports, control proximity transducer reported event information again in the second Preset Time.Thus, Make mobile terminal can get the event information that proximity transducer reports in time, thus avoid mobile terminal and omit close Event information that sensor reports and the generation that fails to adjust in time the situation of the state of mobile terminal, and then make mobile terminal According to the event information reported in time, mobile terminal can be adjusted so that mobile terminal is more intelligent, improves user User experience to mobile terminal.
To achieve these goals, the mobile terminal of fourth aspect present invention embodiment, described mobile terminal includes housing, place Reason device, memorizer, circuit board and power circuit, wherein, described circuit board is placed in the interior volume that described housing surrounds, Described processor and described memorizer are arranged on described circuit board;Described power circuit, each for for described mobile terminal Individual circuit or device are powered;Described memorizer is used for storing executable program code;Described processor is by reading described storage In device, the executable program code of storage runs the program corresponding with described executable program code, for performing following step Rapid: when current application program uses proximity transducer, it is judged that whether receive on proximity transducer in the first Preset Time The event information of report;If judging not receive in the first Preset Time the event information that proximity transducer reports, then control Proximity transducer reported event information again in the second Preset Time.
Mobile terminal according to embodiments of the present invention, when current application program uses proximity transducer, it is judged that preset first Whether receive the event information that proximity transducer reports in time, and connect judging not receive in the first Preset Time During the event information that nearly sensor reports, control proximity transducer reported event information again in the second Preset Time.Thus, Make mobile terminal can get the event information that proximity transducer reports in time, thus avoid mobile terminal and omit close Event information that sensor reports and the generation that fails to adjust in time the situation of the state of mobile terminal, and then make mobile terminal According to the event information reported in time, mobile terminal can be adjusted so that mobile terminal is more intelligent, improves user User experience to mobile terminal.
Aspect and advantage that the present invention adds will part be given in the following description, and part will become bright from the following description Aobvious, or recognized by the practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or that add aspect and advantage will be apparent from from the following description of the accompanying drawings of embodiments With easy to understand, wherein,
Fig. 1 is the flow chart of the control method of proximity transducer reported event according to an embodiment of the invention.
Fig. 2 is the flow chart of the control method of proximity transducer reported event in accordance with another embodiment of the present invention.
Fig. 3 is the flow chart of the control method of the proximity transducer reported event according to another specific embodiment of the present invention.
Fig. 4 is the structural representation controlling device of proximity transducer reported event according to an embodiment of the invention.
Fig. 5 is the structural representation controlling device of proximity transducer reported event in accordance with another embodiment of the present invention.
Reference:
First judge module 110, control module the 120, first processing module the 130, second judge module 140 and second process Module 150.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, the most identical Or similar label represents same or similar element or has the element of same or like function.Retouch below with reference to accompanying drawing The embodiment stated is exemplary, it is intended to is used for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the control method of proximity transducer reported event, device and the mobile terminal of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the control method of proximity transducer reported event according to an embodiment of the invention.Wherein, need It is noted that the control method of the proximity transducer reported event of this embodiment is applied in mobile terminal, this mobile terminal E.g. smart mobile phone, panel computer etc. can have the hardware device of various operation.
As it is shown in figure 1, the control method of this proximity transducer reported event comprises the following steps:
Whether S11, when current application program uses proximity transducer, it is judged that receive in the first Preset Time close to sensing The event information that device reports.
Wherein, event information can include but not limited to close to event with away from event.
Wherein, the first Preset Time is to pre-set in mobile terminal, and such as, the first Preset Time is 200ms, currently When application program uses proximity transducer, if mobile terminal is set in advance in current application program use proximity transducer, Proximity transducer needs reported event information in 200ms, when using proximity transducer in follow-up current application program, and can Judge whether to receive in 200ms the event information that proximity transducer reports.
Wherein it is desired to be understood by, current application program is to need in use in mobile terminal to be applied to proximity transducer Program, such as, current application program can be to control the program of call, the program of control mobile terminal automatic backlight or lead to Cross the program etc. that fingerprint sensor is controlled by proximity transducer.
S12, if judging not receive in the first Preset Time the event information that proximity transducer reports, then controls close to passing Sensor reported event information again in the second Preset Time.
Specifically, in the first Preset Time, do not receive proximity transducer in the application layer judging current application program to report Event information time, can again send instruction to driving layer to send, then, after driving layer to receive and again send, according to Intervalometer is timed by the second Preset Time, and obtains the current proximity values that proximity transducer receives, it is judged that the most close Whether value is more than predetermined threshold value, if judging, current proximity values is more than predetermined threshold value, it is determined that mobile terminal is in object proximity State, and control proximity transducer and report close to event in the second Preset Time.
If it addition, judge that current proximity values is not more than predetermined threshold value, it is determined that mobile terminal is in object away from state, and Control proximity transducer to report away from event in the second Preset Time.
Wherein, the second Preset Time is to pre-set in mobile terminal, and such as, the second Preset Time is 200ms, is receiving When transmission to the event information again sending proximity transducer instructs, can be 200ms by the set of time in intervalometer.
Wherein, predetermined threshold value is to pre-set in mobile terminal, and the size of predetermined threshold value can be 900-1000, such as, Predetermined threshold value is 1000.
Such as, predetermined threshold value is 1000, in communication process, sends proximity transducer at the driving layer monitoring smart mobile phone Event information, and the application layer of smart mobile phone does not receives the event information of the proximity transducer reported at the first Preset Time Time, the application layer of smart mobile phone can send instruction again to driving layer to send, drive layer after receiving and again sending instruction, Intervalometer can be set according to the second Preset Time, and detect the current infra-red intensity in proximity transducer, it is assumed that be the most infrared Line strength value is 1050, can determine that current infra-red intensity value is more than predetermined threshold value, now by comparing, it may be determined that intelligence hands Machine is in object proximity state, and wherein, object proximity state is corresponding with close to event, the thing in determining proximity transducer Part information is after event, drives layer again to send the event information of proximity transducer to application layer.
In one embodiment of the invention, as in figure 2 it is shown, after step s 12, it is also possible to include S13.
S13, the event information again reported according to proximity transducer controls mobile terminal and performs to operate accordingly.
Wherein it is desired to be understood by, event information is different, and mobile terminal operates difference performedly.Event information with held Corresponding relation between the operation of row is that mobile terminal pre-sets according to the functional requirement of current application program.
Such as, in communication process, if monitor proximity transducer should reported event information, and do not receive reception close During the event information that sensor reports, mobile terminal can send instruction again to driving layer to send, and drives layer again to detect and connects The event information that nearly sensor is current produced, and again report the event information of proximity transducer, if mobile terminal is again Receive event information that proximity transducer reports for close to event, then control mobile terminal screen and put out screen, thus, can reduce To the maloperation of mobile terminal and the electric quantity consumption that reduces screen in communication process.If mobile terminal receives and again receives The event information that nearly sensor reports for away from event, then controls mobile terminal and lights screen.
The most such as, during the duty of fingerprint sensor being controlled by proximity transducer, connect if monitoring Nearly sensor should reported event information, and do not receive when receiving event information that proximity transducer reports, mobile terminal can Instruction is again sent to driving layer to send, the event information that driving layer is current produced by again detecting proximity transducer, and again The secondary event information reporting proximity transducer, if mobile terminal receives event information that proximity transducer reports again for connecing Nearly event, then control the fingerprint sensing in mobile terminal in a dormant state, thus, can avoid mobile terminal is placed on trousers The battery consumption that the fingerprint recognition caused in pocket causes.If mobile terminal reception again receives proximity transducer and reports Event information be away from event, then the fingerprint sensing controlled in mobile terminal is in running order.
Wherein it is desired to be understood by, after proximity transducer a period of time usable by the current application, close monitoring After the state-event of sensor changes, the information that the state-event of proximity transducer changes can be reported, as Fruit monitors application layer and does not receives the information that the state-event of proximity transducer changes, then control proximity transducer again Sending the information that state-event changes, the information that mobile terminal changes according to the state-event again received controls Mobile terminal performs corresponding operation.
It is to say, after the event information execution respective operations that mobile terminal reports according to proximity transducer, if monitored Event information in proximity transducer does not changes, then control proximity transducer no longer reported event information, connect monitoring After event information in nearly sensor changes, such as, become away from event from close to event, or become by away from event For close to event, control proximity transducer reported event change information, if application layer receives the thing that proximity transducer reports Part change information, then control mobile terminal according to the event information after change and perform respective operations.
Such as, in communication process, user mobile phone be placed on ear converse time, mobile terminal puts out screen, is monitoring User is by mobile phone during ear is lifted down, and the state of proximity transducer is become object away from state from object proximity state, Now, controlling proximity transducer reported event change information, if monitoring driving layer to have reported event change information, and supervising Control does not receives event change information to application layer, then control mobile terminal adjusts performed in time according to event change information Operation.
In summary it can be seen, this embodiment receive the event information that proximity transducer reports monitoring, and does not receives During the event information reported to proximity transducer, control proximity transducer reported event information again so that mobile terminal can Get the event information that proximity transducer reports in time, thus avoid mobile terminal and omit the event that proximity transducer reports Information and fail to adjust in time the generation of the situation of the state of mobile terminal.
The control method of proximity transducer reported event according to embodiments of the present invention, uses close to sensing in current application program During device, it is judged that whether receive the event information that proximity transducer reports in the first Preset Time, and judging first When not receiving the event information that proximity transducer reports in Preset Time, control proximity transducer in the second Preset Time again Secondary reported event information.Thus so that mobile terminal can get the event information that proximity transducer reports in time, thus Avoid mobile terminal and omit the event information that reports of proximity transducer and the situation that fails to adjust in time the state of mobile terminal Occur, and then mobile terminal can be adjusted according to the event information reported in time by mobile terminal so that mobile terminal More intelligent, improve user's user experience to mobile terminal.
Fig. 3 is the flow chart of the control method of the proximity transducer reported event according to another embodiment of the present invention.Wherein, It should be noted that the control method of the proximity transducer reported event of this embodiment is applied in mobile terminal, this moves end End e.g. smart mobile phone, panel computer etc. can have the hardware device of various operation.
As it is shown on figure 3, the control method of this proximity transducer reported event comprises the following steps:
Whether S31, when current application program uses proximity transducer, it is judged that receive in the first Preset Time close to sensing The event information that device reports.
Wherein, event information can include but not limited to close to event with away from event.
Wherein, the first Preset Time is to pre-set in mobile terminal, and such as, the first Preset Time is 200ms, currently When application program uses proximity transducer, if mobile terminal is set in advance in current application program use proximity transducer, Proximity transducer needs reported event information in 200ms, when using proximity transducer in follow-up current application program, and can Judge whether to receive in 200ms the event information that proximity transducer reports.
Wherein it is desired to be understood by, current application program is to need in use in mobile terminal to be applied to proximity transducer Program, such as, current application program can be to control the program of call, the program of control mobile terminal automatic backlight or lead to Cross the program etc. that fingerprint sensor is controlled by proximity transducer.
S32, if judging not receive in the first Preset Time the event information that proximity transducer reports, then controls close to passing Sensor reported event information again in the second Preset Time.
Specifically, in the first Preset Time, do not receive proximity transducer in the application layer judging current application program to report Event information time, can again send instruction to driving layer to send, then, after driving layer to receive and again send, according to Intervalometer is timed by the second Preset Time, and obtains the current proximity values that proximity transducer receives, it is judged that the most close Whether value is more than predetermined threshold value, if judging, current proximity values is more than predetermined threshold value, it is determined that mobile terminal is in object proximity State, and control proximity transducer and report close to event in the second Preset Time.
If it addition, judge that current proximity values is not more than predetermined threshold value, it is determined that mobile terminal is in object away from state, and Control proximity transducer to report away from event in the second Preset Time.
Wherein, the second Preset Time is to pre-set in mobile terminal, and such as, the second Preset Time is 200ms, is receiving When transmission to the event information again sending proximity transducer instructs, can be 200ms by the set of time in intervalometer.
Wherein, predetermined threshold value is to pre-set in mobile terminal, and the size of predetermined threshold value can be 900-1000, such as, Predetermined threshold value is 1000.
Such as, predetermined threshold value is 1000, in communication process, sends proximity transducer at the driving layer monitoring smart mobile phone Event information, and the application layer of smart mobile phone does not receives the event information of the proximity transducer reported at the first Preset Time Time, the application layer of smart mobile phone can send instruction again to driving layer to send, drive layer after receiving and again sending instruction, Intervalometer can be set according to the second Preset Time, and detect the current infra-red intensity in proximity transducer, it is assumed that be the most infrared Line strength value is 1050, can determine that current infra-red intensity value is more than predetermined threshold value, now by comparing, it may be determined that intelligence hands Machine is in object proximity state, and wherein, object proximity state is corresponding with close to event, the thing in determining proximity transducer Part information is after event, drives layer again to send the event information of proximity transducer to application layer.
S33, it is judged that whether receive the event information that proximity transducer reports again in the second Preset Time.
S34, if receiving the event information that proximity transducer reports again, then according to close to passing in judging the second Preset Time The event information that sensor reports again controls mobile terminal and performs to operate accordingly.
Wherein it is desired to be understood by, event information is different, and mobile terminal operates difference performedly.Event information with held Corresponding relation between the operation of row is that mobile terminal pre-sets according to the functional requirement of current application program.
Such as, in communication process, if monitor proximity transducer should reported event information, and do not receive reception close During the event information that sensor reports, mobile terminal can send instruction again to driving layer to send, and drives layer again to detect and connects The event information that nearly sensor is current produced, and again report the event information of proximity transducer, if mobile terminal is again Receive event information that proximity transducer reports for close to event, then control mobile terminal screen and put out screen, thus, can reduce To the maloperation of mobile terminal and the electric quantity consumption that reduces screen in communication process.If mobile terminal receives and again receives The event information that nearly sensor reports for away from event, then controls mobile terminal and lights screen.
The most such as, during the duty of fingerprint sensor being controlled by proximity transducer, connect if monitoring Nearly sensor should reported event information, and do not receive when receiving event information that proximity transducer reports, mobile terminal can Instruction is again sent to driving layer to send, the event information that driving layer is current produced by again detecting proximity transducer, and again The secondary event information reporting proximity transducer, if mobile terminal receives event information that proximity transducer reports again for connecing Nearly event, then control the fingerprint sensing in mobile terminal in a dormant state, thus, can avoid mobile terminal is placed on trousers The battery consumption that the fingerprint recognition caused in pocket causes.If mobile terminal reception again receives proximity transducer and reports Event information be away from event, then the fingerprint sensing controlled in mobile terminal is in running order.
S35, if not receiving the event information that proximity transducer reports again in judging the second Preset Time, then will be close to passing The event information of sensor is set to predeterminable event, and controls mobile terminal and perform to operate accordingly according to predeterminable event.
Wherein, predeterminable event is the event pre-set according to the function required for current application program, such as, is conversing Cheng Zhong, can be disposed remotely from event by predeterminable event.The most such as, fingerprint biography is being controlled by the event information of proximity transducer During sensor, predeterminable event can be disposed remotely from event.
In one embodiment of the invention, after proximity transducer a period of time usable by the current application, monitoring After the state-event of proximity transducer changes, the information that the state-event of proximity transducer changes can be reported, If monitoring application layer not receive the information that the state-event of proximity transducer changes, then control proximity transducer again The information that secondary transmission state-event changes, the information control that mobile terminal changes according to the state-event again received Mobile terminal processed performs corresponding operation.
It is to say, after the event information execution respective operations that mobile terminal reports according to proximity transducer, if monitored Event information in proximity transducer does not changes, then control proximity transducer no longer reported event information, connect monitoring After event information in nearly sensor changes, such as, become away from event from close to event, or become by away from event For close to event, control proximity transducer reported event change information, if application layer receives the thing that proximity transducer reports Part change information, then control mobile terminal according to the event information after change and perform to operate accordingly.
Such as, in communication process, user mobile phone be placed on ear converse time, mobile terminal puts out screen, is monitoring User is by mobile phone during ear is lifted down, and the state of proximity transducer is become object away from state from object proximity state, Now, controlling proximity transducer reported event change information, if monitoring driving layer to have reported event change information, and supervising Control does not receives event change information to application layer, then control mobile terminal adjusts performed in time according to event change information Operation.
The control method of proximity transducer reported event according to embodiments of the present invention, is judging in the first Preset Time not Receive the event information that proximity transducer reports, it is judged that in the second Preset Time, whether receive nearly sensor again report Event information, and when receiving the event information that nearly sensor reports again, control mobile terminal according to proximity transducer The event information again reported performs to operate accordingly, and when not receiving the event information that nearly sensor reports again, The event information of the proximity transducer of mobile terminal is set to predeterminable event, and controls mobile terminal according to predeterminable event execution Respective operations.Thus so that mobile terminal gets the event information that proximity transducer reports in time, and according to event information Control mobile terminal and carry out operation adjustment in time so that mobile terminal is more intelligent, improves user's use to mobile terminal Family Experience Degree.
In order to realize above-described embodiment, the invention allows for the control of the proximity transducer reported event of a kind of embodiment of the present invention Device processed.
Fig. 4 is the knot controlling device of the proximity transducer reported event of the embodiment of the present invention according to an embodiment of the invention Structure schematic diagram.
As shown in Figure 4, the control device of the proximity transducer reported event of this embodiment of the present invention can include the first judgement mould Block 110 and control module 120, wherein:
First judge module 110 is for when current application program uses proximity transducer, it is judged that in the first Preset Time be No receive the event information that proximity transducer reports.
Wherein, event information can include but not limited to close to event with away from event.
Wherein, the first Preset Time is to pre-set in mobile terminal, and such as, the first Preset Time is 200ms, currently When application program uses proximity transducer, if mobile terminal is set in advance in current application program use proximity transducer, Proximity transducer needs reported event information in 200ms, when using proximity transducer in follow-up current application program, and can Judge whether to receive in 200ms the event information that proximity transducer reports.
Control module 120 for when judging not receive in the first Preset Time the event information that proximity transducer reports, Control proximity transducer reported event information again in the second Preset Time.
Wherein, the second Preset Time is to pre-set in mobile terminal, and such as, the second Preset Time is 200ms, is receiving When transmission to the event information again sending proximity transducer instructs, can be 200ms by the set of time in intervalometer.
Wherein, predetermined threshold value is to pre-set in mobile terminal, and the size of predetermined threshold value can be 900-1000, such as, Predetermined threshold value is 1000.
Such as, predetermined threshold value is 1000, in communication process, sends proximity transducer at the driving layer monitoring smart mobile phone Event information, and the application layer of smart mobile phone does not receives the event information of the proximity transducer reported at the first Preset Time Time, the application layer of smart mobile phone can send instruction again to driving layer to send, drive layer after receiving and again sending instruction, Intervalometer can be set according to the second Preset Time, and detect the current infra-red intensity in proximity transducer, it is assumed that be the most infrared Line strength value is 1050, can determine that current infra-red intensity value is more than predetermined threshold value, now by comparing, it may be determined that intelligence hands Machine is in object proximity state, and wherein, object proximity state is corresponding with close to event, the thing in determining proximity transducer Part information is after event, drives layer again to send the event information of proximity transducer to application layer.
Specifically, control module 120 specifically for: obtain the current proximity values that receives of proximity transducer, and judge to work as Whether front proximity values is more than predetermined threshold value, if judging, current proximity values is more than predetermined threshold value, it is determined that mobile terminal is in thing Body proximity state, and control proximity transducer and report close to event in the second Preset Time, if judging current proximity values not More than predetermined threshold value, it is determined that mobile terminal is in object away from state, and controls proximity transducer in the second Preset Time Report away from event.
It should be noted that the aforementioned explanation to the control method embodiment of proximity transducer reported event is also applied for this The control device of the proximity transducer reported event of embodiment, it is similar that it realizes principle, and here is omitted.
The control device of proximity transducer reported event according to embodiments of the present invention, uses close to sensing in current application program During device, it is judged that whether receive the event information that proximity transducer reports in the first Preset Time, and judging first When not receiving the event information that proximity transducer reports in Preset Time, control proximity transducer in the second Preset Time again Secondary reported event information.Thus so that mobile terminal can get the event information that proximity transducer reports in time, thus Avoid mobile terminal and omit the event information that reports of proximity transducer and the situation that fails to adjust in time the state of mobile terminal Occur, and then mobile terminal can be adjusted according to the event information reported in time by mobile terminal so that mobile terminal More intelligent, improve user's user experience to mobile terminal.
Fig. 5 is the knot controlling device of the proximity transducer reported event of the embodiment of the present invention according to an embodiment of the invention Structure schematic diagram, this embodiment is on the basis of aforementioned embodiment illustrated in fig. 4, as it is shown in figure 5, said apparatus can also include First processing module 130, wherein:
First processing module 130 reports thing for controlling proximity transducer in control module 120 in the second Preset Time again After part information, the event information again reported according to proximity transducer controls mobile terminal and performs to operate accordingly.
In one embodiment of the invention, as it is shown in figure 5, said apparatus can also include the second judge module 140, wherein:
Second judge module 140 is for judging whether to receive in the second Preset Time the event that proximity transducer reports again Information.
Wherein, the first processing module 130 is additionally operable to judging that receiving proximity transducer in the second Preset Time goes up again During the event information reported, the event information again reported according to proximity transducer controls mobile terminal and performs to operate accordingly.
In one embodiment of the invention, as it is shown in figure 5, this device can also include the second processing module 150, this is second years old When processing module 150 does not receives, in judging the second Preset Time, the event information that proximity transducer reports again, will The event information of proximity transducer is set to predeterminable event, and controls mobile terminal and perform to operate accordingly according to predeterminable event.
The control device of proximity transducer reported event according to embodiments of the present invention, is judging in the first Preset Time not Receive the event information that proximity transducer reports, it is judged that in the second Preset Time, whether receive nearly sensor again report Event information, and when receiving the event information that nearly sensor reports again, control mobile terminal according to proximity transducer The event information again reported performs to operate accordingly, and when not receiving the event information that nearly sensor reports again, The event information of the proximity transducer of mobile terminal is set to predeterminable event, and controls mobile terminal according to predeterminable event execution Respective operations.Thus so that mobile terminal gets the event information that proximity transducer reports in time, and according to event information Control mobile terminal and carry out operation adjustment in time so that mobile terminal is more intelligent, improves user's use to mobile terminal Family Experience Degree.
In order to realize above-described embodiment, the present invention also proposes a kind of mobile terminal.
A kind of mobile terminal, including the control device of the proximity transducer reported event of second aspect present invention embodiment.
Mobile terminal according to embodiments of the present invention, when current application program uses proximity transducer, it is judged that preset first Whether receive the event information that proximity transducer reports in time, and connect judging not receive in the first Preset Time During the event information that nearly sensor reports, control proximity transducer reported event information again in the second Preset Time.Thus, Make mobile terminal can get the event information that proximity transducer reports in time, thus avoid mobile terminal and omit close Event information that sensor reports and the generation that fails to adjust in time the situation of the state of mobile terminal, and then make mobile terminal According to the event information reported in time, mobile terminal can be adjusted so that mobile terminal is more intelligent, improves user User experience to mobile terminal.
In order to realize above-described embodiment, the present invention also proposes a kind of mobile terminal, this mobile terminal include housing, processor, Memorizer, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer Arrange on circuit boards;Power circuit, powers for each circuit or the device for mobile terminal;Memorizer can for storage Perform program code;Processor runs and executable program code by reading the executable program code of storage in memorizer Corresponding program, for performing following steps:
Whether S11', when current application program uses proximity transducer, it is judged that receive in the first Preset Time close to biography The event information that sensor reports.
Wherein, event information can include but not limited to close to event with away from event.
Wherein, the first Preset Time is to pre-set in mobile terminal, and such as, the first Preset Time is 200ms, currently When application program uses proximity transducer, if mobile terminal is set in advance in current application program use proximity transducer, Proximity transducer needs reported event information in 200ms, when using proximity transducer in follow-up current application program, and can Judge whether to receive in 200ms the event information that proximity transducer reports.
Wherein it is desired to be understood by, current application program is to need in use in mobile terminal to be applied to proximity transducer Program, such as, current application program can be to control the program of call, the program of control mobile terminal automatic backlight or lead to Cross the program etc. that fingerprint sensor is controlled by proximity transducer.
S12', if judging not receive in the first Preset Time the event information that proximity transducer reports, then controls close Sensor reported event information again in the second Preset Time.
Specifically, in the first Preset Time, do not receive proximity transducer in the application layer judging current application program to report Event information time, can again send instruction to driving layer to send, then, after driving layer to receive and again send, according to Intervalometer is timed by the second Preset Time, and obtains the current proximity values that proximity transducer receives, it is judged that the most close Whether value is more than predetermined threshold value, if judging, current proximity values is more than predetermined threshold value, it is determined that mobile terminal is in object proximity State, and control proximity transducer and report close to event in the second Preset Time.
If it addition, judge that current proximity values is not more than predetermined threshold value, it is determined that mobile terminal is in object away from state, and Control proximity transducer to report away from event in the second Preset Time.
Wherein, the second Preset Time is to pre-set in mobile terminal, and such as, the second Preset Time is 200ms, is receiving When transmission to the event information again sending proximity transducer instructs, can be 200ms by the set of time in intervalometer.
Wherein, predetermined threshold value is to pre-set in mobile terminal, and the size of predetermined threshold value can be 900-1000, such as, Predetermined threshold value is 1000.
Such as, predetermined threshold value is 1000, in communication process, sends proximity transducer at the driving layer monitoring smart mobile phone Event information, and the application layer of smart mobile phone does not receives the event information of the proximity transducer reported at the first Preset Time Time, the application layer of smart mobile phone can send instruction again to driving layer to send, drive layer after receiving and again sending instruction, Intervalometer can be set according to the second Preset Time, and detect the current infra-red intensity in proximity transducer, it is assumed that be the most infrared Line strength value is 1050, can determine that current infra-red intensity value is more than predetermined threshold value, now by comparing, it may be determined that intelligence hands Machine is in object proximity state, and wherein, object proximity state is corresponding with close to event, the thing in determining proximity transducer Part information is after event, drives layer again to send the event information of proximity transducer to application layer.
In one embodiment of the invention, this processor can also include step S13'.
S13', the event information again reported according to proximity transducer controls mobile terminal and performs to operate accordingly.
Wherein it is desired to be understood by, event information is different, and mobile terminal operates difference performedly.Event information with held Corresponding relation between the operation of row is that mobile terminal pre-sets according to the functional requirement of current application program.
Such as, in communication process, if monitor proximity transducer should reported event information, and do not receive reception close During the event information that sensor reports, mobile terminal can send instruction again to driving layer to send, and drives layer again to detect and connects The event information that nearly sensor is current produced, and again report the event information of proximity transducer, if mobile terminal is again Receive event information that proximity transducer reports for close to event, then control mobile terminal screen and put out screen, thus, can reduce To the maloperation of mobile terminal and the electric quantity consumption that reduces screen in communication process.If mobile terminal receives and again receives The event information that nearly sensor reports for away from event, then controls mobile terminal and lights screen.
The most such as, during the duty of fingerprint sensor being controlled by proximity transducer, connect if monitoring Nearly sensor should reported event information, and do not receive when receiving event information that proximity transducer reports, mobile terminal can Instruction is again sent to driving layer to send, the event information that driving layer is current produced by again detecting proximity transducer, and again The secondary event information reporting proximity transducer, if mobile terminal receives event information that proximity transducer reports again for connecing Nearly event, then control the fingerprint sensing in mobile terminal in a dormant state, thus, can avoid mobile terminal is placed on trousers The battery consumption that the fingerprint recognition caused in pocket causes.If mobile terminal reception again receives proximity transducer and reports Event information be away from event, then the fingerprint sensing controlled in mobile terminal is in running order.
Wherein it is desired to be understood by, after proximity transducer a period of time usable by the current application, close monitoring After the state-event of sensor changes, the information that the state-event of proximity transducer changes can be reported, as Fruit monitors application layer and does not receives the information that the state-event of proximity transducer changes, then control proximity transducer again Sending the information that state-event changes, the information that mobile terminal changes according to the state-event again received controls Mobile terminal performs corresponding operation.
It is to say, after the event information execution respective operations that mobile terminal reports according to proximity transducer, if monitored Event information in proximity transducer does not changes, then control proximity transducer no longer reported event information, connect monitoring After event information in nearly sensor changes, such as, become away from event from close to event, or become by away from event For close to event, control proximity transducer reported event change information, if application layer receives the thing that proximity transducer reports Part change information, then control mobile terminal according to the event information after change and perform respective operations.
Such as, in communication process, user mobile phone be placed on ear converse time, mobile terminal puts out screen, is monitoring User is by mobile phone during ear is lifted down, and the state of proximity transducer is become object away from state from object proximity state, Now, controlling proximity transducer reported event change information, if monitoring driving layer to have reported event change information, and supervising Control does not receives event change information to application layer, then control mobile terminal adjusts performed in time according to event change information Operation.
In summary it can be seen, this embodiment receive the event information that proximity transducer reports monitoring, and does not receives During the event information reported to proximity transducer, control proximity transducer reported event information again so that mobile terminal can Get the event information that proximity transducer reports in time, thus avoid mobile terminal and omit the event that proximity transducer reports Information and fail to adjust in time the generation of the situation of the state of mobile terminal.
Mobile terminal according to embodiments of the present invention, when current application program uses proximity transducer, it is judged that preset first Whether receive the event information that proximity transducer reports in time, and connect judging not receive in the first Preset Time During the event information that nearly sensor reports, control proximity transducer reported event information again in the second Preset Time.Thus, Make mobile terminal can get the event information that proximity transducer reports in time, thus avoid mobile terminal and omit close Event information that sensor reports and the generation that fails to adjust in time the situation of the state of mobile terminal, and then make mobile terminal According to the event information reported in time, mobile terminal can be adjusted so that mobile terminal is more intelligent, improves user User experience to mobile terminal.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " tool Body example " or the description of " some examples " etc. means to combine this embodiment or example describes specific features, structure, material Material or feature are contained at least one embodiment or the example of the present invention.In this manual, the signal to above-mentioned term Property statement be necessarily directed to identical embodiment or example.And, the specific features of description, structure, material or spy Point can be to combine in one or more embodiments in office or example in an appropriate manner.Additionally, in the case of the most conflicting, Those skilled in the art can be by the different embodiments described in this specification or example and different embodiment or the spy of example Levy and be combined and combine.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or imply relatively important Property or the implicit quantity indicating indicated technical characteristic.Thus, define " first ", " second " feature permissible Express or implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, Such as two, three etc., unless otherwise expressly limited specifically.
In flow chart or at this, any process described otherwise above or method description are construed as, and represent and include one Or the module of code, fragment or the part of the executable instruction of the more step for realizing specific logical function or process, And the scope of the preferred embodiment of the present invention includes other realization, wherein can not press order that is shown or that discuss, Including according to involved function by basic mode simultaneously or in the opposite order, performing function, this should be by the present invention's Embodiment person of ordinary skill in the field understood.
Represent in flow charts or the logic described otherwise above at this and/or step, for example, it is possible to be considered as reality The sequencing list of the executable instruction of existing logic function, may be embodied in any computer-readable medium, for instruction Execution system, device or equipment (system such as computer based system, including processor or other can perform from instruction System, device or equipment instruction fetch also perform the system instructed) use, or combine these instruction execution systems, device or set Standby and use.For the purpose of this specification, " computer-readable medium " can be any can to comprise, store, communicate, propagate Or transmission procedure for instruction execution system, device or equipment or combines these instruction execution systems, device or equipment and uses Device.The more specifically example (non-exhaustive list) of computer-readable medium includes following: have one or more cloth The electrical connection section (electronic installation) of line, portable computer diskette box (magnetic device), random access memory (RAM), only Read memorizer (ROM), erasable edit read only memory (EPROM or flash memory), fiber device, Yi Jibian Take formula compact disc read-only memory (CDROM).It addition, computer-readable medium can even is that can print described program thereon Paper or other suitable media because then can carry out editing such as by paper or other media are carried out optical scanning, Interpret or be processed to electronically obtain described program with other suitable methods if desired, being then stored in calculating In machine memorizer.
Should be appreciated that each several part of the present invention can realize by hardware, software, firmware or combinations thereof.In above-mentioned reality Execute in mode, software that multiple steps or method in memory and can be performed by suitable instruction execution system with storage or Firmware realizes.Such as, if realized with hardware, with the most the same, available well known in the art under Any one or their combination in row technology realize: have the logic gates for data signal realizes logic function Discrete logic, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), existing Field programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can Completing instructing relevant hardware by program, described program can be stored in a kind of computer-readable recording medium, This program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in each embodiment of the present invention can be integrated in a processing module, it is also possible to be each Individual unit is individually physically present, it is also possible to two or more unit are integrated in a module.Above-mentioned integrated module was both Can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.If described integrated module with The form of software function module realizes and as independent production marketing or when using, it is also possible to be stored in a computer-readable Take in storage medium.
Storage medium mentioned above can be read only memory, disk or CD etc..Although above it has been shown and described that Embodiments of the invention, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as limitation of the present invention, Above-described embodiment can be changed, revises, replace and modification by those of ordinary skill in the art within the scope of the invention.

Claims (12)

1. the control method of a proximity transducer reported event, it is characterised in that comprise the following steps:
When current application program uses proximity transducer, it is judged that whether receive described close to sensing in the first Preset Time The event information that device reports;
If judging not receive in the first Preset Time the event information that proximity transducer reports, then control described close to passing Sensor reported event information again in the second Preset Time.
2. the method for claim 1, it is characterised in that when the described proximity transducer of described control is preset second In again after reported event information, described method also includes:
The event information again reported according to described proximity transducer controls mobile terminal and performs to operate accordingly.
3. the method for claim 1, it is characterised in that in the described thing again reported according to described proximity transducer Before part information controls mobile terminal execution operation accordingly, described method also includes:
Judge whether receive, in described second Preset Time, the event information that described proximity transducer reports again;
If receiving the event information that described proximity transducer reports again in judging the second Preset Time, then perform described The event information again reported according to described proximity transducer controls mobile terminal and performs operating procedure accordingly.
4. method as claimed in claim 3, it is characterised in that described method also includes:
If not receiving the event information that described proximity transducer reports again in judging the second Preset Time, then connect described The event information of nearly sensor is set to predeterminable event, and controls described mobile terminal according to the execution of described predeterminable event accordingly Operation.
5. the method as according to any one of claim 1-4, it is characterised in that described event information include close to event and Away from event, the described proximity transducer of described control reported event information again in the second Preset Time, including:
Obtain the current proximity values that described proximity transducer receives;
Judge that whether described current proximity values is more than predetermined threshold value;
If judging, described current proximity values is more than predetermined threshold value, it is determined that described mobile terminal is in object proximity state, and Control described proximity transducer and report described close to event in described second Preset Time;
If judging, described current proximity values is not more than predetermined threshold value, it is determined that described mobile terminal is in object away from state, And control described proximity transducer and report described away from event in described second Preset Time.
6. the control device of a proximity transducer reported event, it is characterised in that including:
Whether the first judge module, for when current application program uses proximity transducer, it is judged that in the first Preset Time Receive the event information that described proximity transducer reports;
Control module, for when judging not receive in the first Preset Time the event information that proximity transducer reports, Control described proximity transducer reported event information again in the second Preset Time.
7. device as claimed in claim 6, it is characterised in that described device also includes:
First processing module, reports in the second Preset Time again for controlling described proximity transducer in described control module The event information again reported according to described proximity transducer after event information controls mobile terminal and performs to operate accordingly.
8. device as claimed in claim 6, it is characterised in that described device also includes:
Second judge module, for judging that whether receiving described proximity transducer in described second Preset Time reports again Event information;
Wherein, described first processing module, it is additionally operable to judging to receive described proximity transducer in the second Preset Time During the event information again reported, the event information again reported according to described proximity transducer controls mobile terminal and performs correspondence Ground operation.
9. device as claimed in claim 8, it is characterised in that described device also includes:
Second processing module, does not receives, in judging the second Preset Time, the event that described proximity transducer reports again During information, the event information of described proximity transducer is set to predeterminable event, and controls described mobile terminal according to described pre- If event performs to operate accordingly.
10. the device as according to any one of claim 6-9, it is characterised in that described event information includes close to event With away from event, described control module, specifically for:
Obtain the current proximity values that described proximity transducer receives, and judge whether described current proximity values is more than predetermined threshold value, If judging, described current proximity values is more than predetermined threshold value, it is determined that described mobile terminal is in object proximity state, and controls Described proximity transducer reports described close to event in described second Preset Time, if judging, described current proximity values is little In predetermined threshold value, it is determined that described mobile terminal is in object away from state, and controls described proximity transducer described second Report described away from event in Preset Time.
11. 1 kinds of mobile terminals, it is characterised in that include that the proximity transducer as described in any one of claim 6-10 reports The control device of event.
12. 1 kinds of mobile terminals, it is characterised in that described mobile terminal includes housing, processor, memorizer, circuit board And power circuit, wherein, described circuit board is placed in the interior volume that described housing surrounds, described processor and described storage Device is arranged on described circuit board;Described power circuit, powers for each circuit or the device for described mobile terminal;Institute State memorizer for storing executable program code;Described processor is by reading the executable program of storage in described memorizer Code runs the program corresponding with described executable program code, for performing following steps:
When current application program uses proximity transducer, it is judged that whether receive described close to sensing in the first Preset Time The event information that device reports;
If judging not receive in the first Preset Time the event information that proximity transducer reports, then control described close to passing Sensor reported event information again in the second Preset Time.
CN201610454111.9A 2016-06-21 2016-06-21 Event-reporting control method and device for proximity sensor and mobile terminal Pending CN105975090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610454111.9A CN105975090A (en) 2016-06-21 2016-06-21 Event-reporting control method and device for proximity sensor and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610454111.9A CN105975090A (en) 2016-06-21 2016-06-21 Event-reporting control method and device for proximity sensor and mobile terminal

Publications (1)

Publication Number Publication Date
CN105975090A true CN105975090A (en) 2016-09-28

Family

ID=57021426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610454111.9A Pending CN105975090A (en) 2016-06-21 2016-06-21 Event-reporting control method and device for proximity sensor and mobile terminal

Country Status (1)

Country Link
CN (1) CN105975090A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713572A (en) * 2016-12-27 2017-05-24 广东欧珀移动通信有限公司 Data reporting control method, device and terminal
CN106776092A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of condition detection method of proximity transducer, device and terminal
CN107504994A (en) * 2017-08-08 2017-12-22 广东欧珀移动通信有限公司 Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity transducer
CN110233936A (en) * 2019-07-04 2019-09-13 Oppo广东移动通信有限公司 Proximity state preparation method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020167488A1 (en) * 2000-07-17 2002-11-14 Hinckley Kenneth P. Mobile phone operation based upon context sensing
CN102665008A (en) * 2012-05-08 2012-09-12 广东欧珀移动通信有限公司 Detecting algorithm for infrared proximity sensor of touch screen mobile phone
CN102778947A (en) * 2008-06-10 2012-11-14 联发科技股份有限公司 Electronic device and method for non-contact control of electronic device
CN102917124A (en) * 2012-09-27 2013-02-06 东莞宇龙通信科技有限公司 Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN105453002A (en) * 2013-07-31 2016-03-30 苹果公司 Touch controller architecture
CN105630232A (en) * 2014-11-26 2016-06-01 阿尔卑斯电气株式会社 Input device, and control method and program therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020167488A1 (en) * 2000-07-17 2002-11-14 Hinckley Kenneth P. Mobile phone operation based upon context sensing
CN102778947A (en) * 2008-06-10 2012-11-14 联发科技股份有限公司 Electronic device and method for non-contact control of electronic device
CN102665008A (en) * 2012-05-08 2012-09-12 广东欧珀移动通信有限公司 Detecting algorithm for infrared proximity sensor of touch screen mobile phone
CN102917124A (en) * 2012-09-27 2013-02-06 东莞宇龙通信科技有限公司 Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN105453002A (en) * 2013-07-31 2016-03-30 苹果公司 Touch controller architecture
CN105630232A (en) * 2014-11-26 2016-06-01 阿尔卑斯电气株式会社 Input device, and control method and program therefor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙光宇: "《Android物联网开发从入门到实战》", 31 July 2015 *
陈以农: "《计算机科学导论 基于机器人的实践方法》", 31 August 2013 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776092A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of condition detection method of proximity transducer, device and 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
CN107504994A (en) * 2017-08-08 2017-12-22 广东欧珀移动通信有限公司 Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity transducer
CN110233936A (en) * 2019-07-04 2019-09-13 Oppo广东移动通信有限公司 Proximity state preparation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105975090A (en) Event-reporting control method and device for proximity sensor and mobile terminal
CN107968883B (en) Distance state detection method and device, storage medium and electronic equipment
CN103050108B (en) A kind of screen backlight dynamic adjustment method and user terminal
CN106101453A (en) A kind of method controlling screen and terminal
CN107463403A (en) Course control method, device, storage medium and electronic equipment
CN105959461B (en) Screen induction control method and device and terminal equipment
CN108628713B (en) Device detection method and device, storage medium and electronic device
CN105679221A (en) Chromatic aberration detection method and device and terminal
CN104688003A (en) Cooking device
CN111103963A (en) Fingerprint module starting method and device, storage medium and terminal
CN104635918A (en) Control method and control device of electronic equipment and electronic equipment
CN105763803A (en) Control method and device and electronic device
CN110930964B (en) Display screen brightness adjusting method and device, storage medium and terminal
CN105517126A (en) Frequency band processing method and device in communication terminal, and communication terminal
CN106020447A (en) A touch-type electronic apparatus proximity sensor parameter adjusting method and system
CN105741767A (en) Brightness adjusting method, brightness adjusting device and terminal
CN105390120A (en) Bright screen control method and device
CN104678770A (en) Displacement accident detection method and system
CN110634253B (en) Doorbell abnormity warning method and related products
CN116761234A (en) Equipment code matching method and system
CN105159434A (en) Time display method, device and terminal
CN110109529B (en) SD card power supply control method and device, storage medium and electronic equipment
CN106060281A (en) Screen backlight brightness value adjusting method and device applied to electronic terminal
CN105099768A (en) Method and device for prompting networking of electronic equipment
CN103841269A (en) Information processing method and device

Legal Events

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

Application publication date: 20160928

RJ01 Rejection of invention patent application after publication