CN108195407A - The detection method and device of a kind of distance state - Google Patents
The detection method and device of a kind of distance state Download PDFInfo
- Publication number
- CN108195407A CN108195407A CN201711483918.6A CN201711483918A CN108195407A CN 108195407 A CN108195407 A CN 108195407A CN 201711483918 A CN201711483918 A CN 201711483918A CN 108195407 A CN108195407 A CN 108195407A
- Authority
- CN
- China
- Prior art keywords
- capacitance
- vertical range
- testee
- mobile terminal
- distance
- 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
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D5/00—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
- G01D5/12—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
- G01D5/14—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage
- G01D5/24—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage by varying capacitance
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
Abstract
An embodiment of the present invention provides the detection methods and device of a kind of distance state, and applied to mobile terminal, the mobile terminal has at least three capacitance sensors, the method includes:The capacitance for obtaining the capacitance of at least three capacitance sensors current detection and formerly detecting;Capacitance and the capacitance that formerly detects according to the current detection determine the distance state of testee and the mobile terminal.In embodiments of the present invention, at least three capacitance sensors are provided in mobile terminal, according to the capacitance of each capacitance sensor current detection and the capacitance formerly detected, can accurately determine the distance state of testee and the mobile terminal.The distance for conveniently identifying object and terminal is remote or near, the capacitance sensor of use, can effectively reduce the thickness space that device used in range measurement occupies, and without in apparatus surface trepanning, reduction functional appearance trepanning promotes appearance power.
Description
Technical field
The present invention relates to mobile communication technology field, detection method and a kind of distance more particularly to a kind of distance state
The detection device of state.
Background technology
With popularizing for the mobile terminals such as smart mobile phone, have become the standard configuration device of mobile terminal close to (close) sensor
Part is made a phone call close to the screen that goes out, far from bright screen with realizing, so as to reach the function of power saving and anti-error triggering.At present, industry Nei Duoli
Above-mentioned function is realized with infrared or laser distance sensing element.
Wherein, if using infrared rays survey distance, it is required that must have, there are one infrared emitting and receive process.By
It needs to sense a certain range, therefore the measurement method must make a certain region of mobile terminal shell that can penetrate in transmitting and reception
Infrared light needs trepanning, influence appearance.Although there have manufacturer to be provided in the tapping of screen of mobile terminal glass to be infrared
The specialty inks of light transmittance, but this ink is generally the light touch screen of bluish violet or the dark system such as black-and-blue, certain whites etc. also
It is to need trepanning;And the testing result of such mode is not very accurate, it is impossible to meet user demand.
Invention content
The embodiment of the present invention proposes the detection dress of a kind of detection method of distance state and a kind of corresponding distance state
It puts, to solve the problems, such as that the range measurement of object distance mobile terminal is not accurate enough.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of detection method of distance state, applied to movement
Terminal, the mobile terminal have at least three capacitance sensors, the method includes:
The capacitance for obtaining the capacitance of at least three capacitance sensors current detection and formerly detecting;
Capacitance and the capacitance that formerly detects according to the current detection, determine testee and the movement
The distance state of terminal.
The embodiment of the invention also discloses a kind of detection devices of distance state, described mobile whole applied to mobile terminal
End has at least three capacitance sensors, and described device includes:
Capacitance acquisition module, for obtaining the capacitance of at least three capacitance sensors current detection, Yi Ji
The capacitance first detected;
Distance state detection module, for the capacitance according to the current detection and the capacitance formerly detected, really
Determine the distance state of testee and the mobile terminal.
The embodiment of the present invention includes advantages below:
In embodiments of the present invention, at least three capacitance sensors are provided in mobile terminal, according to each capacitance sensing
The capacitance of device current detection and the capacitance formerly detected, can accurately determine testee and the mobile terminal away from
From state.The distance for conveniently identifying object and terminal is remote or near, the capacitance sensor of use, can effectively reduce away from
From the thickness space that device used in measurement occupies, and without in apparatus surface trepanning, reduction functional appearance trepanning promotes appearance
Expressive force.
Description of the drawings
Fig. 1 is a kind of step flow chart of the detection method embodiment 1 of distance state of the present invention;
Fig. 2 is a kind of step flow chart of the detection method embodiment 2 of distance state of the present invention;
Fig. 3 is a kind of structure diagram of the detection device embodiment of distance state of the present invention;
Fig. 4 is the block diagram of the mobile terminal of another embodiment of the present invention;
Fig. 5 is the structure diagram of the mobile terminal of another embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
With reference to Fig. 1, a kind of step flow chart of the detection method embodiment 1 of distance state of the present invention is shown.The party
Method is applied to the mobile terminal at least three capacitance sensors, and the method specifically may include steps of:
Step 101, the capacitance of at least three capacitance sensors current detection and the capacitance formerly detected are obtained
Value;
In embodiments of the present invention, terminal can be obtained the capacitance of each capacitance sensor detection by certain time interval
Value.For example, obtain within each 0.5 second the capacitance of each capacitance sensor detection successively.
Capacitance sensor can detect the capacitance between external object and capacitance sensor.According to the capacitance of detection,
The slight change of the distance between external object and capacitor can be perceived.
The capacitance of each capacitance sensor current detection, can represent between current testee and capacitance sensor
Distance.The capacitance that each capacitance sensor formerly detects, can represent between first testee and capacitance sensor away from
From.
In embodiments of the present invention, multiple capacitance sensors can be arranged on the different location of mobile terminal.Each capacitance
The capacitance of sensor detection, can represent the distance between different location of testee and mobile terminal.
Preferably, multiple capacitance sensors can be uniformly distributed around the specific position of mobile terminal, and each capacitance passes
Distance of the sensor apart from specific position is identical.
For example, the center of screen that each capacitance sensor can surround mobile terminal is uniformly distributed, and each capacitance passes
Distance of the sensor apart from the center of screen is identical.
Step 102, according to the capacitance of the current detection and the capacitance formerly detected, determine testee with
The distance state of the mobile terminal.
Distance state represents the far and near state of testee and mobile terminal.Distance state can specifically include far from state
With close state.
Some application programs of mobile terminal can be carried out corresponding according to the distance state of testee and mobile terminal
Action event.For example, in communication process, when detecting far from state, then bright screen.When detecting close to state, then
Dark screen.
In embodiments of the present invention, at least three capacitance sensors are provided in mobile terminal, according to each capacitance sensing
The capacitance of device current detection and the capacitance formerly detected, can accurately determine testee and the mobile terminal away from
From state.The distance for conveniently identifying object and terminal is remote or near, the capacitance sensor of use, can effectively reduce away from
From the thickness space that device used in measurement occupies, and without in apparatus surface trepanning, reduction functional appearance trepanning promotes appearance
Expressive force.
With reference to Fig. 2, a kind of step flow chart of the detection method embodiment 2 of distance state of the present invention is shown.The party
Method is applied to the mobile terminal at least three capacitance sensors, and the method specifically may include steps of:
Step 201, the capacitance of at least three capacitance sensors current detection and the capacitance formerly detected are obtained
Value;
In embodiments of the present invention, at least three capacitance sensor can be arranged on the different location of mobile terminal.
The capacitance of each capacitance sensor detection, can represent the distance between different location of testee and mobile terminal.
Preferably, multiple capacitance sensors can be uniformly distributed around the specific position of mobile terminal, and each capacitance passes
Distance of the sensor apart from specific position is identical.
Step 202, it using the capacitance of at least three capacitance sensors current detection, calculates the testee and arrives
First vertical range of the mobile terminal;
In embodiments of the present invention, the step 202 can specifically include:
Using the capacitance of at least three capacitance sensors current detection, at least three capacitance is calculated respectively and is passed
Sensor is to the first distance of the testee;
Using the first distance of at least three capacitance sensor to the testee, calculate the testee and arrive
First vertical range of the specific position of the mobile terminal.
Specific position can be configured according to the position of the distribution of capacitance sensor.For example, when each capacitance sensor
It is uniformly distributed around the center of mobile terminal screen, and when distance of each capacitance sensor apart from screen center is identical, it can be with
Specific position is set as screen center.
According to the first distance of testee to each capacitance sensor, so that it is determined that testee is to the of screen center
One vertical range.
Certainly in the case that reasonably, specific position can also voluntarily be set according to actual needs.
Step 203, the capacitance formerly detected using at least three capacitance sensor is calculated the testee and arrived
Second vertical range of the mobile terminal;
In embodiments of the present invention, the step 203 can specifically include:
The capacitance formerly detected using at least three capacitance sensor is calculated at least three capacitance and passed respectively
Sensor is to the second distance of the testee;
Using the second distance of at least three capacitance sensor to the testee, calculate the testee and arrive
Second vertical range of the specific position of the mobile terminal.
The capacitance formerly detected using each capacitance sensor calculates formerly each capacitance sensor and measured object respectively
Second distance between body;Using the second distance formerly between each capacitance sensor and testee, testee is calculated
The second vertical range between the specific position of mobile terminal.
Step 204, when first vertical range be less than second vertical range when, it is determined that the testee with
The distance state of the mobile terminal is close to state;
First vertical range is less than the second vertical range, then illustrates that testee is currently small with the distance between mobile terminal
In testee formerly the distance between with mobile terminal.It can be considered that the distance state of testee and mobile terminal is
Close to state.
It is being determined as after state, can notifying relevant application program is directed to carry out corresponding operation thing close to state
Part.
In embodiments of the present invention, the step 204 can specifically include:
When first vertical range is less than second vertical range, and first vertical range is less than default the
During one distance threshold, it is determined that the distance state of the testee and the mobile terminal is close to state.
In some cases, although the first vertical range is less than the second vertical range, the first vertical range and second are hung down
Straight distance is all distant apart from mobile terminal.In such a case it is not necessary to determine distance state.Only in testee with moving
When the first current vertical range is less than default first distance threshold between dynamic terminal, just determining testee and mobile terminal
Distance state is close to state.
Step 205, when first vertical range be more than second vertical range when, it is determined that the testee with
The distance state of the mobile terminal is far from state.
In embodiments of the present invention, the step 205 can specifically include:
When first vertical range is more than second vertical range, and the first vertical range threshold value is more than in advance
If during second distance threshold value, it is determined that the distance state of the testee and the mobile terminal is far from state;Described
One distance threshold is less than the second distance threshold value.
In some cases, although the first vertical range is more than the second vertical range, the first vertical range and second are hung down
Straight distance is all closer apart from mobile terminal.In such a case it is not necessary to determine distance state.Only in testee with moving
When the first current vertical range is more than default second distance threshold value between dynamic terminal, just determining testee and mobile terminal
Distance state is far from state.
After being determined as far from state, it can notify relevant application program is directed to carry out corresponding operation thing far from state
Part.
In embodiments of the present invention, at least three capacitance sensors are provided in mobile terminal, according to each capacitance sensing
The capacitance of device current detection and the capacitance formerly detected, can accurately determine testee and the mobile terminal away from
From state.The distance for conveniently identifying object and terminal is remote or near, the capacitance sensor of use, can effectively reduce away from
From the thickness space that device used in measurement occupies, and without in apparatus surface trepanning, reduction functional appearance trepanning promotes appearance
Expressive force.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 3, a kind of structure diagram of the detection device embodiment of distance state of the present invention, described device are shown
Applied to the mobile terminal at least three capacitance sensors, it can specifically include following module:
Capacitance acquisition module 301, for obtain the capacitance of at least three capacitance sensors current detection and
The capacitance formerly detected;
Distance state detection module 302, for the capacitance according to the current detection and the capacitance formerly detected
Value determines the distance state of testee and the mobile terminal.
In embodiments of the present invention, the distance state detection module 302 can include:
First vertical range computational submodule, for using the capacitance of the current detection, calculating the testee
To the first vertical range of the mobile terminal;
Second vertical range computational submodule for using the capacitance formerly detected, calculates the testee
To the second vertical range of the mobile terminal;
Close to state determination sub-module, for when first vertical range is less than second vertical range, then really
The distance state of the fixed testee and the mobile terminal is close to state;
Far from state determination sub-module, for when first vertical range is more than second vertical range, then really
The distance state of the fixed testee and the mobile terminal is far from state.
In embodiments of the present invention, the first vertical range computational submodule includes:
First metrics calculation unit, for using the capacitance of at least three capacitance sensors current detection, difference
At least three capacitance sensor is calculated to the first distance of the testee;
First vertical range computing unit, for using the of at least three capacitance sensor to the testee
One distance calculates the testee to the first vertical range of the specific position of the mobile terminal.
In embodiments of the present invention, the second vertical range computational submodule includes:
Second distance computing unit, for the capacitance formerly detected using at least three capacitance sensor, difference
The multiple capacitance sensor is calculated to the second distance of the testee;
Second vertical range computing unit, for using the of at least three capacitance sensor to the testee
Two distances calculate the testee to the second vertical range of the specific position of the mobile terminal.
In embodiments of the present invention, the close state determination sub-module includes:
Close to status determining unit, it is less than second vertical range, and described for working as first vertical range
When first vertical range is less than default first distance threshold, it is determined that the distance state of the testee and the mobile terminal
For close to state;
The separate state determination sub-module includes:
Far from status determining unit, it is more than second vertical range, and described for working as first vertical range
When first vertical range threshold value is more than default second distance threshold value, it is determined that the distance of the testee and the mobile terminal
State is far from state;First distance threshold is less than the second distance threshold value.
In embodiments of the present invention, the multiple capacitance sensor uniformly divides around the specific position of the mobile terminal
Cloth, and the distance apart from the specific position is identical.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Fig. 4 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 400 shown in Fig. 4 includes:At least
One processor 401, memory 402, at least one network interface 404 and other users interface 403.In mobile terminal 400
Various components are coupled by bus system 405.It is understood that bus system 405 is used to implement the company between these components
Connect letter.Bus system 405 further includes power bus, controlling bus and status signal bus in addition in addition to including data/address bus.But
It is for the sake of clear explanation, various buses is all designated as bus system 405 in Fig. 4.
Wherein, user interface 403 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 402 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or it may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge
It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), be used as external slow at a high speed
It deposits.By exemplary but be not restricted explanation, the RAM of many forms can be used, such as static RAM
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 402 of the system and method for description of the embodiment of the present invention is intended to include but unlimited
In the memory of these and any other suitable type.
In some embodiments, memory 402 stores following element, executable modules or data structures or
Their subset of person or their superset:Operating system 4021 and application program 4022.
Wherein, operating system 4021 comprising various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 4022 includes various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., are used to implement various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 4022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 402, specifically, can be application
The program stored in program 4022 or instruction, processor 401 are used to obtain at least three capacitance sensors current detection
Capacitance and the capacitance formerly detected;Capacitance and the capacitance that formerly detects according to the current detection, really
Determine the distance state of testee and the mobile terminal.
The method that the embodiments of the present invention disclose can be applied to realize in processor 401 or by processor 401.
Processor 401 may be a kind of IC chip, have the processing capacity of signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing
Device 401 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), application-specific integrated circuit
(ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array
(FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic
Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention
Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion or use decoding processor
In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only memory can
In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage
Medium is located at memory 402, and processor 401 reads the information in memory 402, and the step of the above method is completed with reference to its hardware
Suddenly.
It is understood that the embodiment of the present invention description these embodiments can use hardware, software, firmware, middleware,
Microcode or combination is realized.For hardware realization, processing unit can be realized in one or more application-specific integrated circuits
(ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor
(DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device
(ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray,
FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for performing function of the present invention
In first or combination.
For software implementations, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come
Realize the technology described in the embodiment of the present invention.Software code is storable in memory and is performed by processor.Memory can
With portion realizes in the processor or outside the processor.
Optionally, processor 401 is additionally operable to:Using the capacitance of the current detection, the testee is calculated to institute
State the first vertical range of mobile terminal;
Using the capacitance formerly detected, calculate the testee to the mobile terminal second vertically away from
From;
When first vertical range is less than second vertical range, it is determined that the testee and the movement
The distance state of terminal is close to state;
When first vertical range is more than second vertical range, it is determined that the testee and the movement
The distance state of terminal is far from state.
Optionally, processor 401 is additionally operable to:
Using the capacitance of at least three capacitance sensors current detection, at least three capacitance is calculated respectively and is passed
Sensor is to the first distance of the testee;
Using the first distance of at least three capacitance sensor to the testee, calculate the testee and arrive
First vertical range of the specific position of the mobile terminal.
Optionally, processor 401 is additionally operable to:The capacitance formerly detected using at least three capacitance sensor, point
At least three capacitance sensor is not calculated to the second distance of the testee;
Using the second distance of at least three capacitance sensor to the testee, calculate the testee and arrive
Second vertical range of the specific position of the mobile terminal.
Optionally, processor 401 is additionally operable to:When first vertical range is less than second vertical range, and institute
When stating the first vertical range less than default first distance threshold, it is determined that the testee is with the mobile terminal apart from shape
State is close to state;
When first vertical range is more than second vertical range, and the first vertical range threshold value is more than in advance
If during second distance threshold value, it is determined that the distance state of the testee and the mobile terminal is far from state;Described
One distance threshold is less than the second distance threshold value.
Mobile terminal 400 can realize each process that mobile terminal is realized in previous embodiment, be repeated to avoid, here
It repeats no more.
In embodiments of the present invention, at least three capacitance sensors are provided in mobile terminal, according to each capacitance sensing
The capacitance of device current detection and the capacitance formerly detected, can accurately determine testee and the mobile terminal away from
From state.The distance for conveniently identifying object and terminal is remote or near, the capacitance sensor of use, can effectively reduce away from
From the thickness space that device used in measurement occupies, and without in apparatus surface trepanning, reduction functional appearance trepanning promotes appearance
Expressive force.
Fig. 5 is the structure diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 5
500 can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer
Deng.
Mobile terminal 500 in Fig. 5 includes radio frequency (RadioFrequency, RF) circuit 510, memory 520, input list
Member 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (WirelessFidelity) module 580 and power supply
590。
Wherein, input unit 530 can be used for receiving number input by user or character information and generation and mobile terminal
The related signal input of 500 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 531.Touch panel 531, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses the operations of any suitable object or attachment on touch panel 531 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment device.Optionally, touch panel 531 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 560 is given again, and can be received the order that processor 560 is sent and be performed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input unit
530 can also include other input equipments 532, other input equipments 532 can include but is not limited to physical keyboard, function key
It is one or more in (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
Wherein, display unit 540 can be used for display by information input by user or be supplied to information and the movement of user
The various menu interfaces of terminal 500.Display unit 540 may include display panel 541, optionally, LCD or organic hairs may be used
Display panel 541 is configured in the forms such as optical diode (OrganicLight-EmittingDiode, OLED).
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined
It measures and on it or after neighbouring touch operation, sends processor 560 to determine the type of touch event, be followed by subsequent processing device
560 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
Or the empty interface not comprising any content.The common control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone
Various pieces are stored by running or performing the software program being stored in first memory 521 and/or module and call
Data in second memory 522 perform the various functions of mobile terminal 500 and processing data, so as to mobile terminal 500
Carry out integral monitoring.Optionally, processor 560 may include one or more processing units.
In embodiments of the present invention, by calling store the first memory 521 in software program and/or module and/
Or the data in the second memory 522, processor 560 are used to obtain the electricity of at least three capacitance sensors current detection
Capacitance and the capacitance formerly detected;
Capacitance and the capacitance that formerly detects according to the current detection, determine testee and the movement
The distance state of terminal.
Optionally, processor 560 is additionally operable to the capacitance using the current detection, calculates the testee described in
First vertical range of mobile terminal;
Using the capacitance formerly detected, calculate the testee to the mobile terminal second vertically away from
From;
When first vertical range is less than second vertical range, it is determined that the testee and the movement
The distance state of terminal is close to state;
When first vertical range is more than second vertical range, it is determined that the testee and the movement
The distance state of terminal is far from state.
Optionally, processor 560 is additionally operable to the capacitance using at least three capacitance sensors current detection, respectively
At least three capacitance sensor is calculated to the first distance of the testee;
Using the first distance of at least three capacitance sensor to the testee, calculate the testee and arrive
First vertical range of the specific position of the mobile terminal.
Optionally, processor 560 is additionally operable to the capacitance formerly detected using at least three capacitance sensor, respectively
At least three capacitance sensor is calculated to the second distance of the testee;
Using the second distance of at least three capacitance sensor to the testee, calculate the testee and arrive
Second vertical range of the specific position of the mobile terminal.
Optionally, processor 560 is additionally operable to be less than second vertical range, and described when first vertical range
When first vertical range is less than default first distance threshold, it is determined that the distance state of the testee and the mobile terminal
For close to state;
When first vertical range is more than second vertical range, and the first vertical range threshold value is more than in advance
If during second distance threshold value, it is determined that the distance state of the testee and the mobile terminal is far from state;Described
One distance threshold is less than the second distance threshold value.
As it can be seen that it is provided at least three capacitance sensors in embodiments of the present invention, in mobile terminal, according to each capacitance
The capacitance of sensor current detection and the capacitance formerly detected can accurately determine testee and the mobile terminal
Distance state.The distance for conveniently identifying object and terminal is remote or near, and the capacitance sensor of use can effectively drop
The thickness space that device used in low range measurement occupies, and without in apparatus surface trepanning, reduction functional appearance trepanning is promoted
Appearance power.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with
The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are performed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows
And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base
This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped
Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited
Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
Detection method to a kind of distance state provided by the present invention and a kind of detection device of distance state above, into
It has gone and has been discussed in detail, specific case used herein is expounded the principle of the present invention and embodiment, implements above
The explanation of example is merely used to help understand the method and its core concept of the present invention;Meanwhile for the general technology people of this field
Member, thought according to the present invention, there will be changes in specific embodiments and applications, in conclusion this explanation
Book content should not be construed as limiting the invention.
Claims (12)
1. a kind of detection method of distance state, applied to mobile terminal, which is characterized in that the mobile terminal has at least three
A capacitance sensor, the method includes:
The capacitance for obtaining the capacitance of at least three capacitance sensors current detection and formerly detecting;
Capacitance and the capacitance that formerly detects according to the current detection, determine testee and the mobile terminal
Distance state.
2. according to the method described in claim 1, it is characterized in that, the capacitance according to the current detection, Yi Ji
The step of capacitance first detected, the distance state for determining testee and the mobile terminal, includes:
Using the capacitance of the current detection, the testee is calculated to the first vertical range of the mobile terminal;
Using the capacitance formerly detected, the testee is calculated to the second vertical range of the mobile terminal;
When first vertical range is less than second vertical range, it is determined that the testee and the mobile terminal
Distance state be close to state;
When first vertical range is more than second vertical range, it is determined that the testee and the mobile terminal
Distance state be far from state.
3. according to the method described in claim 2, it is characterized in that, the capacitance using the current detection, calculates institute
The step of stating the first vertical range of the testee to the mobile terminal includes:
Using the capacitance of at least three capacitance sensors current detection, at least three capacitance sensor is calculated respectively
To the first distance of the testee;
Using the first distance of at least three capacitance sensor to the testee, the testee is calculated described in
First vertical range of the specific position of mobile terminal.
It is 4. according to the method described in claim 2, it is characterized in that, described using the capacitance formerly detected, calculating institute
The step of stating the second vertical range of the testee to the mobile terminal includes:
The capacitance formerly detected using at least three capacitance sensor calculates at least three capacitance sensor respectively
To the second distance of the testee;
Using the second distance of at least three capacitance sensor to the testee, the testee is calculated described in
Second vertical range of the specific position of mobile terminal.
5. according to the method described in claim 2, it is characterized in that, described hang down when first vertical range is less than described second
Directly apart from when, it is determined that the distance state of the testee and the mobile terminal is to include close to the step of state:
When first vertical range is less than second vertical range, and first vertical range be less than default first away from
During from threshold value, it is determined that the distance state of the testee and the mobile terminal is close to state;
It is described when first vertical range is more than second vertical range, it is determined that the testee and the movement
The distance state of terminal is to include far from the step of state:
When first vertical range is more than second vertical range, and the first vertical range threshold value is more than default the
During two distance thresholds, it is determined that the distance state of the testee and the mobile terminal is far from state;Described first away from
It is less than the second distance threshold value from threshold value.
6. according to the method described in claims 1 or 2 or 3 or 4 or 5, which is characterized in that the multiple capacitance sensor surrounds institute
The specific position for stating mobile terminal is uniformly distributed, and the distance apart from the specific position is identical.
7. a kind of detection device of distance state, applied to mobile terminal, which is characterized in that the mobile terminal has at least three
A capacitance sensor, described device include:
Capacitance acquisition module, for obtaining the capacitance of at least three capacitance sensors current detection and formerly inspection
The capacitance of survey;
Distance state detection module for the capacitance according to the current detection and the capacitance formerly detected, determines quilt
Survey the distance state of object and the mobile terminal.
8. device according to claim 7, which is characterized in that the distance state detection module includes:
First vertical range computational submodule, for using the capacitance of the current detection, calculating the testee to institute
State the first vertical range of mobile terminal;
Second vertical range computational submodule for using the capacitance formerly detected, calculates the testee to institute
State the second vertical range of mobile terminal;
Close to state determination sub-module, for when first vertical range is less than second vertical range, it is determined that institute
The distance state for stating testee and the mobile terminal is close to state;
Far from state determination sub-module, for when first vertical range is more than second vertical range, it is determined that institute
The distance state for stating testee and the mobile terminal is far from state.
9. device according to claim 8, which is characterized in that the first vertical range computational submodule includes:
First metrics calculation unit, for using the capacitance of at least three capacitance sensors current detection, calculating respectively
At least three capacitance sensor is to the first distance of the testee;
First vertical range computing unit, for using at least three capacitance sensor to the testee first away from
From calculating the testee to the first vertical range of the specific position of the mobile terminal.
10. device according to claim 8, which is characterized in that the second vertical range computational submodule includes:
Second distance computing unit for the capacitance formerly detected using at least three capacitance sensor, is calculated respectively
The multiple capacitance sensor is to the second distance of the testee;
Second vertical range computing unit, for using at least three capacitance sensor to the testee second away from
From calculating the testee to the second vertical range of the specific position of the mobile terminal.
11. device according to claim 8, which is characterized in that the close state determination sub-module includes:
Close to status determining unit, it is less than second vertical range, and described first for working as first vertical range
When vertical range is less than default first distance threshold, it is determined that the distance state of the testee and the mobile terminal be by
Nearly state;
The separate state determination sub-module includes:
Far from status determining unit, it is more than second vertical range, and described first for working as first vertical range
When vertical range threshold value is more than default second distance threshold value, it is determined that the distance state of the testee and the mobile terminal
For far from state;First distance threshold is less than the second distance threshold value.
12. according to the device described in claim 7 or 8 or 9 or 10 or 11, which is characterized in that the multiple capacitance sensor encloses
Specific position around the mobile terminal is uniformly distributed, and the distance apart from the specific position is identical.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711483918.6A CN108195407B (en) | 2017-12-29 | 2017-12-29 | Method and device for detecting distance state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711483918.6A CN108195407B (en) | 2017-12-29 | 2017-12-29 | Method and device for detecting distance state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108195407A true CN108195407A (en) | 2018-06-22 |
CN108195407B CN108195407B (en) | 2020-11-03 |
Family
ID=62587130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711483918.6A Active CN108195407B (en) | 2017-12-29 | 2017-12-29 | Method and device for detecting distance state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108195407B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101815956A (en) * | 2007-10-04 | 2010-08-25 | 株式会社藤仓 | Capacitive proximity sensor and proximity detection method |
CN102590867A (en) * | 2012-02-03 | 2012-07-18 | 华为终端有限公司 | Approaching detection device and mobile terminal |
CN103424065A (en) * | 2013-07-29 | 2013-12-04 | 中国原子能科学研究院 | Small distance measuring method |
CN105446366A (en) * | 2015-12-29 | 2016-03-30 | 武汉嘉铭激光有限公司 | Position control system and method based on capacitance-type sensor |
CN106101453A (en) * | 2016-08-19 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | A kind of method controlling screen and terminal |
CN106293293A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | The detection method of a kind of object distance state and mobile terminal |
CN106412301A (en) * | 2016-09-29 | 2017-02-15 | 努比亚技术有限公司 | Screen control system based on proximity sensor and mobile terminal |
CN106648052A (en) * | 2016-09-29 | 2017-05-10 | 努比亚技术有限公司 | Application triggering system based on proximity detector and mobile terminal |
-
2017
- 2017-12-29 CN CN201711483918.6A patent/CN108195407B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101815956A (en) * | 2007-10-04 | 2010-08-25 | 株式会社藤仓 | Capacitive proximity sensor and proximity detection method |
CN102590867A (en) * | 2012-02-03 | 2012-07-18 | 华为终端有限公司 | Approaching detection device and mobile terminal |
CN103424065A (en) * | 2013-07-29 | 2013-12-04 | 中国原子能科学研究院 | Small distance measuring method |
CN105446366A (en) * | 2015-12-29 | 2016-03-30 | 武汉嘉铭激光有限公司 | Position control system and method based on capacitance-type sensor |
CN106293293A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | The detection method of a kind of object distance state and mobile terminal |
CN106101453A (en) * | 2016-08-19 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | A kind of method controlling screen and terminal |
CN106412301A (en) * | 2016-09-29 | 2017-02-15 | 努比亚技术有限公司 | Screen control system based on proximity sensor and mobile terminal |
CN106648052A (en) * | 2016-09-29 | 2017-05-10 | 努比亚技术有限公司 | Application triggering system based on proximity detector and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108195407B (en) | 2020-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106469011B (en) | A kind of information display method and mobile terminal | |
CN106445235B (en) | A kind of touch initial position recognition methods and mobile terminal | |
CN106354411B (en) | A kind of interface starting method and mobile terminal | |
EP2587671A1 (en) | Simulated hardware button operation method and touch screen terminal | |
CN106227488B (en) | A kind of display methods and mobile terminal of reminder message | |
CN106775322B (en) | A kind of method preventing virtual key false triggering and mobile terminal | |
CN106325753B (en) | A kind of display methods and mobile terminal of payment interface | |
CN106445264B (en) | A kind of calibration method and mobile terminal of touch control operation | |
CN106843487B (en) | A kind of the determination method and mobile terminal of the state being held | |
CN106293293A (en) | The detection method of a kind of object distance state and mobile terminal | |
CN107678666A (en) | A kind of virtual key display methods, mobile terminal and computer-readable recording medium | |
CN106371745B (en) | A kind of interface switching method and mobile terminal | |
CN106126035A (en) | A kind of method that application program shows and mobile terminal | |
CN106168894A (en) | A kind of content display method and mobile terminal | |
CN105955600B (en) | A kind of method and mobile terminal adjusting mobile terminal display interface | |
CN108759892A (en) | Sensor calibrating method, electronic device and computer readable storage medium | |
CN105930089B (en) | A kind of method and mobile terminal switching mobile terminal display interface | |
CN106648242B (en) | A kind of control method and mobile terminal of touch control operation | |
CN107678983A (en) | A kind of acquisition methods and mobile terminal of camera module data | |
CN106230069B (en) | A kind of charging method and terminal | |
CN106768695B (en) | A kind of air-tightness detection method and mobile terminal | |
CN107632761A (en) | A kind of display content inspection method, mobile terminal and computer-readable recording medium | |
CN106708389B (en) | A kind of method and mobile terminal of control display interface scaling | |
CN106527937B (en) | A kind of adding method and mobile terminal of mobile terminal widget | |
CN106933423B (en) | A kind of method and mobile terminal of pressure touch detection |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |