CN108279408B - Proximity sensor calibration method and device, mobile terminal and computer readable medium - Google Patents

Proximity sensor calibration method and device, mobile terminal and computer readable medium Download PDF

Info

Publication number
CN108279408B
CN108279408B CN201810067556.0A CN201810067556A CN108279408B CN 108279408 B CN108279408 B CN 108279408B CN 201810067556 A CN201810067556 A CN 201810067556A CN 108279408 B CN108279408 B CN 108279408B
Authority
CN
China
Prior art keywords
value
preset
proximity
approach
proximity sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810067556.0A
Other languages
Chinese (zh)
Other versions
CN108279408A (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 CN201810067556.0A priority Critical patent/CN108279408B/en
Publication of CN108279408A publication Critical patent/CN108279408A/en
Application granted granted Critical
Publication of CN108279408B publication Critical patent/CN108279408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating
    • G01S2007/4975Means for monitoring or calibrating of sensor obstruction by, e.g. dirt- or ice-coating, e.g. by reflection measurement on front-screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The embodiment of the application provides a method and a device for calibrating a proximity sensor, a mobile terminal and a computer readable medium, and belongs to the technical field of mobile communication. The method comprises the following steps: when detecting that the proximity sensor is started, acquiring a proximity value acquired by the proximity sensor according to preset calibration parameters; judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value; and if so, updating the preset calibration parameters according to the difference value between the approach value and the preset standard value. And updating the preset calibration parameter according to the difference value between the approach value and the preset standard value, so that the approach value acquired by the approach sensor according to the updated preset calibration parameter approaches the preset standard value more, and the measurement accuracy of the approach sensor is improved.

Description

Proximity sensor calibration method and device, mobile terminal and computer readable medium
Technical Field
The present application relates to the field of mobile communication technologies, and in particular, to a method and an apparatus for calibrating a proximity sensor, a mobile terminal, and a computer-readable medium.
Background
The proximity sensor who uses on mobile terminal at present adopts the principle of infrared emission and receipt more, if cover the protection film or paint the greasy dirt in proximity sensor's trompil position, can lead to proximity sensor to gather the proximity value too big, leads to mobile terminal to appear the dysfunction in the use, reduces user experience degree.
Disclosure of Invention
The application provides a method and a device for calibrating a proximity sensor, a mobile terminal and a computer readable medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a proximity sensor calibration method, including: when detecting that the proximity sensor is started, acquiring a proximity value acquired by the proximity sensor according to preset calibration parameters; judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value; and if so, updating the preset calibration parameters according to the difference value between the approach value and the preset standard value.
In a second aspect, an embodiment of the present application further provides a proximity sensor calibration apparatus, including: the device comprises an acquisition unit, a judgment unit and an updating unit. The acquisition unit is used for acquiring a proximity value acquired by the proximity sensor according to preset calibration parameters when the proximity sensor is detected to be started. And the judging unit is used for judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value. And if so, updating the preset calibration parameter according to the difference value between the approach value and the preset standard value.
In a third aspect, an embodiment of the present application further provides a mobile terminal, which includes a memory and a processor, where the memory is coupled with the processor. The memory stores instructions that, when executed by the processor, cause the processor to: when detecting that the proximity sensor is started, acquiring a proximity value acquired by the proximity sensor according to preset calibration parameters; judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value; and if so, updating the preset calibration parameters according to the difference value between the approach value and the preset standard value.
In a fourth aspect, the present application also provides a computer-readable medium having program code executable by a processor, where the program code causes the processor to execute the above method.
The embodiment of the application provides a method and a device for calibrating a proximity sensor, a mobile terminal and a computer readable medium. Judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value, if the approach value is larger than or equal to the preset maximum threshold value, indicating that the proximity sensor is in a normal use state, for example, a user calls through a mobile terminal, if the approach value is smaller than or equal to the preset standard value, indicating that the opening position of the proximity sensor is not blocked by a barrier such as a screen film or oil stain, and if the approach value is larger than the preset standard value and smaller than the preset maximum threshold value, indicating that the current approach value does not meet the standard, possibly because the opening position of the proximity sensor is not blocked by a barrier such as a screen film or oil stain, therefore, updating the preset calibration parameter according to a difference value between the approach value and the preset standard value, so that the proximity sensor acquires the approach value according to the updated preset calibration parameter, and updating the preset calibration parameter according to the difference value between the approach value and the preset standard value, the proximity sensor can more approach the preset standard value according to the updated preset calibration parameter, thereby better avoiding the functional disorder of the mobile terminal caused by the inaccurate proximity value collected by the proximity sensor in the using process and further improving the user experience.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
FIG. 2 illustrates a flow chart of a method of calibrating a proximity sensor provided by an embodiment of the present application;
FIG. 3 illustrates a method flow diagram of a proximity sensor calibration method provided by another embodiment of the present application;
FIG. 4 illustrates a method flow diagram of a proximity sensor calibration method provided by yet another embodiment of the present application;
FIG. 5 illustrates a block diagram of a proximity sensor calibration apparatus provided in an embodiment of the present application;
FIG. 6 illustrates a block diagram of a proximity sensor calibration apparatus provided in another embodiment of the present application;
fig. 7 shows a block diagram of a mobile terminal according to an embodiment of the present application for performing the method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, a mobile terminal 100 provided by an embodiment of the present application is shown, where the mobile terminal 100 is provided with a proximity sensor 114J, and specifically, the proximity sensor 114J is located on a front face of the mobile terminal 100, for example, near an earpiece located on the front face of the mobile terminal 100.
The proximity sensor 114J is used to detect a distance between a surrounding object and the mobile terminal 100. Specifically, proximity sensor 114J includes infrared transmitting tube and infrared receiving tube, then is equipped with the trompil on mobile terminal, and proximity sensor 114J is located this trompil, and infrared transmitting tube is used for sending the infrared ray, and when the object was close to, the light that infrared transmitting tube sent can be reflected by this object, is received by infrared receiving tube, then according to infrared receiving tube received light intensity just can obtain with the object between the distance. Specifically, the proximity value output by the proximity sensor 114J may be a distance from the target object, a light intensity value of light emitted from the infrared emission tube received by the infrared reception tube, or a current value converted according to the obtained light intensity value, and the proximity value is not limited as long as the distance from the proximity sensor to the target object can be demonstrated.
When the mobile terminal leaves the factory, the proximity sensor is generally calibrated, that is, an initial calibration value is set, and when the proximity sensor collects an initial sampling value, the initial sampling value is calibrated according to the initial calibration value to obtain an actually measured proximity value, for example, the actually measured proximity value is equal to the difference between the initial sampling value and the initial calibration value.
However, when the user uses the mobile terminal, the user may stick a film on the screen of the mobile terminal to block the opening of the proximity sensor, or carelessly cover the opening of the proximity sensor with a contaminant such as oil stain, which affects the measurement accuracy of the proximity value of the proximity sensor, for example, the proximity value measured by the proximity sensor is too large, and the corresponding distance is smaller than the actual distance.
Therefore, in order to solve the above-mentioned drawback, please refer to fig. 2, an embodiment of the present application provides a method for calibrating a proximity sensor, applied to a mobile terminal, for solving the problem of inaccurate measurement accuracy of the proximity sensor, and in particular, referring to fig. 2, the method includes: s201 to S203.
S201: and when the starting of the proximity sensor is detected, acquiring a proximity value acquired by the proximity sensor according to preset calibration parameters.
Some functions in the mobile terminal need use the proximity value collected by the proximity sensor, for example, the call application of the mobile terminal, when a user opens the call application, namely the call application is in operation in the foreground, the call application can obtain the proximity value collected by the proximity sensor when making a call or answering the call, and the mobile terminal is turned off when a receiver of the mobile terminal is judged to be positioned at the ear of the user according to the proximity value. When the proximity sensor is started, the mobile terminal acquires a proximity value acquired by the proximity sensor according to preset calibration parameters.
Specifically, the approach sensor acquires the approach value in a manner that an infrared receiving tube of the approach sensor receives light reflected by a target object and emitted by an infrared emitting tube, so as to obtain an initial sampling value, then obtain a preset calibration parameter, obtain a difference value between the initial sampling value and the preset calibration parameter, and use the difference value as the approach value acquired by the approach sensor. The preset calibration parameter may be pre-stored in a register of the mobile terminal, and the preset calibration parameter may be a numerical value, for example, an initial calibration value set when the mobile terminal leaves a factory.
In addition, in order to improve the calibration accuracy, a manner of acquiring the proximity value acquired by the proximity sensor according to the preset calibration parameter may be: acquiring a plurality of initial proximity values acquired by the proximity sensor according to preset calibration parameters; obtaining an average value of the plurality of initial approach values; and taking the average value as a proximity value acquired by the proximity sensor.
Specifically, when the proximity sensor is detected to be started, the proximity sensor collects a plurality of initial sampling values, and each initial sampling value is subtracted by a preset calibration parameter to obtain an initial calibration value corresponding to each initial sampling value. When the average value of the plurality of initial calibration values is obtained through calculation, the average value is used as the proximity value acquired by the proximity sensor in the embodiment of the application. Specifically, 5 initial proximity values may be acquired, and the average value of the 5 initial proximity values may be used as the proximity value acquired by the proximity sensor.
S202: and judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value.
The preset standard value is an expected value, and theoretically, if the proximity value acquired by the proximity sensor is equal to the preset standard value, the measurement accuracy of the proximity sensor is very accurate. When the proximity sensor is shielded by a film or other oil stains of the mobile terminal, the proximity value measured by the proximity sensor is too large, that is, larger than the preset standard value, and therefore, the proximity sensor needs to be calibrated so that the measured proximity value can be as close to the preset standard value as possible. Therefore, the approach values of the proximity sensors of different mobile terminals can be calibrated to the same value, the screen-off distances of different mobile terminals can be guaranteed to be the same, and differences among different mobile terminals are reduced.
In addition, the preset standard value is generally small, for example, if the total range of the proximity sensor is 1023, the preset standard value can be 200, namely one fifth of the total range of the proximity sensor, and the initial value is greater than 200, and the initial value is calibrated to 200, so that the approach value of the object in the process of approaching the proximity sensor has a large dynamic adjustment range. If the approach value acquired by the approach sensor is smaller than or equal to the preset standard value, the condition that the film sticking or oil pollution shielding does not occur currently can be judged, and the calibration of the approach sensor is not needed.
The preset maximum threshold value is greater than a preset standard value, which is a set larger value. If the proximity value acquired by the proximity sensor is greater than the preset maximum threshold value, the mobile terminal is in a proximity state, and the proximity sensor does not need to be calibrated at the moment. And the proximity sensor in the proximity state is shielded by the user. Although the approach value acquired by the proximity sensor can be too large due to the contaminants such as the film or the oil stain, the approach value is not larger than that of the mobile terminal in the approach state, so that the approach sensor is calibrated when the approach value is larger than a preset standard value and smaller than a preset maximum threshold value, that is, step S203 is executed, and the approach sensor is not calibrated when the approach value is smaller than or equal to the preset standard value or the approach value is larger than or equal to the preset maximum threshold value.
S203: and updating the preset calibration parameters according to the difference value between the approach value and the preset standard value.
Specifically, a difference value between the approach value and the preset standard value is obtained and recorded as a calibration difference value. And updating the preset calibration parameter to be the sum of the preset calibration parameter and the calibration difference. Assuming that the initial sampling value collected by the proximity sensor is x, the preset calibration value is offset1, and the preset standard value is pc, the proximity value collected by the proximity sensor is ps-x-offset 1, and x-ps + offset 1. Then the calibration difference is ps-pc, and the updated preset calibration parameter offset 1' is offset1+ ps-pc, then the approach value is recalculated according to the updated preset calibration parameter:
the value ps-x-offset 1' is ps + offset1-offset1-ps + pc, i.e. ps-pc, and the approach value after the calibration value is equal to the preset standard value, i.e. the calibration requirement is met.
As an embodiment, the updated preset calibration parameter is used for the proximity sensor to acquire the proximity value this time, that is, the updated preset calibration parameter is used to calibrate the proximity value of the proximity sensor in the time period between the start and the shutdown of the proximity sensor this time. At the next start-up, the proximity sensor collects the proximity value again according to the preset calibration parameter before updating, i.e. this time using the offset 1', and the next time using the offset 1. If the preset calibration parameter is an initial calibration parameter set when the mobile terminal leaves the factory, in some embodiments, if the preset calibration parameter is 0, the preset calibration parameter may be updated according to a difference between the proximity value and the preset standard value in the following manner: and taking the difference value between the approach value and the preset standard value as a preset calibration parameter, namely updating the preset calibration parameter to be the difference value between the approach value and the preset standard value.
As another embodiment, the updated preset calibration parameter is stored in a register of the mobile terminal, and may be continuously used, i.e., offset', the next time the proximity sensor is activated. If the value of the offset 'is too large, the proximity value acquired by the proximity sensor according to the offset' is too small, even smaller than 0, when the proximity sensor is started next time, which may cause a functional disorder of an application program that needs to use the proximity value.
Therefore, to address this deficiency, another embodiment of the present application provides a proximity sensor calibration method. Referring to fig. 3, an embodiment of the present application provides a method for calibrating a proximity sensor, which is applied to a mobile terminal and is used to solve a problem that a measurement accuracy of the proximity sensor is inaccurate, and specifically, referring to fig. 3, the method includes: s301 to S309.
S301: and when the starting of the proximity sensor is detected, acquiring a proximity value acquired by the proximity sensor according to preset calibration parameters.
S302: and judging whether the approach value is larger than a preset minimum threshold value or not.
The preset minimum threshold value is a numerical value set by a user according to the normal use requirement of the proximity sensor. As an embodiment, the preset minimum threshold is 0, when the proximity sensor uses a difference between the collected initial sampling value and the preset calibration parameter as the collected proximity value, if the preset calibration parameter is too large, the difference between the initial sampling value and the preset calibration parameter is a negative number, that is, less than 0, and when the application program of the mobile terminal reads that the proximity value of the proximity sensor is a negative number, the difference cannot be identified. Even if all negative numbers are changed to 0, when the proximity value acquired by the proximity sensor is read, the read value is 0 no matter what the difference between the initial sampling value and the preset calibration parameter is, as long as the value is a negative number, and therefore the accuracy of the read proximity value is insufficient. Step S303 is performed when the approach value is greater than a preset minimum threshold value, and step S305 is performed when the approach value is less than or equal to a preset minimum threshold value.
S303: and judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value.
Wherein the preset standard value is greater than the preset minimum threshold value.
S304: and updating the preset calibration parameters according to the difference value between the approach value and the preset standard value.
S305: and taking the difference value between the preset calibration parameter and a preset numerical value as a parameter difference value.
Since the proximity value acquired by the proximity sensor is less than or equal to 0 due to the preset calibration parameter being too large, the preset calibration parameter is gradually decreased until the proximity value is greater than the preset minimum threshold. Specifically, a difference between a preset calibration parameter and a preset value is obtained, for example, if the preset calibration parameter is offset and the preset value is c, then the difference between the preset calibration parameter and the preset value is offset-c, and then the parameter difference is offset-c.
S306: and acquiring a proximity value acquired by the proximity sensor according to the parameter difference value as the updated proximity value.
Since the proximity value ps is x-offset, where x is close to the initial sampling value collected by the sensor, the preset value is decreased in the preset calibration parameter, and accordingly, the proximity value should also be increased by the preset value, but in some embodiments, since the proximity sensor automatically updates all proximity values smaller than 0 to 0, the magnitudes of the initial sampling value and the true proximity value cannot be known when the proximity value is smaller than or equal to 0, and an error may occur if the proximity value is directly updated to the sum of the proximity value and the preset value. Modifying the value of the preset calibration parameter into a parameter difference value, indicating the proximity sensor to acquire a proximity value according to the preset calibration parameter modified into the parameter difference value, and naming the acquired proximity value as an updated proximity value.
S307: and judging whether the updated approach value is larger than a preset minimum threshold value or not.
If the updated approach value is greater than the preset minimum threshold, step S308 is performed, and if the updated approach value is less than or equal to the preset minimum threshold, step S309 is performed.
S308: and taking the parameter difference value as the preset calibration parameter.
If the updated approach value is greater than the preset minimum threshold, it means that the acquired approach value can be greater than the preset minimum threshold when the preset calibration parameter is equal to the parameter difference, and the parameter difference is taken as the preset calibration parameter, that is, the preset calibration parameter at this time is the parameter difference. For example, if the parameter difference is offset-c, the preset calibration parameter is equal to offset-c. Where C is a minimum unit value, for example, if all values such as the preset calibration parameter, the proximity value, etc. are integers, C is 1.
S309: updating the parameter difference to be the difference between the parameter difference and the preset value.
If the updated approach value is a negative number or 0, it indicates that the preset calibration parameter is too large, and the preset calibration parameter needs to be reduced again. The parameter difference is again subtracted by the preset value. Namely, the parameter difference is updated to the difference between the parameter difference and the preset value, and the step S306 is executed again, that is, the parameter difference obtained at this time is used for obtaining the approach value again, until the updated approach value is greater than the preset minimum threshold, the parameter difference at this time is used as the preset calibration parameter.
For example, if the preset value is 1, the preset minimum threshold is 0, and the preset calibration parameter is offset, the parameter difference is offset-1, and the offset-1 is used to obtain the proximity value, that is, obtain the updated proximity value. And if the updated approach value is equal to 0, updating the parameter difference value to be offset-2, using the offset-2 for acquiring the approach value, judging whether the acquired approach value is greater than 0, if so, updating the parameter difference value to be offset-3, continuously circulating according to the method until the acquired approach value is greater than 0, and taking the parameter difference value at the moment as a preset calibration parameter.
It should be noted that, the above steps are parts of detailed description, and reference may be made to the foregoing embodiments, which are not repeated herein.
In addition, when the acquired proximity value is equal to a preset standard value, the accuracy of the proximity value acquired by the proximity sensor is the highest, and therefore, further, the manner of determining whether the updated proximity value is greater than the preset minimum threshold value is to determine whether the updated proximity value is equal to the preset standard value, specifically, referring to fig. 4, the embodiment of the present application provides a proximity sensor calibration method, which is applied to a mobile terminal, and is used for solving the problem that the measurement accuracy of the proximity sensor is inaccurate, specifically, referring to fig. 4, and the method includes: s401 to S411.
S401: and when the starting of the proximity sensor is detected, acquiring a proximity value acquired by the proximity sensor according to preset calibration parameters.
S402: and judging whether the approach value is larger than a preset minimum threshold value or not.
S403: and judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value.
S404: and updating the preset calibration parameters according to the difference value between the approach value and the preset standard value.
S405: and taking the difference value between the preset calibration parameter and a preset numerical value as a parameter difference value.
S406: and judging whether the parameter difference is larger than zero.
In the embodiment of the present application, the predetermined minimum threshold is zero. The proximity value acquired by the proximity sensor is smaller than the preset minimum threshold value due to the fact that the preset calibration parameter is too large. The approach value may be increased by decreasing the preset calibration parameter, but the preset calibration parameter may be smaller than zero, resulting in a malfunction that the approach value cannot be read smoothly or that depends on the application of the approach value. Therefore, it is necessary to ensure that the preset calibration parameters cannot be less than zero. If the parameter difference is greater than zero, S407 is performed, and if the parameter difference is less than or equal to zero, S411 is performed.
S407: and acquiring a proximity value acquired by the proximity sensor according to the parameter difference value as the updated proximity value.
S408: and judging whether the updated approach value is equal to the preset standard value or not.
S409: updating the parameter difference to be the difference between the parameter difference and the preset value.
S410: and taking the parameter difference value as the preset calibration parameter.
S411: and modifying the preset calibration parameter to be zero.
The proximity value is equal to the initial sampling value minus the preset calibration parameter, and if the initial sampling value itself is smaller than the preset standard value, the preset calibration parameter needs to be a negative number if the proximity value is equal to the preset standard value, which may cause a malfunction or the proximity sensor cannot be normally used, and the like, and therefore, the judgment of whether the proximity value is equal to the preset standard value is combined with the judgment of whether the parameter difference is greater than zero, and the calibration is stopped when the proximity value is equal to the preset standard value or the parameter difference is less than or equal to 0.
Assume that the initial sampling value x is 4, the default calibration parameter offset is 8, the default standard value pc is 2, and the default value is 1. Then, the first time ps-4-8 obtained is equal to-4, and it is determined that-4 is not equal to 2, then offset-1 is 7, and it is determined that 7 is greater than 0, then the updated ps-4-7 is equal to-3, and it is determined that-3 is not equal to 2, then 1 is subtracted from the offset-1 to 6, and it is determined that 6 is greater than 0, the updated ps-4-6 is equal to-2, and it is determined that-2 is not equal to 2, and so on, after offset-6 is equal to 2, the updated ps-4-2 is obtained, then the updated approach value is equal to the preset standard value, that is, ps pc, and then the preset calibration parameter is 2.
Assuming that the initial sampling value x is 4, the default calibration parameter offset is 8, the default standard value pc is 6, and the default value is 1. Then the first time the value of ps-4-8 obtained is-4, decision-4 is not equal to 6, then offset-1 is 7, decision 7 is greater than 0, then updated value of ps-4-7-3 is obtained, decision-3 is not equal to 6, then offset-1 is subtracted again to 6, decision 6 is greater than 0, again updated value of ps-4-6-2, decision-2 is not equal to 6, and so on, when offset-8 is 0, updated value of ps-4-0 is 4, decision 4 is not equal to 6, but when the value of parameter difference is already equal to 0, then although the value of approach is not equal to the preset standard value at this time, the value of parameter difference is already equal to 0, then the preset calibration parameter is modified to zero directly. Further, although the approach value is not equal to the preset criterion value at this time, the approach value has already approached the preset criterion value as much as possible.
It should be noted that, the above steps are parts of detailed description, and reference may be made to the foregoing embodiments, which are not repeated herein.
Referring to fig. 5, an embodiment of the present application provides a proximity sensor calibration apparatus applied to a mobile terminal for solving the problem of inaccurate measurement accuracy of a proximity sensor, and specifically, referring to fig. 5, the apparatus includes: an acquisition unit 501, a judgment unit 502 and an update unit 503.
The acquiring unit 501 is configured to acquire a proximity value acquired by the proximity sensor according to a preset calibration parameter when the proximity sensor is detected to be started.
The determining unit 502 is configured to determine whether the approach value is greater than a preset standard value and less than a preset maximum threshold.
An updating unit 503, configured to update the preset calibration parameter according to a difference between the proximity value and the preset standard value if the proximity value is greater than the preset standard value.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 6, an embodiment of the present application provides a proximity sensor calibration apparatus applied to a mobile terminal for solving the problem of inaccurate measurement accuracy of a proximity sensor, and specifically, referring to fig. 6, the apparatus includes: an acquisition unit 601, a judgment unit 602, an update unit 603, and a zero-crossing adjustment unit 604.
The acquiring unit 601 is configured to acquire a proximity value acquired by the proximity sensor according to a preset calibration parameter when the proximity sensor is detected to be started.
The determining unit 602 is configured to determine whether the approach value is greater than a preset standard value and smaller than a preset maximum threshold. Specifically, the method is used for judging whether the approach value is greater than a preset minimum threshold value; if the value is larger than the preset minimum threshold value, judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value, wherein the preset standard value is larger than the preset minimum threshold value.
An updating unit 603, configured to update the preset calibration parameter according to a difference between the approach value and the preset standard value if yes.
A zero-crossing adjusting unit 604, configured to take a difference between the preset calibration parameter and a preset value as a parameter difference if the approach value is less than or equal to a preset minimum threshold; acquiring a proximity value acquired by the proximity sensor according to the parameter difference value, and taking the proximity value as the updated proximity value; judging whether the updated approach value is larger than a preset minimum threshold value or not; if so, taking the parameter difference value as the preset calibration parameter; if not, updating the parameter difference value to be the difference value between the parameter difference value and the preset value, and executing the acquisition of the proximity value acquired by the proximity sensor according to the parameter difference value again until the updated proximity value is larger than the preset minimum threshold value.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 1 again, based on the method and apparatus, the embodiment of the present application further provides a mobile terminal 100, which includes an electronic body 10, where the electronic body 10 includes a housing 12 and a main display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the main display 120 generally includes a display panel 111, and may also include a circuit or the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 7, in an actual application scenario, the mobile terminal 100 may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 7 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 7, or have a different configuration than shown in FIG. 1.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic body portion 10 or the primary display 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11 b, IEEE 802.2.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless Communication), and any other suitable protocol for short message Communication (wimax), as well as any other suitable protocol for instant messaging, and may even include those protocols that have not yet been developed.
The audio circuitry 110, earpiece 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the main display 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts the electrical signal into sound waves that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed in the electronic body portion 10 or the main display 120, examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, acceleration sensors 114F, proximity sensors 114J, and other sensors.
In particular, the light sensor may comprise a light sensor, a pressure sensor. Among them, the pressure sensor may detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor detects pressure generated by contact or pressing between the user and the mobile terminal, for example, contact or pressing between the user's ear and the mobile terminal. Accordingly, the pressure sensor may be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, and the magnitude of the pressure.
Referring to fig. 1 again, in the embodiment shown in fig. 1, the light sensor and the pressure sensor are disposed adjacent to the display panel 111. The light sensor may turn off the display output by the processor 102 when an object is near the main display 120, for example, when the electronic body portion 10 is moved to the ear.
As one of the motion sensors, the acceleration sensor 114F can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the mobile terminal 100. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the main display 120, and the touch screen 109 may collect touch operations of the user (for example, operations of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
The main display 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronic body portion 10 or the primary display 120.
The mobile terminal 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the mobile terminal 100. In this embodiment, the locator 119 implements the positioning of the mobile terminal 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the mobile terminal 100 by using a specific positioning technology and marking the position of the positioned object on an electronic map.
It should be understood that the mobile terminal 100 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobility. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
To sum up, the embodiment of the present application provides a method and an apparatus for calibrating a proximity sensor, a mobile terminal, and a computer readable medium, where when it is detected that the proximity sensor is started, the proximity sensor acquires a proximity value between the proximity sensor and a surrounding target object according to preset calibration parameters, and then acquires the proximity value acquired by the proximity sensor. Judging whether the approach value is larger than a preset standard value and smaller than a preset maximum threshold value, if the approach value is larger than or equal to the preset maximum threshold value, indicating that the proximity sensor is in a normal use state, for example, a user calls through a mobile terminal, if the approach value is smaller than or equal to the preset standard value, indicating that the opening position of the proximity sensor is not blocked by a barrier such as a screen film or oil stain, and if the approach value is larger than the preset standard value and smaller than the preset maximum threshold value, indicating that the current approach value does not meet the standard, possibly because the opening position of the proximity sensor is not blocked by a barrier such as a screen film or oil stain, therefore, updating the preset calibration parameter according to a difference value between the approach value and the preset standard value, so that the proximity sensor acquires the approach value according to the updated preset calibration parameter, and updating the preset calibration parameter according to the difference value between the approach value and the preset standard value, the proximity sensor can more approach the preset standard value according to the updated preset calibration parameter, thereby better avoiding the functional disorder of the mobile terminal caused by the inaccurate proximity value collected by the proximity sensor in the using process and further improving the user experience.
The mobile terminal can be automatically calibrated when the state of the mobile terminal in the hand of a user changes after leaving a factory (such as film sticking or greasy dirt sticking), so that the proximity sensor can keep the original initial value after the film sticking or the greasy dirt sticking, and the condition of abnormal proximity function after the film sticking or the greasy dirt sticking is avoided.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A method of proximity sensor calibration, comprising:
when the starting of a proximity sensor is detected, acquiring a proximity value obtained by the proximity sensor according to a difference value between an initial sampling value acquired by the proximity sensor and a preset calibration parameter;
judging whether the approach value is larger than a preset minimum threshold value or not;
if the approach value is smaller than or equal to a preset minimum threshold value, taking a difference value between the preset calibration parameter and a preset numerical value as a parameter difference value;
acquiring a proximity value acquired by the proximity sensor according to the parameter difference value, and taking the proximity value as the updated proximity value;
judging whether the updated approach value is larger than a preset minimum threshold value or not;
if the updated approach value is larger than a preset minimum threshold value, taking the parameter difference value as the preset calibration parameter;
if the updated approach value is smaller than or equal to a preset minimum threshold value, updating the parameter difference value to be a difference value between the parameter difference value and the preset numerical value, and performing acquisition of the approach value acquired by the approach sensor according to the parameter difference value again until the updated approach value is larger than the preset minimum threshold value;
if the approach value is greater than a preset minimum threshold value, judging whether the approach value is greater than a preset standard value and less than a preset maximum threshold value, wherein the preset standard value is greater than the preset minimum threshold value;
and if the difference value is larger than a preset standard value and smaller than a preset maximum threshold value, updating the preset calibration parameter according to the difference value between the approach value and the preset standard value.
2. The method of claim 1, wherein determining whether the updated proximity value is greater than a preset minimum threshold value; if so, taking the parameter difference value as the preset calibration parameter; if not, updating the parameter difference value to be a difference value between the parameter difference value and the preset value, and performing acquisition of a proximity value acquired by the proximity sensor according to the parameter difference value again until the updated proximity value is greater than a preset minimum threshold value, further comprising:
judging whether the updated approach value is equal to the preset standard value or not;
if so, taking the parameter difference value as the preset calibration parameter;
and if not, updating the parameter difference value into the difference value between the parameter difference value and the preset value, and executing acquisition of the proximity value acquired by the proximity sensor according to the parameter difference value again until the updated proximity value is equal to the preset standard value.
3. The method of claim 1, wherein the obtaining a proximity value acquired by the proximity sensor according to the parameter difference as the updated proximity value comprises:
judging whether the parameter difference is larger than zero;
and if the difference value is larger than zero, acquiring a proximity value acquired by the proximity sensor according to the parameter difference value, and taking the proximity value as the updated proximity value.
4. The method of claim 3, further comprising:
and if the preset calibration parameter is less than or equal to zero, modifying the preset calibration parameter to be zero.
5. The method according to any one of claims 1 to 4, wherein the obtaining of the proximity value acquired by the proximity sensor according to the preset calibration parameter comprises:
acquiring a plurality of initial proximity values acquired by the proximity sensor according to preset calibration parameters;
obtaining an average value of the plurality of initial approach values;
and taking the average value as a proximity value acquired by the proximity sensor.
6. A proximity sensor calibration device, comprising:
the device comprises an acquisition unit, a calibration unit and a control unit, wherein the acquisition unit is used for acquiring a proximity value obtained by the proximity sensor according to a difference value between an initial sampling value acquired by the proximity sensor and a preset calibration parameter when the proximity sensor is detected to be started;
the judging unit is used for judging whether the approach value is larger than a preset minimum threshold value or not; if the approach value is greater than a preset minimum threshold value, judging whether the approach value is greater than a preset standard value and less than a preset maximum threshold value, wherein the preset standard value is greater than the preset minimum threshold value;
the updating unit is used for updating the preset calibration parameters according to the difference value between the approach value and the preset standard value if the approach value is the preset standard value;
a zero-crossing adjusting unit, configured to take a difference between the preset standard parameter and a preset value as a parameter difference if the approach value is less than or equal to a preset minimum threshold; acquiring a proximity value acquired by the proximity sensor according to the parameter difference value, and taking the proximity value as the updated proximity value; judging whether the updated approach value is larger than a preset minimum threshold value or not; if so, taking the parameter difference value as the preset standard parameter; if not, updating the parameter difference value to be the difference value between the parameter difference value and the preset value, and executing the acquisition of the proximity value acquired by the proximity sensor according to the parameter difference value again until the updated proximity value is larger than the preset minimum threshold value.
7. A mobile terminal comprising a memory and a processor, the memory coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-5.
8. A computer-readable medium having program code executable by a processor, wherein the program code causes the processor to perform the method of any one of claims 1-5.
CN201810067556.0A 2018-01-24 2018-01-24 Proximity sensor calibration method and device, mobile terminal and computer readable medium Active CN108279408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810067556.0A CN108279408B (en) 2018-01-24 2018-01-24 Proximity sensor calibration method and device, mobile terminal and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810067556.0A CN108279408B (en) 2018-01-24 2018-01-24 Proximity sensor calibration method and device, mobile terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN108279408A CN108279408A (en) 2018-07-13
CN108279408B true CN108279408B (en) 2020-04-21

Family

ID=62804923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810067556.0A Active CN108279408B (en) 2018-01-24 2018-01-24 Proximity sensor calibration method and device, mobile terminal and computer readable medium

Country Status (1)

Country Link
CN (1) CN108279408B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110823963B (en) * 2018-08-09 2022-08-09 上海朴道水汇环保科技股份有限公司 TDS detection method and system, and terminal
CN109186657B (en) * 2018-09-26 2022-03-08 Oppo广东移动通信有限公司 Proximity sensor parameter calibration method and device, terminal equipment and storage medium
CN109724640B (en) * 2019-01-12 2021-04-06 Oppo广东移动通信有限公司 Proximity sensor calibration method, electronic device, and computer-readable storage medium
CN111239750B (en) * 2020-01-03 2023-03-03 歌尔光学科技有限公司 Proximity sensor testing method and proximity sensor testing system
CN111337907B (en) * 2020-02-26 2022-03-25 歌尔光学科技有限公司 Near object sensor calibration method, device, equipment and computer medium
CN111857154B (en) * 2020-08-02 2022-03-04 珠海一微半导体股份有限公司 Robot calibration detection method, chip and robot
CN111872939B (en) * 2020-08-02 2021-06-08 珠海市一微半导体有限公司 Robot automatic calibration detection method, chip and robot
CN112260672B (en) * 2020-10-19 2024-02-06 深圳市太美亚电子科技有限公司 Method for adjusting induction distance of infrared device
CN113031081A (en) * 2021-03-10 2021-06-25 维沃移动通信有限公司 Proximity sensing detection circuit, capacitance calibration method and device and electronic equipment
CN113091890A (en) * 2021-03-22 2021-07-09 北京小米移动软件有限公司 Calibration method of optical sensor, optical sensor and electronic device with optical sensor

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8775103B1 (en) * 2011-06-17 2014-07-08 Amazon Technologies, Inc. Proximity sensor calibration and configuration
US8826188B2 (en) * 2011-08-26 2014-09-02 Qualcomm Incorporated Proximity sensor calibration
CN105783900B (en) * 2016-03-15 2018-11-27 广东欧珀移动通信有限公司 A kind of calibration method and device of sensing data
CN106210227B (en) * 2016-07-06 2019-03-01 Oppo广东移动通信有限公司 A kind of calibration method of infrared proximity transducer, device and mobile terminal
CN106323353B (en) * 2016-08-12 2019-02-12 Oppo广东移动通信有限公司 A kind of calibration method of proximity sensor, device and terminal
CN106500751B (en) * 2016-10-20 2019-01-15 Oppo广东移动通信有限公司 The calibration method and mobile terminal of proximity sensor
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

Also Published As

Publication number Publication date
CN108279408A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN108279408B (en) Proximity sensor calibration method and device, mobile terminal and computer readable medium
CN108415024B (en) Proximity sensor calibration method and device, mobile terminal and computer readable medium
CN107896131B (en) Bluetooth signal adjusting method, device, test terminal, system and readable medium
CN107942306B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
CN107742523B (en) Voice signal processing method and device and mobile terminal
CN108712561B (en) Authority management method, device, mobile terminal and storage medium
CN103702029A (en) Method and device for prompting focusing during shooting
CN108199787B (en) Transmission power adjusting method, device, terminal testing system and electronic terminal
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108055092B (en) Bluetooth signal adjusting method, device, test terminal, system and readable medium
CN108234035B (en) Transmission power adjusting method, device, terminal testing system and electronic terminal
CN108235308B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108199789B (en) Bluetooth signal adjusting method, device, test terminal, system and readable medium
CN108199785B (en) Transmission power testing method, device and system and electronic equipment
CN108234034B (en) Bluetooth signal adjusting method, device, test terminal, system and readable medium
CN110536193B (en) Audio signal processing method and device
CN108924908B (en) WiFi scanning method and device and electronic device
CN108235237B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108388335B (en) Method for controlling mobile terminal and mobile terminal
CN111092671A (en) Signal strength reporting method and device, storage medium and terminal equipment
CN109104521B (en) Method and device for correcting approaching state, mobile terminal and storage medium
CN108200546B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108769364B (en) Call control method, device, mobile terminal and computer readable medium
CN113286335B (en) Frequency point switching method and device, storage medium and access point

Legal Events

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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant