CN105022530B - The calibration method and system of proximity transducer - Google Patents

The calibration method and system of proximity transducer Download PDF

Info

Publication number
CN105022530B
CN105022530B CN201510472655.3A CN201510472655A CN105022530B CN 105022530 B CN105022530 B CN 105022530B CN 201510472655 A CN201510472655 A CN 201510472655A CN 105022530 B CN105022530 B CN 105022530B
Authority
CN
China
Prior art keywords
calibration
calibration data
proximity transducer
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.)
Active
Application number
CN201510472655.3A
Other languages
Chinese (zh)
Other versions
CN105022530A (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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of calibration method of proximity transducer and system, this method comprises the following steps:After calibration command is received, proximity transducer is calibrated according to the calibration data stored in terminal device;After the completion of calibration, the calibration data that is currently generated, and judge to calibrate whether the used time is more than threshold value;If so, the calibration data stored in the terminal device is then updated according to the calibration data being currently generated.The present invention judges that whether calibration data preserves according to the length of calibration used time, when the calibration used time of proximity transducer is longer, original calibration data is substituted with the calibration data being currently generated, realize the renewal of calibration data, the calibration data for being more suitable for terminal device use environment is provided for calibration next time, so as to shorten prover time next time, the response speed of proximity transducer is improved, so as to improve Consumer's Experience.

Description

The calibration method and system of proximity transducer
Technical field
The present invention relates to equipment debugging technical field, more particularly to the calibration method and system of proximity transducer.
Background technology
For the terminal device for possessing touch-screen (such as capacitance touch screen mobile phone), it is easy to because of the touching of user When causing maloperation, such as being made a phone call using mobile phone, it is easy to cause maloperation because of the touching of face.Therefore, in order to solve Problems, occurs proximity transducer on section terminating equipment at present, when detecting object proximity terminal device, triggering is eventually End equipment carries out corresponding protection act to avoid maloperation.Proximity transducer includes infrared transmitter and multiple infrared remote receivers, The infrared light that infrared transmitter is launched is received after object reflects by infrared remote receiver, therefore by checking infrared remote receiver Infrared intensity value variation tendency is it may determine that whether object is approaching.Exist due to the structure of terminal device and from chip Various deviations when dispatching from the factory be present, these deviations can cause when no object is close proximity to sensor, each infrared receiver The infrared intensity value of device is all different, so during the use of proximity transducer, the benchmark of each infrared remote receiver Value is just different, is easily caused judgement error.Therefore when dispatching from the factory, can all there is the process of a calibration under engineering mode, The purpose is to allow the infrared intensity value of each infrared remote receiver to be consistent.Current calibration process is also fairly simple, is exactly right Each infrared remote receiver is calibrated respectively, subtracts deviation so that the infrared intensity value of each infrared remote receiver all, then will Deviation preserves as calibration data.Calibration can be all performed when opening proximity transducer every time in terminal device, however, Calibration can not accomplish in one move, it is necessary to which elapsed time goes to perform, and the calibration of proximity transducer at present is all based on work The calibration data preserved under journey pattern, in fact, proximity transducer is often disturbed by environmental factors such as greasy dirts, if each Secondary calibration is all based on the calibration data preserved under engineering mode, then prover time can be caused partially long, the shape of proximity transducer Called time in state also elongated, the usage experience of user is deteriorated.
The content of the invention
Based on this, to solve problems of the prior art, the present invention provides a kind of calibration method of proximity transducer, Judge that whether calibration data preserves according to the length of calibration used time, effective data are provided for calibration next time, so as to Shorten prover time, improve Consumer's Experience.
To achieve the above object, the present invention adopts the following technical scheme that:
A kind of calibration method of proximity transducer, comprises the following steps:
After calibration command is received, proximity transducer is calibrated according to the calibration data stored in terminal device; Wherein, the calibration data stored in the terminal device is the calibration data under engineering mode;
After the completion of calibration, the calibration data that is currently generated, and judge to calibrate whether the used time is more than threshold value;
If so, the calibration data stored in the terminal device is then updated according to the calibration data being currently generated.
And a kind of calibration system of proximity transducer, including:
Calibration module, for after calibration command is received, being passed according to the calibration data stored in terminal device to close Sensor is calibrated;Wherein, the calibration data stored in the terminal device is the calibration data under engineering mode;
Generation module, for the calibration data after the completion of calibration, being currently generated;
Judge module, for judging to calibrate whether the used time is more than threshold value;
Update module, for when the calibration used time being more than threshold value, updating the terminal according to the calibration data being currently generated The calibration data stored in equipment.
The present invention judges that whether calibration data preserves according to the length of calibration used time, when the calibration used time of proximity transducer When longer, show not to be suitable for the current environment of terminal device by original calibration data that (for example terminal device touch screen surface has Greasy dirt), the calibration data being currently generated now is preserved, substitutes original calibration data, is provided effectively for calibration next time Data, so as to shorten prover time, improve the response speed of proximity transducer, and then improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the calibration method of the proximity transducer in the embodiment of the present invention;
Fig. 2 is another schematic flow sheet of the calibration method of the proximity transducer in the embodiment of the present invention;
Fig. 3 is the structural representation of the calibration system of the proximity transducer in the embodiment of the present invention.
Embodiment
Present disclosure is described in further detail with preferred embodiment below in conjunction with the accompanying drawings.
As shown in figure 1, the present embodiment provides a kind of calibration method of proximity transducer, comprise the following steps:
S10 carries out school after calibration command is received, according to the calibration data stored in terminal device to proximity transducer It is accurate;
S20 is after the completion of calibration, the calibration data that is currently generated, and judges to calibrate whether the used time is more than threshold value;If It is, then into S30;
S30 updates the calibration data stored in the terminal device according to the calibration data being currently generated.
Specifically, by taking mobile phone as an example, when user receives calls with mobile phone, using scenes such as blank screen gestures when, mobile phone is opened Proximity transducer, first have to perform calibration, now, mobile phone generation calibration command, after proximity transducer receives the calibration command, read The calibration data stored in mobile phone is taken, and is calibrated according to the calibration data.
Proximity transducer includes infrared transmitter and infrared remote receiver, and the infrared light that infrared transmitter is launched is anti-through object Received after penetrating by infrared remote receiver, therefore by checking the infrared intensity value variation tendency of infrared remote receiver it may determine that object Whether approaching.In one embodiment, calibration data includes the infrared intensity deviation of infrared remote receiver, in the shape that dispatches from the factory Under state, the infrared intensity deviation of each infrared remote receiver stored in mobile phone is the deviation measured under engineering mode Offset, but in view of the influence of various use environment factors, for example greasy dirt, dust are speckled with handset touch panel, therefore every Still need to be calibrated during secondary use proximity transducer.Every time during calibration, the infrared remote receiver that is stored in mobile phone it is infrared strong Deviation is further adjusted on the basis of degree deviation, finally the infrared intensity value of each infrared remote receiver is consistent.
If calibration finishes, the calibration data being just currently generated, as described above, the calibration data is also including each infrared The deviation of receiver infrared intensity.After the completion of calibration, proximity transducer normal work, but the present invention is also creatively to calibration Used time judged, wherein, the calibration used time, which refers to proximity transducer and performed, calibrates the consumed time, in a kind of embodiment In, after calibration command is received, timer is opened, after the completion of calibration, the value of timer is read, according to the value of the timer The calibration used time can be obtained.In another embodiment, it can also judge to calibrate the used time according to system clock.This hair It is bright that for the calibration used time, one threshold value, such as 50 milliseconds are set, if the current calibration used time is more than threshold value, show original calibration Data (calibration data stored in terminal device) have not been suitable for the current use environment of terminal device, for example terminal is set Standby touch screen surface speckles with greasy dirt, dust, so that the overlong time of calibration is performed, if next time still in the original calibration number Calibration is performed on the basis of, then for application proximity transducer realizes double-click bright screen, prevents the functions such as false triggering, bottom The feedback speed of layer data is just slack-off, causes the responses such as bright screen also can be slack-off.Therefore, the present invention utilizes the calibration being currently generated Data (data are applied to the current use environment of terminal device) substitute original calibration data, complete calibration data more Newly.Execution is calibrated next time when, based on the calibration data after renewal, so as to shorten prover time, proximity transducer is improved Response speed, further improve Consumer's Experience.
In another specific embodiment, if as shown in Fig. 2 after the calibration calibration data that finishes and be currently generated, If the calibration used time is less than or equal to threshold value, the calibration data being currently generated is abandoned.Because if the calibration used time is less than threshold value, then Illustrate that original calibration data (calibration data stored in terminal device) can meet wanting for proximity transducer response speed Ask, suitable for the current use environment of terminal device, perform based on the calibration data original by this when calibrating next time, also can Quickly complete.
In summary, the present invention judges that whether calibration data preserves according to the length of calibration used time, works as proximity transducer The calibration used time it is longer when, original calibration data is substituted with the calibration data that is currently generated, the renewal of calibration data is realized, is Calibration next time, which provides, is more suitable for the calibration data of terminal device use environment, during so as to shorten calibration next time Between, the response speed of proximity transducer is improved, improves Consumer's Experience.
Accordingly, the present invention also provides a kind of calibration system of proximity transducer, with reference to a preferred embodiment pair The calibration system of the proximity transducer illustrates.
As shown in figure 3, the calibration system of the proximity transducer in the present embodiment includes:
Calibration module 1, for after calibration command is received, being passed according to the calibration data stored in terminal device to close Sensor is calibrated;
Generation module 2, for the calibration data after the completion of calibration, being currently generated;
Judge module 3, for judging to calibrate whether the used time is more than threshold value;
Update module 4, for when the calibration used time being more than threshold value, updating the terminal according to the calibration data being currently generated The calibration data stored in equipment.
In a kind of embodiment, the calibration data stored in terminal device and the calibration data being currently generated are equal Include the infrared intensity deviation of each infrared remote receiver in proximity transducer.Under factory state, what is stored in terminal device is each The infrared intensity deviation of individual infrared remote receiver is the deviation offset measured under engineering mode, but uses ring in view of various Greasy dirt, dust are speckled with the influence of border factor, such as terminal device touch-screen, therefore is still needed to when using proximity transducer every time To be calibrated by calibration module 1.Every time during calibration, calibration module 1 is all in the infrared intensity of the infrared remote receiver stored Deviation is further adjusted on the basis of deviation, finally the infrared intensity value of each infrared remote receiver is consistent.
If calibration finishes, the calibration data being currently generated by generation module 2, as described above, the calibration data Also the deviation of each infrared remote receiver infrared intensity is included.After the completion of calibration, also the calibration used time is carried out by judge module 3 Judge, wherein, the calibration used time refers to proximity transducer and performs calibration the consumed time, in a kind of embodiment, such as Fig. 3 Shown, the calibration system of proximity transducer of the invention also includes timing module 5, after calibration command is received, timing module 5 Open timer;After the completion of calibration, timing module 5 reads the value of timer, so as to obtain the calibration used time.Another specific In embodiment, the calibration system of proximity transducer of the invention can also judge to calibrate according to the system clock of terminal device Used time.The present invention sets a threshold value, such as 50 milliseconds for the calibration used time, if the current calibration used time is more than threshold value, shows Original calibration data (calibration data stored in terminal device) has not been suitable for the current use environment of terminal device, For example terminal device touch screen surface speckles with greasy dirt, dust, so that the overlong time of calibration is performed, if next time still in the original Calibration is performed on the basis of the calibration data of beginning, then is realized for application proximity transducer and is double-clicked bright screen, prevents false triggering etc. For function, the feedback speed of bottom data is just slack-off, causes the responses such as bright screen also can be slack-off.Therefore, in the present embodiment The calibration system of proximity transducer using update module 4, by the calibration data being currently generated, (suitable for terminal device work as by the data Preceding use environment) original calibration data is substituted, complete the renewal of calibration data.Calibration module 1 performs when calibrating next time, Based on the calibration data after renewal, so as to shorten prover time, the response speed of proximity transducer is improved, is further improved Consumer's Experience.
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 abandon the calibration data being currently generated.Because if the calibration used time is less than threshold value, then illustrate original calibration data (i.e. terminal The calibration data stored in equipment) requirement of proximity transducer response speed can be met, make suitable for terminal device is current With environment, perform based on the calibration data original by this when calibrating next time, can also quickly complete.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of calibration method of proximity transducer, it is characterised in that comprise the following steps:
After calibration command is received, proximity transducer is calibrated according to the calibration data stored in terminal device;Wherein, The calibration data stored in the terminal device is the calibration data under engineering mode;
After the completion of calibration, the calibration data that is currently generated, and judge to calibrate whether the used time is more than threshold value;
If so, the calibration data stored in the terminal device is then updated according to the calibration data being currently generated.
2. the calibration method of proximity transducer according to claim 1, it is characterised in that stored in the terminal device Calibration data and the calibration data being currently generated include the infrared intensity deviation of each infrared remote receiver in proximity transducer.
3. the calibration method of proximity transducer according to claim 1 or 2, it is characterised in that small when the calibration used time When threshold value, the calibration data being currently generated is abandoned.
4. the calibration method of proximity transducer according to claim 1 or 2, it is characterised in that the calibration used time passes through Following method obtains:
After calibration command is received, timer is opened;
After the completion of calibration, the value of the timer is read, obtains the calibration used time.
5. the calibration method of proximity transducer according to claim 1 or 2, it is characterised in that the threshold value is 50 milliseconds.
A kind of 6. calibration system of proximity transducer, it is characterised in that including:
Calibration module, for after calibration command is received, according to the calibration data stored in terminal device to proximity transducer Calibrated;Wherein, the calibration data stored in the terminal device is the calibration data under engineering mode;
Generation module, for the calibration data after the completion of calibration, being currently generated;
Judge module, for judging to calibrate whether the used time is more than threshold value;
Update module, for when the calibration used time being more than threshold value, updating the terminal device according to the calibration data being currently generated The calibration data of middle storage.
7. the calibration system of proximity transducer according to claim 6, it is characterised in that stored in the terminal device Calibration data and the calibration data being currently generated include the infrared intensity deviation of each infrared remote receiver in proximity transducer.
8. the calibration system of the proximity transducer according to claim 6 or 7, it is characterised in that when the judge module is sentenced When the fixed calibration used time is less than or equal to threshold value, the update module abandons the calibration data being currently generated.
9. the calibration system of the proximity transducer according to claim 6 or 7, it is characterised in that also including timing module, After receiving calibration command, the timing module opens timer;After the completion of calibration, the timing module reads the timing The value of device, obtain the calibration used time.
10. the calibration system of the proximity transducer according to claim 6 or 7, it is characterised in that the threshold value is 50 millis Second.
CN201510472655.3A 2015-08-04 2015-08-04 The calibration method and system of proximity transducer Active 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 CN105022530A (en) 2015-11-04
CN105022530B true CN105022530B (en) 2018-01-23

Family

ID=54412546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510472655.3A Active 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107290802B (en) * 2017-07-18 2019-03-01 Oppo广东移动通信有限公司 Proximity sensor calibration method, proximity sensor calibrating installation and intelligent terminal
CN107504994B (en) * 2017-08-08 2019-08-16 Oppo广东移动通信有限公司 Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity sensor
CN109186657B (en) * 2018-09-26 2022-03-08 Oppo广东移动通信有限公司 Proximity sensor parameter calibration method and device, terminal equipment and storage medium
CN109840032B (en) * 2019-01-24 2022-04-12 Oppo广东移动通信有限公司 Method and device for calibrating proximity sensor, electronic equipment and storage medium

Citations (5)

* 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
CN104750421A (en) * 2015-04-20 2015-07-01 深圳市欧珀通信软件有限公司 Touch screen operation method and device for mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5889128B2 (en) * 2012-06-27 2016-03-22 シャープ株式会社 Mobile phone equipment

Patent Citations (5)

* 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
CN104750421A (en) * 2015-04-20 2015-07-01 深圳市欧珀通信软件有限公司 Touch screen operation method and device for mobile terminal

Also Published As

Publication number Publication date
CN105022530A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN105022530B (en) The calibration method and system of proximity transducer
CN101963873B (en) Method for setting and calibrating capacitive-type touch panel capacitance base value
US9134850B2 (en) Method and system for updating reference data of capacitive multi-touch screen
CN106210227B (en) A kind of calibration method of infrared proximity transducer, device and mobile terminal
US8786573B2 (en) Data input device of electronic device and input control method
CN112560001B (en) Method for managing application program use time offline and terminal equipment
CN107532900A (en) One kind determines calibration parameter method and mobile device
CN102662839A (en) Testing method and device for software interface state change time
CN104516641B (en) Automatic calibrating method and electronic device
CN107105160A (en) A kind of method, system and mobile terminal for starting camera
CN105959492A (en) Control method and device for infrared proximity sensor and mobile terminal
CN104202480B (en) The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus
CN104902186A (en) Method for fast starting camera program and mobile terminal using the method
CN106791120A (en) Mobile terminal puts out the control method and device of screen
CN106464754A (en) Method, apparatus and device for correcting detection distance
WO2018099246A1 (en) Touch screen debugging detection method and apparatus, and computer storage medium thereof
CN103354573B (en) A kind of communication device and control method thereof
CN110049152B (en) Method and system for identifying distance between mobile phone and shielding object
CN105939427A (en) Control method of infrared proximity sensor, device and mobile terminal
CN107391021B (en) Recognition methods, device, storage medium and the mobile terminal of blank screen gesture
CN110611581A (en) Cell management method, terminal and network side equipment
CN102566822A (en) Automatic calibration method for touch screen
CN103092498B (en) Determine the method and apparatus and electronic equipment of response modes
CN102236481B (en) Capacitive touch control plate close to method for detecting and application thereof
CN105739776B (en) A kind of calibration method of pressure value, device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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