CN108267728A - Calibration method, device, equipment and the storage medium of range sensor - Google Patents

Calibration method, device, equipment and the storage medium of range sensor Download PDF

Info

Publication number
CN108267728A
CN108267728A CN201810061782.8A CN201810061782A CN108267728A CN 108267728 A CN108267728 A CN 108267728A CN 201810061782 A CN201810061782 A CN 201810061782A CN 108267728 A CN108267728 A CN 108267728A
Authority
CN
China
Prior art keywords
uproar
value
close
threshold value
range sensor
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.)
Pending
Application number
CN201810061782.8A
Other languages
Chinese (zh)
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 CN201810061782.8A priority Critical patent/CN108267728A/en
Publication of CN108267728A publication Critical patent/CN108267728A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • G01S17/10Systems determining position data of a target for measuring distance only using transmission of interrupted, pulse-modulated waves

Abstract

The disclosure is directed to a kind of calibration method of range sensor, device, equipment and storage medium, this method to include:It makes an uproar value at least one bottom for obtaining range sensor in preset time period;It is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;Reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom;Described to be used for close to threshold value it is judged whether or not object is close to terminal device, the separate threshold value is used for it is judged whether or not object is far from the terminal device.The disclosure can reduce the probability that terminal device misses blank screen, improve the experience of user.

Description

Calibration method, device, equipment and the storage medium of range sensor
Technical field
This disclosure relates to the calibration method of electronic device field more particularly to range sensor, device, equipment and storage are situated between Matter.
Background technology
At present, range sensor (Proximity Sensor, P-sensor) is typically provided in terminal device, when When having upper area of the object close to the P-sensor of terminal device, terminal device can close display screen, the master of simultaneity factor Controller also enters sleep state, to have the function that power saving and false-touch prevention, and when have object far from when, master controller can be called out It wakes up, display screen can also be lighted again so that user can carry out other operations on the terminal device.
The operation principle of P-sensor be P-sensor ends there are one light emitting diode (Light Emitting Diode, LED) infraluminescence module, the infraluminescence module can periodically send out infrared light pulse, when have object close to when, P-sensor connects Receiving reflected infrared light can slowly increase, and object is nearer, and the infrared light received is more;Object far from when, P- The infrared light that sensor is detected can be reduced accordingly, and when object is more remote, the infrared light received is fewer, therefore can pass through inspection Survey infrared light number judge the close and separate of object.
Invention content
To overcome the problems in correlation technique, the disclosure provides a kind of calibration method of range sensor, device, sets Standby and storage medium.
According to the embodiment of the present disclosure in a first aspect, provide a kind of calibration method of range sensor, including:
It makes an uproar value at least one bottom for obtaining range sensor in preset time period;
It is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom;It is described to be used to sentence close to threshold value Disconnected currently whether to have object close to terminal device, the separate threshold value is used for it is judged whether or not object is set far from the terminal It is standby.
Optionally, it is described to be made an uproar value according at least one bottom, determine that bottom is made an uproar reference value, including:
Determine that smallest base that at least one bottom is made an uproar in value is made an uproar value;
Smallest base value of making an uproar is determined as the bottom and makes an uproar reference value.
Optionally, it is described that reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom, including:
By the bottom make an uproar reference value with it is preset close to threshold shift and, be determined as described close to threshold value;
By the bottom make an uproar reference value and preset separate threshold shift and, be determined as the separate threshold value;Wherein, institute It states close to threshold shift and is more than the separate threshold shift.
Optionally, at least one bottom for obtaining range sensor in preset time period is made an uproar value, including:
In the preset time period, if detecting, the range sensor is in running order, obtains the distance At least one bottom of sensor is made an uproar value.
Optionally, it is described according to the bottom make an uproar reference value to close to threshold value and far from threshold value into Mobile state adjust after, institute The method of stating further includes:
It makes an uproar value at the current bottom for obtaining the range sensor;
If the current bottom is made an uproar, value is less than the separate threshold value, reports far from event;
If the current bottom is made an uproar, value is more than described close to threshold value, reports close to event.
According to the second aspect of the embodiment of the present disclosure, a kind of calibrating installation of range sensor is provided, including:
First acquisition module, at least one bottom for being configured as obtaining range sensor in preset time period are made an uproar value;
Determining module is configured as being made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Module is adjusted, is configured as making an uproar reference value to adjusting close to threshold value and far from threshold value into Mobile state according to the bottom; It is described to be used for close to threshold value it is judged whether or not object is close to terminal device, separate the threshold value for it is judged whether or not Object is far from the terminal device.
Optionally, the determining module, including:
First determination sub-module is configured to determine that smallest base that at least one bottom is made an uproar in value is made an uproar value;
Second determination sub-module is configured as that smallest base value of making an uproar is determined as the bottom and is made an uproar reference value.
Optionally, the adjustment module, including:
Third determination sub-module, be configured as by the bottom make an uproar reference value with it is preset close to threshold shift and, really It is set to described close to threshold value;
4th determination sub-module, be configured as by the bottom make an uproar reference value and preset separate threshold shift and, really It is set to the separate threshold value;Wherein, it is described to be more than the separate threshold shift close to threshold shift.
Optionally, first acquisition module includes:
Acquisition submodule is configured as in the preset time period, if detecting, the range sensor is in work State, the then at least one bottom for obtaining the range sensor are made an uproar value.
Optionally, described device further includes:
Second acquisition module, the current bottom for being configured as obtaining the range sensor are made an uproar value;
First reporting module when the value that is configured as making an uproar at the current bottom is less than the separate threshold value, is reported far from event;
Second reporting module, the value that is configured as making an uproar at the current bottom be more than it is described close to threshold value when, report close to event.
According to the third aspect of the embodiment of the present disclosure, a kind of terminal device is provided, including:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It makes an uproar value at least one bottom for obtaining range sensor in preset time period;
It is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom;It is described to be used to sentence close to threshold value Disconnected currently whether to have object close to terminal device, the separate threshold value is used for it is judged whether or not object is set far from the terminal It is standby.
According to the fourth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating Machine program, when which is executed by processor realize first aspect described in method the step of.
The technical scheme provided by this disclosed embodiment can include the following benefits:
It is made an uproar value by least one bottom for obtaining range sensor in preset time period, and is made an uproar value according at least one bottom, It determines that bottom is made an uproar reference value, reference value is then made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state the bottom of according to, wherein, close to threshold Value is used for it is judged whether or not object is used for far from threshold value it is judged whether or not object is set far from terminal close to terminal device It is standby.Due to reference value of being made an uproar according to the bottom determined, to being adjusted close to threshold value and far from threshold value into Mobile state, so as to dynamic school Standard close to threshold value and far from threshold value, ensure range sensor always can normal use, with the close of accurate detection object and It is separate, so as to reduce the probability that terminal device misses blank screen, improve the experience of user.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart according to a kind of calibration method of range sensor shown in an exemplary embodiment;
Fig. 2 is the flow chart of the calibration method of a kind of range sensor shown according to another exemplary embodiment;
Fig. 3 is the flow chart of the calibration method of a kind of range sensor shown according to a further exemplary embodiment;
Fig. 4 is the block diagram according to a kind of calibrating installation of range sensor shown in an exemplary embodiment;
Fig. 5 is the block diagram of the calibrating installation of a kind of range sensor shown according to another exemplary embodiment;
Fig. 6 is the block diagram of the calibrating installation of a kind of range sensor shown according to a further exemplary embodiment;
Fig. 7 is the block diagram according to a kind of calibrating installation of range sensor shown in another exemplary embodiment;
Fig. 8 is the block diagram according to a kind of calibrating installation of range sensor shown in another exemplary embodiment;
Fig. 9 is the block diagram according to a kind of entity of terminal device shown in an exemplary embodiment;
Figure 10 is the block diagram according to a kind of calibrating installation for range sensor shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
At present, range sensor is typically provided in terminal device, when detecting object close to terminal device Range sensor upper area when, terminal device can close display screen, to have the function that power saving and false-touch prevention.In correlation In technology, due to pad pasting, sticking oil stain or malformation etc., the bottom of range sensor in terminal device can be caused to make an uproar change Greatly so that the separate state of terminal device in use can report by mistake it is close, so as to cause terminal device miss blank screen the phenomenon that, The experience for leading to user is bad.
Therefore, the technical issues of calibration method for the range sensor that the embodiment of the present disclosure provides is aimed to solve the problem that as above, tool The realization method of body is referring to following embodiments.
Below in conjunction with the accompanying drawings by specific embodiment to the calibration method of range sensor that the embodiment of the present disclosure provides into Row is described in detail.
Fig. 1 is according to a kind of flow chart of the calibration method of range sensor shown in an exemplary embodiment, such as Fig. 1 institutes Show, the calibration method for the range sensor that the present embodiment is related to is in terminal device.Wherein, terminal device can for example include Mobile phone, PAD or other smart machines with range sensor.The calibration method of the range sensor includes the following steps:
In step s 11, it makes an uproar value at least one bottom for obtaining range sensor in preset time period.
In the embodiments of the present disclosure, when terminal device is when detecting that range sensor is triggered, it will obtain distance and pass The bottom of sensor is made an uproar value.In addition, the specific value of preset time period can be chosen according to actual conditions or experience, if such as user Talk times it is more, i.e., when the number that range sensor is triggered is more, the numerical value of preset time period can be set as compared with Small value, such as be set as 15 hours or 13 hours, if the talk times of user are less, i.e., range sensor is triggered number compared with When few, the numerical value of preset time period can be set as higher value, such as be set as 24 hours or 20 hours, for preset time The specific value of section, the embodiment of the present disclosure are not specifically limited this.
In a kind of possible realization method, obtain preset time period in range sensor at least one bottom make an uproar value wrap It includes:In preset time period, if detecting, range sensor is in running order, obtains at least one bottom of range sensor It makes an uproar value.
Specifically, usually in the outside of range sensor there are one infrared LED lamp, when range sensor is triggered, i.e., When range sensor is in running order, LED can launch the infrared light of certain frequency to outside, and inside range sensor Light-sensitive device can detect reflected infrared light, which is that the bottom of range sensor is made an uproar value.
It should be noted that when needs use range sensor, i.e. range sensor is triggered, distance passes Sensor can enter working condition, and bottom value of making an uproar is obtained when range sensor is triggered.For example, when terminal device dials electricity When talking about or receive calls, range sensor can be triggered, and terminal device will obtain the bottom of range sensor at this time It makes an uproar value.
In addition, when in preset time period, when range sensor is repeatedly triggered, terminal device will obtain Distance-sensing Multiple bottoms of device are made an uproar value.
In step s 12, it is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value.
In the embodiments of the present disclosure, terminal device is made an uproar after value getting at least one bottom, by according to get to A few bottom is made an uproar value, determines that bottom is made an uproar reference value.
In step s 13, reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state the bottom of according to;This is close to threshold value For it is judged whether or not object is used for far from threshold value it is judged whether or not object is set far from terminal close to terminal device It is standby.
It needs to illustrate, if when range sensor is triggered, be blocked when having pad pasting or greasy dirt etc. Range sensor or due to malformation etc., causes range sensor that pad pasting or greasy dirt etc. is reflected infrared Light is also mistakenly considered bottom and makes an uproar, and value is made an uproar at the bottom that terminal device is got at this time will be extremely higher, in this way, when terminal device is in remote During from state, can also it report by mistake close to state, to be in this way, working as terminal device far from state, and user wants to carry out certain behaviour When making, terminal device may be in black state so that user experience is very bad.
Therefore in order to solve this problem, terminal device is determining that bottom makes an uproar after reference value, and will make an uproar reference value the bottom of according to To being adjusted close to threshold value and far from threshold value.Wherein, can be used for close to threshold value it is judged whether or not object is close to terminal Equipment can be used for judging whether to have object in the ban far from terminal device far from threshold value.Due to reference value of making an uproar at the bottom determined On the basis of, to being adjusted close to threshold value and far from threshold value into Mobile state, so as to dynamic calibration close to threshold value and far from threshold value, Ensure range sensor always can normal use, it is close and separate so as to accurate detection object.
The calibration method for the range sensor that the embodiment of the present disclosure provides, by obtaining range sensor in preset time period At least one bottom make an uproar value, and made an uproar value according at least one bottom, determine that bottom is made an uproar reference value, then makes an uproar reference value to close the bottom of according to It threshold value and is adjusted far from threshold value into Mobile state, wherein, it is used for close to threshold value it is judged whether or not object is close to terminal device, far It is used for from threshold value it is judged whether or not object is far from terminal device.Due to being made an uproar reference value according to the bottom determined, to close to threshold Value and separate threshold value are adjusted into Mobile state, so as to dynamic calibration close to threshold value and far from threshold value, ensure that range sensor begins Eventually can normal use, with the close and separate of accurate detection object, so as to reduce the probability that terminal device misses blank screen, carry The high experience of user.
Fig. 2 is the flow chart of the calibration method of a kind of range sensor shown according to another exemplary embodiment, the party Method is used in terminal device, on the basis of the present embodiment embodiment shown in Fig. 1, to how the bottom of according to make an uproar reference value to close to threshold The specific embodiment that value and separate threshold value are adjusted into Mobile state, elaborates, as shown in Fig. 2, the school of the range sensor Quasi- method includes the following steps:
In the step s 21, it makes an uproar value at least one bottom for obtaining range sensor in preset time period.
Step S21 is similar with step S11, and details are not described herein again.
In step S22, determine that smallest base that at least one bottom is made an uproar in value is made an uproar value.
In step S23, smallest base value of making an uproar is determined as bottom and made an uproar reference value.
In the embodiments of the present disclosure, terminal device is made an uproar at least one bottom for getting range sensor in preset time period After value, the smallest base that at least one bottom is made an uproar in value will be selected to make an uproar value, and the smallest base selected value of making an uproar is made an uproar reference value the bottom of as. Such as:If the bottom that terminal device is got in preset time period is made an uproar, value is respectively 350,380,330 and 400, according to getting Bottom make an uproar value, determine that minimum bottom value of making an uproar is 330, that is, determine that with reference to bottom value of making an uproar be 330.
In step s 24, by bottom make an uproar reference value with it is preset close to threshold shift and, be determined as close to threshold value, and By bottom make an uproar reference value and preset separate threshold shift and, be determined as separate threshold value;Wherein, it is more than close to threshold shift Far from threshold shift.
In the embodiments of the present disclosure, terminal device is determining that bottom makes an uproar after reference value, on the basis of reference value of making an uproar the bottom of at, It is in addition preset close to threshold shift, you can to obtain close to threshold value, on the basis of reference value of making an uproar the bottom of at, in addition preset separate Threshold shift, you can it obtains far from threshold value, wherein, it is more than close to threshold shift far from threshold shift.Wherein, it is preset It preset can be configured close to threshold shift far from threshold shift and according to actual conditions, such as preset separate threshold Value offset could be provided as 100, preset to could be provided as 150 etc. close to threshold shift, for preset separate threshold value Offset and the preset specific value close to threshold shift, the present embodiment are not restricted this.
It needs to illustrate, in practical applications, when usually can be less than 2cm according to object and terminal device distance Go out screen, and the standard of bright screen is configured when the distance between object and terminal device are more than 5cm.
For example, if the bottom that terminal device is got in preset time period is made an uproar, value is respectively 350,380,330 and 400, it is made an uproar value according to the bottom got, determines that minimum bottom value of making an uproar is 330, i.e., be 330 with reference to bottom value of making an uproar.It is assuming that preset remote From threshold shift be 100, it is preset close to threshold shift be 150, then adjust after close to threshold value be 480, after adjustment It is 430 far from threshold value.
The calibration method for the range sensor that the embodiment of the present disclosure provides, by obtaining range sensor in preset time period At least one bottom make an uproar value, and made an uproar value according at least one bottom, determine that bottom is made an uproar reference value, then makes an uproar reference value to close the bottom of according to It threshold value and is adjusted far from threshold value into Mobile state, wherein, it is used for close to threshold value it is judged whether or not object is close to terminal device, far It is used for from threshold value it is judged whether or not object is far from terminal device.Due to being made an uproar reference value according to the bottom determined, to close to threshold Value and separate threshold value are adjusted into Mobile state, so as to dynamic calibration close to threshold value and far from threshold value, ensure that range sensor begins Eventually can normal use, with the close and separate of accurate detection object, so as to reduce the probability that terminal device misses blank screen, carry The high experience of user.In addition, due to by bottom make an uproar reference value with it is preset close to threshold shift and, be determined as close to threshold Value, by bottom make an uproar reference value and preset separate threshold shift and, be determined as separate threshold value, in this way, can be according to determining Bottom is made an uproar, and dynamically calibration close to threshold value and far from threshold value, avoids in the relevant technologies close to threshold value and is solid far from threshold value reference value Definite value leads to the close of object and far from the phenomenon that inaccurate is detected, so as to reduce the probability that terminal device misses blank screen, raising The experience of user.
Fig. 3 is the flow chart of the calibration method of a kind of range sensor shown according to a further exemplary embodiment, the party Method is used in terminal device, on the basis of the present embodiment embodiment shown in Fig. 1, to according to bottom make an uproar reference value to close to threshold value and After adjusting into Mobile state far from threshold value, need to determine to report separate time or the specific reality close to event according to current bottom value of making an uproar Mode is applied, is elaborated, as shown in figure 3, the calibration method of the range sensor includes the following steps:
In step S31, at least one bottom for obtaining range sensor in preset time period is made an uproar value.
In step s 32, it is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value.
In step S33, reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state the bottom of according to;This is close to threshold value For it is judged whether or not object is used for far from threshold value it is judged whether or not object is set far from terminal close to terminal device It is standby.
Step S31- steps S33 is similar with step S11- steps S13, and details are not described herein again.
In step S34, the current bottom for obtaining range sensor is made an uproar value.
In the embodiments of the present disclosure, when range sensor is triggered, and after entering working condition, terminal device will in real time or The current bottom of person's timing acquisition range sensor is made an uproar value.Specifically, terminal device can be obtained by detecting current infrared light value The current bottom of range sensor is taken to make an uproar value.
Further, terminal device can obtain the current bottom of range sensor in real time by way of triggering and interrupting and make an uproar Value can also be made an uproar value at the current bottom of timing acquisition range sensor by way of poll.Concrete mode can be according to reality It is selected, is not limited herein.
Terminal device is made an uproar after value getting current bottom, will determine that current bottom make an uproar value whether be less than far from threshold value or Whether it is more than close to threshold value.When terminal device makes an uproar value less than far from threshold value at the current bottom of confirmation, step S35 is performed;Confirming When value is made an uproar more than close to threshold value in current bottom, step S36 is performed.
In step s 35, if current bottom is made an uproar, value is less than far from threshold value, reports far from event.
In the embodiments of the present disclosure, it when terminal device determines that current bottom value of making an uproar is less than far from threshold value, then can be set to terminal Application layer in standby is reported far from event, and whether application layer will judge terminal device in use according to the separate event reported State, such as whether in talking state, if so, judging whether the devices such as current display screen are closed, if so, can The devices such as display screen are reopened, and wake up the operations such as system with performing.
In step S36, if current bottom is made an uproar, value is more than close to threshold value, reports close to event.
In the present embodiment, when terminal device determine current bottom make an uproar value be more than close to threshold value, then can be into terminal device Application layer report close to event, application layer will judge whether terminal device is in close to event and use shape according to reporting State, such as whether in talking state, if so, whether judge the devices such as current display screen in opening, if so, can be with It performs and closes the devices such as display screen, and the operations such as sleeping system.
The calibration method for the range sensor that the embodiment of the present disclosure provides, by obtaining range sensor in preset time period At least one bottom make an uproar value, and made an uproar value according at least one bottom, determine that bottom is made an uproar reference value, then makes an uproar reference value to close the bottom of according to It threshold value and is adjusted far from threshold value into Mobile state, wherein, it is used for close to threshold value it is judged whether or not object is close to terminal device, far It is used for from threshold value it is judged whether or not object is far from terminal device.Due to being made an uproar reference value according to the bottom determined, to close to threshold Value and separate threshold value are adjusted into Mobile state, so as to dynamic calibration close to threshold value and far from threshold value, ensure that range sensor begins Eventually can normal use, with the close and separate of accurate detection object, so as to reduce the probability that terminal device misses blank screen, carry The high experience of user.In addition, after value of making an uproar at the current bottom for getting range sensor, if current bottom is made an uproar, value is less than far from threshold Value was then reported far from the time, if current bottom is made an uproar, value reports time to approach more than close to threshold value, due to dynamically adjust it is separate Threshold value and close to after threshold value, can more accurately detection object it is close and separate.
In order to be better understood from the present embodiment, now it is described as follows by a specific application example.
Assuming that in the relevant technologies, terminal device is 250 close to threshold value, is 200 far from threshold value, i.e. terminal device is obtaining When making an uproar value more than 250 to current bottom, it will report close to event, when value of making an uproar at current bottom is less than 200, it will report separate Event.When the bottom that due to pad pasting, greasy dirt or structural deformation etc., can cause range sensor, value of making an uproar becomes larger, such as in terminal When equipment is in far from state, the bottom that gets value of making an uproar is 350, then more than 250, will report close to event at this time, so as to make It is inaccurate to obtain terminal unit status detection.
And after using the embodiment in the disclosure, it makes an uproar value if getting multiple bottoms in preset time period, respectively 350th, 380,330 and 400, and determine that minimum bottom value of making an uproar is 330, that is, determine that with reference to bottom value of making an uproar be 330, it is assumed that preset Far from threshold shift be 100, it is preset close to threshold shift be 150, then adjust after close to threshold value be 480, after adjustment Separate threshold value be 430.At this point, when terminal device is in far from state, if the bottom got is made an uproar, value is 350, that is, is less than remote Be 430 from threshold value, will be reported at this time far from event so that range sensor always can normal use, accurately to detect Object it is close and separate, so as to reduce terminal device miss blank screen probability, improve the experience of user.
The foregoing describe the realization process of the calibration method of range sensor, which can be by the calibration of range sensor Device is realized, below the built-in function of the device and structure will be illustrated.
Fig. 4 is the block diagram according to a kind of calibrating installation of range sensor shown in an exemplary embodiment.Such as Fig. 4 institutes Show, the calibrating installation of the range sensor includes the first acquisition module 11, determining module 12 and adjustment module 13.
It makes an uproar value at least one bottom that first acquisition module 11 is configured as obtaining range sensor in preset time period;
Determining module 12 is configured as being made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Adjustment module 13 is configured as making an uproar reference value to adjusting close to threshold value and far from threshold value into Mobile state according to the bottom; It is described to be used for close to threshold value it is judged whether or not object is close to terminal device, separate the threshold value for it is judged whether or not Object is far from the terminal device.
The calibrating installation for the range sensor that the embodiment of the present disclosure provides, the first acquisition module 11 is by obtaining preset time At least one bottom of range sensor is made an uproar value in section, and determining module 12 is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value, so Adjustment module 13 makes an uproar reference value to being adjusted close to threshold value and far from threshold value into Mobile state the bottom of according to afterwards, wherein, it is used for close to threshold value It is judged whether or not object is used for far from threshold value close to terminal device it is judged whether or not object is far from terminal device.By It makes an uproar reference value according to the bottom determined, to being adjusted close to threshold value and far from threshold value into Mobile state, is connect so as to dynamic calibration Nearly threshold value and far from threshold value, ensure range sensor always can normal use, with the close and separate of accurate detection object, So as to reduce the probability that terminal device misses blank screen, the experience of user is improved.
Wherein, as shown in figure 5, Fig. 5 is the calibration cartridge of a kind of range sensor shown according to another exemplary embodiment The block diagram put, on the basis of embodiment shown in Fig. 4, determining module 12 includes:First determination sub-module 121 and second determines son Module 122.
First determination sub-module 121 is configured to determine that the smallest base that at least one bottom is made an uproar in value is made an uproar value;
Second determination sub-module 122 is configured as that smallest base value of making an uproar is determined as the bottom and is made an uproar reference value.
Wherein, as shown in fig. 6, Fig. 6 is the calibration cartridge of a kind of range sensor shown according to a further exemplary embodiment The block diagram put, on the basis of embodiment shown in Fig. 4, adjustment module 13 includes:Third determination sub-module 131 and the 4th determines son Module 132.
Third determination sub-module 131 be configured as by the bottom make an uproar reference value with it is preset close to threshold shift and, It is determined as described close to threshold value;
4th determination sub-module 132 be configured as by the bottom make an uproar reference value and preset separate threshold shift and, It is determined as the separate threshold value;Wherein, it is described to be more than the separate threshold shift close to threshold shift.
Wherein, as shown in fig. 7, Fig. 7 is the calibration cartridge according to a kind of range sensor shown in another exemplary embodiment The block diagram put, on the basis of embodiment shown in Fig. 4, the first acquisition module 11 includes:Acquisition submodule 111.
Acquisition submodule 111 is configured as in the preset time period, if detecting, the range sensor is in work Make state, then at least one bottom for obtaining the range sensor is made an uproar value.
Wherein, as shown in figure 8, Fig. 8 is the calibration cartridge according to a kind of range sensor shown in another exemplary embodiment The block diagram put, on the basis of embodiment shown in Fig. 4, described device further includes:Second acquisition module 14, the first reporting module 15 With the second reporting module 16.
It makes an uproar value at the current bottom that second acquisition module 14 is configured as obtaining the range sensor;
When first reporting module 15 is configured as making an uproar value at the current bottom less than the separate threshold value, report far from thing Part;
Second reporting module 16 be configured as making an uproar at the current bottom value be more than it is described close to threshold value when, report close to thing Part.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Inner function module and structural representation the foregoing describe terminal device, Fig. 9 are shown according to an exemplary embodiment The block diagram of the entity of a kind of terminal device gone out, with reference to Fig. 9, which can be implemented as:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, processor is configured as:
It makes an uproar value at least one bottom for obtaining range sensor in preset time period;
It is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom;It is described to be used to sentence close to threshold value Disconnected currently whether to have object close to terminal device, the separate threshold value is used for it is judged whether or not object is set far from the terminal It is standby.
Figure 10 is the block diagram according to a kind of calibrating installation for range sensor shown in an exemplary embodiment.Example Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and tablet is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Figure 10, device 800 can include following one or more components:Processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814 and Communication component 816.
The integrated operation of 802 usual control device 800 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 802 can refer to including one or more processors 820 to perform It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 can include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application program or method for being operated on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 800.
Multimedia component 808 is included in the screen of one output interface of offer between device 800 and user.In some realities It applies in example, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detection and touch or the relevant duration and pressure of slide.In some embodiments, multimedia component 808 includes One front camera and/or rear camera.It is preceding during such as screening-mode or video mode when equipment 800 is in operation mode External multi-medium data can be received by putting camera and/or rear camera.Each front camera and rear camera can To be a fixed optical lens system or there are focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loud speaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 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 module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detect opening/OFF state of equipment 800, the relative positioning of component, such as component For the display and keypad of device 800, sensor module 814 can be with the position of 800 1 components of detection device 800 or device Put change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and the temperature of device 800 Variation.Sensor module 814 can include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for should in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, communication component 816 further includes near-field communication (NFC) module, to promote short range communication.For example, Radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth can be based in NFC module (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application application-specific integrated circuit (ASIC), number Number 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 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 804 of instruction, above-metioned instruction can be performed to complete the above method by the processor 820 of device 800.For example, Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light Data storage device etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of terminal device During row so that terminal device is able to carry out a kind of calibration method of range sensor, including:
It makes an uproar value at least one bottom for obtaining range sensor in preset time period;
It is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom;It is described to be used to sentence close to threshold value Disconnected currently whether to have object close to terminal device, the separate threshold value is used for it is judged whether or not object is set far from the terminal It is standby.
Wherein, it is described to be made an uproar value according at least one bottom, determine that bottom is made an uproar reference value, including:
Determine that smallest base that at least one bottom is made an uproar in value is made an uproar value;
Smallest base value of making an uproar is determined as the bottom and makes an uproar reference value.
Wherein, it is described that reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom, including:
By the bottom make an uproar reference value with it is preset close to threshold shift and, be determined as described close to threshold value;
By the bottom make an uproar reference value and preset separate threshold shift and, be determined as the separate threshold value;Wherein, institute It states close to threshold shift and is more than the separate threshold shift.
Wherein, at least one bottom for obtaining range sensor in preset time period is made an uproar value, including:
In the preset time period, if detecting, the range sensor is in running order, obtains the distance At least one bottom of sensor is made an uproar value.
Wherein, it is described according to the bottom make an uproar reference value to close to threshold value and far from threshold value into Mobile state adjust after, it is described Method further includes:
It makes an uproar value at the current bottom for obtaining the range sensor;
If the current bottom is made an uproar, value is less than the separate threshold value, reports far from event;
If the current bottom is made an uproar, value is more than described close to threshold value, reports close to event.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following Claims are pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claims System.

Claims (12)

1. a kind of calibration method of range sensor, which is characterized in that including:
It makes an uproar value at least one bottom for obtaining range sensor in preset time period;
It is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom;It is described to work as close to threshold value for judgement Preceding whether to have object close to terminal device, the separate threshold value is used for it is judged whether or not object is far from the terminal device.
2. according to the method described in claim 1, it is characterized in that, described make an uproar value according at least one bottom, determine that bottom is made an uproar Reference value, including:
Determine that smallest base that at least one bottom is made an uproar in value is made an uproar value;
Smallest base value of making an uproar is determined as the bottom and makes an uproar reference value.
3. method according to claim 1 or 2, which is characterized in that described that reference value is made an uproar to close to threshold value according to the bottom It is adjusted with far from threshold value into Mobile state, including:
By the bottom make an uproar reference value with it is preset close to threshold shift and, be determined as described close to threshold value;
By the bottom make an uproar reference value and preset separate threshold shift and, be determined as the separate threshold value;Wherein, it is described to connect Nearly threshold shift is more than the separate threshold shift.
4. method according to claim 1 or 2, which is characterized in that described to obtain range sensor in preset time period At least one bottom is made an uproar value, including:
In the preset time period, if detecting, the range sensor is in running order, obtains the Distance-sensing At least one bottom of device is made an uproar value.
5. method according to claim 1 or 2, which is characterized in that described that reference value is made an uproar to close to threshold value according to the bottom After being adjusted far from threshold value into Mobile state, the method further includes:
It makes an uproar value at the current bottom for obtaining the range sensor;
If the current bottom is made an uproar, value is less than the separate threshold value, reports far from event;
If the current bottom is made an uproar, value is more than described close to threshold value, reports close to event.
6. a kind of calibrating installation of range sensor, which is characterized in that including:
First acquisition module, at least one bottom for being configured as obtaining range sensor in preset time period are made an uproar value;
Determining module is configured as being made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Module is adjusted, is configured as making an uproar reference value to adjusting close to threshold value and far from threshold value into Mobile state according to the bottom;It is described It is used for close to threshold value it is judged whether or not object is close to terminal device, the separate threshold value is used for it is judged whether or not object Far from the terminal device.
7. device according to claim 6, which is characterized in that the determining module, including:
First determination sub-module is configured to determine that smallest base that at least one bottom is made an uproar in value is made an uproar value;
Second determination sub-module is configured as that smallest base value of making an uproar is determined as the bottom and is made an uproar reference value.
8. the device described according to claim 6 or 7, which is characterized in that the adjustment module, including:
Third determination sub-module, be configured as by the bottom make an uproar reference value with it is preset close to threshold shift and, be determined as It is described close to threshold value;
4th determination sub-module, be configured as by the bottom make an uproar reference value and preset separate threshold shift and, be determined as The separate threshold value;Wherein, it is described to be more than the separate threshold shift close to threshold shift.
9. the device described according to claim 6 or 7, which is characterized in that first acquisition module includes:
Acquisition submodule is configured as in the preset time period, if detecting, the range sensor is in running order, It makes an uproar value at least one bottom for then obtaining the range sensor.
10. the device described according to claim 6 or 7, which is characterized in that described device further includes:
Second acquisition module, the current bottom for being configured as obtaining the range sensor are made an uproar value;
First reporting module when the value that is configured as making an uproar at the current bottom is less than the separate threshold value, is reported far from event;
Second reporting module, the value that is configured as making an uproar at the current bottom be more than it is described close to threshold value when, report close to event.
11. a kind of terminal device, which is characterized in that including:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
It makes an uproar value at least one bottom for obtaining range sensor in preset time period;
It is made an uproar value according at least one bottom, determines that bottom is made an uproar reference value;
Reference value is made an uproar to being adjusted close to threshold value and far from threshold value into Mobile state according to the bottom;It is described to work as close to threshold value for judgement Preceding whether to have object close to terminal device, the separate threshold value is used for it is judged whether or not object is far from the terminal device.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of claim 1-5 any one of them methods are realized during execution.
CN201810061782.8A 2018-01-23 2018-01-23 Calibration method, device, equipment and the storage medium of range sensor Pending CN108267728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810061782.8A CN108267728A (en) 2018-01-23 2018-01-23 Calibration method, device, equipment and the storage medium of range sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810061782.8A CN108267728A (en) 2018-01-23 2018-01-23 Calibration method, device, equipment and the storage medium of range sensor

Publications (1)

Publication Number Publication Date
CN108267728A true CN108267728A (en) 2018-07-10

Family

ID=62776455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810061782.8A Pending CN108267728A (en) 2018-01-23 2018-01-23 Calibration method, device, equipment and the storage medium of range sensor

Country Status (1)

Country Link
CN (1) CN108267728A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111366939A (en) * 2020-02-20 2020-07-03 Oppo(重庆)智能科技有限公司 Calibration method and device of distance sensor, terminal and storage medium
CN111722546A (en) * 2020-06-30 2020-09-29 广东美的厨房电器制造有限公司 Control method and control device of sensor and cooking equipment
CN111835912A (en) * 2020-06-15 2020-10-27 北京小米移动软件有限公司 Terminal, distance judgment method and distance judgment device
CN113671512A (en) * 2020-05-14 2021-11-19 北京小米移动软件有限公司 Proximity sensor angle adjusting method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213074A1 (en) * 2004-03-25 2005-09-29 Yoshiaki Hoashi Radar device
US20130003079A1 (en) * 2011-06-29 2013-01-03 Holcombe Wayne T Proximity sensor calibration
CN106019260A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Distance sensor anti-fouling method and system on mobile terminal
CN106443639A (en) * 2016-09-26 2017-02-22 深圳市金立通信设备有限公司 Distance calibration method and terminal
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213074A1 (en) * 2004-03-25 2005-09-29 Yoshiaki Hoashi Radar device
US20130003079A1 (en) * 2011-06-29 2013-01-03 Holcombe Wayne T Proximity sensor calibration
CN106019260A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Distance sensor anti-fouling method and system on mobile terminal
CN106443639A (en) * 2016-09-26 2017-02-22 深圳市金立通信设备有限公司 Distance calibration method and terminal
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111366939A (en) * 2020-02-20 2020-07-03 Oppo(重庆)智能科技有限公司 Calibration method and device of distance sensor, terminal and 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
CN111835912A (en) * 2020-06-15 2020-10-27 北京小米移动软件有限公司 Terminal, distance judgment method and distance judgment device
CN111835912B (en) * 2020-06-15 2021-09-21 北京小米移动软件有限公司 Terminal, distance judgment method and distance judgment device
CN111722546A (en) * 2020-06-30 2020-09-29 广东美的厨房电器制造有限公司 Control method and control device of sensor and cooking equipment

Similar Documents

Publication Publication Date Title
US10191717B2 (en) Method and apparatus for triggering execution of operation instruction
CN107134823B (en) Charging prompting method and device
CN108267728A (en) Calibration method, device, equipment and the storage medium of range sensor
CN105138319B (en) Event-prompting method and device
CN105162945A (en) Method and device for displaying information
CN109410833A (en) Environment light detection method, device, terminal and storage medium
CN107132949B (en) Anti-interference method, device, terminal and storage medium
CN108076199B (en) Method and device for detecting air tightness of microphone
CN105516483A (en) Equipment control method, device and terminal
CN105653236A (en) Sound volume control method and device and mobile terminal
CN106959807A (en) View angle switch method and device
CN106406175B (en) Door opening reminding method and device
CN104618575A (en) Method and device for approaching detected objects
CN105141769A (en) Communication message processing method and device as well as terminal
CN105208510B (en) The method and device of intelligent alarm
CN105323152A (en) Message processing method, device and equipment
CN105208284A (en) Photographing reminding method and device
CN105528872B (en) The based reminding method and device on restricted driving date
CN106534495B (en) The method, device and equipment of information processing
CN105407021A (en) Volume adjustment method and device
CN106912090A (en) New information reminding method and equipment
CN105677215A (en) Application control method and apparatus
CN105242775A (en) State adjustment method and apparatus
CN108206881A (en) Mobile terminal reminding method, device and mobile terminal
CN106445499A (en) Shortcut key prompting method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180710

RJ01 Rejection of invention patent application after publication