CN105022530A - Calibration method and system for proximity sensor - Google Patents

Calibration method and system for proximity sensor Download PDF

Info

Publication number
CN105022530A
CN105022530A CN201510472655.3A CN201510472655A CN105022530A CN 105022530 A CN105022530 A CN 105022530A CN 201510472655 A CN201510472655 A CN 201510472655A CN 105022530 A CN105022530 A CN 105022530A
Authority
CN
China
Prior art keywords
calibration
proximity transducer
calibration data
terminal device
used time
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
CN201510472655.3A
Other languages
Chinese (zh)
Other versions
CN105022530B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510472655.3A priority Critical patent/CN105022530B/en
Publication of CN105022530A publication Critical patent/CN105022530A/en
Application granted granted Critical
Publication of CN105022530B publication Critical patent/CN105022530B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention relates to a calibration method and system for a proximity sensor. The method comprises the following steps: after a calibration command is received, calibrating the proximity sensor according to calibration data stored in terminal equipment; after calibration, acquiring currently generated calibration data and judging whether the calibration time is longer than a threshold value or not; and if so, updating the calibration data stored in the terminal equipment according to the currently generated calibration data . According to the method and system provided by the invention, whether the calibration data is stored or not is judged according to the calibration time. When the calibration time of the proximity sensor is relatively long, the original calibration data is replaced by the currently generated calibration data to realize update of the calibration data so as to provide the calibration data which is more suitable for a terminal equipment using environment, so that the calibration time next time is shortened, the response speed of the proximity sensor is improved, and the user experience is improved.

Description

The calibration steps of proximity transducer and system
Technical field
The present invention relates to equipment debugging technical field, particularly relate to calibration steps and the system of proximity transducer.
Background technology
For the terminal device possessing touch-screen (such as capacitance touch screen mobile phone), be easy to cause maloperation because of the touching of user, such as, when using mobile phone to make a phone call, be easy to cause maloperation because of the touching of face.Therefore, in order to solve problems, current section terminating equipment occurs proximity transducer, when object proximity terminal device being detected, triggering terminal equipment carries out corresponding protection act to avoid maloperation.Proximity transducer comprises infrared transmitter and multiple infrared remote receiver, the infrared light that infrared transmitter is launched is received by infrared remote receiver after reflections off objects, therefore by the infrared intensity value variation tendency of checking infrared remote receiver just can judgment object whether close.Due to terminal device structure and select chip to there is various deviation when dispatching from the factory, these deviations can cause when not having object near proximity transducer, the infrared intensity value of each infrared remote receiver is all different, like this in the use procedure of proximity transducer, the reference value of each infrared remote receiver is just different, easily causes judgement to make mistakes.Therefore when dispatching from the factory, under engineering mode, all can there is a process of calibrating, its objective is and allow the infrared intensity value of each infrared remote receiver be consistent.Current calibration process is also fairly simple, calibrates respectively exactly, deduct deviate to each infrared remote receiver, makes the infrared intensity value of each infrared remote receiver all the same, then deviate is preserved as calibration data.All calibration can be performed during each unlatching proximity transducer in terminal device; but; calibration operation can not be accomplished in one move; elapsed time is needed to go to perform; the calibration operation of current proximity transducer is all the calibration data based on preserving under engineering mode; in fact; proximity transducer often can be subject to the interference of the environmental factors such as greasy dirt; if calibration operation is all based on the calibration data preserved under engineering mode each time; the alignment time then can be caused partially long; the state reporting time of proximity transducer is also elongated, and the experience of user is deteriorated.
Summary of the invention
Based on this, for solving problems of the prior art, the invention provides a kind of calibration steps of proximity transducer, length according to the calibration used time judges that whether calibration data is preserved, for calibration operation provides effective data next time, thus shorten the alignment time, improve Consumer's Experience.
For achieving the above object, the present invention adopts following technical scheme:
A calibration steps for proximity transducer, comprises the steps:
After receiving calibration command, the calibration data according to storing in terminal device is calibrated proximity transducer;
After calibration completes, obtain the calibration data of current generation, and judge whether the calibration used time is greater than threshold value;
If so, then upgrade according to the calibration data of current generation the calibration data stored in described terminal device.
And a kind of calibration system of proximity transducer, comprising:
Calibration module, for after receiving calibration command, the calibration data according to storing in terminal device is calibrated proximity transducer;
Generation module, for after calibration completes, obtains the calibration data of current generation;
Judge module, for judging whether the calibration used time is greater than threshold value;
Update module, for when the calibration used time is greater than threshold value, upgrades the calibration data stored in described terminal device according to the calibration data of current generation.
According to the length of calibration used time, the present invention judges that whether calibration data is preserved, when the calibration used time of proximity transducer is longer, show that original calibration data is not suitable for the current environment of terminal device (such as terminal device touch screen surface has greasy dirt), now preserve the calibration data of current generation, substitute original calibration data, for calibration operation provides effective data next time, thus shorten the alignment time, improve the response speed of proximity transducer, and then improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the calibration steps of proximity transducer in the embodiment of the present invention;
Fig. 2 is another schematic flow sheet of the calibration steps of proximity transducer in the embodiment of the present invention;
Fig. 3 is the structural representation of the calibration system of proximity transducer in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, content of the present invention is described in further detail.
As shown in Figure 1, the present embodiment provides a kind of calibration steps of proximity transducer, comprises the steps:
S10 is after receiving calibration command, and the calibration data according to storing in terminal device is calibrated proximity transducer;
S20, after calibration completes, obtains the calibration data of current generation, and judges whether the calibration used time is greater than threshold value; If so, then S30 is entered;
S30 upgrades the calibration data stored in described terminal device according to the calibration data of current generation.
Concrete, for mobile phone, when user with mobile phone receive calls, use the scenes such as blank screen gesture time, proximity transducer opened by mobile phone, first will perform calibration, now, mobile phone generates calibration command, after proximity transducer receives this calibration command, read the calibration data stored in mobile phone, and calibrate according to this calibration data.
Proximity transducer comprises infrared transmitter and infrared remote receiver, the infrared light that infrared transmitter is launched is received by infrared remote receiver after reflections off objects, therefore by the infrared intensity value variation tendency of checking infrared remote receiver just can judgment object whether close.In one embodiment, calibration data comprises the infrared intensity deviate of infrared remote receiver, under factory state, the infrared intensity deviate of each infrared remote receiver stored in mobile phone is the deviate offset recorded under engineering mode, but consider the impact of various environment for use factor, such as handset touch panel speckles with greasy dirt, dust, therefore still need to calibrate each use during proximity transducer.During each calibration, the whole deviation of the enterprising step in basis of the infrared intensity deviate of the infrared remote receiver stored in mobile phone, finally makes the infrared intensity value of each infrared remote receiver be consistent.
If calibrate complete, just obtain the calibration data of current generation, as mentioned above, this calibration data also comprises the deviate of each infrared remote receiver infrared intensity.After having calibrated, proximity transducer normally works, but the present invention also creatively judges the calibration used time, wherein, the calibration used time refers to that proximity transducer performs the time of calibrating and consuming, in a kind of embodiment, after receiving calibration command, open timer, after calibration completes, read the value of timer, the calibration used time can be obtained according to the value of this timer.In another kind of embodiment, also can judge to calibrate the used time according to system clock.The present invention is directed to calibration the used time threshold value is set, such as 50 milliseconds, if the current calibration used time is greater than threshold value, show that original calibration data (calibration data namely stored in terminal device) has not been suitable for the current environment for use of terminal device, such as terminal device touch screen surface speckles with greasy dirt, dust, to such an extent as to perform the overlong time of calibration, if still perform calibration on the basis of this original calibration data next time, so application proximity transducer is realized double-clicking bright screen, prevent the functions such as false triggering, the feedback speed of bottom data is just slack-off, causing bright screen etc. to respond also can be slack-off.Therefore, the present invention utilizes the calibration data of current generation (these data are applicable to the current environment for use of terminal device) to substitute original calibration data, completes the renewal of calibration data.When execution is calibrated, based on the calibration data after upgrading, thus shorten the alignment time next time, improve the response speed of proximity transducer, improve Consumer's Experience further.
In another specific embodiment, as shown in Figure 2, if calibrate complete and after obtaining the calibration data of current generation, if the calibration used time is less than or equal to threshold value, then abandon the calibration data of current generation.Because if the calibration used time is less than threshold value, then illustrate that original calibration data (calibration data namely stored in terminal device) can meet the requirement of proximity transducer response speed, be applicable to the environment for use that terminal device is current, perform when calibrating based on the calibration data that this is original next time, also can complete rapidly.
In sum, according to the length of calibration used time, the present invention judges that whether calibration data is preserved, when the calibration used time of proximity transducer is longer, original calibration data is substituted with the calibration data of current generation, realize the renewal of calibration data, for calibration operation provides the calibration data being more suitable for terminal device environment for use next time, thus shorten the alignment time next time, improve the response speed of proximity transducer, improve Consumer's Experience.
Accordingly, the present invention also provides a kind of calibration system of proximity transducer, is described below in conjunction with the calibration system of a preferred embodiment to this proximity transducer.
As shown in Figure 3, the calibration system of the proximity transducer in the present embodiment comprises:
Calibration module 1, for after receiving calibration command, the calibration data according to storing in terminal device is calibrated proximity transducer;
Generation module 2, for after calibration completes, obtains the calibration data of current generation;
Judge module 3, for judging whether the calibration used time is greater than threshold value;
Update module 4, for when the calibration used time is greater than threshold value, upgrades the calibration data stored in described terminal device according to the calibration data of current generation.
In a kind of embodiment, the calibration data of the calibration data stored in terminal device and current generation includes the infrared intensity deviate of each infrared remote receiver in proximity transducer.Under factory state, the infrared intensity deviate of each infrared remote receiver stored in terminal device is the deviate offset recorded under engineering mode, but consider the impact of various environment for use factor, such as terminal device touch-screen speckles with greasy dirt, dust, therefore still needs to be calibrated by calibration module 1 each use during proximity transducer.During each calibration, calibration module 1 all in the whole deviation of the enterprising step in the basis of the infrared intensity deviate of the infrared remote receiver stored, finally makes the infrared intensity value of each infrared remote receiver be consistent.
If calibrate complete, then obtained the calibration data of current generation by generation module 2, as mentioned above, this calibration data also comprises the deviate of each infrared remote receiver infrared intensity.After having calibrated, also by judge module 3, the calibration used time is judged, wherein, the calibration used time refers to that proximity transducer performs the time of calibrating and consuming, in a kind of embodiment, as shown in Figure 3, the calibration system of proximity transducer of the present invention also comprises timing module 5, after receiving calibration command, timing module 5 opens timer; After calibration completes, timing module 5 reads the value of timer, thus obtains the calibration used time.In another kind of embodiment, the calibration system of proximity transducer of the present invention also can judge to calibrate the used time according to the system clock of terminal device.The present invention is directed to calibration the used time threshold value is set, such as 50 milliseconds, if the current calibration used time is greater than threshold value, show that original calibration data (calibration data namely stored in terminal device) has not been suitable for the current environment for use of terminal device, such as terminal device touch screen surface speckles with greasy dirt, dust, to such an extent as to perform the overlong time of calibration, if still perform calibration on the basis of this original calibration data next time, so application proximity transducer is realized double-clicking bright screen, prevent the functions such as false triggering, the feedback speed of bottom data is just slack-off, causing bright screen etc. to respond also can be slack-off.Therefore, the calibration system of the proximity transducer in the present embodiment utilizes update module 4 that the calibration data (these data are applicable to the current environment for use of terminal device) of current generation is substituted original calibration data, completes the renewal of calibration data.When calibration module 1 performs and calibrates next time, based on the calibration data after upgrading, thus shorten the alignment time, improve the response speed of proximity transducer, improve Consumer's Experience further.
In another specific embodiment, when judge module 2 judges that the calibration used time is less than or equal to threshold value, update module 4 abandons the calibration data of current generation.Because if the calibration used time is less than threshold value, then illustrate that original calibration data (calibration data namely stored in terminal device) can meet the requirement of proximity transducer response speed, be applicable to the environment for use that terminal device is current, perform when calibrating based on the calibration data that this is original next time, also can complete rapidly.
Each technical characteristic of the above embodiment can combine arbitrarily, for making description succinct, the all possible combination of each technical characteristic in above-described embodiment is not all described, but, as long as the combination of these technical characteristics does not exist contradiction, be all considered to be the scope that this instructions is recorded.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a calibration steps for proximity transducer, is characterized in that, comprises the steps:
After receiving calibration command, the calibration data according to storing in terminal device is calibrated proximity transducer;
After calibration completes, obtain the calibration data of current generation, and judge whether the calibration used time is greater than threshold value;
If so, then upgrade according to the calibration data of current generation the calibration data stored in described terminal device.
2. the calibration steps of proximity transducer according to claim 1, is characterized in that, the calibration data of the calibration data stored in described terminal device and current generation includes the infrared intensity deviate of each infrared remote receiver in proximity transducer.
3. the calibration steps of proximity transducer according to claim 1 and 2, is characterized in that, when the described calibration used time is less than or equal to threshold value, abandons the calibration data of current generation.
4. the calibration steps of proximity transducer according to claim 1 and 2, is characterized in that, the described calibration used time obtains by the following method:
After receiving calibration command, open timer;
After calibration completes, read the value of described timer, obtain the described calibration used time.
5. the calibration steps of proximity transducer according to claim 1 and 2, is characterized in that, described threshold value is 50 milliseconds.
6. a calibration system for proximity transducer, is characterized in that, comprising:
Calibration module, for after receiving calibration command, the calibration data according to storing in terminal device is calibrated proximity transducer;
Generation module, for after calibration completes, obtains the calibration data of current generation;
Judge module, for judging whether the calibration used time is greater than threshold value;
Update module, for when the calibration used time is greater than threshold value, upgrades the calibration data stored in described terminal device according to the calibration data of current generation.
7. the calibration system of proximity transducer according to claim 6, is characterized in that, the calibration data of the calibration data stored in described terminal device and current generation includes the infrared intensity deviate of each infrared remote receiver in proximity transducer.
8. the calibration system of the proximity transducer according to claim 6 or 7, is characterized in that, when described judge module judges that the described calibration used time is less than or equal to threshold value, described update module abandons the calibration data of current generation.
9. the calibration system of the proximity transducer according to claim 6 or 7, is characterized in that, also comprises timing module, and after receiving calibration command, described timing module opens timer; After calibration completes, described timing module reads the value of described timer, obtains the described calibration used time.
10. the calibration system of the proximity transducer according to claim 6 or 7, is characterized in that, described threshold value is 50 milliseconds.
CN201510472655.3A 2015-08-04 2015-08-04 The calibration method and system of proximity transducer Expired - Fee Related CN105022530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510472655.3A CN105022530B (en) 2015-08-04 2015-08-04 The calibration method and system of proximity transducer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510472655.3A CN105022530B (en) 2015-08-04 2015-08-04 The calibration method and system of proximity transducer

Publications (2)

Publication Number Publication Date
CN105022530A true CN105022530A (en) 2015-11-04
CN105022530B CN105022530B (en) 2018-01-23

Family

ID=54412546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510472655.3A Expired - Fee Related CN105022530B (en) 2015-08-04 2015-08-04 The calibration method and system of proximity transducer

Country Status (1)

Country Link
CN (1) CN105022530B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107290802A (en) * 2017-07-18 2017-10-24 广东欧珀移动通信有限公司 Proximity transducer calibration method, proximity transducer calibrating installation and intelligent terminal
CN107504994A (en) * 2017-08-08 2017-12-22 广东欧珀移动通信有限公司 Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity transducer
CN109186657A (en) * 2018-09-26 2019-01-11 Oppo广东移动通信有限公司 Proximity sensor parameter calibrating method, device, terminal device and storage medium
CN109840032A (en) * 2019-01-24 2019-06-04 Oppo广东移动通信有限公司 The calibration method and device, electronic equipment and storage medium of proximity sensor
WO2024138354A1 (en) * 2022-12-27 2024-07-04 采埃孚商用车系统(青岛)有限公司 Method and apparatus for identifying operating state of sensor system, and electronic device and computer-readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566901A (en) * 2008-04-23 2009-10-28 索尼爱立信移动通信日本株式会社 Contact-sensing device, mobile information terminal, and capacitance calibration program and method
CN102410846A (en) * 2010-08-04 2012-04-11 St微电子(鲁塞)有限公司 A method of detecting an object with a proximity sensor
CN102591453A (en) * 2010-12-02 2012-07-18 夏普株式会社 Proximity sensor and electronic device
CN102915151A (en) * 2012-10-17 2013-02-06 惠州Tcl移动通信有限公司 Method for adjusting sensitivity of touch screen and portable electronic device
JP2014011507A (en) * 2012-06-27 2014-01-20 Sharp Corp Cellular phone
CN104750421A (en) * 2015-04-20 2015-07-01 深圳市欧珀通信软件有限公司 Touch screen operation method and device for mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566901A (en) * 2008-04-23 2009-10-28 索尼爱立信移动通信日本株式会社 Contact-sensing device, mobile information terminal, and capacitance calibration program and method
CN102410846A (en) * 2010-08-04 2012-04-11 St微电子(鲁塞)有限公司 A method of detecting an object with a proximity sensor
CN102591453A (en) * 2010-12-02 2012-07-18 夏普株式会社 Proximity sensor and electronic device
JP2014011507A (en) * 2012-06-27 2014-01-20 Sharp Corp Cellular phone
CN102915151A (en) * 2012-10-17 2013-02-06 惠州Tcl移动通信有限公司 Method for adjusting sensitivity of touch screen and portable electronic device
CN104750421A (en) * 2015-04-20 2015-07-01 深圳市欧珀通信软件有限公司 Touch screen operation method and device for mobile terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107290802A (en) * 2017-07-18 2017-10-24 广东欧珀移动通信有限公司 Proximity transducer calibration method, proximity transducer calibrating installation and intelligent terminal
CN107290802B (en) * 2017-07-18 2019-03-01 Oppo广东移动通信有限公司 Proximity sensor calibration method, proximity sensor calibrating installation and intelligent terminal
CN107504994A (en) * 2017-08-08 2017-12-22 广东欧珀移动通信有限公司 Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity transducer
CN109186657A (en) * 2018-09-26 2019-01-11 Oppo广东移动通信有限公司 Proximity sensor parameter calibrating method, device, terminal device and storage medium
CN109186657B (en) * 2018-09-26 2022-03-08 Oppo广东移动通信有限公司 Proximity sensor parameter calibration method and device, terminal equipment and storage medium
CN109840032A (en) * 2019-01-24 2019-06-04 Oppo广东移动通信有限公司 The calibration method and device, electronic equipment and storage medium of proximity sensor
CN109840032B (en) * 2019-01-24 2022-04-12 Oppo广东移动通信有限公司 Method and device for calibrating proximity sensor, electronic equipment and storage medium
WO2024138354A1 (en) * 2022-12-27 2024-07-04 采埃孚商用车系统(青岛)有限公司 Method and apparatus for identifying operating state of sensor system, and electronic device and computer-readable medium

Also Published As

Publication number Publication date
CN105022530B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN105022530A (en) Calibration method and system for proximity sensor
EP2713586A2 (en) Method and device for adjusting detecting threshold of infrared proximity sensor
CN101963873B (en) Method for setting and calibrating capacitive-type touch panel capacitance base value
CN106303023B (en) Screen state adjusting method and device
CN107219515A (en) The parameter calibrating method and terminal of a kind of range sensor
CN105959492B (en) A kind of control method of infrared proximity transducer, device and mobile terminal
CN102843469A (en) Method for setting threshold of infrared proximity sensor and mobile terminal
CN104516641B (en) Automatic calibrating method and electronic device
CN109542279B (en) Terminal device control method and terminal device
CN110049152B (en) Method and system for identifying distance between mobile phone and shielding object
CN106951850A (en) The method and mobile terminal of a kind of control fingerprint recognition module
CN111182115B (en) Method and device for detecting abnormity of proximity sensor and mobile terminal
CN107391021B (en) Recognition methods, device, storage medium and the mobile terminal of blank screen gesture
CN103309572A (en) Method and device for state switching
EP2999129A1 (en) Method for gestures operating smart wearable device and smart wearable device
CN103870319B (en) Information processing method, device and electronic equipment
CN106507482A (en) A kind of network locating method and terminal device
CN103823626A (en) Method and device for regulating display contents and electronic equipment
CN103399705A (en) Method, device and equipment for remotely controlling terminal equipment
CN104457821A (en) Test device and test method of proximity detector
CN104202480A (en) Adaptively-calibrated distance measurement method and handheld calling type communication equipment
CN206962916U (en) The protection device and mobile terminal of a kind of infrared sensor
CN112968985A (en) Infrared sensor compensation method and device and electronic equipment
CN110267142B (en) Mobile terminal and control method
CN107066090A (en) The method and mobile terminal of a kind of control fingerprint recognition module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180123

CF01 Termination of patent right due to non-payment of annual fee