CN106776092A - A kind of condition detection method of proximity transducer, device and terminal - Google Patents
A kind of condition detection method of proximity transducer, device and terminal Download PDFInfo
- Publication number
- CN106776092A CN106776092A CN201611108535.6A CN201611108535A CN106776092A CN 106776092 A CN106776092 A CN 106776092A CN 201611108535 A CN201611108535 A CN 201611108535A CN 106776092 A CN106776092 A CN 106776092A
- Authority
- CN
- China
- Prior art keywords
- proximity transducer
- proximity
- state
- close
- transducer
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0736—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
Abstract
The embodiment of the invention discloses a kind of condition detection method of proximity transducer, device and terminal, it is related to field of terminal technology, wherein, the method includes:Whether detection proximity transducer reports the state of the proximity transducer;When detecting the proximity transducer and not reporting the state, detect whether the proximity transducer is produced close to interruption;According to the state that the proximity transducer is determined close to interruption testing result;Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.When the embodiment of the present invention can work as proximity transducer and be interfered, the state of accurate detection proximity transducer, it is to avoid the situation of the proximity transducer abnormal state that interference is caused.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of condition detection method of proximity transducer, device and end
End.
Background technology
At present, proximity transducer as terminal standard configuration, realizing that screen lights or extinguish, and the adjust automatically back of the body
Played an important role in the functions such as light.
The proximity transducer configured in terminal is typically infrared proximity transducer.Infrared proximity transducer includes infrared emission
Pipe and infrared receiving tube.First, by infrared transmitting tube along display screen screen orientation, to emission infrared light.Then, by red
Outer reception pipe is converted into electric signal after receiving the infrared light that shelter is reflected, and electric signal is amplified, and (A/D turns with analog-to-digital conversion
Change) treatment, CPU is sent to after obtaining the data signal corresponding to the infrared luminous intensity for reflecting, CPU makees the data signal
For proximity values are further judged.For example, judging the distance between shelter and terminal by proximity values, receive
Infrared luminous intensity is stronger, and proximity values are bigger, then it represents that smaller with the distance between shelter.
For the ease of according to proximity values judge shelter close to or away from, it will usually be positioned proximate to threshold value and away from threshold
Value, is more than or equal to away from threshold value close to threshold value.When proximity values are more than close to threshold value, proximity transducer is produced close to interruption,
Control screen extinguishes.When proximity values are less than away from threshold value, proximity transducer is produced away from interruption, and control screen is lighted.
But, inventor has found that prior art has following defect during execution is of the invention:Work as proximity transducer
When being disturbed by radio frequency etc., proximity values can become big.If proximity values are more than close to threshold value, will produce close to interruption, it is impossible to accurate
The state of proximity transducer is detected, causes accurately control screen.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of condition detection method of proximity transducer, device and terminal, can
The state of accurate detection proximity transducer, it is to avoid the situation of the proximity transducer abnormal state that interference is caused.
In a first aspect, a kind of condition detection method of proximity transducer is the embodiment of the invention provides, including:
Whether detection proximity transducer reports the state of the proximity transducer;
When detecting the proximity transducer and not reporting the state, detect whether the proximity transducer produces and connect
It is near to interrupt;
According to the state that the proximity transducer is determined close to interruption testing result;
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
Second aspect, the embodiment of the present invention additionally provides a kind of condition checkout gear of proximity transducer, including::
First detection module, for detecting whether proximity transducer reports the state of the proximity transducer;
Second detection module, for when detecting the proximity transducer and not reporting the state, being connect described in detection
Whether nearly sensor is produced close to interruption;
Proximity transducer state determining module, for determining the proximity transducer close to interruption testing result according to described
State;
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
The third aspect, the embodiment of the invention provides a kind of terminal, including:Processor and memory;
The memory, for storing executable program code;
The processor is run executable with described by reading the executable program code stored in the memory
The corresponding program of program code, for performing:
Whether detection proximity transducer reports the state of the proximity transducer;
When detecting the proximity transducer and not reporting the state, detect whether the proximity transducer produces and connect
It is near to interrupt;
According to the state that the proximity transducer is determined close to interruption testing result;
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
Technical scheme provided in an embodiment of the present invention, when detecting proximity transducer and not having uploaded state, detection is close
Whether sensor is produced close to interrupting, to determine the state of proximity transducer based on the proximity values triggering that continuous several times are obtained.When
When proximity transducer is interfered, can accurately detect the state of proximity transducer, it is to avoid the proximity transducer that interference is caused
The situation of abnormal state.
Brief description of the drawings
By the detailed description made to non-limiting example made with reference to the following drawings of reading, it is of the invention other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of condition detection method flow chart of proximity transducer provided in an embodiment of the present invention;
Fig. 2 is the condition detection method flow chart of another proximity transducer provided in an embodiment of the present invention;
Fig. 3 is the condition detection method flow chart of another proximity transducer provided in an embodiment of the present invention;
Fig. 4 is the condition detection method flow chart of another proximity transducer provided in an embodiment of the present invention;
Fig. 5 is a kind of condition checkout gear structured flowchart of proximity transducer provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part rather than full content related to the present invention is illustrate only in description, accompanying drawing.
Fig. 1 is a kind of condition detection method flow chart of proximity transducer provided in an embodiment of the present invention, methods described by
The condition checkout gear of proximity transducer is performed, and described device performs by software and/or hardware;Described device is configured all
Such as in mobile phone terminal.In the present embodiment, when terminal is mobile phone, optionally, methods described can be applied in call scene,
In can be applied to other scenes.
As shown in figure 1, the technical scheme that the present embodiment is provided is specific as follows:
S110:Whether detection proximity transducer reports the state of the proximity transducer.
In the present embodiment, proximity transducer can detect the distance between shelter and terminal, determine to work as by distance
The proximity values of preceding proximity transducer, determine that proximity transducer is that proximity state is also remote from state by proximity values.Wherein, approach
The state of sensor includes proximity state and away from state.
In the present embodiment, whether the state of proximity transducer is reported for proximity transducer, be by processor whether
The status information for receiving proximity transducer transmission is judged.If specifically, processor receives proximity transducer transmission
Status information, judge uploaded state, if processor be not received by proximity transducer transmission status information, judge do not have
Uploaded state.Wherein, status information is including away from state or proximity state etc..And whether report shape for proximity transducer
The detection method of state is not limited to above-mentioned method.
S120:When detecting the proximity transducer and not reporting the state, whether the proximity transducer is detected
Produce close to interruption.
In the present embodiment, triggered by the proximity values that proximity transducer is based on continuous several times acquisition close to interruption and produced.Show
Example property, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces, including:When even
The continuous proximity values for repeatedly obtaining are all higher than during close to threshold value, and the proximity transducer produces close interruption.Wherein it is possible to continuous two
Secondary acquisition proximity values, it is also possible to three acquisitions proximity values, or other number of times.And for being produced close to the triggering interrupted
Mode can also be other modes.
When proximity transducer is interfered, (e.g., easily being disturbed by radio frequency in communication process) proximity values become big.
When proximity values are more than close to threshold value, produce close to interrupting, control terminal screen extinguishes, cause screen light on and off to control inaccurate
Problem.Therefore, proximity transducer needs continuous several times to obtain proximity values.Thus, judge whether to produce by the multiple proximity values for obtaining
Raw close interruption, the state after being interfered to proximity transducer is accurately judged, it is to avoid the exception after being interfered
The inaccurate phenomenon of screen control that state is caused.
When proximity transducer receives the enable signal of upper system transmission, it is necessary to report the state of proximity transducer,
I.e. away from state and proximity state.Otherwise, the state that upper system can give tacit consent to proximity transducer is last state, can be caused
The inaccurate problem of screen control.If after proximity transducer receives enable signal, not reporting the state of proximity transducer, locate
Reason device can actively read the proximity values that proximity transducer is currently obtained, and be compared by proximity values and close to threshold value, be worked as
The state of preceding proximity transducer, and by the state reporting of proximity transducer to upper system.Wherein, upper system can be terminal
The processor of system, or configuration upper system.
But, during the proximity values of the current proximity transducer of processor active obtaining, proximity transducer may be got and received
Proximity values after to interference, cause the condition adjudgement mistake of proximity transducer, cause screen control inaccurate.Therefore, detection is worked as
When not having uploaded state to proximity transducer, whether detection proximity transducer produces close to interruption, it is to avoid after being interfered
Proximity values cause the situation of the condition adjudgement mistake of proximity transducer.Wherein, processor can be for management terminal inner sensor
Processor, or can also be other processors.
S130:According to the state that the proximity transducer is determined close to interruption testing result.
In the present embodiment, exemplary, the basis determines the state of proximity transducer, bag close to testing result is interrupted
Include:Produced when interrupting when the proximity transducer is detected, determine that the proximity transducer is in proximity state;Work as detection
Do not produced when interrupting to the proximity transducer, determine that the proximity transducer is in away from state.
A kind of condition detection method of proximity transducer that the present embodiment is provided, does not report when proximity transducer is detected
During state, whether detection proximity transducer is produced close to interrupting, to determine to approach based on the proximity values triggering that continuous several times are obtained
The state of sensor.When proximity transducer is interfered, can accurately detect the state of proximity transducer, it is to avoid interference is made
Into proximity transducer abnormal state situation.
Fig. 2 is the condition detection method flow chart of another proximity transducer provided in an embodiment of the present invention, such as Fig. 2 institutes
Show, it is described when detecting the proximity transducer and not reporting the state after, also perform following operation:
Actively abandon reading the proximity values that the proximity transducer is obtained.
Thus, when detect proximity transducer not on give the correct time, by active abandon read proximity transducer proximity values,
Avoid the phenomenon that the proximity values after being interfered cause the condition adjudgement mistake of proximity transducer.
Further, before whether the detection proximity transducer reports the state of the proximity transducer, also perform
Following operation:
The parameter for determining proximity values acquisition number of times of the proximity transducer is changed, so that the proximity transducer is more
Secondary acquisition proximity values.
Thus, by changing the parameter of proximity transducer, so that proximity transducer continuous several times obtain proximity values, Neng Goufang
Only the state to proximity transducer carries out the judgement of mistake.
Further, described method also includes:
By the state reporting of the proximity transducer to upper system, so that the upper system is based on the state to end
The screen at end is controlled.
, to uploading system, it is controlled with to screen by by close to the state reporting of sensor, can be realized to screen
Automatically control.
As shown in Fig. 2 the technical scheme that the present embodiment is provided is specific as follows:
S210:The parameter for determining proximity values acquisition number of times of modification proximity transducer, so that the proximity transducer
Continuous several times obtain proximity values.
In the present embodiment, the persist parameter of the parameter including proximity transducer of number of times is obtained for determining proximity values.
The persist parameters original value of proximity transducer is 1, can be 2 by the persist parameter modifications of proximity transducer, that is, approach
The double acquisition proximity values of sensor.Or can also be other values by the persist parameter modifications of proximity transducer, so that
Continuous several times obtain proximity values to proximity transducer as needed.
In the present embodiment, modification proximity transducer can be by for determining that proximity values obtain the operation of the parameter of number of times
Reason device is performed, it is also possible to performed by proximity transducer, or can also be performed by the other equipment in terminal.
S220:Whether detection proximity transducer reports the state of the proximity transducer.
S230:When detecting the proximity transducer and not reporting the state, actively abandon reading described close to passing
The proximity values that sensor is obtained.
In the present embodiment, actively abandon reading the proximity values that proximity transducer is obtained, as active obtaining is not close passes
The proximity values that sensor is obtained.Therefore, when processor detects proximity transducer does not have uploaded state, active obtaining is not close passes
The proximity values that sensor is obtained, and do not kept away by obtaining proximity values and the state for determining proximity transducer being compared close to threshold value
The situation that proximity values after proximity transducer is interfered cause state to judge by accident is extremely exempted from.
S240:Detect whether the proximity transducer is produced close to interruption.
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
S250:According to the state that the proximity transducer is determined close to interruption testing result.
S260:By the state reporting of the proximity transducer to upper system, so that the upper system is based on the shape
State is controlled to the screen of terminal.
In the present embodiment, upper system can be terminal system, and upper system can be only fitted in the processor of upper strata.
In the present embodiment, exemplary, the upper system is controlled based on the state to the screen of terminal, bag
Include:When the state of proximity transducer is proximity state, the screen of control terminal extinguishes;When the state of proximity transducer be away from
During state, the screen of control terminal is lighted.
In the present embodiment, the state-detection to the proximity transducer of the present embodiment is illustrated, for example, close to threshold
Value is set to 200.In current position, the shape of proximity transducer is judged by the proximity values of the double acquisition of proximity transducer
State, if the proximity values for obtaining for the first time are 180, when proximity values are obtained second, is interfered, and the proximity values of acquisition are 240.
In the prior art, when proximity transducer is not to processor uploaded state, if the proximity values 240 that processor actively reads,
Then judge that proximity transducer is proximity state, control screen extinguishes.Because the proximity values that processor actively reads are to approach sensing
Device be interfered after value, therefore processor actively read proximity values be exceptional value, it is impossible to accurately judge proximity transducer
State (it is away from state that the state of proximity transducer is actual).
In embodiments of the present invention, when proximity transducer is not to processor uploaded state, processor does not read actively
The proximity values that proximity transducer is obtained, but whether detection proximity transducer is produced close to interruption.For the generation close to interruption
Detection, judged with being compared close to threshold value by the proximity values twice for obtaining by proximity transducer, i.e., when close to biography
The proximity values twice (180 and 240) that sensor is obtained are all higher than during close to threshold value (200), are produced close to interruption.Therefore, when close
Sensor is produced close to interruption when current position is respectively 180 and 240 by obtaining proximity values twice.Treatment
Device can detect proximity transducer and not produce close to interruption, and determine that proximity transducer is (with proximity transducer away from state
Virtual condition in current position is identical), control screen is lighted, and realizes the accurate control of screen.
It should be noted that exemplary one example that constitutes S210-S260 of the present embodiment performs a kind of close sensing
The condition detection method of device, but a kind of only example of the invention, in other embodiments of the invention, S210 can be with
Constitute example with S110-S130 and perform a kind of condition detection method of proximity transducer, or S260 can also and S110-
S130 constitutes an example and performs a kind of condition detection method of proximity transducer, or S210-S250 constitutes an example and holds
A kind of condition detection method of proximity transducer of row, or S220-S260 can also constitute an example and perform a kind of close biography
The condition detection method of sensor.
In the present embodiment, when detect proximity transducer not on give the correct time, abandon reading proximity transducer by active
Proximity values, it is to avoid the proximity values after being interfered cause the phenomenon of the condition adjudgement mistake of proximity transducer;Connect by modification
The parameter of nearly sensor, so that proximity transducer continuous several times obtain proximity values, is prevented from entering the state of proximity transducer
The judgement of row mistake;, to uploading system, it is controlled with to screen by by close to the state reporting of sensor, can be realized to screen
Curtain automatically control.
Fig. 3 is the condition detection method flow chart of another proximity transducer provided in an embodiment of the present invention, optionally, is repaiied
Change the operation of the parameter for determining proximity values acquisition number of times of proximity transducer by computing device.As shown in figure 3, this implementation
The technical scheme that example is provided is specific as follows:
S310:The parameter for determining proximity values acquisition number of times of processor modification proximity transducer.
S320:Processor sends control proximity transducer continuous several times and obtains the instruction of proximity values to proximity transducer.
S330:Proximity transducer obtains proximity values according to the instruction continuous several times for receiving, and based on continuous several times
The proximity values of acquisition determine whether to produce close to interruption.
S340:Whether processor detection proximity transducer reports the state of the proximity transducer.
S350:When processor detects the proximity transducer does not report the state, reading is actively abandoned described
The proximity values that proximity transducer is obtained.
S360:Processor sends and detects whether that the detection interrupted is instructed to proximity transducer.
S370:Proximity transducer receives detection instruction.
S380:Whether proximity transducer sends trigger the information close to interruption to processor.
S390:Processor detects whether the proximity transducer is produced close to interruption according to the described information for receiving.
S391:Processor is according to the state that the proximity transducer is determined close to interruption testing result.
S392:Processor reports the state of the proximity transducer to upper system.
S393:Upper system is controlled based on the state to the screen of terminal.
It should be noted that a kind of condition detection method of the proximity transducer shown in Fig. 3 is only a kind of example, and figure
The order of step can also change in method shown in 3, to realize the state-detection purpose of proximity transducer.
In the present embodiment, when detecting proximity transducer and not having uploaded state, whether detection proximity transducer is based on connecting
The continuous proximity values triggering for repeatedly obtaining is produced close to interrupting, to determine the state of proximity transducer.When proximity transducer is subject to dry
When disturbing, can accurately detect the state of proximity transducer, it is to avoid the situation of the proximity transducer abnormal state that interference is caused.
Fig. 4 is the condition detection method flow chart of another proximity transducer provided in an embodiment of the present invention, such as Fig. 4 institutes
Show, optionally, the operation of the parameter for determining proximity values acquisition number of times of modification proximity transducer is performed by proximity transducer,
The technical scheme that the present embodiment is provided is specific as follows:
S410:Proximity transducer is changed for determining that proximity values obtain the parameter of number of times.
S420:Proximity transducer continuous several times obtain proximity values, and the proximity values obtained based on continuous several times determine whether to touch
Hair is produced close to interruption.
S430:Whether processor detection proximity transducer reports the state of the proximity transducer.
S440 when processor is detected the proximity transducer do not report the state when, actively abandon reading described in connect
The proximity values that nearly sensor is obtained.
S450:Processor sends and detects whether that the detection interrupted is instructed to proximity transducer.
S460:Proximity transducer receives detection instruction.
S470:Proximity transducer sends the information whether triggering interruption occurs to processor.
S480:Processor detects whether the proximity transducer is produced close to interruption according to the described information for receiving.
S490:Processor is according to the state that the proximity transducer is determined close to interruption testing result.
S491:Processor reports the state of the proximity transducer to upper system.
S492:Upper system is controlled based on the state to the screen of terminal.
In the present embodiment, when detecting proximity transducer and not having uploaded state, whether detection proximity transducer is based on connecting
The continuous proximity values triggering for repeatedly obtaining is produced close to interrupting, to determine the state of proximity transducer.When proximity transducer is subject to dry
When disturbing, can accurately detect the state of proximity transducer, it is to avoid the situation of the proximity transducer abnormal state that interference is caused.
Fig. 5 is a kind of structured flowchart of the control device of terminal screen provided in an embodiment of the present invention, and described device is used for
The control method of terminal screen is performed, as shown in figure 5, described device includes:First detection module 510, the second detection module 520
With proximity transducer state determining module 530.
Wherein, first detection module 510, for detecting whether proximity transducer reports the state of the proximity transducer;
Second detection module 520, for when detecting the proximity transducer and not reporting the state, detection to be described
Whether proximity transducer is produced close to interruption;
Proximity transducer state determining module 530, for determining the close biography close to interruption testing result according to described
The state of sensor;
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
Further, it is described when detecting the proximity transducer and not reporting the state after, also include:
Actively abandon reading the proximity values that the proximity transducer is obtained.
Further, methods described also includes:
Control module 540, for by the state reporting of the proximity transducer to upper system so that the upper system
State based on the sensor is controlled to the screen of terminal.
Further, the proximity transducer state determining module 530, specifically for:
Produced when interrupting when the proximity transducer is detected, determine that the proximity transducer is in proximity state;
Do not produced when interrupting when the proximity transducer is detected, determine that the proximity transducer is in away from shape
State.
Further, described device also includes:
Parameter adapting module 550, for detection proximity transducer whether report the state of the proximity transducer before,
The parameter for determining proximity values acquisition number of times of the proximity transducer is changed, so that the proximity transducer continuous several times are obtained
Take proximity values.
Further, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption is produced
It is raw, including:
When the proximity values that continuous several times are obtained are all higher than close to threshold value, the proximity transducer is produced close to interruption.
The condition checkout gear of the proximity transducer that the present embodiment is provided, does not have uploaded state when proximity transducer is detected
When, whether detection proximity transducer is produced close to interrupting, to determine to approach sensing based on the proximity values triggering that continuous several times are obtained
The state of device.When proximity transducer is interfered, can accurately detect the state of proximity transducer, it is to avoid what interference was caused
The situation of proximity transducer abnormal state.
A kind of terminal is the embodiment of the invention provides, can integrated proximity transducer provided in an embodiment of the present invention in the terminal
Condition checkout gear.Fig. 6 is a kind of structural representation of terminal provided in an embodiment of the present invention.As shown in fig. 6, the terminal can
To include:Housing (not shown), memory 601, central processing unit (Central Processing Unit, CPU) 602
(also known as processor, hereinafter referred to as CPU), circuit board (not shown), touch-screen 612 and power circuit (not shown).
The touch-screen 612, is input into the processor, and show visual output signal for user's operation to be converted into electric signal;
The circuit board is placed in the interior volume that the touch-screen 612 is surrounded with the housing;The CPU602 and the memory
601 are arranged on the circuit board;The power circuit, powers for each circuit or device for the terminal;It is described to deposit
Reservoir 601, for storing executable program code;The CPU602 is by reading store in the memory 601 executable
Program code runs program corresponding with the executable program code, for performing:Whether detection proximity transducer is gone up
Report the state of the proximity transducer;When detecting the proximity transducer and not reporting the state, detect described close
Whether sensor is produced close to interruption;According to the state that the proximity transducer is determined close to interruption testing result;Wherein,
Described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
The terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, voicefrequency circuit
606th, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, other input/control devicess 610 with
And outside port 604, these parts are communicated by one or more communication bus or holding wire 607.
It should be understood that graphic terminal 600 is only an example of terminal, and terminal 600 can have than figure
Shown in more or less parts, two or more parts can be combined, or can have different portions
Part is configured.Various parts shown in figure can be including including one or more signal transactings and/or application specific integrated circuit
Hardware, software or hardware and software combination in realize.
The terminal of the condition checkout gear for being integrated with proximity transducer for being provided with regard to the present embodiment below carries out detailed retouching
State, the terminal is by taking mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can
With including high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripheral in equipment, such as touch-screen 612
With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091
One or more input controllers 6092 for controlling other input/control devicess 610.Wherein, one or more input controls
Device processed 6092 receives electric signal or sends electric signal to other input/control devicess 610 from other input/control devicess 610,
Other input/control devicess 610 can be including physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click roller.What deserves to be explained is, input controller 6092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 is the input interface and output interface between user terminal and user, can
Depending on output display to user, visual output can be including figure, text, icon, video etc..
Display controller 6091 in I/O subsystems 609 receives electric signal or is sent out to touch-screen 612 from touch-screen 612
Electric signals.Contact on the detection touch-screen of touch-screen 612, the contact that display controller 6091 will be detected is converted to and display
The interaction of the user interface object on touch-screen 612, that is, realize man-machine interaction, is displayed in the user interface on touch-screen 612
Object can be the icon of running game, the icon etc. that is networked to corresponding network.What deserves to be explained is, equipment can also include light
Mouse, light mouse is the extension for not showing the visual touch sensitive surface for exporting, or the touch sensitive surface formed by touch-screen.
RF circuits 605, are mainly used in setting up the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 605 are received and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 605 can be included for performing
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, ID mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, is mainly used in receiving voice data from Peripheral Interface 603, and the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, is reduced to sound
And play the sound to user.
Power management chip 608, for being powered by the hardware that CPU602, I/O subsystem and Peripheral Interface are connected
And power management.
The terminal that the present embodiment is provided is used to perform the condition detection method of the proximity transducer described in the various embodiments described above,
Its know-why is similar with the technique effect for producing, and repeats no more here.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (13)
1. a kind of condition detection method of proximity transducer, it is characterised in that including:
Whether detection proximity transducer reports the state of the proximity transducer;
When detecting the proximity transducer and not reporting the state, detect whether the proximity transducer is produced in
It is disconnected;
According to the state that the proximity transducer is determined close to interruption testing result;
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
2. method according to claim 1, it is characterised in that do not reported when detecting the proximity transducer described
After during the state, also include:
Actively abandon reading the proximity values that the proximity transducer is obtained.
3. method according to claim 1, it is characterised in that also include:
By the state reporting of the proximity transducer to upper system, so that the upper system is based on the state to terminal
Screen is controlled.
4. method according to claim 1, it is characterised in that it is described according to described close to interrupting described in testing result determines
The state of proximity transducer, including:
Produced when interrupting when the proximity transducer is detected, determine that the proximity transducer is in proximity state;
Do not produced when interrupting when the proximity transducer is detected, determine that the proximity transducer is in away from state.
5. method according to claim 1, it is characterised in that whether the detection proximity transducer reports is described close
Before the state of sensor, also include:
The parameter for determining proximity values acquisition number of times of the proximity transducer is changed, to control the proximity transducer continuous
Repeatedly obtain proximity values.
6. method according to claim 1, it is characterised in that it is described close to interrupt be based on by the proximity transducer it is continuous
The proximity values triggering for repeatedly obtaining is produced, including:
When the proximity values that continuous several times are obtained are all higher than close to threshold value, the proximity transducer is produced close to interruption.
7. a kind of condition checkout gear of proximity transducer, it is characterised in that including:
First detection module, for detecting whether proximity transducer reports the state of the proximity transducer;
Second detection module, it is described close to passing for when detecting the proximity transducer and not reporting the state, detecting
Whether sensor is produced close to interruption;
Proximity transducer state determining module, for according to the shape that the proximity transducer is determined close to interruption testing result
State;
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
8. device according to claim 7, it is characterised in that do not reported when detecting the proximity transducer described
After during the state, also include:
Actively abandon reading the proximity values that the proximity transducer is obtained.
9. device according to claim 7, it is characterised in that also include:
Control module, for by the state reporting of the proximity transducer to upper system so that the upper system is based on institute
The state for stating sensor is controlled to the screen of terminal.
10. device according to claim 7, it is characterised in that the proximity transducer state determining module, it is specific to use
In:
Produced when interrupting when the proximity transducer is detected, determine that the proximity transducer is in proximity state;
Do not produced when interrupting when the proximity transducer is detected, determine that the proximity transducer is in away from state.
11. devices according to claim 7, it is characterised in that also include:
Parameter adapting module, for before whether detection proximity transducer reports the state of the proximity transducer, changing institute
The parameter for determining proximity values acquisition number of times of proximity transducer is stated, so that the proximity transducer continuous several times obtain close
Value.
12. devices according to claim 7, it is characterised in that described to be based on connecting by the proximity transducer close to interruption
The continuous proximity values triggering for repeatedly obtaining is produced, including:
When the proximity values that continuous several times are obtained are all higher than close to threshold value, the proximity transducer is produced close to interruption.
A kind of 13. terminals, it is characterised in that including:Processor and memory;
The memory, for storing executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory
The corresponding program of code, for performing:
Whether detection proximity transducer reports the state of the proximity transducer;
When detecting the proximity transducer and not reporting the state, detect whether the proximity transducer is produced in
It is disconnected;
According to the state that the proximity transducer is determined close to interruption testing result;
Wherein, described triggering by the proximity values that the proximity transducer is based on continuous several times acquisition close to interruption produces.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611108535.6A CN106776092B (en) | 2016-12-06 | 2016-12-06 | State detection method and device of proximity sensor and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611108535.6A CN106776092B (en) | 2016-12-06 | 2016-12-06 | State detection method and device of proximity sensor and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106776092A true CN106776092A (en) | 2017-05-31 |
CN106776092B CN106776092B (en) | 2020-06-02 |
Family
ID=58879026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611108535.6A Active CN106776092B (en) | 2016-12-06 | 2016-12-06 | State detection method and device of proximity sensor and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776092B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107817534A (en) * | 2017-10-31 | 2018-03-20 | 深圳还是威健康科技有限公司 | A kind of collecting method of Intelligent worn device, device and Intelligent worn device |
CN108829542A (en) * | 2018-06-20 | 2018-11-16 | Oppo广东移动通信有限公司 | Mobile terminal and its control method, storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951444A (en) * | 2010-09-29 | 2011-01-19 | 中兴通讯股份有限公司 | Method for realizing screen locking and unlocking of mobile terminal and mobile terminal |
CN103369142A (en) * | 2013-07-09 | 2013-10-23 | 广东欧珀移动通信有限公司 | Method and system for avoiding call-up malfunction |
US20150178040A1 (en) * | 2008-12-08 | 2015-06-25 | Apple Inc. | Ambient noise based augmentation of media playback |
CN104994240A (en) * | 2015-07-10 | 2015-10-21 | Tcl移动通信科技(宁波)有限公司 | Proximity detector power saving control method and system based on mobile terminal |
CN105224147A (en) * | 2015-10-13 | 2016-01-06 | Tcl移动通信科技(宁波)有限公司 | A kind of mobile terminal proximity transducer that prevents is by the method and system of ambient light interference |
CN105975090A (en) * | 2016-06-21 | 2016-09-28 | 广东欧珀移动通信有限公司 | Event-reporting control method and device for proximity sensor and mobile terminal |
CN205750722U (en) * | 2016-04-25 | 2016-11-30 | 北京墨迹风云科技股份有限公司 | A kind of gesture sensor-based system and device |
-
2016
- 2016-12-06 CN CN201611108535.6A patent/CN106776092B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150178040A1 (en) * | 2008-12-08 | 2015-06-25 | Apple Inc. | Ambient noise based augmentation of media playback |
CN101951444A (en) * | 2010-09-29 | 2011-01-19 | 中兴通讯股份有限公司 | Method for realizing screen locking and unlocking of mobile terminal and mobile terminal |
CN103369142A (en) * | 2013-07-09 | 2013-10-23 | 广东欧珀移动通信有限公司 | Method and system for avoiding call-up malfunction |
CN104994240A (en) * | 2015-07-10 | 2015-10-21 | Tcl移动通信科技(宁波)有限公司 | Proximity detector power saving control method and system based on mobile terminal |
CN105224147A (en) * | 2015-10-13 | 2016-01-06 | Tcl移动通信科技(宁波)有限公司 | A kind of mobile terminal proximity transducer that prevents is by the method and system of ambient light interference |
CN205750722U (en) * | 2016-04-25 | 2016-11-30 | 北京墨迹风云科技股份有限公司 | A kind of gesture sensor-based system and device |
CN105975090A (en) * | 2016-06-21 | 2016-09-28 | 广东欧珀移动通信有限公司 | Event-reporting control method and device for proximity sensor and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107817534A (en) * | 2017-10-31 | 2018-03-20 | 深圳还是威健康科技有限公司 | A kind of collecting method of Intelligent worn device, device and Intelligent worn device |
CN107817534B (en) * | 2017-10-31 | 2020-05-12 | 深圳市元征科技股份有限公司 | Data acquisition method and device of intelligent wearable device and intelligent wearable device |
CN108829542A (en) * | 2018-06-20 | 2018-11-16 | Oppo广东移动通信有限公司 | Mobile terminal and its control method, storage medium |
CN108829542B (en) * | 2018-06-20 | 2022-03-29 | Oppo广东移动通信有限公司 | Mobile terminal, control method thereof and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106776092B (en) | 2020-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106855782B (en) | A kind of method, apparatus and terminal for preventing from accidentally touching | |
CN106776385B (en) | A kind of transmission method, device and the terminal of log log information | |
CN107105090B (en) | A kind of control method, device and the mobile terminal of suspension button | |
CN107422915B (en) | Response control mehtod, device, storage medium and the terminal of touch screen | |
CN108900231B (en) | Dynamic antenna adjustment method and related product | |
CN109240551B (en) | Method for controlling electronic device by using gestures and related product | |
CN106097984B (en) | The method, device and mobile terminal of proximity sensor are opened in backlight adjustment | |
CN106791120A (en) | Mobile terminal puts out the control method and device of screen | |
CN106506825A (en) | A kind of control method of touch-screen, device and mobile terminal | |
CN106768311B (en) | A kind of environment light detection method, device and terminal | |
CN106776092A (en) | A kind of condition detection method of proximity transducer, device and terminal | |
CN108810261B (en) | Antenna switching method in call and related product | |
CN106686222A (en) | Ambient light sensor control method, ambient light sensor control device and terminal | |
CN106708332B (en) | threshold setting method and device of proximity sensor and terminal | |
CN106713572B (en) | Data reporting control method, device and terminal | |
CN106547638B (en) | Prevent the method, device and mobile terminal of proximity state exception | |
CN113253964A (en) | Data management method, device, equipment and storage medium | |
CN106502819A (en) | A kind of based on the control method of proximity transducer, device and mobile terminal | |
CN114501119A (en) | Interactive display method, device, electronic equipment, system and storage medium | |
CN113329072B (en) | Data processing method and device, electronic equipment and computer readable medium | |
CN106791108B (en) | Threshold updating method and device of proximity sensor and terminal | |
CN106791047B (en) | A kind of foreign matter detecting method of mobile terminal, device and mobile terminal | |
CN106092130B (en) | Step-recording method, device and the mobile terminal of pedometer | |
US20210306963A1 (en) | Method and Apparatus for Wi-Fi Network Processing, Electronic Device, and Storage Medium | |
CN106850985B (en) | Control method, device and the mobile terminal of mobile terminal sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |