CN106500751A - The calibration steps and mobile terminal of proximity transducer - Google Patents

The calibration steps and mobile terminal of proximity transducer Download PDF

Info

Publication number
CN106500751A
CN106500751A CN201610916696.1A CN201610916696A CN106500751A CN 106500751 A CN106500751 A CN 106500751A CN 201610916696 A CN201610916696 A CN 201610916696A CN 106500751 A CN106500751 A CN 106500751A
Authority
CN
China
Prior art keywords
deviation
proximity transducer
mobile terminal
proximity
calibration
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
CN201610916696.1A
Other languages
Chinese (zh)
Other versions
CN106500751B (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 CN201610916696.1A priority Critical patent/CN106500751B/en
Publication of CN106500751A publication Critical patent/CN106500751A/en
Application granted granted Critical
Publication of CN106500751B publication Critical patent/CN106500751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00

Abstract

The present invention is applied to communication technical field, there is provided a kind of calibration steps of proximity transducer and mobile terminal, the calibration steps include:When mobile terminal starts, the deviation of proximity transducer is calibrated;The output valve of proximity transducer after deviation value calibration is complete, if mobile terminal is in away from state, is obtained, and the proximity values of the proximity transducer are calculated according to the output valve and the deviation.The present invention solves the problems, such as that the proximity values of proximity transducer occur larger skew, even if being wiped free of in the deviation of proximity transducer, the proximity values of a relatively standard value can be still obtained, the accuracy in detection of the proximity state of mobile terminal is effectively improved.

Description

The calibration steps and mobile terminal of proximity transducer
Technical field
The invention belongs to communication technical field, more particularly to a kind of calibration steps of proximity transducer and mobile terminal.
Background technology
Prior art before sensor is allowed access to, need the output valve of proximity transducer when being started according to mobile terminal come Proximity values are calculated, and proximity transducer is then initialized according to the proximity values is close to threshold value and away from threshold value.Wherein, it is close to It is worth the difference of the output valve for proximity transducer and default deviation, to ensure that the proximity values are floated downward in default standard value Dynamic.However, when user carries out the such as operation such as brush machine to mobile terminal, the deviation can be disposed of in the lump, so that Obtain the proximity values, relative to standard value, larger skew occur, reduce the accuracy in detection of the proximity state of mobile terminal, It is easily caused mobile terminal and is constantly in proximity state, it is impossible to is effectively realized anti-error triggering or closes the functions such as fingerprint.
Therefore, it is necessary to a kind of new technical scheme is proposed, to solve above-mentioned technical problem.
Content of the invention
In consideration of it, a kind of calibration steps of proximity transducer and mobile terminal is embodiments provided, existing to solve When having technology large deviations value to be eliminated there is the problem of larger skew in the proximity values of proximity transducer, improve being close to for mobile terminal The accuracy in detection of state.
First aspect, there is provided a kind of calibration steps of proximity transducer, the calibration steps include:
When mobile terminal starts, the deviation of proximity transducer is calibrated;
After deviation value calibration is complete, the output valve of proximity transducer if the mobile terminal is in away from state, is obtained, And the proximity values of the proximity transducer are calculated according to the output valve and the deviation.
Further, the deviation of the calibration proximity transducer includes:
If the mobile terminal is in away from state, several of proximity transducer are obtained according to default time interval Output valve;
The minima in the output valve is chosen, the difference between the minima and default standard value is calculated;
By in the Difference Storage to specified memory area, to update the deviation of the proximity transducer.
Further, before the deviation of calibration proximity transducer, the calibration steps also includes:
Read the data in the memory area that specifies;
When the data for being read are 0, judge whether the deviation being stored in the memory area that specifies loses;
The deviation of the calibration proximity transducer includes:
When the deviation being stored in the memory area that specifies is lost, the deviation is calibrated.
Further, described when the data for being read are 0, judge the deviation being stored in the memory area that specifies Value whether lost including:
When the data for being read are 0, proximity values of the proximity transducer under away from state are obtained;
Judge that the proximity values, whether more than default standard value, if so, then confirm to be stored in the memory block that specifies Deviation in domain is lost.
Second aspect, there is provided a kind of mobile terminal, the mobile terminal include:
Calibration module, for when mobile terminal starts, calibrating the deviation of proximity transducer;
Computing module, for after deviation value calibration is complete, if the mobile terminal is in away from state, obtains and is close to biography The output valve of sensor, and the proximity values of the proximity transducer are calculated according to the output valve and the deviation.
Further, the calibration module includes:
First acquisition unit, if be in away from state for the mobile terminal, obtains according to default time interval Several output valves of proximity transducer;
Computing unit, for choosing the minima in the output valve, calculate the minima and default standard value it Between difference;
Memory element, for by the Difference Storage to specified memory area, to update the proximity transducer Deviation.
Further, the mobile terminal also includes:
Read module, for reading the data in the memory area that specifies;
Judge module, for when the data for being read are 0, judging the deviation being stored in the memory area that specifies Whether value loses;
The calibration module is additionally operable to:When the deviation being stored in the memory area that specifies is lost, to institute State deviation to be calibrated.
Further, the judge module includes:
Second acquisition unit, for when the data for being read are 0, obtaining proximity transducer being close under away from state Value;
Judging unit, for judging the proximity values whether more than default standard value, if so, then confirms described specifying Deviation in memory area is lost.
The third aspect, there is provided a kind of mobile terminal, the mobile terminal include processor;
The processor, for when mobile terminal starts, calibrating the deviation of proximity transducer;Complete in deviation value calibration Afterwards, if the mobile terminal be in away from state, obtain proximity transducer output valve, and according to the output valve with described Deviation calculates the proximity values of the proximity transducer.
Compared with prior art, the embodiment of the present invention increased the deviation to proximity transducer when mobile terminal starts The calibration operation of value;After deviation value calibration is complete, the output of proximity transducer if mobile terminal is in away from state, is obtained Value, and the proximity values of proximity transducer are calculated according to the output valve and the deviation;So as to avoid proximity transducer There is the problem of larger skew in proximity values, even if the deviation in proximity transducer is wiped free of, can still obtain a ratio The proximity values of standard value are closer to, the accuracy in detection of the proximity state of mobile terminal is effectively improved.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flowchart of the calibration steps of the proximity transducer that first embodiment of the invention is provided;
Fig. 2 is the flowchart of the calibration steps of the proximity transducer that second embodiment of the invention is provided;
Fig. 3 is the flowchart of the calibration steps of the proximity transducer that third embodiment of the invention is provided;
Fig. 4 is the schematic block diagram of the mobile terminal that fourth embodiment of the invention is provided;
Fig. 5 is the schematic block diagram of the mobile terminal that fifth embodiment of the invention is provided;
Fig. 6 is the schematic block diagram of the mobile terminal that sixth embodiment of the invention is provided.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention increased the calibration operation of the deviation to proximity transducer when mobile terminal starts;? After deviation value calibration is complete, the output valve of proximity transducer if mobile terminal is in away from state, is obtained, and according to described defeated Go out the proximity values that value and the deviation calculate proximity transducer;Proximity values so as to avoid proximity transducer occur larger inclined The problem of shifting, even if the deviation in proximity transducer is wiped free of, can still obtain one relatively standard value connect Close values, are effectively improved the accuracy in detection of the proximity state of mobile terminal.The embodiment of the present invention additionally provides corresponding shifting Dynamic terminal, is described in detail individually below.
Fig. 1 shows that the calibration steps of the proximity transducer that first embodiment of the invention is provided realizes flow process.
In embodiments of the present invention, the calibration steps of the proximity transducer is applied to mobile terminal, the mobile terminal Including but not limited to smart mobile phone, panel computer, learning machine etc..Proximity transducer is provided with the mobile terminal.
Fig. 1 is referred to, the calibration steps of the proximity transducer includes:
In step S101, when mobile terminal starts, the deviation of proximity transducer is calibrated.
In embodiments of the present invention, the deviation is the minimal float of the output valve relative to standard value of proximity transducer Amplitude, for calibrating to the output valve of proximity transducer, to obtain the proximity values of relatively default standard value.At this In, the standard value refers to the optimum proximity values determined according to the performance of proximity transducer.Due to the use in proximity transducer During can be affected by factors such as greasy dirts, after dispatching from the factory, the output valve of proximity transducer can become big to mobile terminal.Therefore Need the output valve that proximity transducer is corrected by the deviation.The deviation of existing proximity transducer is fixed. For the output valve for becoming larger, fixed deviation cannot be returned to the output valve of proximity transducer near standard value.Mirror In this, the embodiment of the present invention is calibrated to the deviation of proximity transducer first when mobile terminal starts, so that described The deviation of proximity transducer is corresponding with the float conditions of the current output valve of proximity transducer.
On the other hand, after user carries out brush machine to mobile terminal, the deviation stored on mobile terminal may be lost Lose, now, also the output valve of proximity transducer cannot be returned near standard value.In consideration of it, the embodiment of the present invention is being moved Terminal start when first the deviation of proximity transducer is calibrated so that the deviation of the proximity transducer be close to The float conditions of the current output valve of sensor are corresponding.
In step s 102, after deviation value calibration is complete, if the mobile terminal is in away from state, obtains and be close to biography The output valve of sensor, and the proximity values of the proximity transducer are calculated according to the output valve and the deviation.
After deviation value calibration is complete, then based on calibration after deviation, according to the output valve of the proximity transducer calculate Proximity values.Wherein, the proximity values are the difference of the output valve with the deviation of proximity transducer.Here, due to moving Terminal is calibrated to the calibration value of proximity transducer when starting, and the deviation of the proximity transducer is worked as with proximity transducer The float conditions of front output valve are corresponding, the problem that larger skew occurs so as to avoid the proximity values, even if by close sensing The deviation of device is wiped out, and can still be obtained the proximity values of a relatively standard value, is effectively improved mobile terminal Proximity state accuracy in detection.
As another preferred exemplary of the present invention, can be existed by gathering proximity transducer when mobile terminal starts The floating changing condition of proximity transducer output valve is obtained away from several output valves under state.Fig. 2 shows the present invention The calibration steps of the proximity transducer that second embodiment is provided realizes flow process.
Fig. 2 is referred to, the calibration steps of the proximity transducer includes:
In step s 201, when mobile terminal starts, if the mobile terminal is in away from state, according to default when Between interval acquiring proximity transducer several output valves.
In embodiments of the present invention, when mobile terminal starts, if mobile terminal is in away from state, according to default Time interval obtains the output valve of proximity transducer.Exemplarily, the prefixed time interval can be 1 millisecond etc..
In step S202, choose the minima in the output valve, calculate the minima and default standard value it Between difference.
In step S203, by the Difference Storage to specified memory area, to update the proximity transducer Deviation.
Here, the embodiment of the present invention compares the output valve after several output valves are got, two-by-two, chooses wherein Minima.Exemplarily, when the standard value of proximity transducer is 200, if the output valve bag of acquired proximity transducer When including 250,255,275,258,270, selection minima therein, i.e., 255,200 are deducted by 250, so as to obtain difference 50.Institute Difference 50 is stated as the deviation of the proximity transducer, in storing to specified memory area.Here, described specify deposit Storage area domain includes but is not limited to calibration register or calibration parameter region (NV regions).
In step S204, after deviation value calibration is complete, if the mobile terminal is in away from state, obtains and be close to biography The output valve of sensor, and the proximity values of the proximity transducer are calculated according to the output valve and the deviation.
After deviation value calibration is complete, then based on calibration after deviation, according to the output valve of the proximity transducer calculate Proximity values.Here, due to being calibrated to the calibration value of proximity transducer when mobile terminal starts, the close sensing The deviation of device is corresponding with the float conditions of the current output valve of proximity transducer, even if carry out brush machine in user to mobile terminal leading Deflection difference is wiped free of, it is also possible to retrieve new deviation, still can be returned to the output valve of proximity transducer Near standard value;There is the problem of larger skew so as to avoid the proximity values, be effectively improved being close to for mobile terminal The accuracy in detection of state.
Further, as the present invention another preferred exemplary, with can only for deviation lose situation to inclined Difference is calibrated.Now, first determine whether when mobile terminal starts whether deviation loses, if lose, then to described inclined Difference is calibrated.Fig. 3 shows that the calibration steps of the proximity transducer that third embodiment of the invention is provided realizes flow process.Ginseng Fig. 3 is read, the calibration steps of the proximity transducer includes:
In step S301, when mobile terminal starts, the data in the memory area that specifies are read.
In step s 302, when the data for being read are 0, judge whether the deviation in the memory area that specifies loses Lose.
Here, when the data for being read are 0, it may be possible to which deviation sheet is as 0, it is also possible to which deviation is lost and led It is 0 to cause the data in the memory area that specifies.When data of the embodiment of the present invention in specified memory area are 0, root Whether determine more than standard value whether the deviation in the memory area that specifies loses according to acquired proximity values. Step S302 is specifically included:
Obtain proximity values of the proximity transducer under away from state;
Judge the proximity values whether more than default standard value;
If the proximity values are more than default standard value, confirm that the deviation in the memory area that specifies is lost Lose.
Wherein, when deviation is 0, without the need for calibration, the output valve of proximity transducer is equal to the output valve of proximity transducer Proximity values, the proximity values should be less than default standard value.In consideration of it, the embodiment of the present invention is by comparing proximity values and presetting Standard value.If the proximity values are less than or equal to default standard value, confirmation bias value is 0, direct execution step S307; Otherwise, if more than default standard value, the proximity values can confirm that the deviation in the memory area that specifies is lost.
In step S303, when the deviation in the memory area that specifies is lost, the deviation is carried out Calibration.
In step s 304, if the mobile terminal is in away from state, obtain according to default time interval and be close to Several output valves of sensor.
In step S305, choose the minima in the output valve, calculate the minima and default standard value it Between difference.
In step S306, by the Difference Storage to specified memory area, to update the proximity transducer Deviation.
In step S307, the output valve of proximity transducer, and root if the mobile terminal is in away from state, are obtained According to the proximity values that the output valve and the deviation calculate the proximity transducer.
In embodiments of the present invention, when deviation is lost, deviation is calibrated so that the proximity transducer Deviation is corresponding with the float conditions of the current output valve of proximity transducer.After deviation value calibration is complete, based on calibration after deviation Value, the output valve according to the proximity transducer can still obtain the proximity values of relatively standard value.Even if user is to moving Dynamic terminal carries out brush machine causes deviation to be wiped free of, it is also possible to retrieve new deviation, still can be by proximity transducer Output valve be returned near standard value;There is the problem of larger skew so as to avoid the proximity values, be effectively improved The accuracy in detection of the proximity state of mobile terminal.
It should be understood that in the above-described embodiments, the size of the sequence number of each step is not meant to the priority of execution sequence, each step Rapid execution sequence should be determined with its function and internal logic, and should not constitute any limit to the implementation process of the embodiment of the present invention Fixed.
Fig. 4 shows the schematic block diagram of the mobile terminal that fourth embodiment of the invention is provided, and for convenience of description, only shows The part related to the embodiment of the present invention is gone out.
In embodiments of the present invention, the mobile terminal is used for realizing connecing described in above-mentioned Fig. 1 to Fig. 3 any embodiments The calibration steps of nearly sensor.The mobile terminal includes but is not limited to smart mobile phone, panel computer etc..Here, the shifting Proximity transducer is provided with dynamic terminal.
Fig. 4 is referred to, the mobile terminal includes:
Deviation calibration module 41, for when mobile terminal starts, calibrating the deviation of proximity transducer;
Proximity values acquisition module 42, for, after deviation value calibration is complete, if the mobile terminal is in away from state, obtaining The output valve of proximity transducer is taken, and the proximity values of the proximity transducer are calculated according to the output valve and the deviation.
Further, the deviation calibration module 41 includes:
Output valve acquiring unit 411, for when the mobile terminal is in away from state, according to default time interval Obtain several output valves of proximity transducer;
Computing unit 412, for choosing the minima in the output valve, calculates the minima and default standard value Between difference;
Memory element 413, for by the Difference Storage to specified memory area, to update the proximity transducer Deviation.
Further, the mobile terminal also includes:
Read module 43, for reading the data in the memory area that specifies;
Judge module 44, for when the data for being read are 0, judgement is stored in inclined in the memory area that specifies Whether difference loses;
The calibration module 41 is additionally operable to:When the deviation being stored in the memory area that specifies is lost, right The deviation is calibrated.
Further, the judge module 44 includes:
Second acquisition unit 441, for when the data for being read are 0, acquisition proximity transducer is under away from state Proximity values;
Judging unit 442, for judging that the proximity values, whether more than default standard value, if so, then confirm the finger Deviation in fixed memory area is lost.
It should be noted that the mobile terminal in the embodiment of the present invention can be used for realizing complete in said method embodiment Portion's technical scheme, the function of its each functional module can be implemented according to the method in said method embodiment, and which is concrete The process of realization can refer to the associated description in examples detailed above, and here is omitted.
Referring to Fig. 5, it is the schematic block diagram of the mobile terminal that fifth embodiment of the invention is provided.The movement as depicted Terminal can include:One or more processors 501 (only illustrating one in figure);One or more input equipments 502 are (in figure only Illustrate one), one or more outut devices 503 (only illustrating in figure), memorizer 504.Above-mentioned processor 501, input Equipment 502, outut device 503, memorizer 504 are connected by bus 506.Memorizer 504 is used for store instruction, processor 501 For executing the instruction of the storage of memorizer 504.Wherein:
The processor 501, for when mobile terminal starts, calibrating the deviation of proximity transducer;In deviation school Accurate complete after, if the mobile terminal is in away from state, obtain the output valve of proximity transducer, and according to the output valve with The deviation calculates the proximity values of the proximity transducer.
The processor 501, is additionally operable to:
When the mobile terminal is in away from state, several of proximity transducer are obtained according to default time interval Output valve;The minima in the output valve is chosen, the difference between the minima and default standard value is calculated;Will be described Difference Storage into specified memory area, to update the deviation of the proximity transducer.
The processor 501, is additionally operable to:
Before the deviation of calibration proximity transducer, the data in the memory area that specifies are read;When the number for being read According to for 0 when, judge whether the deviation that is stored in the memory area that specifies loses;When be stored in described specify deposit When deviation in storage area domain is lost, the deviation is calibrated.
The processor 501, is additionally operable to:
When the data for being read are 0, proximity values of the proximity transducer under away from state are obtained;Judge the proximity values Whether it is more than default standard value, if so, then confirms that the deviation being stored in the memory area that specifies is lost.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be CPU (Central Processing Unit, CPU) and/or graphic process unit (Graphic Processing Unit, GPU), it is also possible in this base Other general processors, digital signal processor (Digital Signal Processor, DSP), special integrated are combined on plinth Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..
Input equipment 502 can include that Trackpad, fingerprint adopt sensor (for gathering the finger print information and fingerprint of user Directional information), mike, communication module (such as Wi-Fi module, 2G/3G/4G mixed-media network modules mixed-medias), physical button etc..
Outut device 503 can include display (LCD etc.), speaker etc..Wherein, display can be used to show by user The information of input is supplied to information of user etc..Display may include display floater, optionally, can adopt liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED form is configuring display floater.Further, above-mentioned touch screen can be covered over the display, when touch screen is detected Thereon or after neighbouring touch operation, processor 501 is sent to determine the type of touch event, with preprocessor 501 Corresponding visual output is provided over the display according to the type of touch event.
In implementing, processor 501, input equipment 502, outut device 503 described in the embodiment of the present invention, deposit Reservoir 504 can perform the realization side described in the embodiment of the calibration steps of proximity transducer provided in an embodiment of the present invention Formula, will not be described here.
Fig. 6 is a kind of schematic block diagram of mobile terminal that sixth embodiment of the invention is provided, and the mobile terminal can use Calibration steps in the proximity transducer for implementing to provide in above-described embodiment.
As shown in fig. 6, mobile terminal 1 200 can include RF (Radio Frequency, radio frequency) circuit 110, include The memorizer 120 of one or more (only illustrating one in figure) computer-readable recording mediums, input block 130, display Unit 140, sensor 150, voicefrequency circuit 160, transport module 170, include one or more than one (only illustrates one in figure Individual) part such as the processor 180 of processing core and power supply 190.It will be understood by those skilled in the art that the shifting illustrated in Fig. 6 1200 structure of dynamic terminal does not constitute the restriction to mobile terminal 1 200, can include than illustrating more or less of part, or Person combines some parts, or different part arrangements.Wherein:
RF circuits 110 be used for receive and send electromagnetic wave, realize the mutual conversion of electromagnetic wave and the signal of telecommunication, so as to lead to News network or other equipment are communicated.RF circuits 110 may include the various existing circuit elements for executing these functions Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage Device etc..RF circuits 110 can be communicated with various networks such as the Internet, intranet, wireless network or by wireless Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN). Above-mentioned wireless network can use various communication standards, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhancement mode mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division multiple Access, W-CDMA), CDMA (Code division access, CDMA), tdma (time Division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) is (such as U.S.'s electricity Gas and Electronic Engineering Association's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, IMU News and the agreement of short message, and any other suitable communications protocol, or even may include that those are currently developed not yet Agreement.
Memorizer 120 can be used to store software program and module, as the corresponding programmed instruction of method in above-mentioned embodiment/ Module, processor 180 are stored in software program and module in memorizer 120 by operation, should so as to execute various functions With and data processing, that is, calibrate the deviation of proximity transducer, according to calibration after deviation calculate proximity transducer and connect Close values.Memorizer 120 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Storage device, flash memory or other non-volatile solid state memories.In some instances, memorizer 120 can further include phase For the remotely located memorizer of processor 180, these remote memories can pass through network connection to mobile terminal 1 200.On The example for stating network includes but is not limited to the Internet, intranet, LAN, mobile radio communication and combinations thereof.
Input block 130 can be used for the numeral of receives input or character information, and produce and user setup and function The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or adnexa in touch-sensitive table Operation on face 131 or near the Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Optional , Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then give processor 180, and can receiving processor 180 The order sent simultaneously is executed.Furthermore, it is possible to adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user input or be supplied to information and the mobile terminal of user 1200 various graphical user interface, these graphical user interface can be by figure, text, icon, video and its combination in any To constitute.Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes Configuration display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 is detected at which On or near touch operation after, send processor 180 to determine the type of touch event, with preprocessor 180 according to touch The type for touching event provides corresponding visual output on display floater 141.Although in figure 6, Touch sensitive surface 131 and display surface Plate 141 is the part independent as two realizing input and input function, but in some embodiments it is possible to by touch-sensitive table Face 131 is integrated with display floater 141 and realization is input into and output function.
Mobile terminal 1 200 may also include at least one sensor 150, such as optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can basis The light and shade of ambient light adjusting the brightness of display floater 141, proximity transducer can when mobile terminal 1 200 is moved in one's ear, Close display floater 141 and/or backlight.Used as one kind of motion sensor, Gravity accelerometer can detect all directions The size of upper (generally three axles) acceleration, can detect that size and the direction of gravity when static, can be used to detect angle of inclination, And application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), the Vibration identification correlation work(of identification mobile phone attitude Energy (such as pedometer, percussion) etc.;The gyroscope that can also configure as mobile terminal 1 200, barometer, drimeter, thermometer, The other sensors such as infrared ray sensor, will not be described here.
Voicefrequency circuit 160, speaker 161, the audio frequency that microphone 162 can be provided between user and mobile terminal 1 200 connect Mouthful.The signal of telecommunication after the voice data for receiving conversion can be transferred to speaker 161, by speaker 161 by voicefrequency circuit 160 Be converted to acoustical signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, by voicefrequency circuit 160 receive after be converted to voice data, then after voice data output processor 180 is processed, through RF circuits 110 being sent to ratio Such as another terminal, or voice data is exported to memorizer 120 further to process.Voicefrequency circuit 160 is also possible that Earphone jack, to provide the communication of peripheral hardware earphone and mobile terminal 1 200.
Mobile terminal 1 200 can help user to send and receive e-mail by transport module 170 (such as WiFi module), clear Look at webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 6 shows transmission mould Block 170, but it is understood that, which is simultaneously not belonging to must be configured into for mobile terminal 1 200, completely can as needed not Omit in the scope of the essence for changing invention.
Processor 180 is the control centre of mobile terminal 1 200, using each of various interfaces and connection whole mobile phone Individual part, is stored in software program and/or module in memorizer 120 by running or executing, and calls and be stored in storage Data in device 120, execute the various functions and processing data of mobile terminal 1 200, so as to carry out integral monitoring to mobile phone.Can Choosing, processor 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modulation Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modulation /demodulation is processed Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Mobile terminal 1 200 also includes the power supply 190 (such as battery) that powers to all parts, it is preferred that power supply can lead to Cross power-supply management system logically contiguous with processor 180, so as to by power-supply management system realize management charge, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, mobile terminal 1 200 can also include photographic head, bluetooth module etc., will not be described here.Specifically In the present embodiment, the display unit of mobile terminal is touch-screen display, and mobile terminal also includes memorizer, and one Or more than one program, one of them or more than one program storage in memorizer, and be configured to by one or Person more than one computing device states one or more than one program bag containing for carrying out the instruction of following operation:
When mobile terminal starts, the deviation of proximity transducer is calibrated;
After deviation value calibration is complete, the output valve of proximity transducer if the mobile terminal is in away from state, is obtained, And the proximity values of the proximity transducer are calculated according to the output valve and the deviation.
Assume above-mentioned for the first possible embodiment, then provide based on the first possible embodiment Second possible embodiment in, in the memorizer of the mobile terminal, also comprising for executing the instruction of following operation:
The deviation of the calibration proximity transducer includes:
When the mobile terminal is in away from state, several of proximity transducer are obtained according to default time interval Output valve;
The minima in the output valve is chosen, the difference between the minima and default standard value is calculated;
By in the Difference Storage to specified memory area, to update the deviation of the proximity transducer.
In the third the possible embodiment provided based on the first or second possible embodiment, In the memorizer of the mobile terminal, also comprising the instruction for being used for executing following operation:
Before the deviation of calibration proximity transducer, the calibration steps also includes:
Read the data in the memory area that specifies;
When the data for being read are 0, judge whether the deviation being stored in the memory area that specifies loses;
The deviation of the calibration proximity transducer includes:
When the deviation being stored in the memory area that specifies is lost, the deviation is calibrated.
In the 4th kind of possible embodiment provided based on the third possible embodiment, the movement In the memorizer of terminal, also comprising the instruction for being used for executing following operation:
Described when the data for being read are 0, whether judge to be stored in deviation in the memory area that specifies Loss includes:
When the data for being read are 0, proximity values of the proximity transducer under away from state are obtained;
Judge that the proximity values, whether more than default standard value, if so, then confirm to be stored in the memory block that specifies Deviation in domain is lost.
The embodiment of the present invention increased the calibration operation of the deviation to proximity transducer when mobile terminal starts;? After deviation value calibration is complete, the output valve of proximity transducer if mobile terminal is in away from state, is obtained, and according to described defeated Go out the proximity values that value and the deviation calculate proximity transducer;Proximity values so as to avoid proximity transducer occur larger inclined The problem of shifting, even if the deviation in proximity transducer is wiped free of, can still obtain one relatively standard value connect Close values, are effectively improved the accuracy in detection of the proximity state of mobile terminal.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually Executed with hardware or software mode, the application-specific and design constraint depending on technical scheme.Professional and technical personnel Each specific application can be used different methods to realize described function, but this realization is it is not considered that exceed The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the module of foregoing description With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, be will not be described here.
In several embodiments provided herein, it should be understood that disclosed method and mobile terminal, Ke Yitong Cross other modes to realize.For example, embodiments described above is only that schematically, for example the module, unit are drawn Point, only a kind of division of logic function can have other dividing mode when actually realizing, for example multiple units or component can To combine or be desirably integrated into another system, or some features can be ignored, or not execute.Another, shown or beg for By coupling each other or direct-coupling or communication connection can be INDIRECT COUPLING by some interfaces, module or unit Or communication connection, can be electrical, mechanical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit, module in each embodiment of the invention can be integrated in a processing unit, Can be that unit, module are individually physically present, it is also possible to which two or more units, module are integrated in a unit In.
If the function is realized using in the form of SFU software functional unit and as independent production marketing or when using, can be with It is stored in a computer read/write memory medium.Such understanding is based on, technical scheme is substantially in other words The part contributed by prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual People's computer, server, or network equipment etc.) execute all or part of step of each embodiment methods described of the invention. And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (12)

1. a kind of calibration steps of proximity transducer, it is characterised in that the calibration steps includes:
When mobile terminal starts, the deviation of proximity transducer is calibrated;
After deviation value calibration is complete, the output valve of proximity transducer, and root if the mobile terminal is in away from state, are obtained According to the proximity values that the output valve and the deviation calculate the proximity transducer.
2. the calibration steps of proximity transducer as claimed in claim 1, it is characterised in that the calibration proximity transducer inclined Difference includes:
If the mobile terminal is in away from state, according to several outputs that default time interval obtains proximity transducer Value;
The minima in the output valve is chosen, the difference between the minima and default standard value is calculated;
By in the Difference Storage to specified memory area, to update the deviation of the proximity transducer.
3. the calibration steps of proximity transducer as claimed in claim 1 or 2, it is characterised in that in calibration proximity transducer Before deviation, the calibration steps also includes:
Read the data in the memory area that specifies;
When the data for being read are 0, judge whether the deviation being stored in the memory area that specifies loses;
The deviation of the calibration proximity transducer includes:
When the deviation being stored in the memory area that specifies is lost, the deviation is calibrated.
4. the calibration steps of proximity transducer as claimed in claim 3, it is characterised in that described work as read data for 0 When, judge the deviation that is stored in the memory area that specifies whether lost including:
When the data for being read are 0, proximity values of the proximity transducer under away from state are obtained;
Judge that the proximity values, whether more than default standard value, if so, then confirm to be stored in the memory area that specifies Deviation lose.
5. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Calibration module, for when mobile terminal starts, calibrating the deviation of proximity transducer;
Computing module, for after deviation value calibration is complete, if the mobile terminal is in away from state, obtains proximity transducer Output valve, and calculate the proximity values of the proximity transducer according to the output valve and the deviation.
6. mobile terminal as claimed in claim 5, it is characterised in that the calibration module includes:
First acquisition unit, if be in away from state for the mobile terminal, obtain according to default time interval and is close to Several output valves of sensor;
Computing unit, for choosing the minima in the output valve, calculates between the minima and default standard value Difference;
Memory element, for by the Difference Storage to specified memory area, to update the deviation of the proximity transducer Value.
7. the mobile terminal as described in claim 5 or 6, it is characterised in that the mobile terminal also includes:
Read module, for reading the data in the memory area that specifies;
Judge module, for when the data for being read are 0, judging that the deviation being stored in the memory area that specifies is No lose;
The calibration module is additionally operable to:When the deviation being stored in the memory area that specifies is lost, to described inclined Difference is calibrated.
8. mobile terminal as claimed in claim 7, it is characterised in that the judge module includes:
Second acquisition unit, for when the data for being read are 0, obtaining proximity values of the proximity transducer under away from state;
Judging unit, for judging that the proximity values, whether more than default standard value, if so, then confirm the storage that specifies Deviation in region is lost.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes processor;
The processor, for when mobile terminal starts, calibrating the deviation of proximity transducer;After deviation value calibration is complete, If the mobile terminal is in away from state, the output valve of proximity transducer is obtained, and inclined with described according to the output valve The proximity values of proximity transducer described in mathematic interpolation.
10. mobile terminal as claimed in claim 9, it is characterised in that the processor is additionally operable to:
If the mobile terminal is in away from state, according to several outputs that default time interval obtains proximity transducer Value;The minima in the output valve is chosen, the difference between the minima and default standard value is calculated;By the difference In storing to specified memory area, to update the deviation of the proximity transducer.
11. mobile terminals as described in claim 9 or 10, it is characterised in that the processor is additionally operable to:
Before the deviation of calibration proximity transducer, the data in the memory area that specifies are read;When the data for being read are 0 When, judge whether the deviation being stored in the memory area that specifies loses;When being stored in the memory block that specifies When deviation in domain is lost, the deviation is calibrated.
12. mobile terminals as claimed in claim 11, it is characterised in that the processor is additionally operable to:
When the data for being read are 0, proximity values of the proximity transducer under away from state are obtained;Whether judge the proximity values It is more than default standard value, if so, then confirms that the deviation being stored in the memory area that specifies is lost.
CN201610916696.1A 2016-10-20 2016-10-20 The calibration method and mobile terminal of proximity sensor Active CN106500751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610916696.1A CN106500751B (en) 2016-10-20 2016-10-20 The calibration method and mobile terminal of proximity sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610916696.1A CN106500751B (en) 2016-10-20 2016-10-20 The calibration method and mobile terminal of proximity sensor

Publications (2)

Publication Number Publication Date
CN106500751A true CN106500751A (en) 2017-03-15
CN106500751B CN106500751B (en) 2019-01-15

Family

ID=58318121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610916696.1A Active CN106500751B (en) 2016-10-20 2016-10-20 The calibration method and mobile terminal of proximity sensor

Country Status (1)

Country Link
CN (1) CN106500751B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279408A (en) * 2018-01-24 2018-07-13 广东欧珀移动通信有限公司 proximity sensor calibration method, device, mobile terminal and computer-readable medium
CN111856616A (en) * 2019-04-29 2020-10-30 威海新北洋数码科技有限公司 Method for correcting sensor in vending machine and vending machine
CN111857369A (en) * 2020-07-23 2020-10-30 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for calibrating proximity sensor of mobile terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11241926A (en) * 1998-02-25 1999-09-07 Honda Motor Co Ltd Traveling distance correcting device for vehicle
US20090100903A1 (en) * 2007-10-23 2009-04-23 Nokia Corporation Optical sensor calibration
CN102022530A (en) * 2009-09-09 2011-04-20 通用汽车环球科技运作公司 Hydraulic control systems for dual clutch transmissions
CN102440063A (en) * 2008-12-29 2012-05-02 摩托罗拉移动公司 Portable electronic device having self-calibrating proximity sensors
CN102932527A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Mobile terminal and calibration method of distance sensor thereof
US20140070078A1 (en) * 2012-09-10 2014-03-13 Brian R. Land Optical Proximity Sensor With Ambient Light and Temperature Compensation
CN105628079A (en) * 2015-12-30 2016-06-01 上海闻泰电子科技有限公司 Dynamic calibration method of distance sensor
CN105959492A (en) * 2016-07-06 2016-09-21 广东欧珀移动通信有限公司 Control method and device for infrared proximity sensor and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11241926A (en) * 1998-02-25 1999-09-07 Honda Motor Co Ltd Traveling distance correcting device for vehicle
US20090100903A1 (en) * 2007-10-23 2009-04-23 Nokia Corporation Optical sensor calibration
CN102440063A (en) * 2008-12-29 2012-05-02 摩托罗拉移动公司 Portable electronic device having self-calibrating proximity sensors
CN102022530A (en) * 2009-09-09 2011-04-20 通用汽车环球科技运作公司 Hydraulic control systems for dual clutch transmissions
US20140070078A1 (en) * 2012-09-10 2014-03-13 Brian R. Land Optical Proximity Sensor With Ambient Light and Temperature Compensation
CN102932527A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Mobile terminal and calibration method of distance sensor thereof
CN105628079A (en) * 2015-12-30 2016-06-01 上海闻泰电子科技有限公司 Dynamic calibration method of distance sensor
CN105959492A (en) * 2016-07-06 2016-09-21 广东欧珀移动通信有限公司 Control method and device for infrared proximity sensor and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279408A (en) * 2018-01-24 2018-07-13 广东欧珀移动通信有限公司 proximity sensor calibration method, device, mobile terminal and computer-readable medium
CN111856616A (en) * 2019-04-29 2020-10-30 威海新北洋数码科技有限公司 Method for correcting sensor in vending machine and vending machine
CN111856616B (en) * 2019-04-29 2023-10-27 威海新北洋数码科技有限公司 Correction method of sensor in vending machine and vending machine
CN111857369A (en) * 2020-07-23 2020-10-30 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for calibrating proximity sensor of mobile terminal

Also Published As

Publication number Publication date
CN106500751B (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN106327166A (en) Information processing method and mobile terminal
CN106131345A (en) The control method of a kind of proximity transducer, device and mobile terminal
CN106357897A (en) Fall information acquiring method and device
CN104954631A (en) Video processing method, device and system
CN106603548A (en) Application program login method and mobile terminal
CN106453829A (en) Method and apparatus for detecting fall-off height
CN106340925A (en) Charging control method, apparatus and terminal
CN106484555A (en) Abnormality detection and the method recovered and mobile terminal
CN106534550A (en) Text information reading method and mobile terminal
CN106055947A (en) Method and apparatus for unlocking mobile terminal through fingerprint, and mobile terminal
CN106055455A (en) Anti-interference method and device for key
EP3671451B1 (en) Method of automatically releasing resource occupied by background process of terminal, storage medium and terminal
CN104077184A (en) Progress control method of application program and computer system
CN106453839A (en) Antenna adjusting method and mobile terminal
CN103713943A (en) Native terminal operating system based application function realization method and device
CN105045522A (en) Touch control method and device for hand-held terminal
CN106445721A (en) Watchdog fault-tolerant processing method and mobile terminal
CN106500751A (en) The calibration steps and mobile terminal of proximity transducer
CN106385486B (en) A kind of control method of proximity sensor, device and mobile terminal
CN104574452A (en) Generating method and device for window background
CN107466015A (en) Access control method and Related product
CN105808043A (en) Setting method of terminal application and mobile terminal
CN105792299A (en) Optimum usage method for 3G network, optimum usage device and mobile terminal
CN106161601A (en) The method and device of request of data
CN105718141A (en) Method for moving desktop icon and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant