CN106598358A - Proximity detection method and device and terminal - Google Patents

Proximity detection method and device and terminal Download PDF

Info

Publication number
CN106598358A
CN106598358A CN201611108002.8A CN201611108002A CN106598358A CN 106598358 A CN106598358 A CN 106598358A CN 201611108002 A CN201611108002 A CN 201611108002A CN 106598358 A CN106598358 A CN 106598358A
Authority
CN
China
Prior art keywords
testing result
signal
terminal
result
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611108002.8A
Other languages
Chinese (zh)
Other versions
CN106598358B (en
Inventor
张海平
周意保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611108002.8A priority Critical patent/CN106598358B/en
Publication of CN106598358A publication Critical patent/CN106598358A/en
Application granted granted Critical
Publication of CN106598358B publication Critical patent/CN106598358B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0421Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by interrupting or reflecting a light beam, e.g. optical touch-screen

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The embodiment of the invention provides a proximity detection method and device and a terminal. The proximity detection method comprises the following steps: the first signal projector transmits a detection signal; the signal receiver obtains the first detection result; the second signal projector transmits a detection signal; and the signal receiver obtains the second detection result; whether the first detection result and the second detection result are the same or not is judged to obtain the judgment result; the state that the terminal is in proximity or out of proximity to an external object is confirmed according to the judgment result. According to the scheme provided by the invention, the detection signals are transmitted by two signal projectors respectively, and two detection results are obtained, and the state that the terminal is in proximity or out of proximity to the external object is confirmed based on whether the two detection results are the same or not, therefore, the problem that the detection result is inaccurate when using a single signal projector can be avoided, and the accuracy of the state that the terminal is in proximity or out of proximity to the external object can be improved.

Description

Proximity test method, device and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of proximity test method, device and terminal.
Background technology
With developing rapidly for terminal technology, mobile terminal is increasingly popularized, and it is essential during people live to have become Equipment.People can be carried out learning, be entertained by mobile terminal.
Currently, there is proximity transducer in mobile terminal.Proximity transducer is arranged on below glass cover-plate.Proximity transducer For judging it is also to be remote from state in proximity state between mobile terminal and exterior object.Proximity transducer includes infrared ray Emitter and infrared receiver.RF transmitter to emission infrared ray, the infrared ray through exterior object reflection after shape Into reflection light, infrared receiver receives the reflection light, then according to the intensity of the reflection light for receiving judging to move It is that proximity state is also remote from state between dynamic terminal and exterior object.
In practical application, there is the situation that RF transmitter breaks down.Once RF transmitter breaks down, meeting Cause the detection of proximity transducer inaccurate, in turn result between mobile terminal and exterior object close to or away from state-detection It is inaccurate.
The content of the invention
The embodiment of the present invention provides a kind of proximity test method, device and terminal, can improve detection terminal with outside thing The accuracy close to or away from state between body.
The embodiment of the present invention provides a kind of proximity test method, is applied in terminal, and the terminal includes that the first signal is launched Device, secondary signal emitter and signal receiver, the proximity test method include:
First signal projector emission detection signal;
The signal receiver obtains the first testing result;
Secondary signal emitter emission detection signal
The signal receiver obtains the second testing result;
Judge whether first testing result is identical with second testing result, to obtain judged result;
According to the judged result determine between the terminal and exterior object close to or away from state.
Accordingly, the embodiment of the present invention also provides a kind of proximity test device, is applied in terminal, and the terminal includes first Signal projector, secondary signal emitter and signal receiver, the proximity test device include:
First acquisition module, in the first signal projector emission detection signal, the signal receiver obtains first Testing result;
Second acquisition module, in secondary signal emitter emission detection signal, the signal receiver obtains second Testing result;
First judge module, for judging whether first testing result is identical with second testing result, to be sentenced Disconnected result;
First determining module, for according to the judged result determine between the terminal and exterior object close to or away from shape State.
Accordingly, the embodiment of the present invention also provides a kind of terminal, including:
Proximity transducer, between detection terminal and exterior object close to or away from state;
Be stored with the memorizer of executable program code;
The processor coupled with the memorizer;
The executable program code that the processor is stored in calling the memorizer, performs above-mentioned proximity test method.
The embodiment of the present invention adopts the first signal projector emission detection signal;Signal receiver obtains the first detection knot Really;Secondary signal emitter emission detection signal;The signal receiver obtains the second testing result;Judge first testing result It is whether identical with second testing result, to obtain judged result;Determined between terminal and exterior object according to the judged result Close to or away from state.The program distinguishes emission detection signals using two signal projectors, and obtains respectively and detect twice As a result, based on this twice testing result it is whether identical come determine between terminal and exterior object close to or away from state, can Avoid it is inaccurate using testing result during individual signals emitter, such that it is able to improve connecing between detection terminal and exterior object Close or remote from the accuracy of state.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can be attached to obtain others according to these accompanying drawings Figure.
Fig. 1 is the schematic flow sheet of proximity test method provided in an embodiment of the present invention.
Fig. 2 is the application scenarios schematic diagram of proximity test method provided in an embodiment of the present invention.
Fig. 3 is the Another Application schematic diagram of a scenario of proximity test method provided in an embodiment of the present invention.
Fig. 4 is another schematic flow sheet of proximity test method provided in an embodiment of the present invention.
Fig. 5 is the structural representation of proximity test device provided in an embodiment of the present invention.
Fig. 6 is another structural representation of proximity test device provided in an embodiment of the present invention.
Fig. 7 is the another structural representation of proximity test device provided in an embodiment of the present invention.
Fig. 8 is another structural representation of proximity test device provided in an embodiment of the present invention.
Fig. 9 is the structural representation of terminal provided in an embodiment of the present invention.
Figure 10 is another structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.Obviously, described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, the every other enforcement obtained under the premise of creative work is not made by those skilled in the art Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing etc. (if present) is for distinguishing similar object, without being used to describe specific order or precedence.It should be appreciated that this The object of sample description can be exchanged in the appropriate case.Additionally, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive including.For example, the process of series of steps, method are contained or a series of modules or list is contained The device of unit, terminal, system are not necessarily limited to those steps or module or the unit clearly listed, and can also include unclear The step of list or module or unit, it is also possible to include its intrinsic for these processes, method, device, terminal or system Its step or module or unit.
The embodiment of the present invention provides a kind of proximity test method, device and terminal, is described in detail respectively below.
A kind of proximity test method, the proximity test method are can apply in terminal, and the terminal includes that the first signal is sent out Emitter, secondary signal emitter and signal receiver.The terminal can be the equipment such as smart mobile phone, panel computer.
As shown in figure 1, the proximity test method, may comprise steps of:
S110, the first signal projector emission detection signal, signal receiver obtain the first testing result.
S120, secondary signal emitter emission detection signal, signal receiver obtain the second testing result.
In practical application, proximity transducer in terminal, is provided with.Proximity transducer includes that signal projector and signal are received Device.Signal projector be used for transmission signal, signal receiver be used for receive the signal through exterior object reflection after formed it is anti- Penetrate signal.The signal can be optical signal, or acoustic signals.For example, the signal can be infrared ray, or swash Light, can also be ultrasound wave.
Referring to figs. 2 and 3 in the present embodiment, proximity transducer includes signal projector and signal receiver.Wherein, Signal projector includes the first signal projector and secondary signal emitter, and signal receiver includes the first signal receiver and Binary signal receptor.First by the outside transmission signal of the first signal projector.The signal forms reflection Jing after exterior object reflection Signal.First signal receiver and secondary signal receptor receive the reflected signal respectively.First signal receiver and the first letter The distance between the distance between number emitter and secondary signal receptor and first signal projector be it is different, therefore first The signal intensity that signal receiver and secondary signal receptor are received is different.
After first signal receiver and secondary signal receptor receive reflected signal, obtained according to the reflected signal for receiving Take the first testing result.The testing result is for proximity state or away from state.
Subsequently, the first signal projector is closed, and switches to the outside transmission signal of secondary signal emitter.Likewise, the letter Number Jing exterior object reflection after form reflected signal.First signal receiver and secondary signal receptor receive the reflected signal. Also, the distance between the first signal receiver and secondary signal emitter and secondary signal receptor and secondary signal emitter The distance between be different, therefore the signal intensity that receives of the first signal receiver and secondary signal receptor is also different 's.
After first signal receiver and secondary signal receptor receive reflected signal, obtained according to the reflected signal for receiving Take the second testing result.The testing result is for proximity state or away from state.
Wherein it is possible to arrange a signal strength threshold in advance in the terminal.When the signal that signal receiver is received it is strong When angle value is more than or equal to the threshold value, testing result is proximity state;When signal intensity is less than the threshold value, testing result is remote From state.
After first signal receiver and secondary signal receptor receive reflected signal, respectively by the reflected signal for receiving Intensity is compared with the threshold value, to obtain respective testing result.When in the first signal receiver and secondary signal receptor When at least one testing result is proximity state, the testing result that signal receiver gets is proximity state.When the first letter When the testing result of number receptor and secondary signal receptor is all away from state, the testing result that signal receiver gets is Away from state.
In practical application, during the first signal projector emission detection signal, if the first signal receiver and secondary signal connect When the testing result for receiving in device at least one is proximity state, above-mentioned first testing result is proximity state;If the first signal connects The testing result for receiving device and secondary signal receptor is all that then above-mentioned first testing result is away from state away from state.
During secondary signal emitter emission detection signal, if at least one in the first signal receiver and secondary signal receptor When individual testing result is proximity state, above-mentioned second testing result is proximity state;If the first signal receiver and the second letter The testing result of number receptor is all that then above-mentioned second testing result is away from state away from state.
For example, default signal strength threshold is 500.During the first signal projector emission detection signal, if the first signal The signal intensity that receptor is received is 600, and the signal intensity that secondary signal receptor is received is 400, then the first signal receiver Testing result be proximity state, the testing result of secondary signal receptor is away from state.Now, above-mentioned first testing result For proximity state.
With reference to Fig. 1 and Fig. 4, in certain embodiments, secondary signal emitter emission detection signal, signal receiver Before obtaining the second testing result, the proximity test method can also be comprised the following steps:
S150, obtains the kinematic parameter of terminal;
S160, judges according to the kinematic parameter whether the state of the terminal changes;
If it is not, then secondary signal emitter emission detection signal, signal receiver obtains the second testing result.
Wherein, kinematic parameter can include the acceleration and angular velocity of terminal.The state of terminal can include the position of terminal Put the posture with terminal.In practical application, acceleration transducer and gyroscope in terminal, are provided with.Acceleration transducer can be used for Obtain the acceleration of terminal.Gyroscope can be used for the angular velocity for obtaining terminal.
If the acceleration of terminal changes, illustrate that the speed of terminal there occurs change, namely the position of terminal occurs Change.If the angular velocity of terminal there occurs change, illustrate that the posture of terminal there occurs change.Terminal gets kinematic parameter Afterwards, judge whether the kinematic parameter changes.When the acceleration and angular velocity of terminal all do not change, then may determine that The state for going out terminal does not change.Subsequently, switched to by the first signal projector emission detection signal and launched by secondary signal Device emission detection signal.If judging, the state of terminal there occurs change, can with termination process and restart perform be close to Detection method.
S130, judges whether first testing result and second testing result are identical, to obtain judged result.
In practical application, after terminal gets the first testing result and the second testing result, by first testing result and Whether second testing result is compared, identical to judge first testing result and second testing result, and is sentenced Disconnected result.
S140, according to the judged result determine between terminal and exterior object close to or away from state.
In practical application, after obtaining judged result in S130, terminal determines terminal and exterior object according to the judged result Between close to or away from state.
In certain embodiments, according to the judged result determine between terminal and exterior object can close to or away from state To comprise the following steps:
S141, when first testing result is identical with second testing result, by first testing result or this second Testing result be defined as between terminal and exterior object close to or away from state;
S142, when first testing result is different from second testing result, first signal projector and this second Signal projector is while emission detection signal, signal receiver the 3rd testing result of acquisition;
S143, by the 3rd testing result be defined as between terminal and exterior object close to or away from state.
In practical application, when first testing result is identical with second testing result, can be by the first detection knot Fruit and second testing result in any one be defined as between terminal and exterior object close to or away from state.For example, First testing result and the second testing result are all proximity state, then can determine between terminal and exterior object in being close to shape State.
As, in detection process twice, the state of terminal does not change, testing result should be twice in theory Identical.Therefore, when the first testing result is different with the second testing result, it can be understood as testing result wherein once It is inaccurate.Now, the first signal projector and secondary signal emitter are while emission detection signal, carries out third time inspection Survey.Signal receiver receives reflected signal, and obtains the 3rd testing result.Wherein, obtain the process of the 3rd testing result and obtain The process for taking the first testing result and the second testing result is substantially the same, and will not be described here.
After getting the 3rd testing result, by the 3rd testing result be defined as between terminal and exterior object be close to or Away from state.For example, the 3rd testing result is away from state, then to can determine between terminal and exterior object in away from shape State.
Determine between terminal and exterior object close to or away from after state, terminal can be controlled accordingly. For example, when proximity state is between terminal and exterior object, can extinguish display screen;In remote between terminal and exterior object From state when, display screen can be lighted.
In certain embodiments, according to the judged result determine between terminal and exterior object close to or away from state Afterwards, can also comprise the following steps:
S170, the 3rd testing result is compared with first testing result, to obtain comparative result;
S171, when the 3rd testing result is identical with the first testing result, determines that the secondary signal emitter produces event Barrier;
S172, when the 3rd testing result is different from the first testing result, determines that first signal projector produces event Barrier.
In practical application, determine between terminal and exterior object close to or away from after state, further by the 3rd Testing result is compared with the first testing result.In due to third time detection process, while having used the first signal projector With secondary signal emitter, it is accurate for now can be understood as the 3rd testing result.When the 3rd testing result and the first detection As a result when identical, illustrate that the second testing result is inaccurate, now can determine that secondary signal emitter produces failure.When When 3rd testing result is different from the first testing result, illustrate that the first testing result is inaccurate, now can determine that One signal projector produces failure.
In some embodiments, it is also possible to the 3rd testing result and the second testing result are compared.When the 3rd detection As a result, when identical with the second testing result, illustrate that the first testing result is inaccurate, it may be determined that go out the first signal projector Produce failure.When the 3rd testing result is different from the second testing result, illustrate the second testing result be it is inaccurate, can be true Make secondary signal emitter and produce failure.
In certain embodiments, determine that the first signal projector produces failure or secondary signal emitter produces failure Afterwards, can also comprise the following steps:
S180, obtains default information;
S190, the default information displayed on the terminals.
Wherein, default information can be the information being stored in advance in terminal memory.The default information is used Know that the signal projector in proximity transducer produces failure in being used in, so that user can take and such as change or tie up The measure such as repair.For example, default information can be " signal projector produces failure, please changes in time " etc..
After terminal determines that the first signal projector produces failure or secondary signal emitter generation failure, from terminal The default information, and the default information displayed on the terminals are transferred in memorizer.
When being embodied as, the present invention is not limited by the execution sequence of each described step, is not producing conflict In the case of, some steps can also be sequentially carried out or while be carried out using other.
From the foregoing, it will be observed that proximity test method provided in an embodiment of the present invention, the first signal projector emission detection signal;Letter Number receptor obtains the first testing result;Secondary signal emitter emission detection signal;Signal receiver obtains the second detection knot Really;Judge whether first testing result and second testing result are identical, to obtain judged result;It is true according to the judged result Determine between terminal and exterior object close to or away from state.The program distinguishes emission detection letter by two signal projectors Number, and obtain testing result twice respectively, based on this twice testing result it is whether identical determining between terminal and exterior object Close to or away from state, can avoid it is inaccurate using testing result during individual signals emitter, such that it is able to improve detection The accuracy close to or away from state between terminal and exterior object.
The embodiment of the present invention also provides a kind of proximity test device, and the proximity test device is can apply in terminal, should Terminal includes the first signal projector, secondary signal emitter and signal receiver.The terminal can be smart mobile phone, flat board Apparatus such as computer.
As shown in figure 5, proximity test device 200 can include:First acquisition module 201, the second acquisition module 202, One judge module 203, the first determining module 204.
First acquisition module 201, in the first signal projector emission detection signal, signal receiver obtains the One testing result;
Second acquisition module 202, in secondary signal emitter emission detection signal, signal receiver obtains the Two testing results.
In practical application, proximity transducer in terminal, is provided with.Proximity transducer includes that signal projector and signal are received Device.Signal projector be used for transmission signal, signal receiver be used for receive the signal through exterior object reflection after formed it is anti- Penetrate signal.The signal can be optical signal, or acoustic signals.For example, the signal can be infrared ray, or swash Light, can also be ultrasound wave.
In the present embodiment, proximity transducer includes signal projector and signal receiver.Wherein, signal projector includes First signal projector and secondary signal emitter, signal receiver include the first signal receiver and secondary signal receptor. First by the outside transmission signal of the first signal projector.The signal forms reflected signal Jing after exterior object reflection.First signal Receptor and secondary signal receptor receive the reflected signal respectively.Between first signal receiver and the first signal projector The distance between distance and secondary signal receptor and first signal projector are different, therefore the first signal receiver and The signal intensity that binary signal receptor is received is different.
After first signal receiver and secondary signal receptor receive reflected signal, obtained according to the reflected signal for receiving Take the first testing result.The testing result is for proximity state or away from state.
Subsequently, the first signal projector is closed, and switches to the outside transmission signal of secondary signal emitter.Likewise, the letter Number Jing exterior object reflection after form reflected signal.First signal receiver and secondary signal receptor receive the reflected signal. Also, the distance between the first signal receiver and secondary signal emitter and secondary signal receptor and secondary signal emitter The distance between be different, therefore the signal intensity that receives of the first signal receiver and secondary signal receptor is also different 's.
After first signal receiver and secondary signal receptor receive reflected signal, obtained according to the reflected signal for receiving Take the second testing result.The testing result is for proximity state or away from state.
Wherein it is possible to arrange a signal strength threshold in advance in the terminal.When the signal that signal receiver is received it is strong When angle value is more than or equal to the threshold value, testing result is proximity state;When signal intensity is less than the threshold value, testing result is remote From state.
After first signal receiver and secondary signal receptor receive reflected signal, respectively by the reflected signal for receiving Intensity is compared with the threshold value, to obtain respective testing result.When in the first signal receiver and secondary signal receptor When at least one testing result is proximity state, the testing result that signal receiver gets is proximity state.When the first letter When the testing result of number receptor and secondary signal receptor is all away from state, the testing result that signal receiver gets is Away from state.
In practical application, during the first signal projector emission detection signal, if the first signal receiver and secondary signal connect When the testing result for receiving in device at least one is proximity state, above-mentioned first testing result is proximity state;If the first signal connects The testing result for receiving device and secondary signal receptor is all that then above-mentioned first testing result is away from state away from state.
During secondary signal emitter emission detection signal, if at least one in the first signal receiver and secondary signal receptor When individual testing result is proximity state, above-mentioned second testing result is proximity state;If the first signal receiver and the second letter The testing result of number receptor is all that then above-mentioned second testing result is away from state away from state.
For example, default signal strength threshold is 500.During the first signal projector emission detection signal, if the first signal The signal intensity that receptor is received is 600, and the signal intensity that secondary signal receptor is received is 400, then the first signal receiver Testing result be proximity state, the testing result of secondary signal receptor is away from state.Now, above-mentioned first testing result For proximity state.
In certain embodiments, as shown in fig. 6, proximity test device also includes:4th acquisition module 205, second judges Module 206.
4th acquisition module 205, for obtaining the kinematic parameter of terminal;
Second judge module 206, for judging according to the kinematic parameter whether the state of the terminal changes;
Second acquisition module 202, for when second judge module 206 is judged as NO, secondary signal emitter is sent out Detectable signal is penetrated, signal receiver obtains the second testing result.
Wherein, kinematic parameter can include the acceleration and angular velocity of terminal.The state of terminal can include the position of terminal Put the posture with terminal.In practical application, acceleration transducer and gyroscope in terminal, are provided with.Acceleration transducer can be used for Obtain the acceleration of terminal.Gyroscope can be used for the angular velocity for obtaining terminal.
If the acceleration of terminal changes, illustrate that the speed of terminal there occurs change, namely the position of terminal occurs Change.If the angular velocity of terminal there occurs change, illustrate that the posture of terminal there occurs change.4th acquisition module 205 is obtained After getting the kinematic parameter of terminal, the second judge module 206 judges whether the kinematic parameter changes.When the acceleration of terminal When all not changing with angular velocity, then may determine that the state of terminal does not change.Subsequently, by the first signal projector Emission detection signal is switched to by secondary signal emitter emission detection signal.If judging, the state of terminal there occurs change, Then with termination process and can restart to perform proximity test method.
First judge module 203, for judging whether first testing result is identical with second testing result, with To judged result.
In practical application, after getting the first testing result and the second testing result, the first judge module 203 by this first Testing result and second testing result are compared, to judge first testing result and second testing result whether phase Together, and obtain judged result.
First determining module 204, for determining being close between terminal and exterior object or remote according to the judged result From state.
In practical application, after the first judge module 203 obtains judged result, the first determining module 204 is tied according to the judgement Fruit determine between terminal and exterior object close to or away from state.
In certain embodiments, the first determining module 204 is used to perform following steps:
When first testing result is identical with second testing result, by first testing result or the second detection knot Fruit be defined as between terminal and exterior object close to or away from state;
When first testing result is different from second testing result, first signal projector and the secondary signal are sent out Emitter is while emission detection signal, signal receiver the 3rd testing result of acquisition;
By the 3rd testing result be defined as between terminal and exterior object close to or away from state.
In practical application, when first testing result is identical with second testing result, can be by the first detection knot Fruit and second testing result in any one be defined as between terminal and exterior object close to or away from state.For example, First testing result and the second testing result are all proximity state, then can determine between terminal and exterior object in being close to shape State.
As, in detection process twice, the state of terminal does not change, testing result should be twice in theory Identical.Therefore, when the first testing result is different with the second testing result, it can be understood as testing result wherein once It is inaccurate.Now, the first signal projector and secondary signal emitter are while emission detection signal, carries out third time inspection Survey.Signal receiver receives reflected signal, and obtains the 3rd testing result.Wherein, obtain the process of the 3rd testing result and obtain The process for taking the first testing result and the second testing result is substantially the same, and will not be described here.
After getting the 3rd testing result, by the 3rd testing result be defined as between terminal and exterior object be close to or Away from state.For example, the 3rd testing result is away from state, then to can determine between terminal and exterior object in away from shape State.
Determine between terminal and exterior object close to or away from after state, terminal can be controlled accordingly. For example, when proximity state is between terminal and exterior object, can extinguish display screen;In remote between terminal and exterior object From state when, display screen can be lighted.
In certain embodiments, as shown in fig. 7, proximity test device 200 also includes:Comparison module 207, second determines mould Block 208.
The comparison module 207, for the 3rd testing result is compared with first testing result, to be compared As a result;
Second determining module 208, for when the 3rd testing result is identical with the first testing result, determine this second Signal projector produces failure;When the 3rd testing result is different from the first testing result, first signal projector is determined Produce failure.
In practical application, the first determining module 204 determine between terminal and exterior object close to or away from after state, 3rd testing result and the first testing result are further compared by comparison module 207.In due to third time detection process, The first signal projector and secondary signal emitter are used simultaneously, it is accurate for now can be understood as the 3rd testing result. When the 3rd testing result is identical with the first testing result, illustrate that the second testing result is inaccurate, now second determines mould Block 208 can determine that secondary signal emitter produces failure.When the 3rd testing result is different from the first testing result, explanation First testing result is inaccurate, and now the second determining module 208 can determine that the first signal projector produces failure.
In some embodiments, it is also possible to the 3rd testing result and the second testing result are compared.When the 3rd detection As a result, when identical with the second testing result, illustrate that the first testing result is inaccurate, it may be determined that go out the first signal projector Produce failure.When the 3rd testing result is different from the second testing result, illustrate the second testing result be it is inaccurate, can be true Make secondary signal emitter and produce failure.
In certain embodiments, as shown in figure 8, proximity test device 200 also includes:3rd acquisition module 209, display mould Block 210.
3rd acquisition module 209, for obtaining default information;
The display module 210, for the default information displayed on the terminals.
Wherein, default information can be the information being stored in advance in terminal memory.The default information is used Know that the signal projector in proximity transducer produces failure in being used in, so that user can take and such as change or tie up The measure such as repair.For example, default information can be " signal projector produces failure, please changes in time " etc..
Second determining module 208 determines that the first signal projector produces failure or secondary signal emitter produces failure Afterwards, the 3rd acquisition module 209 transfers the default information from the memorizer of terminal, and display module 210 is displayed on the terminals The default information.
When being embodied as, above modules can be realized as independent entity, it is also possible to carry out combination in any, made Realize for same or several entities.
From the foregoing, it will be observed that proximity test device provided in an embodiment of the present invention 200, the first acquisition module 201 is in the first signal During emitter emission detection signal, signal receiver obtains the first testing result;Second acquisition module 202 is launched in secondary signal During device emission detection signal, signal receiver obtains the second testing result;First judge module 203 judges first testing result It is whether identical with second testing result, to obtain judged result;First determining module 204 determines terminal according to the judged result Between exterior object close to or away from state.The program distinguishes emission detection signal by two signal projectors, and divides Do not obtain testing result twice, based on this twice testing result it is whether identical come determine between terminal and exterior object be close to or Away from state, can avoid it is inaccurate using testing result during individual signals emitter, such that it is able to improve detection terminal with it is outer The accuracy close to or away from state between portion's object.
The embodiment of the present invention also provides a kind of terminal, and the terminal can be the equipment such as smart mobile phone, panel computer.
As shown in figure 9, terminal 300 can include:First acquisition module 301, the second acquisition module 302, first judge mould Block 303, the first determining module 304.
First acquisition module 301, in the first signal projector emission detection signal, signal receiver obtains the One testing result;
Second acquisition module 302, in secondary signal emitter emission detection signal, signal receiver obtains the Two testing results;
First judge module 303, for judging whether first testing result is identical with second testing result, with Obtain judged result;
First determining module 304, for determining being close between terminal and exterior object or remote according to the judged result From state.
In certain embodiments, first determining module 304 is used for:
When the judged result is that first testing result is identical with second testing result, by first testing result or Second testing result be defined as between terminal and exterior object close to or away from state.
In certain embodiments, first determining module 304 is used for:
When the judged result be first testing result it is different from second testing result when, first signal projector with The secondary signal emitter is while emission detection signal, signal receiver the 3rd testing result of acquisition;
By the 3rd testing result be defined as between terminal and exterior object close to or away from state.
In certain embodiments, terminal 300 also includes:Comparison module, the second determining module.
The comparison module, for the 3rd testing result is compared with first testing result, to obtain comparing knot Really;
Second determining module, is that the 3rd testing result is identical with first testing result for working as the comparative result When, determine that the secondary signal emitter produces failure, when the comparative result is the 3rd testing result and the first detection knot When fruit is different, determine that first signal projector produces failure.
In certain embodiments, terminal 300 also includes:3rd acquisition module, display module.
3rd acquisition module, for obtaining default information;
The display module, for the default information displayed on the terminals.
In certain embodiments, terminal 300 also includes:4th acquisition module, the second judge module.
4th acquisition module, for obtaining the kinematic parameter of terminal;
Second judge module, for judging according to the kinematic parameter whether the state of the terminal changes;
Second acquisition module 302, for when second judge module is judged as NO, the transmitting of secondary signal emitter is visited Signal is surveyed, signal receiver obtains the second testing result.
The embodiment of the present invention also provides another kind of terminal, as shown in Figure 10, the terminal 400 can include radio frequency (RF, Radio Frequency) circuit 401, include the memorizer 402 of one or more computer-readable recording mediums, defeated Enter unit 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) Module 407, the processor 408 for including or more than one processing core, and the part such as power supply 409.This area skill The restriction of the terminal structure that art personnel are illustrated in being appreciated that Figure 10 not structure paired terminal, can include than illustrate it is more or Less part, or some parts are combined, or different part arrangements.
Radio circuit 401 can be communicated with the network equipment or other electronic equipments by radio communication, complete to set with network Information transmit-receive between standby or other electronic equipments.
Memorizer 402 can be used to store application program and data.Include and can hold in the application program of the storage of memorizer 402 Line program code.Application program can constitute various functions module.Processor 408 is stored in answering for memorizer 402 by operation With program, so as to perform various function application and data processing.
Input block 403 can be used for numeral, character information or the user's characteristic information (such as fingerprint) of receives input, and Produce the keyboard relevant with user's setting and function control, mouse, action bars, optics or trace ball signal input.Wherein, Input block 403 can include fingerprint recognition module.
Display unit 404 can be used for show by user input information or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any.
Terminal may also include at least one sensor 405, such as proximity transducer, acceleration transducer, gyroscope and Other sensors.Wherein, proximity transducer can be when during user's communication, terminal moves to user in one's ear, and control terminal is closed Display floater and/or backlight.The size of (generally three axles) acceleration in the detectable all directions of acceleration transducer, terminal are quiet Size and the direction of gravity is can detect that when only.Gyroscope can be used for detect all directions on (generally three axles) angular velocity it is big It is little, so as to the postural change of perception terminal.The other sensors such as the barometer that can also configure as terminal, drimeter, thermometer, Will not be described here.
Voicefrequency circuit 406 can convert electrical signals to acoustical signal, or acoustical signal is converted to the signal of telecommunication.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can be with which by wireless fidelity module 407 His terminal or server are communicated.
Processor 408 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the application program being stored in memorizer 402, and call the data being stored in memorizer 402, perform The various functions and processing data of terminal, so as to carry out integral monitoring to terminal.
Terminal also includes the power supply 409 (such as battery) powered to all parts.In certain embodiments, power supply can lead to Cross power-supply management system logically contiguous with processor 408, so as to by power-supply management system realize management charge, electric discharge, and The functions such as power managed.
Although not shown in Figure 10, terminal can also include photographic head, bluetooth module etc., will not be described here.
In the present embodiment, the processor 408 in terminal can be according to following instruction, by one or more application The corresponding executable program code of process of program is loaded in memorizer 402, and is stored in storage to run by processor 408 Application program in device 402, so as to realize various functions:
First signal projector emission detection signal;
Signal receiver obtains the first testing result;
Secondary signal emitter emission detection signal;
The signal receiver obtains the second testing result;
Judge whether first testing result and second testing result are identical, to obtain judged result;
According to the judged result determine between terminal and exterior object close to or away from state.
In certain embodiments, according to the judged result determine between terminal and exterior object close to or away from state When, processor 408 for when the judged result be first testing result it is identical with second testing result when, by this first examine Survey result or second testing result be defined as between terminal and exterior object close to or away from state.
In certain embodiments, according to the judged result determine between terminal and exterior object close to or away from state When, processor 408 for when the judged result be first testing result it is different from second testing result when, first signal Emitter and secondary signal emitter emission detection signal simultaneously, the signal receiver obtain the 3rd testing result, and should 3rd testing result be defined as between terminal and exterior object close to or away from state.
In certain embodiments, by the 3rd testing result be defined as between terminal and exterior object close to or away from shape After state, processor 408 is additionally operable to the 3rd testing result is compared with first testing result, to obtain comparative result; When the comparative result is that the 3rd testing result is identical with first testing result, determine that the secondary signal emitter is produced Failure;When the comparative result is that the 3rd testing result is different from first testing result, determine that first signal is launched Device produces failure.
In certain embodiments, determine that the secondary signal emitter produces failure or determines first signal projector After producing failure, processor 408 is additionally operable to obtain default information;The default information displayed on the terminals.
In certain embodiments, before secondary signal emitter emission detection signal, processor 408 is additionally operable to obtain terminal Kinematic parameter;Judge according to the kinematic parameter whether the state of the terminal changes;If it is not, then secondary signal emitter transmitting Detectable signal, signal receiver obtain the second testing result.
In above-described embodiment, the description to each embodiment all emphasizes particularly on different fields, and is not described in some embodiments Part, may refer to before to being close to the detailed description of detection method, will not be described here.
From the foregoing, it will be observed that a kind of terminal is embodiments provided, using the first signal projector emission detection signal;Letter Number receptor obtains the first testing result;Secondary signal emitter emission detection signal;Signal receiver obtains the second detection knot Really;Judge whether first testing result and second testing result are identical, to obtain judged result;It is true according to the judged result Determine between terminal and exterior object close to or away from state.The program distinguishes emission detection letter by two signal projectors Number, and obtain testing result twice respectively, based on this twice testing result it is whether identical determining between terminal and exterior object Close to or away from state, can avoid it is inaccurate using testing result during individual signals emitter, such that it is able to improve detection The accuracy close to or away from state between terminal and exterior object.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps can be by program to instruct the hardware of correlation to complete, and the program can be stored in computer-readable storage medium In matter, storage medium can include:Read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of proximity test method, device and the terminal for being provided to the embodiment of the present invention above is described in detail, Specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is simply used The method of the present invention and its core concept are understood in help;Simultaneously for those skilled in the art, according to the think of of the present invention Think, will change in specific embodiments and applications, in sum, it is right that this specification content should not be construed as The restriction of the present invention.

Claims (13)

1. a kind of proximity test method, is applied in terminal, and the terminal includes the first signal projector, secondary signal emitter And signal receiver, it is characterised in that the proximity test method includes:
First signal projector emission detection signal;
The signal receiver obtains the first testing result;
Secondary signal emitter emission detection signal;
The signal receiver obtains the second testing result;
Judge whether first testing result is identical with second testing result, to obtain judged result;
According to the judged result determine between the terminal and exterior object close to or away from state.
2. proximity test method according to claim 1, it is characterised in that described according to the judged result determines Including close to or away from state between terminal and exterior object:
When the judged result is that first testing result is identical with second testing result, the described first detection is tied Fruit or second testing result be defined as between the terminal and exterior object close to or away from state.
3. proximity test method according to claim 1, it is characterised in that described according to the judged result determines Including close to or away from state between terminal and exterior object:
When the judged result is that first testing result is different from second testing result, the first signal transmitting Device and the secondary signal emitter are while emission detection signal;
The signal receiver obtains the 3rd testing result;
By the 3rd testing result be defined as between the terminal and exterior object close to or away from state.
4. proximity test method according to claim 3, it is characterised in that described that 3rd testing result is defined as Between the terminal and exterior object close to or away from after state, the proximity test method also includes:
3rd testing result and first testing result are compared, to obtain comparative result;
When the comparative result is that the 3rd testing result is identical with first testing result, second letter is determined Number emitter produces failure;
When the comparative result is that the 3rd testing result is different from first testing result, first letter is determined Number emitter produces failure.
5. proximity test method according to claim 4, it is characterised in that described to determine the secondary signal emitter After producing failure or determining that first signal projector produces failure, the proximity test method also includes:
Obtain default information;
The default information is shown in the terminal.
6. proximity test method according to any one of claim 1 to 5, it is characterised in that the secondary signal transmitting Before the step of device emission detection signal, the proximity test method also includes:
Obtain the kinematic parameter of the terminal;
Judge according to the kinematic parameter whether the state of the terminal changes;
If it is not, then secondary signal emitter emission detection signal.
7. a kind of proximity test device, is applied in terminal, and the terminal includes the first signal projector, secondary signal emitter And signal receiver, it is characterised in that the proximity test device includes:
First acquisition module, in the first signal projector emission detection signal, the signal receiver obtains first and examines Survey result;
Second acquisition module, in secondary signal emitter emission detection signal, the signal receiver obtains second and examines Survey result;
First judge module, for judging whether first testing result is identical with second testing result, to be sentenced Disconnected result;
First determining module, for according to the judged result determine between the terminal and exterior object close to or away from shape State.
8. proximity test device according to claim 7, it is characterised in that first determining module is used for:
When the judged result is that first testing result is identical with second testing result, the described first detection is tied Fruit or second testing result be defined as between the terminal and exterior object close to or away from state.
9. proximity test device according to claim 7, it is characterised in that first determining module is used for:
When the judged result is that first testing result is different from second testing result, the first signal transmitting Device and the secondary signal emitter are while emission detection signal, the 3rd testing result of the signal receiver acquisition;
By the 3rd testing result be defined as between the terminal and exterior object close to or away from state.
10. proximity test device according to claim 9, it is characterised in that also include:
Comparison module, for the 3rd testing result and first testing result are compared, to obtain comparative result;
Second determining module, is that the 3rd testing result is identical with first testing result for working as the comparative result When, determine that the secondary signal emitter produces failure, when the comparative result is the 3rd testing result and described the When one testing result is different, determine that first signal projector produces failure.
11. proximity test devices according to claim 10, it is characterised in that also include:
3rd acquisition module, for obtaining default information;
Display module, for the default information is shown in the terminal.
The 12. proximity test devices according to any one of claim 7 to 11, it is characterised in that also include:
4th acquisition module, for obtaining the kinematic parameter of the terminal;
Second judge module, for judging according to the kinematic parameter whether the state of the terminal changes;
Second acquisition module, for when second judge module is judged as NO, secondary signal emitter emission detection Signal, signal receiver obtain the second testing result.
13. a kind of terminals, it is characterised in that include:
Proximity transducer, between detection terminal and exterior object close to or away from state;
Be stored with the memorizer of executable program code;
The processor coupled with the memorizer;
The executable program code that the processor is stored in calling the memorizer, performs as appointed in claim 1 to 6 Proximity test method described in one.
CN201611108002.8A 2016-12-06 2016-12-06 Proximity detection method and device and terminal Expired - Fee Related CN106598358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611108002.8A CN106598358B (en) 2016-12-06 2016-12-06 Proximity detection method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611108002.8A CN106598358B (en) 2016-12-06 2016-12-06 Proximity detection method and device and terminal

Publications (2)

Publication Number Publication Date
CN106598358A true CN106598358A (en) 2017-04-26
CN106598358B CN106598358B (en) 2020-01-14

Family

ID=58596100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611108002.8A Expired - Fee Related CN106598358B (en) 2016-12-06 2016-12-06 Proximity detection method and device and terminal

Country Status (1)

Country Link
CN (1) CN106598358B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844246A (en) * 2017-11-22 2018-03-27 广东欧珀移动通信有限公司 Display screen condition control method, device, storage medium and terminal
CN107948418A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Display screen condition control method, device, storage medium and terminal
CN108122253A (en) * 2017-12-04 2018-06-05 广东欧珀移动通信有限公司 Proximity test method, apparatus and electronic equipment
CN109407631A (en) * 2018-09-29 2019-03-01 珠海格力电器股份有限公司 Processing method, device, unit and the storage medium of input load information
CN110865710A (en) * 2019-11-19 2020-03-06 Oppo(重庆)智能科技有限公司 Terminal control method and device, mobile terminal and storage medium
US10789888B2 (en) 2018-03-16 2020-09-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Proximity-detection method for electronic device
US11893959B2 (en) 2021-05-17 2024-02-06 Samsung Electronics Co., Ltd. Electronic device including proximity sensor having a plurality of light receiving elements and method of controlling the same

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024584A1 (en) * 2005-08-01 2007-02-01 Chee-Heng Wong System and method for fault detection and recovery for an optical input area
CN102023753A (en) * 2009-09-09 2011-04-20 联想(北京)有限公司 Approach detection apparatus and electronic equipment
CN103777818A (en) * 2012-10-17 2014-05-07 敦南科技股份有限公司 Proximity sensing method and device
EP2722733A4 (en) * 2011-06-16 2015-02-25 Sony Corp Information processing device, information processing method, and program
CN104618575A (en) * 2014-12-30 2015-05-13 小米科技有限责任公司 Method and device for approaching detected objects
CN106155382A (en) * 2015-04-01 2016-11-23 深圳市汇顶科技股份有限公司 Based on the proximity test method of HotKnot, device and touch screen terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024584A1 (en) * 2005-08-01 2007-02-01 Chee-Heng Wong System and method for fault detection and recovery for an optical input area
CN102023753A (en) * 2009-09-09 2011-04-20 联想(北京)有限公司 Approach detection apparatus and electronic equipment
EP2722733A4 (en) * 2011-06-16 2015-02-25 Sony Corp Information processing device, information processing method, and program
CN103777818A (en) * 2012-10-17 2014-05-07 敦南科技股份有限公司 Proximity sensing method and device
CN104618575A (en) * 2014-12-30 2015-05-13 小米科技有限责任公司 Method and device for approaching detected objects
CN106155382A (en) * 2015-04-01 2016-11-23 深圳市汇顶科技股份有限公司 Based on the proximity test method of HotKnot, device and touch screen terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844246A (en) * 2017-11-22 2018-03-27 广东欧珀移动通信有限公司 Display screen condition control method, device, storage medium and terminal
CN107948418A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Display screen condition control method, device, storage medium and terminal
CN108122253A (en) * 2017-12-04 2018-06-05 广东欧珀移动通信有限公司 Proximity test method, apparatus and electronic equipment
US10789888B2 (en) 2018-03-16 2020-09-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Proximity-detection method for electronic device
CN109407631A (en) * 2018-09-29 2019-03-01 珠海格力电器股份有限公司 Processing method, device, unit and the storage medium of input load information
CN110865710A (en) * 2019-11-19 2020-03-06 Oppo(重庆)智能科技有限公司 Terminal control method and device, mobile terminal and storage medium
CN110865710B (en) * 2019-11-19 2023-08-18 Oppo(重庆)智能科技有限公司 Terminal control method and device, mobile terminal and storage medium
US11893959B2 (en) 2021-05-17 2024-02-06 Samsung Electronics Co., Ltd. Electronic device including proximity sensor having a plurality of light receiving elements and method of controlling the same

Also Published As

Publication number Publication date
CN106598358B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN106598358A (en) Proximity detection method and device and terminal
RU2655971C2 (en) Method, device for implementation of terminal device access to wireless network
CN107153818A (en) Optical finger print verification method and Related product
CN109656827B (en) Control tree generation method and terminal equipment
CN108513347B (en) Data transmission method and electronic equipment
WO2015039601A1 (en) Methods, devices, terminal device and systems for pattern recognition
CN104808209A (en) Method and device for detecting obstacle
CN107968883A (en) Distance state detection method, device, storage medium and electronic equipment
CN107220592A (en) A kind of optical ftngetpnnt acquisidon method and Related product
CN107145849B (en) Target object state detection method, mobile terminal and computer readable storage medium
CN111186331A (en) Electric charging station with docking management and method of use thereof
CN109145731B (en) Fingerprint identification method and device and mobile terminal
CN107704182B (en) Code scanning method and mobile terminal
CN108551525B (en) State determination method of movement track and mobile terminal
CN108964838A (en) transmission rate adjusting method, device and electronic device
EP3817289A1 (en) Cell management method, terminal and network side device
CN111399792B (en) Content sharing method and electronic equipment
US20240212399A1 (en) Automobile Diagnosis System and Method, and Cloud Server
CN108880751A (en) transmission rate adjusting method, device and electronic device
CN109921960B (en) IDC machine room network anomaly testing method and device
CN108737640A (en) False-touch prevention method, apparatus, mobile terminal and storage medium
CN109793491B (en) Terminal equipment for color blindness detection
CN112199246B (en) Terminal test method and device, storage medium and mobile terminal
US20230319724A1 (en) Electronic device and operation method therefor
CN111615216B (en) Random access method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114

CF01 Termination of patent right due to non-payment of annual fee