CN104202480B - The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus - Google Patents
The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus Download PDFInfo
- Publication number
- CN104202480B CN104202480B CN201410466845.XA CN201410466845A CN104202480B CN 104202480 B CN104202480 B CN 104202480B CN 201410466845 A CN201410466845 A CN 201410466845A CN 104202480 B CN104202480 B CN 104202480B
- Authority
- CN
- China
- Prior art keywords
- distance
- threshold values
- away
- calibration
- influence value
- 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.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses the distance-finding method of a kind of self-adaptation type calibration and hand-held call type communication apparatus;The distance-finding method of self-adaptation type calibration, comprises the following steps: initial work, by calling unlatching distance inducing function;Calibration operation, performs self adaptation distance perspective and answers calibration steps;Enable distance-sensor;To central processing unit application and enable distance perspective should interrupt enter;When distance-sensor has data variation, request central processing unit reads the influence value of current distance inductor;Central processing unit according to current distance influence value and the close preset threshold value of setting read and compares away from preset threshold value;Screen, according to away from state or near state, is shown and touch screen function is controlled by central processing unit;End of conversation.After distance-finding method of the present invention employs adaptive calibration process, the threshold values of inductor of adjusting the distance has carried out self-adaptative adjustment, near state with away from the deterministic process of state, the most accurately.Avoiding user uses exception to cause needing depot repair, has saved the cost of user and manufacturer.
Description
Technical field
The present invention relates to the distance-finding method of a kind of communication apparatus, more specifically refer to a kind of self-adaptation type
The distance-finding method of calibration and hand-held call type communication apparatus.
Background technology
Along with New Times social development, capacitance touch screen is widely applied on mobile phone, is answering electricity
During words, very close to touch screen thus there is maloperation in face.Typically by a range sensor, according to
Range sensor measures other object to numerical value during mobile phone close, contrasts with fixed range threshold values
Whether carry out perception mobile phone near other objects, near time be shut off background light and touch screen, away from time just beat
Open background light and touch screen, thus avoid maloperation.Difference, the increasing of use time along with mobile phone material
Length and the change of use environment, the data that range sensor all can be made to read occur inaccurate
Situation so that mobile phone judges deviation occur, just away from during with close object according to reading data
There will be obviously mobile phone away from object, and mobile phone according to data be judged as closer or far from time occur different
Often.When there is this kind of problem, usual practice is that after going wrong, the distance threshold values that updates in software is lifted
Height, then update the software of cellphone subscriber to solve this problem.And such solution, user occurs
Just achieving a solution after problem complaint, periodically length, problem scope are extensively, and producer may undertake
Reprocessing or software upgrading expense, cost is high.
Summary of the invention
It is an object of the invention to overcome the defect of prior art, it is provided that the survey of a kind of self-adaptation type calibration
Away from method.
Invention further provides a kind of hand-held communication type communication apparatus.
For achieving the above object, the present invention is by the following technical solutions:
The distance-finding method of self-adaptation type calibration, this distance-finding method uses for hand-held call type communication apparatus
It is located at the receiver of body when conversing, the range finding between body and human body, comprise the following steps:
Step 100, initial work, by calling, handset starting voice call function, and open
Open distance inducing function;
Step 101, calibration operation, perform self adaptation distance perspective and answer calibration steps, self adaptation distance perspective should
Calibrate and include procedure below:
Step 200, enables distance perspective and should calibrate the register startup work of needs;
Step 201, reads the average distance influence value of current environment: block not having any object
Call the distance influence value that detection is current, and at least 3 influence values of reading calculate current environment
Average distance influence value;
Step 202, arranges the abnormal threshold values of calibration, for judging average distance influence value whether exception
One abnormal threshold values of calibration is set;
Step 203, it is judged that whether average distance influence value is more than the abnormal threshold values of calibration, the most then
Enter step 204, if it is not, then enter step 205;
Step 204, carries out abnormal conditions process, arrange initialization near threshold values and initialize away from
Threshold values be current environment use close preset threshold value and away from preset threshold value, enter back into step 206;
Step 205, arranging self-adaptation type near threshold values and self-adaptation type is current environment away from threshold values
Use close preset threshold value and away from preset threshold value;Self-adaptation type is near threshold values=average distance influence value
+ initialize near threshold values;Self-adaptation type away from threshold values=average distance influence value+initialization away from threshold values;
Step 206, adaptive calibration completes;
Step 102, enables distance-sensor;
Step 103, to central processing unit application and enable distance perspective should interrupt enter;
Step 104, when distance-sensor has data variation, distance perspective should produce one and interrupt thing
Part request central processing unit reads the influence value of current distance inductor;
Step 105, central processing unit is according to the current distance influence value read and the close current valve of setting
Value and comparing away from preset threshold value, enters relevant state by comparing, when distance influence value is big
When near preset threshold value, enter near state;When distance influence value is less than away from preset threshold value, enter
Enter away from state;
Step 106, central processing unit judges whether current state there occurs change, if state by away from
State is changed into when state, and central processing unit cuts out screen and shows and touch screen function;If shape
State is by when state is changed into away from state, and central processing unit is opened screen and shown and touch screen function;
Step 107, end of conversation, hang up the telephone and nullify the distance perspective applied for and should interrupt, monitor
Device, the resource of release application.
Preferably, described initialization near threshold values for be provided with barrier at the 2-2.5cm of distance-sensor front end
Hinder influence value during thing;Initialize away from threshold values as to be provided with obstacle at the 3-3.5cm of distance-sensor front end
Influence value during thing.
Preferably, described distance-sensor is infrared ray distance-sensor or ultrasonic distance inductor;
Described hand-held call type communication apparatus is mobile phone, or with the panel computer of speech communication function, PDA.
Preferably, the abnormal threshold values of described calibration be distance-sensor sensing maximum limit 50% to
Any value between 100%.
Self adaptation distance perspective of the present invention answers calibration steps, by arranging on hand-held communication type communication apparatus
There is control button, trigger signal by this control button, or input by touching handset touch panel
Instruction, so that hand-held communication type communication apparatus performs self adaptation distance perspective and answers calibration process, specifically calibrates
Process comprises the following steps:
Step 200, enables distance perspective and should calibrate the register startup work of needs;
Step 201, reads the average distance influence value of current environment: block not having any object
Call the distance influence value that detection is current, and at least 3 influence values of reading calculate current environment
Average distance influence value;
Step 202, arranges the abnormal threshold values of calibration, for judging average distance influence value whether exception
One abnormal threshold values of calibration is set;
Step 203, it is judged that whether average distance influence value is more than the abnormal threshold values of calibration, the most then
Enter step 204, if it is not, then enter step 205;
Step 204, carries out abnormal conditions process, arrange initialization near threshold values and initialize away from
Threshold values be current environment use close preset threshold value and away from preset threshold value, enter back into step 206;
Step 205, arranging self-adaptation type near threshold values and self-adaptation type is current environment away from threshold values
Use close preset threshold value and away from preset threshold value;Self-adaptation type is near threshold values=average distance influence value
+ initialize near threshold values;Self-adaptation type away from threshold values=average distance influence value+initialization away from threshold values;
Step 206, adaptive calibration completes.
One hand-held communication type communication apparatus of the present invention, this hand-held call type communication apparatus is included in use
It is located at the receiver of body when conversing, to the range cells found range between body and human body, institute
The range cells stated includes with lower module:
Starting module, is used for initiateing work, by calling, and handset starting voice call function,
And open distance inducing function;
Calibration module, for calibration operation, performs self adaptation distance perspective and answers calibration steps, calibration module
Including following submodule:
Calibration promoter module, should calibrate the register startup work of needs for enabling distance perspective;
It is averaging influence value submodule, for reading the average distance influence value of current environment: do not having
There is any object to block and call the distance influence value that detection is current, and at least read 3 influence values
Calculate the average distance influence value of current environment;
Abnormal threshold values submodule, is used for arranging the abnormal threshold values of calibration, for judging average distance influence value
One abnormal threshold values of calibration is set the most extremely;
Judge submodule, be used for judging whether average distance influence value is more than the abnormal threshold values of calibration, if
It is then to perform extremely to arrange submodule, if it is not, then perform self adaptation to arrange submodule;
Extremely submodule is set, is used for carrying out abnormal conditions process, arrange initialization near threshold values and
Initialize away from the close preset threshold value that threshold values is current environment use with away from preset threshold value, then perform
Calibrate submodule;
Self adaptation arranges submodule, is used for arranging self-adaptation type near threshold values and self-adaptation type away from valve
It is worth the close preset threshold value used for current environment and away from preset threshold value;Self-adaptation type near threshold values=
Average distance influence value+initialization is near threshold values;Self-adaptation type away from threshold values=average distance influence value+
Initialize away from threshold values;
Calibrate submodule, completed for adaptive calibration;
Enable module, be used for enabling distance-sensor;
Interrupt module, for central processing unit application and enable distance perspective should interrupt enter;
Read module, for when distance-sensor has data variation, distance perspective should produce one
Interrupt event request central processing unit reads the influence value of current distance inductor;
Comparison module, for close according to the current distance influence value read and setting of central processing unit
Preset threshold value and comparing away from preset threshold value, enters relevant state by comparing, works as distance perspective
When should be worth more than close preset threshold value, enter near state;When distance influence value is less than away from current valve
Value, enters away from state;
For central processing unit, handover module, judges whether current state there occurs change, if state
By when being changed into close state away from state, central processing unit cuts out screen and shows and touch screen function;
If state is by when state is changed into away from state, central processing unit is opened screen and is shown and touch
Screen function;
Terminate module, for end of conversation, hang up the telephone and nullify the distance perspective applied for should interrupt,
Monitor, the resource of release application.
Preferably, described initialization near threshold values for be provided with barrier at the 2-2.5cm of distance-sensor front end
Hinder influence value during thing;Initialize away from threshold values as to be provided with obstacle at the 3-3.5cm of distance-sensor front end
Influence value during thing.
Preferably, described distance-sensor is infrared ray distance-sensor.
Preferably, described hand-held call type communication apparatus is mobile phone, or with speech communication function
Panel computer, PDA.
Preferably, the abnormal threshold values of described calibration be distance-sensor sensing maximum limit 50% to
Any value between 100%.
The present invention compared with prior art provides the benefit that: distance-finding method of the present invention employs self adaptation
After calibration process, the threshold values of inductor of adjusting the distance has carried out self-adaptative adjustment, in close state with remote
In the deterministic process of state, the most accurately.During mobile phone uses, distance perspective during call every time
Ying Douhui calibrates according to current environment, is adapted to the environment of multiple change, improves user's body
Test.Avoiding user uses exception to cause needing depot repair, has saved the cost of user and manufacturer.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings.
Accompanying drawing explanation
Fig. 1 is that influence value and the shelter of the distance-sensor specific embodiment that the present invention uses are apart from it
Between curve map;
Fig. 2 is the ranging process schematic diagram of the distance-finding method specific embodiment of self-adaptation type of the present invention calibration;
Fig. 3 is the calibration process schematic diagram in Fig. 2 embodiment;
Fig. 4 is the structural representation of hand-held communication type communication apparatus specific embodiment range cells of the present invention.
Detailed description of the invention
In order to more fully understand the technology contents of the present invention, below in conjunction with specific embodiment to the present invention's
Technical scheme is further described and illustrates, but is not limited to this.
In conjunction with Fig. 2 to Fig. 3, understand the particular content of distance-finding method of the present invention.
The core concept of the present invention is: when mobile phone dialing phone or when receiving calls, in mobile phone body
Distance-sensing module (i.e. distance-sensor) according to current environment be arranged close to (D is close) and
Away from the threshold values of (D away from), therefore threshold values is dynamically set according to environment and can reach at various severe rings
Ensure below border that distance induction module can normally work.Owing to using earphone call or bluetooth equipment
During call, distance-sensor can't work, and therefore we only consider the situation under user's normal talking.
Concrete operating procedure is as follows:
1) first call and open distance inducing function (i.e. entering step 100);When call should
After starting by program (APP), will be at the power management services line of system (operating system of mobile phone)
The monitor of one distance-sensor change of journey application.The corresponding processing method of monitor, works as distance
Will be called when the value of inductor changes, be used for processing to should the processing method of event.When
Distance-sensor is away from state (S is away from state) or in state (S is near state) is reported to
After central processor (CPU) is answered monitor to listen to by distance perspective, central processing unit (CPU) end will
Perform monitor method and close screen and touch function.
2) perform self adaptation distance perspective and answer calibration steps (i.e. entering step 101);Self adaptation distance perspective
Answer the idiographic flow of calibration steps as shown in Figure 3:
A, enable distance perspective should calibrate the relevant register (i.e. entering step 200) of needs;Only make
After the relevant register that energy range calibration needs, could normally read the sensing that distance perspective should be front
Value.
B, the average distance influence value (D average detected) (i.e. entering step 201) of reading current environment;
Call, not having any object to block, the distance influence value (D detection) that detection is current, and read
3 influence values calculate average distance influence value (D average detected=(the D detection 1+D inspection of current environment
Survey 2+D detection 3)/3).
C, the abnormal threshold values of calibration (i.e. entering step 202) is set;Lived by clothes or stick shift when calibrated
Time, the average distance influence value (D average detected) that adaptive calibration reads can be closer to induction pole limit value
(Dmax).Then it is arranged close to (D is close) further according to average distance influence value (D average detected)
With the threshold values away from (D away from), this will cause, and the sensing of this speech range is slow in reacting cannot normally be made
With (being discussed in detail below and how to be arranged close to (D by average distance influence value (D average detected)
Close) and away from the threshold values of (D away from)).Such as, when adaptive calibration when there being shelter close
Distance-sensor to 0.5 centimetre (L calibrates abnormal) is set to calibrate abnormal threshold values, and object is blocked in detection
Sense that 0.5 centimetre of (L calibrates abnormal) respective distances influence value is 800 (D calibrates abnormal) near distance,
Then every time call be arranged close to (D is close) and away from the threshold values of (D away from) before, it is necessary to judge flat
All whether enter more than the abnormal threshold values of calibration 800 (D calibrates abnormal) apart from influence value (D average detected)
Step 203.More than then processing for abnormal conditions, be set to system default near (D is close) and far
Threshold values (i.e. entering step 204) from (D away from) be close the preset threshold value that uses of current environment with
Away from preset threshold value, less than then carrying out GN Normal Alignment process, (D part can be discussed in detail the most normal below
Calibration process).Now, distance-sensor can also be able to normally in face in the environment of a lot of exceptions
Work.
D, the current environment threshold values near (D is close) with away from (D away from) is set (i.e. enters step
205);The use habit answered according to user, near threshold values (D is close) generally correspond to face and away from
It is 2.5 centimetres (L is close) from inductor physics actual range, generally corresponds to away from threshold values (D away from)
Face and distance-sensor physics actual range be 3 centimetres (L away from).Putting down of normal unobstructed environment
It is all 0 apart from influence value (D average detected), when then having object to block, detects the height answered with distance perspective
Degree is the distance influence value of 2.5 centimetres (L is close) and 3 centimetres (L away from), and respectively 120 (at the beginning of D
Beginningization is close) and 60 (D initialize away from).Can draw near (D is close) with away from (D from this
Away from) the relation of threshold values and average influence value (D average detected), as follows: D is close (the most close
Preset threshold value)=D average detected+120, D is away from (i.e. away from preset threshold value)=D average detected+60.
After having such corresponding relation, every time can be according to the average distance sense of detection current environment before call
(D average detected) should be worth this call is set near (D is close) with away from the threshold values of (D away from),
When so can ensure that call every time, distance-sensor can work normally.Assume the saturating of touch-screen
Light rate is abnormal bigger than normal, and causing without any average distance influence value (D average detected) blocking environment is 220,
Through above algorithm D close=D average detected+120 and D can calculate this away from=D average detected+60
The close threshold values (D is close) of secondary call is 340, be 280 away from threshold values (D away from).So user
Call face when distance-sensor 2.5 centimetres (L is close), detect that distance influence value is big
In may turn off screen and touch screen function near threshold values 340 (D is close), then when face away from away from
From the height of inductor more than 3 centimetres (L away from) time, detect that distance influence value is less than away from threshold values
280 (D away from) may turn on screen and touch function, just can completely avoid this by this mechanism
The phenomenon that distance perspective when planting touch-screen light transmittance exception should use.So far adaptive calibration completes
(i.e. entering step 206).
3) distance-sensor (i.e. entering step 102) is enabled;Distance-sensor only initializes enable
Can be just after the register that register, emission current register and pulse number register etc. are relevant
Normal work.
4) apply for central processing unit (CPU) and enable distance perspective and should interrupt (i.e. enter step 103);
When distance-sensor has data variation, distance perspective should produce an interrupt event request and (i.e. enter
Enter step 104) central processing unit (CPU) read current distance inductor influence value.Central authorities process
Device (CPU) is according to the current distance influence value read and close (D is close) of setting with away from (D
Away from) threshold values compare, current state (i.e. enter step 105) can be obtained by comparing,
As: away from state (S is away from state) or near state (S is near state).Central processing unit (CPU)
Judge whether current state there occurs change, if state is changed into by away from state (S is away from state)
When state (S is near state), central processing unit (CPU) may turn off screen and shows and touch
Screen function.In like manner, if state is by being changed into away from state near state (S is near state), (S is remote
From state) time, central processing unit (CPU) may turn on screen show and touch screen function (i.e. enter
Step 106).
5) end of conversation, hang up the telephone and nullify the distance perspective applied for should interrupt, monitor and releasing
Put the resource (i.e. entering step 107) of some related applications.
After eventually passing through adaptive calibration, there is abnormal probability in not only reduce distance-sensor,
More can promote the experience of user.
Wherein, initializing close threshold values can be to be provided with barrier at the 2-2.5cm of distance-sensor front end
Influence value time (i.e. shelter);Initializing away from threshold values is at distance-sensor front end 3-3.5cm
Place is provided with influence value during barrier (i.e. shelter).Distance-sensor can be infrared ray distance perspective
Answer device or ultrasonic distance inductor.The hand-held call type communication apparatus that the inventive method may be used for
For mobile phone, or with the panel computer of speech communication function, PDA.The abnormal threshold values of calibration is that distance perspective should
Any value between the 50% to 100% of the sensing maximum limit of device.
In other embodiments, mobile phone can be provided with control button, or touch by touching mobile phone
Touching screen input instruction, the process should calibrated individually to perform self adaptation distance perspective (i.e. performs step 200
To step 206), after self adaptation distance perspective should be calibrated, the close preset threshold value that current environment is used
Store with away from preset threshold value, use for when taking phone;When using such technical scheme, connect
When making a phone call, it is not necessary in real time it is carried out adaptive calibration again.
As shown in Figure 4, one hand-held communication type communication apparatus of the present invention, this hand-held call type communication apparatus
It is included in use and is located at the receiver of body when conversing, to the survey found range between body and human body
Away from unit, range cells includes with lower module:
Starting module, is used for initiateing work, by calling, and handset starting voice call function,
And open distance inducing function;
Calibration module, for calibration operation, performs self adaptation distance perspective and answers calibration steps;
Enable module, be used for enabling distance-sensor;
Interrupt module, for central processing unit application and enable distance perspective should interrupt enter;
Read module, for when distance-sensor has data variation, distance perspective should produce one
Interrupt event request central processing unit reads the influence value of current distance inductor;
Comparison module, for close according to the current distance influence value read and setting of central processing unit
Preset threshold value and comparing away from preset threshold value, enters relevant state by comparing, works as distance perspective
When should be worth more than close preset threshold value, enter near state;When distance influence value is less than away from current valve
Value, enters away from state;
For central processing unit, handover module, judges whether current state there occurs change, if state
By when being changed into close state away from state, central processing unit cuts out screen and shows and touch screen function;
If state is by when state is changed into away from state, central processing unit is opened screen and is shown and touch
Screen function;
Terminate module, for end of conversation, hang up the telephone and nullify the distance perspective applied for should interrupt,
Monitor, the resource of release application.
Calibration module therein includes following submodule:
Calibration promoter module, should calibrate the register startup work of needs for enabling distance perspective;
It is averaging influence value submodule, for reading the average distance influence value of current environment: do not having
There is any object to block and call the distance influence value that detection is current, and at least read 3 influence values
Calculate the average distance influence value of current environment;
Abnormal threshold values submodule, is used for arranging the abnormal threshold values of calibration, for judging average distance influence value
One abnormal threshold values of calibration is set the most extremely;
Judge submodule, be used for judging whether average distance influence value is more than the abnormal threshold values of calibration, if
It is then to perform extremely to arrange submodule, if it is not, then perform self adaptation to arrange submodule;
Extremely submodule is set, is used for carrying out abnormal conditions process, arrange initialization near threshold values and
Initialize away from the close preset threshold value that threshold values is current environment use with away from preset threshold value, then perform
Calibrate submodule;
Self adaptation arranges submodule, is used for arranging self-adaptation type near threshold values and self-adaptation type away from valve
It is worth the close preset threshold value used for current environment and away from preset threshold value;Self-adaptation type near threshold values=
Average distance influence value+initialization is near threshold values;Self-adaptation type away from threshold values=average distance influence value+
Initialize away from threshold values;
Calibrate submodule, completed for adaptive calibration.
Preferably, described initialization near threshold values for be provided with barrier at the 2-2.5cm of distance-sensor front end
Hinder influence value during thing;Initialize away from threshold values as to be provided with obstacle at the 3-3.5cm of distance-sensor front end
Influence value during thing.
Preferably, described distance-sensor is infrared ray distance-sensor.
Preferably, described hand-held call type communication apparatus is mobile phone, or with speech communication function
Panel computer, PDA.
Preferably, the abnormal threshold values of described calibration be distance-sensor sensing maximum limit 50% to
Any value between 100%.
In sum, when touch-screen individuality light transmittance exception or light-conductive hole, to be difficult to printing opacity pad pasting, grease dirty
When dirt is blocked, distance-sensor all can be caused to be operated in abnormal state, but by distance-finding method of the present invention
After adaptive calibration process, the threshold values of inductor of adjusting the distance has carried out self-adaptative adjustment, near shape
State and away from the deterministic process of state, the most accurately.During mobile phone uses, when conversing every time
Distance perspective should all can be calibrated according to current environment, is adapted to the environment of multiple change, improves
Consumer's Experience.Not only improve the compatibility that distance perspective is answered, but also avoid user and use exception
Cause needing depot repair, saved the cost of user and manufacturer.
The above-mentioned technology contents only further illustrating the present invention with embodiment, in order to reader is easier to
Understanding, but do not represent embodiments of the present invention and be only limitted to this, any technology done according to the present invention is prolonged
Stretch or recreate, all being protected by the present invention.Protection scope of the present invention is as the criterion with claims.
Claims (10)
1. a distance-finding method for self-adaptation type calibration, when this distance-finding method uses the receiver being located at body to converse for hand-held call type communication apparatus, the range finding between body and human body, comprise the following steps:
Step 100, initial work, by calling, handset starting voice call function, and open distance inducing function;
Step 101, calibration operation, perform self adaptation distance perspective and answer calibration steps, self adaptation distance perspective to calibrate to include that step 200 is to step 206:
Step 200, enables distance perspective and should calibrate the register startup work of needs;
Step 201, reads the average distance influence value of current environment: call, not having any object to block, the distance influence value that detection is current, and at least 3 influence values of reading calculate the average distance influence value of current environment;
Step 202, arranges the abnormal threshold values of calibration, arranges an abnormal threshold values of calibration for judging average distance influence value the most abnormal;
Step 203, it is judged that average distance influence value whether more than the abnormal threshold values of calibration, the most then enters step 204, if it is not, then enter step 205;
Step 204, carries out abnormal conditions process, arranges and initializes near threshold values and initialize away from the close preset threshold value that threshold values is current environment use with away from preset threshold value, enters back into step 206;
Step 205, arranging self-adaptation type near threshold values and self-adaptation type is the close preset threshold value that uses of current environment and away from preset threshold value away from threshold values;Self-adaptation type is near the close threshold values of threshold values=average distance influence value+initialization;Self-adaptation type away from threshold values=average distance influence value+initialization away from threshold values;
Step 206, adaptive calibration completes;
Step 102, enables distance-sensor;
Step 103, to central processing unit application and enable distance perspective should interrupt enter;
Step 104, when distance-sensor has data variation, distance perspective should produce an interrupt event request central processing unit and read the influence value of current distance inductor;
Step 105, central processing unit according to current distance influence value and the close preset threshold value of setting read and compares away from preset threshold value, enters relevant state by comparing, and when distance influence value is more than during near preset threshold value, enters near state;When distance influence value is less than away from preset threshold value, enter away from state;
Step 106, central processing unit judges whether current state there occurs change, if state is by when being changed into close state away from state, central processing unit cuts out screen and shows and touch screen function;If state is by when state is changed into away from state, central processing unit is opened screen and is shown and touch screen function;Step 107, end of conversation, hang up the telephone and nullify the distance perspective applied for should interrupt, monitor, release application resource.
Distance-finding method the most according to claim 1, it is characterised in that described initializes influence value when close threshold values is to be provided with barrier at the 2-2.5cm of distance-sensor front end;Influence value when initialization is to be provided with barrier at the 3-3.5cm of distance-sensor front end away from threshold values.
Distance-finding method the most according to claim 1, it is characterised in that described distance-sensor is infrared ray distance-sensor or ultrasonic distance inductor;Described hand-held call type communication apparatus is mobile phone, or the panel computer with speech communication function or the personal digital assistant (PDA) with speech communication function.
Distance-finding method the most according to claim 1, it is characterised in that the abnormal threshold values of described calibration is any value between the 50% to 100% of the sensing maximum limit of distance-sensor.
5. a self adaptation distance perspective answers calibration steps, by being provided with control button on hand-held communication type communication apparatus, signal is triggered by this control button, or by touching handset touch panel input instruction, so that hand-held communication type communication apparatus performs self adaptation distance perspective and answers calibration process, concrete calibration process to comprise the following steps:
Step 200, enables distance perspective and should calibrate the register startup work of needs;
Step 201, reads the average distance influence value of current environment: call, not having any object to block, the distance influence value that detection is current, and at least 3 influence values of reading calculate the average distance influence value of current environment;
Step 202, arranges the abnormal threshold values of calibration, arranges an abnormal threshold values of calibration for judging average distance influence value the most abnormal;
Step 203, it is judged that average distance influence value whether more than the abnormal threshold values of calibration, the most then enters step 204, if it is not, then enter step 205;
Step 204, carries out abnormal conditions process, arranges and initializes near threshold values and initialize away from the close preset threshold value that threshold values is current environment use with away from preset threshold value, enters back into step 206;
Step 205, arranging self-adaptation type near threshold values and self-adaptation type is the close preset threshold value that uses of current environment and away from preset threshold value away from threshold values;Self-adaptation type is near the close threshold values of threshold values=average distance influence value+initialization;Self-adaptation type away from threshold values=average distance influence value+initialization away from threshold values;
Step 206, adaptive calibration completes.
6. a hand-held communication type communication apparatus, this hand-held call type communication apparatus is included in when using the receiver being located at body to converse, and to the range cells found range between body and human body, described range cells includes with lower module:
Starting module, is used for initiateing work, by calling, and handset starting voice call function, and open distance inducing function;
Calibration module, for calibration operation, performs self adaptation distance perspective and answers calibration steps, calibration module to include: calibration promoter module, it is averaging influence value submodule, abnormal threshold values submodule, it is judged that submodule, extremely arranging submodule, self adaptation arranges submodule, has calibrated submodule;
Calibration promoter module, should calibrate the register startup work of needs for enabling distance perspective;
It is averaging influence value submodule, for reading the average distance influence value of current environment: call, not having any object to block, the distance influence value that detection is current, and at least 3 influence values of reading calculate the average distance influence value of current environment;
Abnormal threshold values submodule, is used for arranging the abnormal threshold values of calibration, arranges an abnormal threshold values of calibration for judging average distance influence value the most abnormal;
Judge submodule, be used for judging that average distance influence value whether more than the abnormal threshold values of calibration, the most then performs extremely to arrange submodule, if it is not, then perform self adaptation to arrange submodule;
Extremely submodule is set, is used for carrying out abnormal conditions process, arrange and initialize near threshold values and to initialize away from threshold values be the close preset threshold value that uses of current environment and away from preset threshold value, then perform calibration and complete submodule;
Self adaptation arranges submodule, is the close preset threshold value that uses of current environment and away from preset threshold value for arranging self-adaptation type near threshold values and self-adaptation type away from threshold values;Self-adaptation type is near the close threshold values of threshold values=average distance influence value+initialization;Self-adaptation type away from threshold values=average distance influence value+initialization away from threshold values;
Calibrate submodule, completed for adaptive calibration;
Enable module, be used for enabling distance-sensor;
Interrupt module, for central processing unit application and enable distance perspective should interrupt enter;
Read module, for when distance-sensor has data variation, distance perspective should produce an interrupt event request central processing unit and read the influence value of current distance inductor;
Comparison module, according to current distance influence value and the close preset threshold value of setting read and compares away from preset threshold value for central processing unit, enters relevant state by comparing, and when distance influence value is more than during near preset threshold value, enters near state;When distance influence value is less than away from preset threshold value, enter away from state;
For central processing unit, handover module, judges whether current state there occurs change, if state is by when being changed into close state away from state, central processing unit cuts out screen and shows and touch screen function;If state is by when state is changed into away from state, central processing unit is opened screen and is shown and touch screen function;
Terminate module, for end of conversation, hang up the telephone and nullify the distance perspective applied for should interrupt, monitor, release application resource.
Hand-held communication type communication apparatus the most according to claim 6, it is characterised in that described initializes influence value when close threshold values is to be provided with barrier at the 2-2.5cm of distance-sensor front end;Influence value when initialization is to be provided with barrier at the 3-3.5cm of distance-sensor front end away from threshold values.
Hand-held communication type communication apparatus the most according to claim 6, it is characterised in that described distance-sensor is infrared ray distance-sensor or ultrasonic distance inductor.
Hand-held communication type communication apparatus the most according to claim 6, it is characterised in that described hand-held call type communication apparatus is mobile phone, or the panel computer with speech communication function or the personal digital assistant (PDA) with speech communication function.
Hand-held communication type communication apparatus the most according to claim 6, it is characterised in that the abnormal threshold values of described calibration is any value between the 50% to 100% of the sensing maximum limit of distance-sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410466845.XA CN104202480B (en) | 2014-09-12 | 2014-09-12 | The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410466845.XA CN104202480B (en) | 2014-09-12 | 2014-09-12 | The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104202480A CN104202480A (en) | 2014-12-10 |
CN104202480B true CN104202480B (en) | 2016-08-24 |
Family
ID=52087705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410466845.XA Active CN104202480B (en) | 2014-09-12 | 2014-09-12 | The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104202480B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791515B (en) * | 2014-12-22 | 2019-06-28 | 青岛海信移动通信技术股份有限公司 | A kind of terminal device screen state control method and terminal device |
CN105628079B (en) * | 2015-12-30 | 2021-07-30 | 上海闻泰电子科技有限公司 | Dynamic calibration method for distance sensor |
CN106546970B (en) * | 2016-10-19 | 2019-02-12 | 北京小米移动软件有限公司 | The ultrasonic wave calibration method and device of mobile device |
CN107102864A (en) * | 2017-05-16 | 2017-08-29 | 广东欧珀移动通信有限公司 | One kind puts out screen control method, device, storage medium and terminal |
CN110501035B (en) * | 2018-05-18 | 2022-03-15 | 好庆科技企业股份有限公司 | Sensor and automatic correction method thereof |
CN110610563B (en) * | 2019-08-06 | 2020-09-22 | 珠海格力电器股份有限公司 | Method, device, equipment and storage medium for adjusting wake-up distance of electronic lock |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932527A (en) * | 2012-09-24 | 2013-02-13 | 惠州Tcl移动通信有限公司 | Mobile terminal and calibration method of distance sensor thereof |
CN103442136A (en) * | 2013-08-19 | 2013-12-11 | 惠州Tcl移动通信有限公司 | Method and system for dual calibration of proximity sensor |
-
2014
- 2014-09-12 CN CN201410466845.XA patent/CN104202480B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932527A (en) * | 2012-09-24 | 2013-02-13 | 惠州Tcl移动通信有限公司 | Mobile terminal and calibration method of distance sensor thereof |
CN103442136A (en) * | 2013-08-19 | 2013-12-11 | 惠州Tcl移动通信有限公司 | Method and system for dual calibration of proximity sensor |
Also Published As
Publication number | Publication date |
---|---|
CN104202480A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104202480B (en) | The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus | |
EP2713586B1 (en) | Method and device for adjusting detecting threshold of infrared proximity sensor | |
US10380398B2 (en) | Systems and methods for controlling fingerprint authentication | |
CN107219515A (en) | The parameter calibrating method and terminal of a kind of range sensor | |
EP2230590A2 (en) | Method and apparatus for preventing on-screen keys from being accidentally touched and recording medium using the same | |
CN103404224A (en) | Mobile device display management | |
CN103516861B (en) | Handheld device and its control method for automatically answering phone and locking touch screen | |
US9904314B2 (en) | Device and method of controlling a display panel based on cover-related information | |
CN103095915B (en) | A kind of method that prevents maloperation and mobile phone based on touch-screen mobile phone | |
CN104010059B (en) | A kind of mobile terminal and its realize the method and apparatus made a phone call | |
CN104391645A (en) | Method and system for turning off screen to prevent accidental touch during call based on mobile terminal | |
CN105827812A (en) | Communication mode switching method and mobile communication terminal | |
CN107562289A (en) | Charge anti-interference method and device | |
WO2015131743A1 (en) | Incoming call processing method, device and terminal | |
CN103365400A (en) | Method and device for feedback of gesture recognizing operations | |
CN105022530B (en) | The calibration method and system of proximity transducer | |
CN109639370A (en) | Near-field communication aerial detection method, device, mobile terminal and storage medium | |
KR20120012906A (en) | METHOD FOR displaying data service usage of mobile terminal | |
CN101510915A (en) | Fast switching method for mobile phone software window | |
CN105825208A (en) | Method, apparatus and electronic device for controlling fingerprint sensor | |
CN105573747A (en) | User interface test method and apparatus | |
CN105867793A (en) | No touch screen response based use method and device | |
CN106557204A (en) | Method and device for preventing mistaken touch | |
CN107896286A (en) | Control the method and device of screen light on and off | |
CN107315517A (en) | For the method for false-touch prevention, device and intelligent terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |