CN107339961B - The method and device of calibrated distance sensor, electronic equipment - Google Patents
The method and device of calibrated distance sensor, electronic equipment Download PDFInfo
- Publication number
- CN107339961B CN107339961B CN201611183527.8A CN201611183527A CN107339961B CN 107339961 B CN107339961 B CN 107339961B CN 201611183527 A CN201611183527 A CN 201611183527A CN 107339961 B CN107339961 B CN 107339961B
- Authority
- CN
- China
- Prior art keywords
- sensor
- electronic equipment
- output valve
- target parameter
- parameter
- 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
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/02—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optical Radar Systems And Details Thereof (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Measurement Of Optical Distance (AREA)
Abstract
Present disclose provides a kind of method and devices of calibrated distance sensor, electronic equipment, belong to field of terminal equipment.Method therein includes: to obtain calibration strategy, and calibration strategy includes calibration condition and at least one sensor identification corresponding with calibration condition, and each sensor identification corresponds respectively to a sensor in electronic equipment in addition to range sensor;Judge whether target parameter and at least one state parameter meet calibration condition, target parameter is the output valve of range sensor, at least one state parameter is the output valve of at least one sensor corresponding at least one sensor identification in electronic equipment;When target parameter and at least one state parameter meet calibration condition, by configuration, bottom corresponding with range sensor value of making an uproar is changed to the size of target parameter in the electronic device.The bottom that the disclosure can eliminate factory setting is made an uproar, and value deviation is practical to be applicable in value adverse effect, promotes the reliability of product, optimizes properties of product.
Description
Technical field
This disclosure relates to which field of terminal equipment more particularly to a kind of method and device of calibrated distance sensor, electronics are set
It is standby.
Background technique
Sensor (Sensor) be it is a kind of can experience measured information, and can be by the information experienced according to certain rules
It is for conversion into the device of electric signal or the information output of other required forms.The spy of surrounding environment change can be perceived based on sensor
Property, terminal device has been able to that relevant application program is cooperated to realize numerous practical functions using it.For example, current intelligence
End product usually can all configure light sensor, range sensor and gravity sensor, and light sensor therein can be used
Come realize screen intensity according to the weak automatic adjustment of environmental light intensity, take pictures when white balance automatic adjustment etc., range sensor can
Whether it is attached on ear with to detect mobile phone and is being made a phone call, so that automatic distinguishing screen achievees the purpose that power saving, gravity sensor
It can be used for the intelligence switching of horizontal/vertical screen, the take pictures adjustment of photo direction and the game for carrying out gravity sensing class etc..
In general, the terminal device equipped with sensor can be in the calibration of factory advance line sensor, for example factory can be utilized
Jig obtain the value of making an uproar close to threshold value, far from threshold value and bottom of range sensor, and make an uproar what value obtained for bottom is subtracted close to threshold value
Subtract that separate difference that value obtains is made an uproar at bottom and bottom makes an uproar and is worth these three values consolidating for terminal device is written close to difference, far from threshold value
Change subregion, as the standard for judging whether to occur close to event and separate event.But as terminal device is after factory
Transport, sale and use, value is made an uproar at the bottom for being suitable for actually using may be in surface and oil contaminant, device position change, device aging
Etc. be gradually deviated from factory setting value under the influence of factor, so as to cause terminal device to close to event and far from event
Practical estimate of situation differs far with design object, for example the distance threshold of mobile phone automatic distinguishing screen can be made to become excessive
Or it is too small, influence the normal use of user.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provide a kind of calibrated distance sensor method and device,
Electronic equipment.
According to the first aspect of the embodiments of the present disclosure, a kind of method of calibrated distance sensor, the method application are provided
In electronic equipment, the range sensor is arranged in the electronic equipment, which comprises
Obtain calibration strategy, calibration strategy including calibration condition and it is corresponding with the calibration condition at least one
Sensor identification, each sensor identification correspond respectively to one in addition to the range sensor in the electronic equipment
A sensor;
Judge whether target parameter and at least one state parameter meet the calibration condition, the target parameter is described
The output valve of range sensor, at least one described state parameter be in the electronic equipment at least one described sensor mark
Know the output valve of at least one corresponding sensor;
When the target parameter and at least one state parameter meet the calibration condition, configuration is set in the electronics
Bottom corresponding with range sensor value of making an uproar is changed to the size of the target parameter in standby.
In one embodiment of the present disclosure, at least one described sensor identification includes biography corresponding with gravity sensor
Sensor mark, the gravity sensor are arranged in the electronic equipment;The judgement target parameter and at least one state are joined
Whether amount meets the calibration condition, comprising:
The output valve for obtaining the gravity sensor, as one at least one described state parameter;
According to the output valve of the gravity sensor determine the electronic equipment not according to the range sensor away from
When placing from the state of induction direction vertically upward, determine that the target parameter and at least one state parameter are unsatisfactory for the school
Floating screed part.
Based on this, the embodiment of the present disclosure can only the distance perception of range sensor answer direction vertically upward when just carry out away from
Calibration from sensor, in conjunction with user to the use habit of the electronic equipment of such as smart phone (such as range sensor away from
From induction direction in use be difficult keep straight up, and electronic equipment stand Shi Zeke with), can effectively arrange
Answering except distance perception has the case where object blocks on direction, to promote the reliability of calibration result to a certain extent.
In one embodiment of the present disclosure, at least one described sensor identification includes biography corresponding with light sensor
Sensor mark, the light sensor are wholely set in the electronic equipment with the range sensor;The judgement target
Whether parameter and at least one state parameter meet the calibration condition, further includes:
The output valve for obtaining the range sensor, as the target parameter;
The output valve for obtaining the light sensor, as one at least one described state parameter;
It is equal to the maximum output value of the range sensor in the target parameter, the output valve of the light sensor is big
When 0 lux, determine the target parameter and at least one state parameter be unsatisfactory for the calibration condition, terminate to it is described away from
Calibration from sensor.
Based on this, the embodiment of the present disclosure can identify electronics by the range sensor and light sensor being wholely set
(i.e. light sensor can receive illumination, block without object the case where range sensor in equipment does not assemble correctly, but one
The range sensor of setting has but detected that object blocks), to terminate the calibration for sensor of adjusting the distance at this moment to avoid mistake
It accidentally makes an uproar value using the output valve of range sensor the bottom of as, facilitates the reliability of promotion calibration result.
In one embodiment of the present disclosure, after the output valve for obtaining the light sensor, further includes:
It is equal to the maximum output value of the range sensor, the output valve etc. of the light sensor in the target parameter
When 0 lux, after the time for waiting preset duration, it is back to the output valve for obtaining the range sensor and described
Before the output valve for obtaining the light sensor.
Based on this, the embodiment of the present disclosure can identify distance by the range sensor and light sensor being wholely set
(i.e. light sensor can not receive illumination, have object to block the case where sensor is blocked, the range sensor being wholely set
Can detect that object blocks), the output valve of range sensor is reacquired to wait for a period of time in the case, to subtract
It is small accidentally to have the influence that object blocks, help to promote calibration efficiency.
In one embodiment of the present disclosure, it is described judge target parameter and at least one state parameter whether meet it is described
Calibration condition, comprising:
The output valve for obtaining the range sensor, as the target parameter;
When the target parameter is with preset threshold is greater than close to the sum of difference, the judgement target parameter and at least is determined
One state parameter is unsatisfactory for the calibration condition;
Wherein, the parameter being disposed on close to difference in the electronic equipment, for the range sensor
Output valve subtracts the bottom and makes an uproar difference comparsion size that value obtains to judge whether occur close to event;The preset threshold is greater than
Equal to the half of the maximum output value of the range sensor.
Based on this, the embodiment of the present disclosure can use configuration coming close to difference in range sensor in the electronic device
Output valve excludes and should not obviously be judged as bottom and make an uproar the numerical value of value, facilitates the reliability for promoting calibration result.
According to the second aspect of an embodiment of the present disclosure, a kind of device of calibrated distance sensor, described device application are provided
In electronic equipment, the range sensor is arranged in the electronic equipment, and described device includes:
Obtain module, be configured as obtaining calibration strategy, calibration strategy including calibration condition and with the calibration
At least one corresponding sensor identification of condition, each sensor identification correspond respectively in the electronic equipment except described
A sensor except range sensor;
Judgment module is configured as judging whether target parameter and at least one state parameter meet the calibration condition,
The target parameter is the output valve of the range sensor, at least one described state parameter be in the electronic equipment with institute
State the output valve of at least one corresponding sensor of at least one sensor identification;
Module is changed, by when the target parameter and at least one state parameter meet the calibration condition, will be configured
Bottom corresponding with range sensor value of making an uproar is changed to the size of the target parameter in the electronic equipment.
In a possible implementation, at least one described sensor identification includes biography corresponding with gravity sensor
Sensor mark, the gravity sensor are arranged in the electronic equipment;The judgment module includes:
First acquisition unit is configured as obtaining the output valve of the gravity sensor, as at least one described state
One in parameter;
First determination unit, be configured as according to the output valve of the gravity sensor determine the electronic equipment not by
When answering direction according to the distance perception of the range sensor state upward is placed vertically, the target parameter and at least one are determined
State parameter is unsatisfactory for the calibration condition.
In a possible implementation, at least one described sensor identification includes biography corresponding with light sensor
Sensor mark, the light sensor are wholely set in the electronic equipment with the range sensor;The judgment module
Further include:
Second acquisition unit is configured as obtaining the output valve of the range sensor as the target parameter;
Third acquiring unit is configured as obtaining the output valve of the light sensor, as at least one described state
One in parameter;
Second determination unit is configured as being equal to the maximum output value of the range sensor, institute in the target parameter
When stating the output valve of light sensor greater than 0 lux, determine that the judgement target parameter and at least one state parameter are discontented
The foot calibration condition and the calibration for terminating range sensor.
In a possible implementation, the judgment module further include:
Return unit is configured as being equal to the maximum output value of the range sensor, the light in the target parameter
When the output valve of line sensor is equal to 0 lux, after the time for waiting preset duration, it is back to the second acquisition unit and obtains
Before taking the output valve of the range sensor and output valve that the third acquiring unit obtains the light sensor.
In a possible implementation, the judging unit includes:
Second acquisition unit is configured as obtaining the output valve of the range sensor as the target parameter;
Third determination unit is configured as determining when the target parameter is with preset threshold is greater than close to the sum of difference
The judgement target parameter and at least one state parameter are unsatisfactory for the calibration condition;
Wherein, the parameter being disposed on close to difference in the electronic equipment, for the range sensor
Output valve subtracts the bottom and makes an uproar difference comparsion size that value obtains to judge whether occur close to event;The preset threshold is greater than
Equal to the half of the maximum output value of the range sensor.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, including range sensor and except it is described away from
From at least one sensor except sensor, the electronic equipment further include:
Processor;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
Obtain calibration strategy, calibration strategy including calibration condition and it is corresponding with the calibration condition at least one
Sensor identification, each sensor identification correspond respectively to one in addition to the range sensor in the electronic equipment
A sensor;
Judge whether target parameter and at least one state parameter meet the calibration condition, the target parameter is described
The output valve of range sensor, at least one described state parameter be in the electronic equipment at least one described sensor mark
Know the output valve of at least one corresponding sensor;
When the target parameter and at least one state parameter meet the calibration condition, configuration is set in the electronics
Bottom corresponding with range sensor value of making an uproar is changed to the size of the target parameter in standby.
The technical scheme provided by this disclosed embodiment can include the following benefits: the disclosure is based on calibration strategy
It is arranged, and judges value change of making an uproar the bottom of with according to the calibration condition that calibration strategy carries out, can use electronic equipment itself and had
Standby sensor detects that the output valve of range sensor can be used as the scene that bottom is made an uproar when being worth, and updates be arranged in electronics accordingly
Bottom in equipment is made an uproar value, can so as to realize that the adjust the distance bottom of sensor of electronic equipment is made an uproar the calibration of value by application program
Deviate practical applicable value adverse effect to eliminate the bottom of factory setting value of making an uproar, facilitate the reliability of promotion product,
Optimize properties of product.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of the method for calibrated distance sensor shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method for calibrated distance sensor shown according to an exemplary embodiment;
Fig. 3 is the schematic perspective view of a kind of electronic equipment shown according to an exemplary embodiment;
Fig. 4 is a kind of structural block diagram of the device of calibrated distance sensor shown according to an exemplary embodiment;
Fig. 5 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party
Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the method for calibrated distance sensor shown according to an exemplary embodiment, such as Fig. 1 institute
To show, this method is used for electronic equipment, and the range sensor is arranged in the electronic equipment, method includes the following steps:
In a step 101, obtain calibration strategy, calibration strategy including calibration condition and with the calibration condition pair
At least one sensor identification answered, each sensor identification correspond respectively in the electronic equipment except range sensor
Except a sensor.
In a step 102, judge whether target parameter and at least one state parameter meet the calibration condition, the mesh
Mark parameter be the range sensor output valve, at least one described state parameter be in the electronic equipment with it is described at least
The output valve of at least one corresponding sensor of one sensor identification.
In step 103, it when the target parameter and at least one state parameter meet the calibration condition, will configure
Bottom corresponding with range sensor value of making an uproar is changed to the size of the target parameter in the electronic equipment.
It should be noted that it includes range sensor and except should be away from that the electronic equipment in the present embodiment, which can be any one,
Equipment from least one sensor other than sensor, such as smart phone, tablet computer, pen equipped with range sensor
Remember this computer, personal digital assistant (PDA) etc.;Wherein, the above-mentioned sensor in addition to the range sensor may, for example, be
Other range sensors, light sensor, gravity sensor, acceleration transducer, magnetic field sensor, gyroscope, orientation sensing
Device, fingerprint sensor, Hall sensor, baroceptor, heart rate sensor, blood oxygen transducer, UV sensor etc.;And
And the sensor of any of electronic equipment classification can be arranged one or more than one, can be between different sensors
It is provided separately (for example being separately positioned on two chips), can also be wholely set in the electronic device (for example be encapsulated in same
In device), the disclosure is not particularly limited.
It should also be noted that, the method for the present embodiment can be by user instruction triggering or application triggers
, it is also possible to (for example triggering once or monthly triggers once weekly) primary at interval of a period of time automatic trigger, may be used also
To be triggering (for example being triggered behind six months after first powering on) after the specified duration after setting the moment at one, the disclosure
It is not particularly limited.
It should also be noted that, the above-mentioned bottom in the present embodiment is made an uproar, value refers to configuring a parameter in the electronic device
(configuration mode may, for example, be storage in the electronic device), for using range sensor measure apart from when as the distance
The reference point of the output valve of sensor.For example, when the output valve of range sensor is 700, subtracting bottom under same unit and making an uproar
Numerical value 600 after value 100 can be participated in subsequent processing as distance measure.Judging close to event and far from event
When, numerical value 600 can be compared with close to difference 500 and far from difference 200 respectively, to judged accordingly close to event and separate
Whether event occurs.
It should also be noted that, the range sensor in the present embodiment is after calibration, bottom value of making an uproar is changed to corrector strip
Target parameter when part obtains meeting, it is seen that the calibration condition in the present embodiment is mainly used for determining the output valve of range sensor
It makes an uproar value at bottom after whether can be used as calibration.Therefore in the specific implementation, the sensor according to possessed by electronic equipment, with
And range sensor output valve can be used as bottom make an uproar be worth when each sensor the feature of output valve determine calibration condition,
And then determine the mark for judging to need to obtain when calibration condition the sensor of output valve, to obtain the calibration strategy, specifically
Example will provide later.
It should also be noted that, the mode for obtaining calibration strategy in the present embodiment may include: the storage from electronic equipment
At least partly data of calibration strategy are read in device, at least partly data that input to obtain calibration strategy based on user, receive come
From at least partly data etc. of the calibration strategy of the external equipments such as server, the data for belonging to calibration strategy can be solidificated in electricity
It inside sub- equipment, is stored in the memory of electronic equipment, inputted and generate based on user, or to be stored in server etc. external sets
In standby etc., the disclosure is not particularly limited.Moreover, obtain calibration strategy process can be disposably complete (such as
The process of calibrated distance sensor is directly read from electronic equipment when being triggered), be also possible to complete stage by stage (such as first
The output valve which sensor is used by user's selection obtains corresponding corrector strip further according to the sensor identification chosen by user
Part), it can also be (for example the updating once by Cloud Server every other week) being repeated cyclically, the disclosure does not do specific limit
System.
It can be seen that setting of the present embodiment based on calibration strategy, and the corrector strip carried out according to calibration strategy
Value change that part judges and bottom is made an uproar, can use the output valve that the sensor that electronic equipment itself has detects range sensor
It can be used as the scene that bottom is made an uproar when being worth, and update setting bottom in the electronic device accordingly and make an uproar value, so as to by using journey
Sequence realizes that the adjust the distance bottom of sensor of electronic equipment is made an uproar the calibration of value, can eliminate factory setting bottom make an uproar value deviate it is practical applicable
It is worth adverse effect, facilitates the reliability for promoting product, optimize properties of product.
Fig. 2 is a kind of flow chart of the method for calibrated distance sensor shown according to an exemplary embodiment, such as Fig. 2 institute
Show, this method is in electronic equipment, the range sensor to be arranged in the electronic equipment, and this method includes following step
It is rapid:
In step 201, the calibration process for starting current period, obtains the output valve of gravity sensor, as at least one
First state parameter in a state parameter.
In the present embodiment, calibrated distance sensor every time by a cycle is carried out once, and process shown in Fig. 2 is
Calibration process in a cycle.In the present embodiment, electronic equipment further include other than range sensor gravity sensor and
Light sensor.In step 201, it can specifically include by being pre-configured with program reading gravity sensor in the electronic device
Output valve, as judging the first state ginseng at least one state parameter that whether calibration condition is met
Amount.
In step 202, according to the first state parameter judge electronic equipment whether according to range sensor distance
Incude the state of direction vertically upward to place.
Such as shown in Fig. 3, first direction R1, the second direction R2 and third direction R3 of pairwise orthogonal constitute space right-angle and sit
Mark system, in the horizontal plane, third direction R3 is vertical direction by first direction R1 and second direction R2.In the rectangular space coordinate
In system, in the horizontal plane, the distance perception that range sensor S0 in the electronic device is arranged should side for the electronic equipment placement in Fig. 3
To consistent with third direction R3, for it is vertical upward.In this case, gravity side can be learnt according to the output valve of gravity sensor
To with third direction R3 on the contrary, and answering with the distance perception of range sensor S0 contrary.Thus, it is possible to be joined according to first state
Amount judge gravity direction whether answered with the distance perception of range sensor it is contrary, if so, illustrating electronic equipment according to distance
The distance perception of sensor answers the state of direction vertically upward to place;Otherwise, then illustrate electronic equipment not according to range sensor
Distance perception answers the state of direction vertically upward to place.
In step 203, determining that the electronic equipment do not answer direction vertical according to the distance perception of the range sensor
It when state upward is placed, determines that target parameter and at least one described state parameter are unsatisfactory for calibration condition, terminates current week
The calibration process of phase.
That is, the calibration condition in the present embodiment includes: that electronic equipment must answer direction perpendicular according to the distance perception of range sensor
Directly state upward is placed, and whether this condition obtains meeting is judged especially by the output valve of gravity sensor.At this
When one condition cannot obtain meeting, that is, illustrate that the output valve of range sensor at this time cannot function as configuring bottom in the electronic device
It makes an uproar value, without obtaining the output valve of range sensor and the output valve of light sensor, without continuing its other party
The judgement in face, and directly determined in the state that target parameter and other state parameters also have not been obtained target parameter and it is described at least
One state parameter is unsatisfactory for calibration condition, and terminates the calibration process of current period.
In step 204, the output valve for obtaining the range sensor, as the target parameter.
For example, the output valve of range sensor can be read by being pre-configured with program in the electronic device, using as
The target parameter whether met for judging calibration condition.At this point, can only determine that the target parameter is that range sensor exists
Distance perception answer direction vertically upward when output valve, can not also determine if make an uproar as configuration bottom in the electronic device
Value, it is also necessary to carry out the judgement of other conditions in above-mentioned calibration condition.
In step 205, judge whether the target parameter is equal to the maximum output value of the range sensor.
In the present embodiment, range sensor has a known output valve range (i.e. as sensor known to specification
Range), maximum value, that is, range sensor maximum output value in the range, range sensor can not be exported than the maximum output
It is worth bigger output valve.When the output valve of range sensor is equal to maximum output value, indicate that distance perception should side under normal circumstances
There is object to sufficiently close to (such as within 10 millimeters of distance) range sensor upwards.
In step 206, it when the target parameter is equal to the maximum output value of the range sensor, obtains light and passes
The output valve of sensor, as the second state parameter at least one described state parameter.
For example, the output valve of light sensor can be read by being pre-configured with program in the electronic device, using as
For judging the second state parameter at least one state parameter that whether calibration condition is met.In the present embodiment, light
The output quantity of line sensor indicates received illumination, and the corresponding illumination of minimum output quantity is 0 lux.
In step 207, judge whether second state parameter is equal to 0 lux.
In a step 208, when second state parameter is equal to 0 lux, the time of preset duration is waited, is back to
Before step 204.
For example, determining maximum output value of the target parameter equal to range sensor, and the second state parameter is equal to 0 Le
Gram at this moment, it waits and reacquires the output valve of range sensor before being back to step 204 after five minutes to update target parameter.
As a result, the target parameter previously obtained is excluded and can be used as bottom and make an uproar the possibility of value, but the calibration process base of current period
The output valve of the range sensor obtained after the time of preset duration continues as new target parameter.In one kind
In possible implementation, in order to avoid the process Infinite Cyclic of step 204 to step 208, it can reach pre- in cycle-index
Determine the calibration process for terminating current period when number (such as 3 times).
In step 209, second state parameter be greater than 0 lux when, determine the target parameter and it is described extremely
A few state parameter is unsatisfactory for the calibration condition, terminates the calibration to the range sensor.
That is, above-mentioned calibration condition include: range sensor output quantity be equal to maximum output when light sensor
Output quantity is not equal to 0 lux.Moreover, the output quantity when range sensor is being equal to maximum output, and light sensor
Output quantity be not equal to 0 lux when, determine that the current situation of electronic equipment can not carry out the calibration of range sensor, thus eventually
Only (no longer carry out) calibration to the range sensor.
In step 210, when the target parameter is not equal to the maximum output value of the range sensor, described in judgement
Whether target parameter is greater than preset threshold with close to the sum of difference.It is greater than default threshold with close to the sum of difference in the target parameter
When value, step 203 is gone to, determines that the judgement target parameter and at least one state parameter are unsatisfactory for the calibration condition, ties
The calibration process of beam current period.
That is, the output quantity that above-mentioned calibration condition includes: range sensor is less than or equal to preset threshold with close to the sum of difference.
Wherein, it is disposed on the parameter in the electronic equipment close to difference, for subtracting institute with the output valve of the range sensor
It states bottom and makes an uproar difference comparsion size that value obtains to judge whether occur close to event.For example, under same unit, range sensor
Output valve when being 700, subtract the numerical value 600 that bottom is made an uproar after value 100 and understand and be participated in subsequent processing as distance measure;
When judging close to event, numerical value 600 can be compared with close to difference 500 respectively, thus judge accordingly close to event whether
Occur.In addition, in the specific implementation, above-mentioned preset threshold can be more than or equal to the maximum output value of the range sensor
It is chosen in the range of half.
In step 211, when the target parameter is with the preset threshold is less than or equal to close to the sum of difference, institute is determined
State and judge target parameter and at least one state parameter meets the calibration condition, will configuration in the electronic equipment with it is described
The corresponding bottom of range sensor value of making an uproar is changed to the size of the target parameter, terminates the calibration process of current period.
As can be seen that on the basis of the method process shown in Fig. 1 of the present embodiment, provided with the school including following content
Floating screed part: electronic equipment answers the state of direction vertically upward to place according to the distance perception of range sensor;Also, range sensor
Output quantity be equal to maximum output when light sensor output quantity be not equal to 0 lux;Also, range sensor is defeated
Output is less than or equal to preset threshold with close to the sum of difference.When meeting the calibration condition, finally obtained target parameter is used
Replacement configuration bottom in the electronic device is made an uproar value, to complete the calibration process of current period.It is corresponding with calibration condition, this
The method of embodiment is related in electronic equipment light sensor and gravity sensor in addition to range sensor, and obtaining, its is defeated
Its mark will necessarily be used when being worth out.
It should be noted that the present embodiment alignment condition calibrates obtaining for strategy with where at least one sensor identification
Process is taken all to be directly contained in the process of method, such as process shown in Fig. 2 is with computer program when realizing, school
The data of quasi- strategy are pre-configured among program, and the process for obtaining calibration strategy is interspersed in the implementation procedure of program
's.It should also be noted that, the present embodiment can carry out step in implementable range in other possible implementations
Between merging, fractionation or sequence exchange, for example step 204 and step 210 are arranged before step 201, i.e., are first walked
To the judgement of target parameter in rapid 210, then other judgements are carried out, without changing the reality for judging whether calibration condition is met
Matter, the disclosure are without limitation.
As can be seen that in a kind of implementation of the disclosure, at least one described sensor identification may include with again
The corresponding sensor identification of force snesor, the gravity sensor are arranged in the electronic equipment;It is corresponding, the step
102 include: the output valve for obtaining the gravity sensor, as one at least one described state parameter;And in root
Determine that the electronic equipment does not answer direction perpendicular according to the distance perception of the range sensor according to the output valve of the gravity sensor
When directly state upward is placed, determine that the target parameter and at least one state parameter are unsatisfactory for the calibration condition.It is based on
This, the disclosure can only the distance perception of range sensor answer direction vertically upward when just carry out range sensor calibration, knot
Sharing family, (for example the distance perception of range sensor answers direction using to the use habit of the electronic equipment of such as smart phone
Be difficult to keep straight up in journey, and electronic equipment stand Shi Zeke with), can effectively exclude distance perception and answer on direction to have
The case where object blocks, to promote the reliability of calibration result to a certain extent.
It can also be seen that in a kind of implementation of the disclosure, at least one described sensor identification may include with
The corresponding sensor identification of light sensor, the light sensor are integrated with the range sensor in the electronic equipment
Setting;Corresponding, the step 102 includes: to obtain the output valve of the range sensor, as the target parameter;It obtains
The output valve for taking the light sensor, as one at least one described state parameter;And in the target parameter
Equal to the maximum output value of the range sensor, when the output valve of the light sensor is greater than 0 lux, the mesh is determined
Mark parameter and at least one state parameter are unsatisfactory for the calibration condition, terminate the calibration to the range sensor.Based on this,
The disclosure can identify the range sensor in electronic equipment not by the range sensor and light sensor being wholely set
(i.e. light sensor can receive illumination, block without object, but the range sensor being wholely set is examined the case where correct assembly
Object has been measured to block), to terminate the calibration for sensor of adjusting the distance at this moment to avoid mistakenly by the defeated of range sensor
Value is made an uproar value the bottom of as out, facilitates the reliability for promoting calibration result.
It can also be seen that in a kind of implementation of the disclosure, at least one described sensor identification may include with
The corresponding sensor identification of light sensor, the light sensor are integrated with the range sensor in the electronic equipment
Setting;Corresponding, the step 102 includes: to obtain the output valve of the range sensor, as the target parameter;It obtains
The output valve for taking the light sensor, as one at least one described state parameter;And in the target parameter
Equal to the maximum output value of the range sensor, when the output valve of the light sensor is equal to 0 lux, when waiting default
After the long time, it is back to the output valve for obtaining the range sensor and described obtains the defeated of the light sensor
Before being worth out.Based on this, the disclosure can identify Distance-sensing by the range sensor and light sensor being wholely set
(i.e. light sensor can not receive illumination, have object to block the case where device is blocked, and the range sensor being wholely set can be examined
Object has been measured to block), the output valve of range sensor is reacquired to wait for a period of time in the case, to reduce idol
So there is the influence that object blocks, helps to promote calibration efficiency.
It can also be seen that the step 102 includes: to obtain the Distance-sensing in a kind of implementation of the disclosure
The output valve of device, as the target parameter;And when the target parameter is with preset threshold is greater than close to the sum of difference,
Determine that the judgement target parameter and at least one state parameter are unsatisfactory for the calibration condition;Wherein, described to be close to difference
Parameter in the electronic equipment is configured, is made an uproar the difference that value obtains for subtracting the bottom with the output valve of the range sensor
Value compares size to judge whether occur close to event;The preset threshold is more than or equal to the maximum output of the range sensor
The half of value.Based on this, the disclosure can use the output come close to difference in range sensor of configuration in the electronic device
Value excludes and should not obviously be judged as bottom and make an uproar the numerical value of value, facilitates the reliability for promoting calibration result.For example, would generally
It is positioned proximate to difference and the sum of value is made an uproar near the half of maximum output value in bottom, therefore can be greater than in output valve with close to difference
Determine that the output valve is unsatisfactory for calibration condition when the half of maximum output value.
Fig. 4 is a kind of structural block diagram of the device of calibrated distance sensor shown according to an exemplary embodiment.Referring to
The device of Fig. 4, embodiment of the present disclosure alignment range sensor includes:
Obtain module 41, be configured as obtaining calibration strategy, calibration strategy including calibration condition and with the school
At least one corresponding sensor identification of floating screed part, each sensor identification correspond respectively in the electronic equipment except institute
State a sensor except range sensor;
Judgment module 42 is configured as judging whether target parameter and at least one state parameter meet the corrector strip
Part, the target parameter are the output valves of the range sensor, at least one described state parameter is in the electronic equipment
The output valve of at least one sensor corresponding at least one described sensor identification;
Module 43 is changed, by when the target parameter and at least one state parameter meet the calibration condition, will be matched
It sets the value of making an uproar of the bottom corresponding with the range sensor in the electronic equipment and is changed to the size of the target parameter.
It should be noted that it includes range sensor and except should be away from that the electronic equipment in the present embodiment, which can be any one,
Equipment from least one sensor other than sensor, such as smart phone, tablet computer, pen equipped with range sensor
Remember this computer, personal digital assistant (PDA) etc.;Wherein, the above-mentioned sensor in addition to the range sensor may, for example, be
Other range sensors, light sensor, gravity sensor, acceleration transducer, magnetic field sensor, gyroscope, orientation sensing
Device, fingerprint sensor, Hall sensor, baroceptor, heart rate sensor, blood oxygen transducer, UV sensor etc.;And
And the sensor of any of electronic equipment classification can be arranged one or more than one, can be between different sensors
It is provided separately (for example being separately positioned on two chips), can also be wholely set in the electronic device (for example be encapsulated in same
In device), the disclosure is not particularly limited.
It should also be noted that, the device of the present embodiment can be by user instruction triggering or application triggers
, it is also possible to (for example triggering once or monthly triggers once weekly) primary at interval of a period of time automatic trigger, may be used also
To be triggering (for example being triggered behind six months after first powering on) after the specified duration after setting the moment at one, the disclosure
It is not particularly limited.
It should also be noted that, the above-mentioned bottom in the present embodiment is made an uproar, value refers to configuring a parameter in the electronic device
(configuration mode may, for example, be storage in the electronic device), for using range sensor measure apart from when as the distance
The reference point of the output valve of sensor.For example, when the output valve of range sensor is 700, subtracting bottom under same unit and making an uproar
Numerical value 600 after value 100 can be participated in subsequent processing as distance measure.Judging close to event and far from event
When, numerical value 600 can be compared with close to difference 500 and far from difference 200 respectively, to judged accordingly close to event and separate
Whether event occurs.
It should also be noted that, the range sensor in the present embodiment is after calibration, bottom value of making an uproar is changed to corrector strip
Target parameter when part obtains meeting, it is seen that the calibration condition in the present embodiment is mainly used for determining the output valve of range sensor
It makes an uproar value at bottom after whether can be used as calibration.Therefore in the specific implementation, the sensor according to possessed by electronic equipment, with
And range sensor output valve can be used as bottom make an uproar be worth when each sensor the feature of output valve determine calibration condition,
And then determine the mark for judging to need to obtain when calibration condition the sensor of output valve, to obtain the calibration strategy, specifically
Example will provide later.
It should also be noted that, the mode for obtaining calibration strategy in the present embodiment may include: the storage from electronic equipment
At least partly data of calibration strategy are read in device, at least partly data that input to obtain calibration strategy based on user, receive come
From at least partly data etc. of the calibration strategy of the external equipments such as server, the data for belonging to calibration strategy can be solidificated in electricity
It inside sub- equipment, is stored in the memory of electronic equipment, inputted and generate based on user, or to be stored in server etc. external sets
In standby etc., the disclosure is not particularly limited.Moreover, obtain calibration strategy process can be disposably complete (such as
The process of calibrated distance sensor is directly read from electronic equipment when being triggered), be also possible to complete stage by stage (such as first
The output valve which sensor is used by user's selection obtains corresponding corrector strip further according to the sensor identification chosen by user
Part), it can also be (for example the updating once by Cloud Server every other week) being repeated cyclically, the disclosure does not do specific limit
System.
It can be seen that setting of the present embodiment based on calibration strategy, and the corrector strip carried out according to calibration strategy
Value change that part judges and bottom is made an uproar, can use the output valve that the sensor that electronic equipment itself has detects range sensor
It can be used as the scene that bottom is made an uproar when being worth, and update setting bottom in the electronic device accordingly and make an uproar value, so as to by using journey
Sequence realizes that the adjust the distance bottom of sensor of electronic equipment is made an uproar the calibration of value, can eliminate factory setting bottom make an uproar value deviate it is practical applicable
It is worth adverse effect, facilitates the reliability for promoting product, optimize properties of product.
In one possible implementation, at least one described sensor identification includes biography corresponding with gravity sensor
Sensor mark, the gravity sensor are arranged in the electronic equipment;The judgment module includes:
First acquisition unit is configured as obtaining the output valve of the gravity sensor, as at least one described state
One in parameter;
First determination unit, be configured as according to the output valve of the gravity sensor determine the electronic equipment not by
When answering direction according to the distance perception of the range sensor state upward is placed vertically, the target parameter and at least one are determined
State parameter is unsatisfactory for the calibration condition.
In one possible implementation, at least one described sensor identification includes biography corresponding with light sensor
Sensor mark, the light sensor are wholely set in the electronic equipment with the range sensor;The judgment module,
Further include:
Second acquisition unit is configured as obtaining the output valve of the range sensor as the target parameter;
Third acquiring unit is configured as obtaining the output valve of the light sensor, as at least one described state
One in parameter;
Second determination unit is configured as being equal to the maximum output value of the range sensor, institute in the target parameter
When stating the output valve of light sensor greater than 0 lux, determine that the judgement target parameter and at least one state parameter are discontented
The foot calibration condition and the calibration for terminating range sensor.
In one possible implementation, the judgment module further include:
Return unit is configured as being equal to the maximum output value of the range sensor, the light in the target parameter
When the output valve of line sensor is equal to 0 lux, after the time for waiting preset duration, it is back to the second acquisition unit and obtains
Before taking the output valve of the range sensor and output valve that the third acquiring unit obtains the light sensor.
In one possible implementation, the judging unit includes:
Second acquisition unit is configured as obtaining the output valve of the range sensor as the target parameter;
Third determination unit is configured as determining when the target parameter is with preset threshold is greater than close to the sum of difference
The judgement target parameter and at least one state parameter are unsatisfactory for the calibration condition;
Wherein, the parameter being disposed on close to difference in the electronic equipment, for the range sensor
Output valve subtracts the bottom and makes an uproar difference comparsion size that value obtains to judge whether occur close to event;The preset threshold is greater than
Equal to the half of the maximum output value of the range sensor.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 5 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.For example, electronic equipment 500 can be with
It is mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building
Equipment, personal digital assistant etc..
Referring to Fig. 5, electronic equipment 500 may include following one or more components: processing component 502, memory 504,
Power supply module 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514,
And communication component 516.
The integrated operation of the usual controlling electronic devices 500 of processing component 502, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing component 502 may include one or more processors 520 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more moulds
Block, convenient for the interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, with
Facilitate the interaction between multimedia component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in electronic equipment 500.These data
Example include any application or method for being operated on electronic equipment 500 instruction, contact data, telephone directory
Data, message, picture, video etc..Memory 504 can by any kind of volatibility or non-volatile memory device or it
Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly
Flash memory, disk or CD.
Power supply module 506 provides electric power for the various assemblies of electronic equipment 500.Power supply module 506 may include power supply pipe
Reason system, one or more power supplys and other with for electronic equipment 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between the electronic equipment 500 and user.
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface
Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding
The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments,
Multimedia component 508 includes a front camera and/or rear camera.When electronic equipment 500 is in operation mode, as clapped
When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition
Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike
Wind (MIC), when electronic equipment 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 504 or via logical
Believe that component 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 514 includes one or more sensors, for providing the state of various aspects for electronic equipment 500
Assessment, such as range sensor described above.What sensor module 514 can detecte equipment 500 opens/closes state,
The relative positioning of component, such as the component are the display and keypad of electronic equipment 500, and sensor module 514 can be with
Detect the position change of 500 1 components of electronic equipment 500 or electronic equipment, presence that user contacts with electronic equipment 500 or
It is not present, the temperature change in 500 orientation of electronic equipment or acceleration/deceleration and electronic equipment 500.Sensor module 514 can wrap
Range sensor is included, is configured to detect the presence of nearby objects without any physical contact.Sensor module 514
It can also include light sensor, such as CMOS or ccd image sensor.Sensor module 514 can also include gravity sensor.
In some embodiments, which can also include Magnetic Sensor, pressure sensor or temperature sensor, be used for
Realize the sensing to magnetic signal, pressure signal or temperature signal.
Communication component 516 is configured to facilitate the communication of wired or wireless way between electronic equipment 500 and other equipment.
Electronic equipment 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one
In example property embodiment, communication component 516 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, short to promote
Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 500 can be by one or more application specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 504 of instruction, above-metioned instruction can be executed above-mentioned any one to complete by the processor 520 of electronic equipment 500
The method of the calibrated distance sensor of kind.For example, the non-transitorycomputer readable storage medium can be ROM, deposit at random
Access to memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to the disclosure after considering specification and practicing technology contents disclosed herein
Other embodiments.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications are used
Way or adaptive change follow the general principles of this disclosure and including the disclosure it is undocumented in the art known in
Common sense or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are under
The claim in face is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (7)
1. a kind of method of calibrated distance sensor, which is characterized in that the method is applied to electronic equipment, the Distance-sensing
Device is arranged in the electronic equipment, which comprises
Calibration strategy is obtained, the calibration strategy includes calibration condition and at least one sensing corresponding with the calibration condition
Device mark, each sensor identification correspond respectively to a biography in the electronic equipment in addition to the range sensor
Sensor;
Judge whether target parameter and at least one state parameter meet the calibration condition, the target parameter is the distance
The output valve of sensor, at least one described state parameter be in the electronic equipment at least one described sensor identification pair
The output valve at least one sensor answered;
When the target parameter and at least one state parameter meet the calibration condition, will configure in the electronic equipment
Bottom corresponding with range sensor value of making an uproar is changed to the size of the target parameter;
Wherein, at least one described sensor identification includes sensor identification corresponding with gravity sensor, and is passed with light
The corresponding sensor identification of sensor, the gravity sensor are arranged in the electronic equipment, and the light sensor is described
It is wholely set in electronic equipment with the range sensor;
It is described to judge whether target parameter and at least one state parameter meet the calibration condition, comprising:
The output valve for obtaining the gravity sensor, as one at least one described state parameter;
Determining the electronic equipment not according to the distance perception of the range sensor according to the output valve of the gravity sensor
When the state of direction vertically upward being answered to place, determine that the target parameter and at least one state parameter are unsatisfactory for the corrector strip
Part;
Determining that the electronic equipment is answered according to the distance perception of the range sensor according to the output valve of the gravity sensor
When the state of direction vertically upward is placed, the output valve of the range sensor is obtained, as the target parameter;
The output valve for obtaining the light sensor, as one at least one described state parameter;
It is equal to the maximum output value of the range sensor in the target parameter, the output valve of the light sensor is greater than 0
When lux, determines that the target parameter and at least one state parameter are unsatisfactory for the calibration condition, terminate to the distance
The calibration of sensor.
2. the method according to claim 1, wherein being gone back after the output valve for obtaining the light sensor
Include:
It is equal to the maximum output value of the range sensor in the target parameter, the output valve of the light sensor is equal to 0
When lux, after the time for waiting preset duration, it is back to the output valve for obtaining the range sensor and described obtains
Before the output valve for taking the light sensor.
3. method according to claim 1 or 2, which is characterized in that the judgement target parameter and at least one state are joined
Whether amount meets the calibration condition, comprising:
When the target parameter is with preset threshold is greater than close to the sum of difference, the judgement target parameter and at least one are determined
State parameter is unsatisfactory for the calibration condition;
Wherein, the parameter being disposed on close to difference in the electronic equipment, for the output with the range sensor
Value subtracts the bottom and makes an uproar difference comparsion size that value obtains to judge whether occur close to event;The preset threshold is more than or equal to
The half of the maximum output value of the range sensor.
4. a kind of device of calibrated distance sensor, which is characterized in that described device is applied to electronic equipment, the Distance-sensing
Device is arranged in the electronic equipment, and described device includes:
Obtain module, be configured as obtaining calibration strategy, calibration strategy including calibration condition and with the calibration condition
At least one corresponding sensor identification, each sensor identification correspond respectively in the electronic equipment except the distance
A sensor except sensor;
Judgment module is configured as judging whether target parameter and at least one state parameter meet the calibration condition, described
Target parameter is the output valve of the range sensor, at least one described state parameter be in the electronic equipment with it is described extremely
The output valve of few at least one corresponding sensor of a sensor identification;
Module is changed, by when the target parameter and at least one state parameter meet the calibration condition, will be configured in institute
It states the value of making an uproar of bottom corresponding with the range sensor in electronic equipment and is changed to the size of the target parameter;
Wherein, at least one described sensor identification includes sensor identification corresponding with gravity sensor, and is passed with light
The corresponding sensor identification of sensor, the gravity sensor are arranged in the electronic equipment, and the light sensor is described
It is wholely set in electronic equipment with the range sensor;
The judgment module includes:
First acquisition unit is configured as obtaining the output valve of the gravity sensor, as at least one described state parameter
In one;
First determination unit is configured as determining the electronic equipment not according to institute according to the output valve of the gravity sensor
When stating the distance perception of range sensor and answering direction state upward is placed vertically, the target parameter and at least one state are determined
Parameter is unsatisfactory for the calibration condition;
Second acquisition unit is configured as determining the electronic equipment according to described according to the output valve of the gravity sensor
When the distance perception of range sensor answers the state of direction vertically upward to place, the output valve conduct of the range sensor is obtained,
The target parameter;
Third acquiring unit is configured as obtaining the output valve of the light sensor, as at least one described state parameter
In one;
Second determination unit is configured as being equal to the maximum output value of the range sensor, the light in the target parameter
When the output valve of line sensor is greater than 0 lux, determine that the judgement target parameter and at least one state parameter are unsatisfactory for institute
It states calibration condition and terminates the calibration of range sensor.
5. device according to claim 4, which is characterized in that the judgment module further include:
Return unit is configured as being equal to the maximum output value of the range sensor in the target parameter, and the light passes
When the output valve of sensor is equal to 0 lux, after the time for waiting preset duration, it is back to the second acquisition unit and obtains institute
The output valve and the third acquiring unit for stating range sensor obtain before the output valve of the light sensor.
6. device according to claim 4 or 5, which is characterized in that the judgment module includes:
Third determination unit is configured as when the target parameter is with preset threshold is greater than close to the sum of difference, described in determination
Judge that target parameter and at least one state parameter are unsatisfactory for the calibration condition;
Wherein, the parameter being disposed on close to difference in the electronic equipment, for the output with the range sensor
Value subtracts the bottom and makes an uproar difference comparsion size that value obtains to judge whether occur close to event;The preset threshold is more than or equal to
The half of the maximum output value of the range sensor.
7. a kind of electronic equipment, which is characterized in that at least one including range sensor and in addition to the range sensor
Sensor, the electronic equipment further include:
Processor;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
Calibration strategy is obtained, the calibration strategy includes calibration condition and at least one sensing corresponding with the calibration condition
Device mark, each sensor identification correspond respectively to a biography in the electronic equipment in addition to the range sensor
Sensor;
Judge whether target parameter and at least one state parameter meet the calibration condition, the target parameter is the distance
The output valve of sensor, at least one described state parameter be in the electronic equipment at least one described sensor identification pair
The output valve at least one sensor answered;
When the target parameter and at least one state parameter meet the calibration condition, will configure in the electronic equipment
Bottom corresponding with range sensor value of making an uproar is changed to the size of the target parameter;
Wherein, at least one described sensor identification includes sensor identification corresponding with gravity sensor, and is passed with light
The corresponding sensor identification of sensor, the gravity sensor are arranged in the electronic equipment, and the light sensor is described
It is wholely set in electronic equipment with the range sensor;
It is described to judge whether target parameter and at least one state parameter meet the calibration condition, comprising:
The output valve for obtaining the gravity sensor, as one at least one described state parameter;
Determining the electronic equipment not according to the distance perception of the range sensor according to the output valve of the gravity sensor
When the state of direction vertically upward being answered to place, determine that the target parameter and at least one state parameter are unsatisfactory for the corrector strip
Part;
Determining that the electronic equipment is answered according to the distance perception of the range sensor according to the output valve of the gravity sensor
When the state of direction vertically upward is placed, the output valve of the range sensor is obtained, as the target parameter;
The output valve for obtaining the light sensor, as one at least one described state parameter;
It is equal to the maximum output value of the range sensor in the target parameter, the output valve of the light sensor is greater than 0
When lux, determines that the target parameter and at least one state parameter are unsatisfactory for the calibration condition, terminate to the distance
The calibration of sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611183527.8A CN107339961B (en) | 2016-12-20 | 2016-12-20 | The method and device of calibrated distance sensor, electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611183527.8A CN107339961B (en) | 2016-12-20 | 2016-12-20 | The method and device of calibrated distance sensor, electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107339961A CN107339961A (en) | 2017-11-10 |
CN107339961B true CN107339961B (en) | 2019-08-06 |
Family
ID=60222803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611183527.8A Active CN107339961B (en) | 2016-12-20 | 2016-12-20 | The method and device of calibrated distance sensor, electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107339961B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109375855B (en) * | 2018-09-26 | 2020-09-04 | Oppo广东移动通信有限公司 | Terminal state determination method and device, terminal equipment and storage medium |
CN111829472A (en) * | 2019-04-17 | 2020-10-27 | 初速度(苏州)科技有限公司 | Method and device for determining relative position between sensors by using total station |
CN110609977B (en) * | 2019-08-06 | 2023-08-11 | 深圳市万普拉斯科技有限公司 | Bottom noise adjusting and processing method and device based on proximity sensor and computer equipment |
CN110821563B (en) * | 2019-10-29 | 2021-07-13 | 天地(常州)自动化股份有限公司 | Identification method and device |
CN111307195A (en) * | 2020-03-11 | 2020-06-19 | 深圳市创维电器科技有限公司 | Universal sensor calibration method, device, equipment and computer readable storage medium |
CN113671512B (en) * | 2020-05-14 | 2024-01-30 | 北京小米移动软件有限公司 | Proximity sensor angle adjustment method, device and storage medium |
WO2023272603A1 (en) * | 2021-06-30 | 2023-01-05 | 东莞市小精灵教育软件有限公司 | Calibration method and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271177A (en) * | 2011-07-18 | 2011-12-07 | 惠州Tcl移动通信有限公司 | Method and system for calibrating proximity sensor of mobile phone |
JP2012163407A (en) * | 2011-02-04 | 2012-08-30 | Toyota Motor Corp | Positioning device |
CN102932527A (en) * | 2012-09-24 | 2013-02-13 | 惠州Tcl移动通信有限公司 | Mobile terminal and calibration method of distance sensor thereof |
CN103941310A (en) * | 2014-04-09 | 2014-07-23 | 苏州佳世达电通有限公司 | Correcting method and system of proximity sensor |
CN104503574A (en) * | 2014-12-17 | 2015-04-08 | 青岛海信移动通信技术股份有限公司 | Calibration method, device and system of range sensor |
KR20150042034A (en) * | 2013-10-10 | 2015-04-20 | 한국과학기술원 | Mobile sensor based air quality measurement method |
-
2016
- 2016-12-20 CN CN201611183527.8A patent/CN107339961B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012163407A (en) * | 2011-02-04 | 2012-08-30 | Toyota Motor Corp | Positioning device |
CN102271177A (en) * | 2011-07-18 | 2011-12-07 | 惠州Tcl移动通信有限公司 | Method and system for calibrating proximity sensor of mobile phone |
CN102932527A (en) * | 2012-09-24 | 2013-02-13 | 惠州Tcl移动通信有限公司 | Mobile terminal and calibration method of distance sensor thereof |
KR20150042034A (en) * | 2013-10-10 | 2015-04-20 | 한국과학기술원 | Mobile sensor based air quality measurement method |
CN103941310A (en) * | 2014-04-09 | 2014-07-23 | 苏州佳世达电通有限公司 | Correcting method and system of proximity sensor |
CN104503574A (en) * | 2014-12-17 | 2015-04-08 | 青岛海信移动通信技术股份有限公司 | Calibration method, device and system of range sensor |
Also Published As
Publication number | Publication date |
---|---|
CN107339961A (en) | 2017-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107339961B (en) | The method and device of calibrated distance sensor, electronic equipment | |
EP3035738A1 (en) | Method for connecting appliance to network and device for the same | |
EP3023928A1 (en) | Method and device for setting task | |
EP3200116B1 (en) | Method and apparatus for acquiring information via a virtual identity module from lost or stolen terminal | |
CN105607834B (en) | Screen control method, device and terminal | |
CN106375676A (en) | Photographing control method and device of terminal equipment, and terminal equipment | |
CN107155060A (en) | Image processing method and device | |
CN106027905B (en) | A kind of method and mobile terminal for sky focusing | |
US10318069B2 (en) | Method for controlling state of touch screen, and electronic device and medium for implementing the same | |
CN105554255B (en) | Method of controlling operation thereof and device for terminal device | |
WO2018000710A1 (en) | Method and device for displaying wifi signal icon and mobile terminal | |
EP3016048A1 (en) | Method and device for displaying a reminder based on geographic criteria | |
CN105208284B (en) | Shoot based reminding method and device | |
EP3024211A1 (en) | Method and device for announcing voice call | |
CN105516586A (en) | Picture shooting method, device and system | |
WO2017008400A1 (en) | Method and device for controlling intelligent device | |
CN105224174B (en) | The display methods and device of Paste | |
EP3322227A1 (en) | Methods and apparatuses for controlling wireless connection, computer program and recording medium | |
CN107426489A (en) | Processing method, device and terminal during shooting image | |
CN107347136A (en) | Photographic method, device and terminal device | |
CN107515749A (en) | Starting-up method, device and the electronic equipment of electronic equipment | |
CN106407079A (en) | Mobile terminal charging prompting method, device and equipment | |
US11011124B2 (en) | Method and device for adjusting current of backlight, and storage medium | |
CN104113646A (en) | Method and apparatus for calling forwarding | |
CN105491292A (en) | Method and device for shooting fill-in light |
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 |