CN107339961A - The method and device of calibrated distance sensor, electronic equipment - Google Patents

The method and device of calibrated distance sensor, electronic equipment Download PDF

Info

Publication number
CN107339961A
CN107339961A CN201611183527.8A CN201611183527A CN107339961A CN 107339961 A CN107339961 A CN 107339961A CN 201611183527 A CN201611183527 A CN 201611183527A CN 107339961 A CN107339961 A CN 107339961A
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.)
Granted
Application number
CN201611183527.8A
Other languages
Chinese (zh)
Other versions
CN107339961B (en
Inventor
解霏
杨大伟
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611183527.8A priority Critical patent/CN107339961B/en
Publication of CN107339961A publication Critical patent/CN107339961A/en
Application granted granted Critical
Publication of CN107339961B publication Critical patent/CN107339961B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring 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 device of calibrated distance sensor, electronic equipment, belong to field of terminal equipment.Method therein includes:Calibration strategy is obtained, 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 addition to range sensor in electronic equipment;Judge whether target parameter and at least one state parameter meet calibration condition, target parameter is the output valve of range sensor, and at least one state parameter is the output valve of at least one sensor corresponding with least one sensor identification in electronic equipment;When target parameter and at least one state parameter meet calibration condition, the value of making an uproar of bottom corresponding with range sensor in the electronic device will be configured and be changed to the size of target parameter.The bottom value of making an uproar that the disclosure can eliminate factory setting deviates actual applicable value adverse effect, lifts the reliability of product, optimization properties of product.

Description

The method and device of calibrated distance sensor, electronic equipment
Technical field
This disclosure relates to field of terminal equipment, more particularly to a kind of method and device of calibrated distance sensor, electronics are set It is standby.
Background technology
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 electric signal or the device of 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 realize numerous practical functions using the related application program of its cooperation.For example, current intelligence End product generally can all configure light sensor, range sensor and gravity sensor, and light sensor therein can be used Come realize screen intensity according to ambient light it is strong and weak automatically adjust, take pictures when white balance automatically adjust, 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 reaches the purpose of power saving, gravity sensor Intelligence switching, photo direction of taking pictures available for horizontal/vertical screen adjust and carried out game of gravity sensing class etc..
Generally, can be in the calibration of advance line sensor of dispatching from the factory equipped with the terminal device of sensor, for example factory can be utilized Tool obtain the value of being made an uproar close to threshold value, away from threshold value and bottom of range sensor, and make an uproar what is be worth to by bottom is subtracted close to threshold value Subtract bottom close to difference, away from threshold value to make an uproar remote the difference that is worth to, and make an uproar value these three values of bottom write consolidating for terminal device Change subregion, as the standard for judging whether to occur close to event and away from event.But as terminal device is after dispatching from the 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 away from event Actual estimate of situation differs far with design object, for example the distance threshold of mobile phone automatic distinguishing screen can be caused to become too much Or it is too small, influence the normal use of user.
The content of the invention
To overcome problem present in correlation technique, the disclosure provide a kind of method and device of calibrated distance sensor, Electronic equipment.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of calibrated distance sensor, methods described application In electronic equipment, the range sensor is arranged in the electronic equipment, and methods described includes:
Acquisition calibration strategy, the calibration are tactful including calibration condition and 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 Individual 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 state parameter be in the electronic equipment with least one sensor mark The output valve of at least one sensor corresponding to knowledge;
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 disclosure, at least one sensor identification includes pass corresponding with gravity sensor Sensor is identified, and the gravity sensor is arranged in the electronic equipment;The judgement target parameter and at least one state ginseng Whether amount meets the calibration condition, including:
The output valve of the gravity sensor is obtained, as one at least one state parameter;
According to the output valve of the gravity sensor determine the electronic equipment not according to the range sensor away from When being placed from the vertical state upward in sensing direction, 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 perspective of range sensor answer direction it is vertical upward when just enter line-spacing From the calibration of sensor, with reference to user to the use habit of the electronic equipment of such as smart mobile phone (such as range sensor away from It is difficult to keep straight up in use from sensing direction, and then can be with when electronic equipment is stood), it can effectively be arranged Except distance perspective answers the situation for having object to block on direction, so as to lift the reliability of calibration result to a certain extent.
In one embodiment of the disclosure, at least one sensor identification includes pass corresponding with light sensor Sensor is identified, and the light sensor is 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, in addition to:
The output valve of the range sensor is obtained, as the target parameter;
The output valve of the light sensor is obtained, as one at least one 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 that the target parameter and at least one state parameter are unsatisfactory for the calibration condition, terminate to it is described away from From the calibration of 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, be blocked without object the situation that range sensor in equipment does not assemble correctly, but one The range sensor of setting has but detected that object blocks), so as to terminate the calibration for sensor of adjusting the distance at this moment to avoid mistake Made an uproar value using the output valve of range sensor the bottom of as by mistake, contribute to the reliability of lifting calibration result.
In one embodiment of the disclosure, after the output valve of the light sensor is obtained, in addition to:
It is equal to the maximum output value, the output valve of the light sensor etc. of the range sensor in the target parameter When 0 lux, after the time for waiting preset duration, the output valve for obtaining the range sensor and described is back to 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 situation that sensor is blocked, the range sensor being wholely set Can detect that object blocks), the output valve of range sensor is reacquired so as 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 lift calibration efficiency.
In one embodiment of the disclosure, it is described judge target parameter and at least one state parameter whether meet it is described Calibration condition, including:
The output valve of the range sensor is obtained, as the target parameter;
In the target parameter and when being more than predetermined threshold value close to difference sum, determine described to judge target parameter and at least 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 the difference comparsion size that is worth to judge whether occur close to event;The predetermined threshold value is more than Equal to the half of the maximum output value of the range sensor.
Based on this, the embodiment of the present disclosure can using configuration in the electronic device close to difference come in range sensor Output valve excludes the obvious bottom that should not be judged as and made an uproar the numerical value of value, helps to lift the reliability of calibration result.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device of calibrated distance sensor, described device application In electronic equipment, the range sensor is arranged in the electronic equipment, and described device includes:
Acquisition module, be configured as obtain calibration strategy, it is described calibration strategy include calibration condition and with the calibration At least one sensor identification corresponding to condition, each sensor identification are corresponded respectively in the electronic equipment except described A sensor outside range sensor;
Judge module, it 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 state parameter be in the electronic equipment with institute State the output valve of at least one sensor corresponding 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 sensor identification includes pass corresponding with gravity sensor Sensor is identified, and the gravity sensor is arranged in the electronic equipment;The judge module includes:
First acquisition unit, it is configured as obtaining the output valve of the gravity sensor, as at least one state One in parameter;
First determining unit, be configured as according to the output valve of the gravity sensor determine the electronic equipment not by When answering the vertical state upward in direction to place according to the distance perspective of the range sensor, the target parameter and at least one is determined State parameter is unsatisfactory for the calibration condition.
In a possible implementation, at least one sensor identification includes pass corresponding with light sensor Sensor is identified, and the light sensor is wholely set in the electronic equipment with the range sensor;The judge module Also include:
Second acquisition unit, it is configured as obtaining the output valve of the range sensor as the target parameter;
3rd acquiring unit, it is configured as obtaining the output valve of the light sensor, as at least one state One in parameter;
Second determining unit, it is configured as the maximum output value for being equal to the range sensor in the target parameter, institute When stating the output valve of light sensor and being more than 0 lux, determine that the judgement target parameter and at least one state parameter are discontented with The foot calibration condition simultaneously terminates the calibration of range sensor.
In a possible implementation, the judge module also includes:
Returning unit, it is configured as the maximum output value for being equal to the range sensor in the target parameter, the light 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 Take the output valve of the range sensor and before the 3rd acquiring unit obtains the output valve of the light sensor.
In a possible implementation, the judging unit includes:
Second acquisition unit, it is configured as obtaining the output valve of the range sensor as the target parameter;
3rd determining unit, it is configured as when the target parameter close to difference sum with being more than predetermined threshold value, it is determined that 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 the difference comparsion size that is worth to judge whether occur close to event;The predetermined threshold value is more than Equal to the half of the maximum output value of the range sensor.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of electronic equipment, including range sensor and except it is described away from From at least one sensor outside sensor, the electronic equipment also includes:
Processor;
For storing the memory of the executable instruction of processor;
Wherein, the processor is configured as:
Acquisition calibration strategy, the calibration are tactful including calibration condition and 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 Individual 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 state parameter be in the electronic equipment with least one sensor mark The output valve of at least one sensor corresponding to knowledge;
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 Set, and according to calibration strategy carry out calibration condition judge and bottom make an uproar value change, can be had using electronic equipment itself Standby sensor detect the output valve of range sensor can be made an uproar the bottom of as value when scene, and accordingly renewal be arranged on electronics 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 actual applicable value adverse effect to eliminate the bottom of factory setting value of making an uproar, contribute to the reliability of lifting product, Optimize properties of product.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the method for calibrated distance sensor according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method for calibrated distance sensor according to an exemplary embodiment;
Fig. 3 is the dimensional structure diagram of a kind of electronic equipment according to an exemplary embodiment;
Fig. 4 is a kind of structured flowchart of the device of calibrated distance sensor according to an exemplary embodiment;
Fig. 5 is the block diagram of a kind of electronic equipment according to an exemplary embodiment.
Embodiment
To make the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with accompanying drawing to disclosure embodiment party Formula is described in further detail.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus 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 according to an exemplary embodiment, such as Fig. 1 institutes Show, this method is used for electronic equipment, and the range sensor is arranged in the electronic equipment, and this method comprises the following steps:
In a step 101, obtain calibration strategy, it is described calibration strategy include calibration condition and with the calibration condition pair At least one sensor identification answered, each sensor identification correspond respectively to remove range sensor in the electronic equipment Outside 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 state parameter be in the electronic equipment with it is described at least The output valve of at least one sensor corresponding to one sensor identification.
In step 103, 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 the electronic equipment in the present embodiment can be any one include range sensor and except this away from From the equipment of at least one sensor beyond sensor, such as smart mobile phone, tablet personal 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 set one or more than one, can be between different sensors (for example being separately positioned on two chips) is provided separately, 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 Or at interval of a period of time automatic triggering once (for example trigger once or monthly trigger once weekly), may be used also Be one set the moment after specified duration after trigger (for example being triggered behind six months after first powering on), 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 being used as the distance when by the use of range sensor measurement distance The reference point of the output valve of sensor.For example, under same unit, when the output valve of range sensor is 700, it subtracts bottom and made an uproar Numerical value 600 after value 100 can be participated in subsequent treatment as distance measure.Judging close to event and away from event When, numerical value 600 can respectively with close to difference 500 and away from compared with difference 200, so as to judge accordingly close to event and remote 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 is met, it is seen that the calibration condition in the present embodiment is mainly used in determining the output valve of range sensor Whether can make an uproar value as the bottom after calibration.Therefore in the specific implementation, can according to possessed by electronic equipment sensor, with And range sensor output valve can be made an uproar the bottom of as value when each sensor the feature of output valve determine calibration condition, And then determine to judge the mark for needing to obtain the sensor of output valve during calibration condition, to obtain described calibration strategy, specifically Example will provide later.
It should also be noted that, the mode of calibration strategy is obtained in the present embodiment to be included:From the storage of electronic equipment At least part data of calibration strategy are read in device, input to obtain at least part data of calibration strategy based on user, receive come At least part data of calibration strategy from external equipments such as servers etc., electricity can be solidificated in by belonging to the data of calibration strategy Sub- device interior, it is stored in the memory of electronic equipment, generation is inputted based on user, or is stored in outside server etc. and sets In standby etc., the disclosure is not particularly limited.Moreover, obtain calibration strategy process can be disposably complete (such as The flow of calibrated distance sensor is directly read when being triggered from electronic equipment) or complete stage by stage (such as it is first Output valve by user's selection using which sensor, further according to corrector strip corresponding to the sensor identification acquisition chosen by user Part), (for example being updated once by Cloud Server week about) being repeated cyclically is can also be, 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 utilize electronic equipment itself possessed sensor to detect the output valve of range sensor The scene during value that can be made an uproar the bottom of as, and renewal sets bottom in the electronic device to make an uproar value accordingly, 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, and the bottom value of making an uproar that can eliminate factory setting deviates actual be applicable It is worth adverse effect, helps to lift the reliability of product, optimize properties of product.
Fig. 2 is a kind of flow chart of the method for calibrated distance sensor according to an exemplary embodiment, such as Fig. 2 institutes Show, this method is used in electronic equipment, and the range sensor is arranged in the electronic equipment, and this method includes following step Suddenly:
In step 201, start the calibration flow of current period, the output valve of gravity sensor is obtained, as at least one First state parameter in individual state parameter.
In the present embodiment, often the time Jing Guo a cycle is carried out once calibrated distance sensor, and the flow shown in Fig. 2 is Calibration flow in a cycle.In the present embodiment, electronic equipment in addition to range sensor also include gravity sensor and Light sensor.In step 201, it can specifically include and gravity sensor is read by the program being pre-configured with the electronic device Output valve, using be used as at least one state parameter whether being met for judging calibration condition first state ginseng Amount.
In step 202, according to the first state parameter judge electronic equipment whether according to range sensor distance Sense the vertical state upward in direction to place.
Such as shown in Fig. 3, first direction R1, the second direction R2 and third direction R3 Special compositions right angle of pairwise orthogonal are sat 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, the electronic equipment in Fig. 3, which is placed, in the horizontal plane, sets the distance perspective of range sensor S0 in the electronic device should side 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 should be in opposite direction with range sensor S0 distance perspective.Thus, it is possible to joined according to first state Amount judges whether gravity direction should be in the opposite direction, if so, then illustrating electronic equipment according to distance with the distance perspective of range sensor The distance perspective of sensor answers the vertical state upward in direction to place;Otherwise, then illustrate electronic equipment not according to range sensor Distance perspective answers the vertical state upward in direction to place.
In step 203, it is determined that the electronic equipment does not answer direction vertical according to the distance perspective of the range sensor When state upward is placed, determine that target parameter and at least one state parameter are unsatisfactory for calibration condition, terminate current week The calibration flow of phase.
That is, the calibration condition in the present embodiment includes:Electronic equipment must answer direction to erect according to the distance perspective of range sensor Directly state upward is placed, and whether this condition is met is judged especially by the output valve of gravity sensor.At this When one condition can not be met, that is, illustrate that the output valve of now range sensor cannot function as configuring bottom in the electronic device Make 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 of target parameter and other state parameters do not obtain also target parameter and it is described at least One state parameter is unsatisfactory for calibration condition, and terminates the calibration flow of current period.
In step 204, the output valve of the range sensor is obtained, 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 being met for judging calibration condition.Now, it is that range sensor exists that can only determine the target parameter Distance perspective answer direction it is vertical upward when output valve, can not also determine if the bottom configured in the electronic device can be used as to make an uproar 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 scope (i.e. as sensor known to specification Range), the maximum in the scope is the maximum output value of range sensor, and range sensor can not be exported than the maximum output The bigger output valve of value.When the output valve of range sensor is equal to maximum output value, generally represent that distance perspective should side There is object to sufficiently close to (such as within 10 millimeters of distance) range sensor upwards.
In step 206, when the target parameter is equal to the maximum output value of the range sensor, obtain light and pass The output valve of sensor, as the second state parameter at least one 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 The second state parameter at least one state parameter whether being met for judging calibration condition.In the present embodiment, light The output quantity of line sensor represents its illumination received, and illumination corresponding to 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, it is determined that target parameter is equal to the maximum output value of range sensor, and the second state parameter is equal to 0 Le Gram at this moment, the output valve of range sensor is reacquired before step 204 is back to after waiting 5 minutes to update target parameter. As a result, the target parameter previously obtained is excluded the possibility for the value that can be made an uproar the bottom of as, but the calibration flow 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 flow Infinite Cyclic of step 204 to step 208, it can reach pre- in cycle-index Determine to terminate during number (such as 3 times) the calibration flow of current period.
In step 209, when second state parameter is more than 0 lux, 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 includes:The output quantity of range sensor light sensor when equal to maximum output Output quantity is not equal to 0 lux.Moreover, when the output quantity of range sensor is equal to maximum output, and light sensor Output quantity when being not equal to 0 lux, determine that the current situation of electronic equipment can not carry out the calibration of range sensor, so as to 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 close to difference sum with being more than predetermined threshold value.In the target parameter with being more than default threshold close to difference sum During 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 flow of beam current period.
That is, above-mentioned calibration condition includes:The output quantity of range sensor close to difference sum with being less than or equal to predetermined threshold value. Wherein, the parameter in the electronic equipment is disposed on close to difference, for subtracting institute with the output valve of the range sensor State bottom and make an uproar the difference comparsion size that is worth to judge whether occur close to event.For example, under same unit, range sensor Output valve when being 700, it, which subtracts the numerical value 600 made an uproar after value 100 at bottom, understands and be participated in subsequent treatment as distance measure; When judging close to event, numerical value 600 can respectively compared with close to difference 500, so as to judge accordingly close to event whether Occur.In addition, in the specific implementation, above-mentioned predetermined threshold value can be in the maximum output value more than or equal to the range sensor Chosen in the range of half.
In step 211, when the target parameter close to difference sum with being less than or equal to the predetermined threshold value, institute is determined State and judge that target parameter and at least one state parameter meet the calibration condition, will configuration in the electronic equipment with it is described The value of making an uproar of bottom corresponding to range sensor is changed to the size of the target parameter, terminates the calibration flow of current period.
As can be seen that the method for the present embodiment, on the basis of flow shown in Fig. 1, there is provided the school for including following content Floating screed part:Electronic equipment answers the vertical state upward in direction to place according to the distance perspective of range sensor;Also, range sensor The output quantity of output quantity light sensor when equal to maximum output be not equal to 0 lux;Also, range sensor is defeated Output close to difference sum with being less than or equal to predetermined threshold value.When meeting the calibration condition, the target parameter finally given is used Replace configuration bottom in the electronic device to make an uproar value, so as to complete the calibration flow 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 by going out when being worth.
It should be noted that the present embodiment alignment condition and the calibration strategy where at least one sensor identification obtain Flow is taken all to be directly contained among the flow of method, such as when the flow shown in Fig. 2 is being realized with computer program, 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, in other possible implementations, the present embodiment can carry out step in enforceable scope Between merging, fractionation or order exchange, for example before step 204 and step 210 are arranged on into step 201, i.e., 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 sensor identification can include with again Sensor identification corresponding to force snesor, the gravity sensor are arranged in the electronic equipment;Corresponding, the step 102 include:The output valve of the gravity sensor is obtained, as one at least one state parameter;And in root Determine that the electronic equipment does not answer direction to erect according to the distance perspective 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 perspective of range sensor answer direction it is vertical upward when just carry out the calibration of range sensor, tie Sharing family, (for example the distance perspective of range sensor answers direction using to the use habit of the electronic equipment of such as smart mobile phone It is difficult to keep straight up in journey, and then can be with when electronic equipment is stood), it, which can effectively exclude distance perspective, which answers on direction, has The situation that object blocks, so as to lift 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 sensor identification can include with Sensor identification corresponding to light sensor, the light sensor are integral with the range sensor in the electronic equipment Set;Corresponding, the step 102 includes:The output valve of the range sensor is obtained, as the target parameter;Obtain The output valve of the light sensor is taken, as one at least one 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 more 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 range sensor in electronic equipment not by the range sensor and light sensor being wholely set (i.e. light sensor can receive illumination, be blocked without object situation about correctly assembling, but the range sensor being wholely set is examined Object has been measured to block), so as to terminate the calibration for sensor of adjusting the distance at this moment to avoid the defeated of range sensor mistakenly Go out value to make an uproar value the bottom of as, help to lift the reliability of calibration result.
It can also be seen that in a kind of implementation of the disclosure, at least one sensor identification can include with Sensor identification corresponding to light sensor, the light sensor are integral with the range sensor in the electronic equipment Set;Corresponding, the step 102 includes:The output valve of the range sensor is obtained, as the target parameter;Obtain The output valve of the light sensor is taken, as one at least one 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 Go out before value.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 situation that 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 so as to wait for a period of time in the case, to reduce idol So there is the influence that object blocks, help to lift calibration efficiency.
It can also be seen that in a kind of implementation of the disclosure, the step 102 includes:Obtain the Distance-sensing The output valve of device, as the target parameter;And when the target parameter close to difference sum with being more than predetermined threshold value, Determine that the judgement target parameter and at least one state parameter are unsatisfactory for the calibration condition;Wherein, it is described to be close to difference Parameter in the electronic equipment is configured, is made an uproar the difference that is worth to for subtracting the bottom with the output valve of the range sensor Value compares size to judge whether occur close to event;The predetermined threshold value is more than or equal to the maximum output of the range sensor The half of value.Based on this, the disclosure can using configuration in the electronic device close to difference come in the output of range sensor Value excludes the obvious bottom that should not be judged as and made an uproar the numerical value of value, helps to lift the reliability of calibration result.Such as, it will usually It is positioned proximate to difference and makes an uproar value sum near the half of maximum output value the bottom of with, therefore can be in output valve with being more than close to difference Determine that the output valve is unsatisfactory for calibration condition during the half of maximum output value.
Fig. 4 is a kind of structured flowchart of the device of calibrated distance sensor according to an exemplary embodiment.Referring to Fig. 4, the device of embodiment of the present disclosure alignment range sensor include:
Acquisition module 41, be configured as obtain calibration strategy, it is described calibration strategy include calibration condition and with the school At least one sensor identification corresponding to floating screed part, each sensor identification correspond respectively to remove institute in the electronic equipment State a sensor outside range sensor;
Judge module 42, it 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, and at least one state parameter is in the electronic equipment The output valve of at least one sensor corresponding with least one sensor identification;
Module 43 is changed, by when the target parameter and at least one state parameter meet the calibration condition, will be matched somebody with somebody Put the value of making an uproar of the bottom corresponding with the range sensor in the electronic equipment and be changed to the size of the target parameter.
It should be noted that the electronic equipment in the present embodiment can be any one include range sensor and except this away from From the equipment of at least one sensor beyond sensor, such as smart mobile phone, tablet personal 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 set one or more than one, can be between different sensors (for example being separately positioned on two chips) is provided separately, 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 Or at interval of a period of time automatic triggering once (for example trigger once or monthly trigger once weekly), may be used also Be one set the moment after specified duration after trigger (for example being triggered behind six months after first powering on), 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 being used as the distance when by the use of range sensor measurement distance The reference point of the output valve of sensor.For example, under same unit, when the output valve of range sensor is 700, it subtracts bottom and made an uproar Numerical value 600 after value 100 can be participated in subsequent treatment as distance measure.Judging close to event and away from event When, numerical value 600 can respectively with close to difference 500 and away from compared with difference 200, so as to judge accordingly close to event and remote 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 is met, it is seen that the calibration condition in the present embodiment is mainly used in determining the output valve of range sensor Whether can make an uproar value as the bottom after calibration.Therefore in the specific implementation, can according to possessed by electronic equipment sensor, with And range sensor output valve can be made an uproar the bottom of as value when each sensor the feature of output valve determine calibration condition, And then determine to judge the mark for needing to obtain the sensor of output valve during calibration condition, to obtain described calibration strategy, specifically Example will provide later.
It should also be noted that, the mode of calibration strategy is obtained in the present embodiment to be included:From the storage of electronic equipment At least part data of calibration strategy are read in device, input to obtain at least part data of calibration strategy based on user, receive come At least part data of calibration strategy from external equipments such as servers etc., electricity can be solidificated in by belonging to the data of calibration strategy Sub- device interior, it is stored in the memory of electronic equipment, generation is inputted based on user, or is stored in outside server etc. and sets In standby etc., the disclosure is not particularly limited.Moreover, obtain calibration strategy process can be disposably complete (such as The flow of calibrated distance sensor is directly read when being triggered from electronic equipment) or complete stage by stage (such as it is first Output valve by user's selection using which sensor, further according to corrector strip corresponding to the sensor identification acquisition chosen by user Part), (for example being updated once by Cloud Server week about) being repeated cyclically is can also be, 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 utilize electronic equipment itself possessed sensor to detect the output valve of range sensor The scene during value that can be made an uproar the bottom of as, and renewal sets bottom in the electronic device to make an uproar value accordingly, 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, and the bottom value of making an uproar that can eliminate factory setting deviates actual be applicable It is worth adverse effect, helps to lift the reliability of product, optimize properties of product.
In a kind of possible implementation, at least one sensor identification includes pass corresponding with gravity sensor Sensor is identified, and the gravity sensor is arranged in the electronic equipment;The judge module includes:
First acquisition unit, it is configured as obtaining the output valve of the gravity sensor, as at least one state One in parameter;
First determining unit, be configured as according to the output valve of the gravity sensor determine the electronic equipment not by When answering the vertical state upward in direction to place according to the distance perspective of the range sensor, the target parameter and at least one is determined State parameter is unsatisfactory for the calibration condition.
In a kind of possible implementation, at least one sensor identification includes pass corresponding with light sensor Sensor is identified, and the light sensor is wholely set in the electronic equipment with the range sensor;The judge module, Also include:
Second acquisition unit, it is configured as obtaining the output valve of the range sensor as the target parameter;
3rd acquiring unit, it is configured as obtaining the output valve of the light sensor, as at least one state One in parameter;
Second determining unit, it is configured as the maximum output value for being equal to the range sensor in the target parameter, institute When stating the output valve of light sensor and being more than 0 lux, determine that the judgement target parameter and at least one state parameter are discontented with The foot calibration condition simultaneously terminates the calibration of range sensor.
In a kind of possible implementation, the judge module also includes:
Returning unit, it is configured as the maximum output value for being equal to the range sensor in the target parameter, the light 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 Take the output valve of the range sensor and before the 3rd acquiring unit obtains the output valve of the light sensor.
In a kind of possible implementation, the judging unit includes:
Second acquisition unit, it is configured as obtaining the output valve of the range sensor as the target parameter;
3rd determining unit, it is configured as when the target parameter close to difference sum with being more than predetermined threshold value, it is determined that 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 the difference comparsion size that is worth to judge whether occur close to event;The predetermined threshold value is more than Equal to the half of the maximum output value of the range sensor.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is the block diagram of a kind of electronic equipment according to an exemplary embodiment.For example, electronic equipment 500 can be with It is mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building Equipment, personal digital assistant etc..
Reference picture 5, electronic equipment 500 can include following one or more assemblies:Processing component 502, memory 504, Power supply module 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of input/output (I/O), sensor cluster 514, And communication component 516.
The integrated operation of the usual control electronics 500 of processing component 502, such as leads to display, call, data The operation that letter, camera operation and record operation are associated.Processing component 502 can include one or more processors 520 to hold Row instruction, to complete all or part of step of above-mentioned method.In addition, processing component 502 can include one or more moulds Block, the interaction being easy between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, with Facilitate the interaction between multimedia groupware 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 being used for the instruction of any application program or method operated on electronic equipment 500, 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, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, soon Flash memory, disk or CD.
Power supply module 506 provides electric power for the various assemblies of electronic equipment 500.Power supply module 506 can include power supply pipe Reason system, one or more power supplys, and other components associated with generating, managing and distributing electric power for electronic equipment 500.
Multimedia groupware 508 is included in the screen of one output interface of offer between the electronic equipment 500 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip The border of action, but also detect the duration and pressure related to the touch or slide.In certain embodiments, Multimedia groupware 508 includes a front camera and/or rear camera.When electronic equipment 500 is in operator scheme, such as clap When taking the photograph pattern or video mode, front camera and/or rear camera can receive outside 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-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when electronic equipment 500 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone It is configured as receiving external audio signal.The audio signal received can be further stored in memory 504 or via logical Letter component 516 is sent.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
I/O interfaces 512 provide 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 be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, for providing the state of various aspects for electronic equipment 500 Assess, such as range sensor described above.Sensor cluster 514 can detect opening/closed mode of equipment 500, The relative positioning of component, such as the display and keypad that the component is electronic equipment 500, sensor cluster 514 can be with The position for detecting 500 1 components of electronic equipment 500 or electronic equipment changes, presence that user contacts with electronic equipment 500 or It is not present, the orientation of electronic equipment 500 or acceleration/deceleration and the temperature change of electronic equipment 500.Sensor cluster 514 can wrap Range sensor is included, is configured to detect the presence of object nearby in no any physical contact.Sensor cluster 514 Light sensor can also be included, such as CMOS or ccd image sensor.Sensor cluster 514 can also include gravity sensor. In certain embodiments, the sensor cluster 514 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 combinations thereof.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 also 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 circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed 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 putting into practice technology contents disclosed herein Other embodiments.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, uses Way or adaptations follow the general principle of the disclosure and including undocumented in the art known of the disclosure General knowledge or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are under The claim in face is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

  1. A kind of 1. method of calibrated distance sensor, it is characterised in that methods described is applied to electronic equipment, the Distance-sensing Device is arranged in the electronic equipment, and methods described includes:
    Calibration strategy is obtained, the calibration strategy includes calibration condition and at least one sensing corresponding with the calibration condition Device identifies, and each sensor identification corresponds respectively to a biography in addition to the range sensor in the electronic equipment 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 state parameter be in the electronic equipment with least one 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.
  2. 2. according to the method for claim 1, it is characterised in that at least one sensor identification includes and gravity sensitive Sensor identification corresponding to device, the gravity sensor are arranged in the electronic equipment;The judgement target parameter and at least Whether one state parameter meets the calibration condition, including:
    The output valve of the gravity sensor is obtained, as one at least one state parameter;
    Determining the electronic equipment not according to the distance perspective of the range sensor according to the output valve of the gravity sensor When answering the vertical state upward in direction to place, determine that the target parameter and at least one state parameter are unsatisfactory for the corrector strip Part.
  3. 3. according to the method for claim 2, it is characterised in that at least one sensor identification includes and light level Sensor identification corresponding to device, the light sensor are wholely set in the electronic equipment with the range sensor;Institute State and judge whether target parameter and at least one state parameter meet the calibration condition, in addition to:
    The output valve of the range sensor is obtained, as the target parameter;
    The output valve of the light sensor is obtained, as one at least one 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 more than 0 During lux, determine that the target parameter and at least one state parameter are unsatisfactory for the calibration condition, terminate to the distance The calibration of sensor.
  4. 4. according to the method for claim 3, it is characterised in that after the output valve of the light sensor is obtained, also Including:
    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 During 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.
  5. 5. method according to any one of claim 1 to 4, it is characterised in that the judgement target parameter and at least one Whether individual state parameter meets the calibration condition, including:
    The output valve of the range sensor is obtained, as the target parameter;
    In the target parameter and when being more than predetermined threshold value close to difference sum, determine described to judge target parameter and at least one 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 the difference comparsion size that is worth to judge whether occur close to event;The predetermined threshold value is more than or equal to The half of the maximum output value of the range sensor.
  6. 6. a kind of device of calibrated distance sensor, it is characterised in that described device is applied to electronic equipment, the Distance-sensing Device is arranged in the electronic equipment, and described device includes:
    Acquisition module, be configured as obtain calibration strategy, it is described calibration strategy include calibration condition and with the calibration condition Corresponding at least one sensor identification, each sensor identification correspond respectively to remove the distance in the electronic equipment A sensor outside sensor;
    Judge module, it is configured as judging whether target parameter and at least one state parameter meet the calibration condition, it is described Target parameter is the output valve of the range sensor, at least one state parameter be in the electronic equipment with it is described extremely The output valve of at least one sensor corresponding to a few 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 State the value of making an uproar of bottom corresponding with the range sensor in electronic equipment and be changed to the size of the target parameter.
  7. 7. device according to claim 6, it is characterised in that at least one sensor identification includes and gravity sensitive Sensor identification corresponding to device, the gravity sensor are arranged in the electronic equipment;The judge module includes:
    First acquisition unit, it is configured as obtaining the output valve of the gravity sensor, as at least one state parameter In one;
    First determining unit, it is configured as determining the electronic equipment not according to institute according to the output valve of the gravity sensor When stating the distance perspective of range sensor and answering the vertical state upward in direction to place, the target parameter and at least one state are determined Parameter is unsatisfactory for the calibration condition.
  8. 8. device according to claim 7, it is characterised in that at least one sensor identification includes and light level Sensor identification corresponding to device, the light sensor are wholely set in the electronic equipment with the range sensor;Institute Stating judge module also includes:
    Second acquisition unit, it is configured as obtaining the output valve of the range sensor as the target parameter;
    3rd acquiring unit, it is configured as obtaining the output valve of the light sensor, as at least one state parameter In one;
    Second determining unit, it is configured as the maximum output value for being equal to the range sensor in the target parameter, the light When the output valve of line sensor is more than 0 lux, determine that the judgement target parameter and at least one state parameter are unsatisfactory for institute State calibration condition and terminate the calibration of range sensor.
  9. 9. device according to claim 8, it is characterised in that the judge module also includes:
    Returning unit, is configured as the maximum output value for being equal to 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 State the output valve of range sensor and before the 3rd acquiring unit obtains the output valve of the light sensor.
  10. 10. the device according to any one in claim 6 to 9, it is characterised in that the judging unit includes:
    Second acquisition unit, it is configured as obtaining the output valve of the range sensor as the target parameter;
    3rd determining unit, it is configured as when the target parameter close to difference sum with being more than predetermined threshold value, it is determined that described 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 the difference comparsion size that is worth to judge whether occur close to event;The predetermined threshold value is more than or equal to The half of the maximum output value of the range sensor.
  11. 11. a kind of electronic equipment, it is characterised in that at least one including range sensor and in addition to the range sensor Sensor, the electronic equipment also include:
    Processor;
    For storing the memory of the executable instruction of processor;
    Wherein, the processor is configured as:
    Calibration strategy is obtained, the calibration strategy includes calibration condition and at least one sensing corresponding with the calibration condition Device identifies, and each sensor identification corresponds respectively to a biography in addition to the range sensor in the electronic equipment 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 state parameter be in the electronic equipment with least one 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.
CN201611183527.8A 2016-12-20 2016-12-20 The method and device of calibrated distance sensor, electronic equipment Active CN107339961B (en)

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 true CN107339961A (en) 2017-11-10
CN107339961B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375855A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 The SOT state of termination determines method, apparatus, terminal device and storage medium
CN110821563A (en) * 2019-10-29 2020-02-21 天地(常州)自动化股份有限公司 Identification method and device
CN111307195A (en) * 2020-03-11 2020-06-19 深圳市创维电器科技有限公司 Universal sensor calibration method, device, equipment and computer readable storage medium
CN111829472A (en) * 2019-04-17 2020-10-27 初速度(苏州)科技有限公司 Method and device for determining relative position between sensors by using total station
WO2021023190A1 (en) * 2019-08-06 2021-02-11 深圳市万普拉斯科技有限公司 Proximity sensor-based noise floor adjustment processing method and apparatus, and computer device
CN113671512A (en) * 2020-05-14 2021-11-19 北京小米移动软件有限公司 Proximity sensor angle adjusting method and device and storage medium
WO2023272603A1 (en) * 2021-06-30 2023-01-05 东莞市小精灵教育软件有限公司 Calibration method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375855A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 The SOT state of termination determines method, apparatus, terminal device and storage medium
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
WO2021023190A1 (en) * 2019-08-06 2021-02-11 深圳市万普拉斯科技有限公司 Proximity sensor-based noise floor adjustment processing method and apparatus, and computer device
CN110821563A (en) * 2019-10-29 2020-02-21 天地(常州)自动化股份有限公司 Identification method and device
CN111307195A (en) * 2020-03-11 2020-06-19 深圳市创维电器科技有限公司 Universal sensor calibration method, device, equipment and computer readable storage medium
CN113671512A (en) * 2020-05-14 2021-11-19 北京小米移动软件有限公司 Proximity sensor angle adjusting method and device and 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

Also Published As

Publication number Publication date
CN107339961B (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN107339961A (en) The method and device of calibrated distance sensor, electronic equipment
EP3188414B1 (en) Method and apparatus for controlling smart device
US10409684B2 (en) Method, device and storage medium for cleaning memory
EP3242195A1 (en) Control implementation method and apparatus for intelligent hardware device
EP3136216A1 (en) Method for controlling mobile terminal and mobile terminal
CN105100432B (en) Call interface display methods and device
EP2924552B1 (en) Method and mobile terminal for executing user instructions
CN107155060A (en) Image processing method and device
CN104464674B (en) Liquid crystal display method of adjustment and device
WO2018000710A1 (en) Method and device for displaying wifi signal icon and mobile terminal
CN107102801A (en) Terminal screen spinning solution and device
CN105554255A (en) Operation control method and device for terminal equipment
CN106329635A (en) Terminal charging method and device
CN107515749A (en) Starting-up method, device and the electronic equipment of electronic equipment
CN107347136A (en) Photographic method, device and terminal device
CN106325670A (en) Message prompting method and device
CN107168543A (en) Control method of keyboard and device
US11011124B2 (en) Method and device for adjusting current of backlight, and storage medium
CN104020628A (en) Flash lamp prompting method and device thereof
CN107566626A (en) Terminal state control method and device
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN105704286A (en) Communication information display method and device
EP3460634A1 (en) Method and device for displaying an input interface and an electronic device
CN104536713A (en) Method and device for displaying characters in image
EP3171326A1 (en) Contact managing method and apparatus, computer program and recording medium

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