CN106101402B - Method and system for adjusting sensing threshold of proximity sensor - Google Patents

Method and system for adjusting sensing threshold of proximity sensor Download PDF

Info

Publication number
CN106101402B
CN106101402B CN201610389214.1A CN201610389214A CN106101402B CN 106101402 B CN106101402 B CN 106101402B CN 201610389214 A CN201610389214 A CN 201610389214A CN 106101402 B CN106101402 B CN 106101402B
Authority
CN
China
Prior art keywords
proximity sensor
value
reflected infrared
infrared ray
ray intensity
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.)
Expired - Fee Related
Application number
CN201610389214.1A
Other languages
Chinese (zh)
Other versions
CN106101402A (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 CN201610389214.1A priority Critical patent/CN106101402B/en
Publication of CN106101402A publication Critical patent/CN106101402A/en
Application granted granted Critical
Publication of CN106101402B publication Critical patent/CN106101402B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Electronic Switches (AREA)

Abstract

The invention relates to a method and a system for adjusting a sensing threshold value of a proximity sensor, wherein the method comprises the following steps: acquiring a reflected infrared ray intensity value measured by a proximity sensor; judging the state of the proximity sensor according to the reflected infrared ray intensity value and the perception threshold value of the proximity sensor; if the proximity sensor is judged to be in a far state, calculating a change value of the reflected infrared ray intensity value; and when the change value is larger than a set value, executing an algorithm for adjusting the sensing threshold value of the proximity sensor, and adjusting the sensing threshold value of the proximity sensor according to the reflected infrared ray intensity value. The invention can improve the sensitivity of the proximity sensor by adjusting the sensing threshold value, and can not write data into the sensing threshold value register frequently, thereby reducing the system load and reducing the chip loss.

Description

Method and system for adjusting sensing threshold of proximity sensor
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a system for adjusting a sensing threshold value of a proximity sensor.
Background
The touch mobile phone has been widely used in daily life by virtue of its increasingly powerful functions. When a user calls, the face of the user is close to the touch screen of the mobile phone, and the user can hang up the phone due to false triggering, so that a proximity sensor is usually installed on the mobile phone, whether the face of the user is close to the mobile phone can be judged through the proximity sensor, and the touch screen of the mobile phone is closed when the face of the user is close to the mobile phone, so that false triggering is prevented.
Currently, proximity sensors are widely used in various applications of mobile phones, such as phone calls, automatic backlighting, touch screen black screen gestures, fingerprint control, and so on. The proximity sensor can measure the intensity value of the reflected infrared ray, generally, a sensing threshold value is set for the proximity sensor, and whether the infrared ray emitted by the proximity sensor is shielded or not is judged according to the sensing threshold value and the intensity value of the reflected infrared ray measured by the proximity sensor, so that whether an object is close to or far away from the proximity sensor or not is judged. However, the proximity sensor is easily affected by environmental factors, a user motion state and performance degradation of the mobile phone, so that sensitivity is reduced, and therefore, in order to improve the sensitivity of the proximity sensor, the current mobile phone dynamically adjusts a sensing threshold of the proximity sensor through a specific algorithm after the proximity sensor is turned on, so as to eliminate the influence of the environmental factors or the performance degradation of the mobile phone on the sensitivity of the proximity sensor. However, writing data into the sensing threshold register in the mobile phone chip quickly not only increases the burden of the system, but also increases the loss of the mobile phone chip, and in the past, the performance of the mobile phone is seriously affected.
Disclosure of Invention
Based on this, in order to solve the problems in the prior art, the invention provides a method and a system for adjusting the sensing threshold of a proximity sensor, which can improve the sensitivity of the proximity sensor without increasing the system load and the chip loss.
In order to achieve the purpose, the embodiment of the invention adopts the following technical scheme:
a method of adjusting a proximity sensor sensing threshold, comprising the steps of:
acquiring a reflected infrared ray intensity value measured by a proximity sensor;
judging the state of the proximity sensor according to the reflected infrared ray intensity value and the perception threshold value of the proximity sensor;
if the proximity sensor is judged to be in a far state, calculating a change value of the reflected infrared ray intensity value;
and when the change value is larger than a set value, executing an algorithm for adjusting the sensing threshold value of the proximity sensor, and adjusting the sensing threshold value of the proximity sensor according to the reflected infrared ray intensity value.
The invention also provides a system for adjusting the perception threshold of a proximity sensor, comprising:
the acquisition module is used for acquiring the reflected infrared ray intensity value measured by the proximity sensor;
the first judgment module is used for judging the state of the proximity sensor through the reflected infrared ray intensity value and the perception threshold value of the proximity sensor;
the calculation module is used for calculating the change value of the reflected infrared ray intensity value when the proximity sensor is judged to be in a far state;
the second judgment module is used for judging whether the change value is larger than a set value or not;
and the adjusting module is used for executing an algorithm for adjusting the sensing threshold value of the proximity sensor when the change value is larger than the set value, and adjusting the sensing threshold value of the proximity sensor according to the reflected infrared ray intensity value.
Based on the technical scheme of the invention, after the proximity sensor is enabled, the algorithm for adjusting the sensing threshold value of the proximity sensor is started only when the change value of the obtained reflected infrared ray intensity value is smaller than the set value, and the sensing threshold value of the proximity sensor is adjusted, so that the sensitivity of the proximity sensor can be improved, and the situation that data is frequently written into a sensing threshold value register can be effectively avoided, thereby reducing the burden of a system and reducing the loss of a chip.
Drawings
FIG. 1 is a schematic flow chart diagram of a method of adjusting a proximity sensor sensing threshold of the present invention in one embodiment;
FIG. 2 is a schematic diagram of the architecture of the system for adjusting the perception threshold of a proximity sensor of the present invention in one embodiment.
Detailed Description
The present invention will be described in further detail with reference to preferred embodiments and the accompanying drawings. It is to be understood that the following examples are illustrative only and are not intended to limit the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be understood that although the terms "first", "second", etc. are used hereinafter to describe various information, these information should not be limited to these terms, which are used only to distinguish one type of information from another. For example, "first" information may also be referred to as "second" information, and similarly, "second" information may also be referred to as "first" information, without departing from the scope of the present invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Fig. 1 is a schematic flow chart of a method for adjusting a proximity sensor sensing threshold according to the present invention, which is implemented by a control system of a terminal device (e.g., a mobile phone, a tablet, etc.) configured with a proximity sensor, and for convenience of description, the method for adjusting a proximity sensor sensing threshold according to the present embodiment is described below by taking a mobile phone configured with a proximity sensor as an example, but the scope of the present invention should not be limited by this, and the scope of the present invention should be limited by the scope of the claims. As shown in fig. 1, the method for adjusting the sensing threshold of the proximity sensor in the present embodiment includes the following steps:
step S100, obtaining a reflected infrared ray intensity value measured by a proximity sensor;
after the proximity sensor of the mobile phone works, the intensity value of the reflected infrared ray can be measured. In this embodiment, the control system of the mobile phone can obtain the reflected infrared intensity value measured by the proximity sensor.
In this embodiment, if an application program (e.g., a call application program) of the mobile phone needs to start the proximity sensor, the control system of the mobile phone may enable the proximity sensor to be turned on and enter a working state through the enable signal, and then the control system of the mobile phone obtains the reflected infrared intensity value measured by the proximity sensor.
Step S200, judging the state of the proximity sensor according to the reflected infrared ray intensity value and the perception threshold value of the proximity sensor; if the proximity sensor is determined to be in the distant state, the process proceeds to step S300;
the proximity sensor has two states, namely a far state and a close state, and the state of the proximity sensor can be judged through a reflected infrared ray intensity value measured by the proximity sensor and a perception threshold value of the proximity sensor.
In an alternative embodiment, the sensing threshold of the proximity sensor may be set to a single threshold H, and if the obtained reflected infrared intensity value is greater than the single threshold H, it indicates that the proximity sensor is close to an external object, and the emitted infrared is blocked by the external object, so that it is determined that the proximity sensor is in a proximity state, that is, the proximity sensor has a proximity event; if the obtained reflected infrared ray intensity value is smaller than the single threshold value H, the proximity sensor is far away from an external object, and the emitted infrared ray is not shielded by the external object or is not shielded enough, so that the proximity sensor is judged to be in a far state, namely a far event occurs to the proximity sensor; if the obtained reflected infrared ray intensity value is equal to the single threshold value H, it can be determined that the proximity sensor is in the far state, and it can also be determined that the proximity sensor is in the close state, and the setting is specifically performed according to actual requirements.
When the sensing threshold of the proximity sensor is a single threshold H, if the obtained reflected infrared ray intensity value fluctuates around the single threshold H, the state of the proximity sensor will change back and forth between far and near in a very short time, i.e. jitter will be generated, which is a great disadvantage for an application program using the state of the proximity sensor to control, therefore, in order to prevent the above jitter, in another alternative embodiment, the sensing threshold of the proximity sensor includes a near threshold N and a far threshold M, the near threshold N is a lower limit value for determining that the proximity sensor is in a near state, and the far threshold M is an upper limit value for determining that the proximity sensor is in a far state, wherein the near threshold N is greater than the far threshold M. When the obtained reflected infrared ray intensity value is larger than the approach threshold value N, judging that the approach sensor is in an approach state; and when the obtained reflected infrared ray intensity value is smaller than the far threshold value M, determining that the proximity sensor is in a far state. Given a specific example, assuming that the distance threshold M is 100, the proximity threshold N is 200, and the reflected infrared intensity value obtained at time t is d1Is 50, d1<M, the proximity sensor is in a distant state. Assuming the reflected IR intensity value d obtained at time t + Δ t2Is 150 due to d2Still not greater than the proximity threshold N, so it is still determined that the proximity sensor is in the distant state at this time. If the reflected infrared ray intensity value d is obtained at the moment of t +2 delta t3Is 220 due to d3>N, it is determined that the proximity sensor is in a proximity state. Then obtaining the reflected infrared ray intensity value d at the moment of t +3 delta t4Is 140 due to d4Still not less than the distance threshold M, the proximity sensor is still determined to be in the proximity state. Therefore, by setting the proximity threshold value N and the distance threshold value M, it is possible to effectively prevent the state of the proximity sensor from being shaken between the distance and the proximityAnd (6) moving.
Step S300, calculating the change value of the reflected infrared ray intensity value;
when the control system of the mobile phone judges that the proximity sensor is in a far state, the change value of the reflected infrared ray intensity value is calculated. The variation value is a difference value between the reflected infrared ray intensity value obtained this time and the reflected infrared ray intensity value obtained last time by the control system of the mobile phone.
Step S400, judging whether the change value is larger than a set value, if so, entering step S500;
in this embodiment, the setting value may be stored in the mobile phone in advance, and the control system of the mobile phone reads the setting value and then determines whether the change value of the reflected infrared ray intensity value is greater than the setting value.
And S500, executing an algorithm for adjusting the sensing threshold value of the proximity sensor, and adjusting the sensing threshold value of the proximity sensor according to the reflected infrared ray intensity value.
When the change value of the reflected infrared intensity value is smaller than the set value, the change amplitude of the reflected infrared intensity value is smaller, and the state of the proximity sensor is more stable, so that an algorithm for adjusting the sensing threshold value of the proximity sensor is not needed to be executed to adjust the sensing threshold value of the proximity sensor, data can be effectively prevented from being written into a sensing threshold value register frequently, the burden of a control system is reduced, and the loss of a mobile phone chip is also reduced. When the change value of the reflected infrared intensity value is larger than the set value, the change range of the reflected infrared intensity value is larger, and the state of the proximity sensor is likely to change at any time, so that the control system of the mobile phone executes an algorithm for adjusting the sensing threshold value of the proximity sensor, adjusts the sensing threshold value of the proximity sensor according to the obtained reflected infrared intensity value, for example, the control system of the mobile phone starts a process, the process can execute the algorithm for adjusting the sensing threshold value of the proximity sensor, adjusts the sensing threshold value according to the obtained reflected infrared intensity value, and writes a new sensing threshold value obtained after adjustment into a sensing threshold value register, so that the sensitivity of the proximity sensor is improved, and the influence of environmental factors and the performance degradation of the mobile. For a method of adjusting the sensing threshold of the proximity sensor according to the obtained reflected infrared ray intensity value, reference may be made to the prior art, which is not described herein.
In an alternative embodiment, referring to fig. 1, when the variation value of the reflected infrared ray intensity value is less than or equal to the set value, the acquisition of the reflected infrared ray intensity value is continued at the first polling rate. The control system of the mobile phone repeatedly executes the steps S100 to S400 until the change value of the reflected infrared ray intensity value is greater than the set value, and then executes the step S500 to adjust the sensing threshold of the proximity sensor.
In an alternative embodiment, still referring to fig. 1, after adjusting the perception threshold of the proximity sensor according to the obtained reflected ir intensity value, the obtaining of the reflected ir intensity value is continued at the second polling rate.
Considering that the state of the proximity sensor is stable when the variation value of the reflected infrared ray intensity value is less than or equal to the set value, and the state of the proximity sensor may be changed at any time when the variation value of the reflected infrared ray intensity value is greater than the set value, the second polling rate may be set greater than the first polling rate in order to quickly respond to the approach and departure events of the proximity sensor.
In an alternative embodiment, if the proximity sensor is determined to be in the proximity state through step S200, the algorithm for adjusting the proximity sensor sensing threshold is stopped, and the reflected infrared ray intensity value continues to be obtained at the third polling rate. Since the proximity sensor is already in the proximity state at this time, the third polling rate may be set to be greater than the first polling rate, which may quickly respond to a distancing event of the proximity sensor.
In addition, for the case that the sensing threshold of the proximity sensor includes a proximity threshold and a distance threshold, a simpler algorithm for adjusting the sensing threshold of the proximity sensor is also provided in this embodiment, that is, the obtained reflected infrared ray intensity value is set as a new distance threshold, so that the distance event of the proximity sensor can be responded quickly. For example, with reference to the specific example given above, assuming that the distance threshold M is 100 and the proximity threshold N is 200, the set value Δ is assumedd is 20, if the reflected infrared ray intensity value obtained at the moment t is d1Is 50 due to d1<M, so the proximity sensor is in a distant state, assuming d1The intensity value d of the reflected infrared ray obtained at the last moment0If the difference is greater than the set value delta d, executing an algorithm for adjusting the sensing threshold of the proximity sensor, and obtaining the currently obtained reflected infrared ray intensity value d1Set to a new distance threshold M, i.e. let M be d1Therefore, the distance threshold M at this time is 50, and the approach threshold N is 200. Assuming the reflected IR intensity value d obtained at time t + Δ t2Is 150 due to d2Is still not greater than the proximity threshold value N, so that it is still determined that the proximity sensor is in the distant state at this time, since d2-d1>Δ d, so an algorithm for adjusting the perception threshold of the proximity sensor is executed, which will obtain the currently obtained reflected infrared intensity value d2Set to a new distance threshold M, i.e. let M be d2Therefore, the distance threshold M at this time is 150, and the approach threshold N is 200. If the reflected infrared ray intensity value d is obtained at the moment of t +2 delta t3Is 220 due to d3>N, the proximity sensor is determined to be in the proximity state, and the algorithm for adjusting the sensing threshold of the proximity sensor is not executed any more, so the distance threshold M is still 150 and the proximity threshold N is 200. Then obtaining the reflected infrared ray intensity value d at the moment of t +3 delta t4Is 140 due to d4Has been less than the new distancing threshold M, the proximity sensor will be determined to be in the distancing state. In contrast to the specific examples given above, it is easy to find that, by executing the algorithm for adjusting the sensing threshold of the proximity sensor given in the present embodiment, the event of the proximity sensor getting far away can be responded quickly, and the sensitivity of the proximity sensor can be improved.
By the method for adjusting the sensing threshold of the proximity sensor, after the proximity sensor is enabled, when the change value of the obtained reflected infrared intensity value is smaller than the set value, the algorithm for adjusting the sensing threshold of the proximity sensor is started to adjust the sensing threshold of the proximity sensor, so that the sensitivity of the proximity sensor can be prevented from being influenced by environmental factors, the motion state of a user and the performance degradation of the terminal equipment, and the algorithm for adjusting the sensing threshold of the proximity sensor is stopped under other conditions, so that the frequent writing of data into a sensing threshold register can be effectively avoided, the burden of a control system is reduced, and the loss of a chip is also reduced.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention.
According to the method of the present invention, the present invention further provides a system for adjusting a sensing threshold of a proximity sensor, and the system for adjusting a sensing threshold of a proximity sensor of the present invention is described in detail below with reference to the accompanying drawings and preferred embodiments.
Fig. 2 is a schematic structural diagram of a system for adjusting a sensing threshold of a proximity sensor according to an embodiment of the present invention. As shown in fig. 2, the system for adjusting the sensing threshold of the proximity sensor in this embodiment includes:
the acquisition module 1 is used for acquiring a reflected infrared ray intensity value measured by the proximity sensor;
the first judgment module 2 is used for judging the state of the proximity sensor through the reflected infrared ray intensity value and the perception threshold value of the proximity sensor;
the calculating module 3 is used for calculating a change value of the reflected infrared ray intensity value when the proximity sensor is judged to be in a far state;
the second judging module 4 is used for judging whether the change value is larger than a set value;
and the adjusting module 5 is used for executing an algorithm for adjusting the sensing threshold value of the proximity sensor when the change value is larger than the set value, and adjusting the sensing threshold value of the proximity sensor according to the reflected infrared ray intensity value.
In an alternative embodiment, when the variation value is less than or equal to the set value, the obtaining module 1 continues to obtain the reflected infrared ray intensity value at a first polling rate; after the adjusting module 5 adjusts the sensing threshold of the proximity sensor according to the currently acquired reflected infrared ray intensity value, the acquiring module 1 continues to acquire the reflected infrared ray intensity value at the second polling rate.
In an alternative implementation manner, referring to fig. 2, the system for adjusting the sensing threshold of the proximity sensor in this embodiment further includes:
and the stopping module 6 is configured to stop executing the algorithm for adjusting the sensing threshold value of the proximity sensor if the first determining module 2 determines that the proximity sensor is in the proximity state after the adjusting module 5 adjusts the sensing threshold value of the proximity sensor according to the reflected infrared ray intensity value.
After the stopping module 6 stops executing the algorithm for adjusting the proximity sensor sensing threshold, the acquisition module 1 continues to acquire the reflected infrared intensity values at a third polling rate.
Preferably, the second polling rate and the third polling rate are both set to be greater than the first polling rate.
In an alternative embodiment, for a case that the sensing threshold of the proximity sensor includes a proximity threshold and a distance threshold, the adjusting module 5 sets the obtained reflected infrared ray intensity value as a new sensing threshold when adjusting the sensing threshold of the proximity sensor according to the reflected infrared ray intensity value.
The system for adjusting the sensing threshold value of the proximity sensor can execute the method for adjusting the sensing threshold value of the proximity sensor provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method of adjusting a proximity sensor sensing threshold, comprising the steps of:
acquiring a reflected infrared ray intensity value measured by a proximity sensor;
judging the state of the proximity sensor according to the reflected infrared ray intensity value and the perception threshold value of the proximity sensor;
if the proximity sensor is judged to be in a far state, calculating a change value of the reflected infrared ray intensity value; the change value is the difference value between the reflected infrared ray intensity value obtained this time and the reflected infrared ray intensity value obtained last time;
when the change value is larger than a set value, executing an algorithm for adjusting the sensing threshold value of the proximity sensor, and adjusting the sensing threshold value of the proximity sensor according to the obtained reflected infrared ray intensity value;
further comprising:
when the change value is smaller than or equal to the set value, continuously acquiring the reflected infrared ray intensity value at a first polling rate;
after the perception threshold value of the proximity sensor is adjusted according to the reflected infrared ray intensity value, continuously acquiring the reflected infrared ray intensity value at a second polling rate;
the second polling rate is greater than the first polling rate.
2. The method of adjusting a proximity sensor sensing threshold of claim 1, further comprising, after adjusting the sensing threshold of the proximity sensor according to the reflected infrared intensity value, the steps of:
and if the proximity sensor is in the proximity state, stopping executing the algorithm for adjusting the sensing threshold value of the proximity sensor, and continuously acquiring the reflected infrared ray intensity value at a third polling rate.
3. The method of adjusting a proximity sensor sensing threshold of claim 2, wherein the third polling rate is greater than the first polling rate.
4. The method of adjusting a proximity sensor perception threshold of claim 2, wherein the perception threshold includes a proximity threshold and a distance threshold, the proximity threshold being greater than the distance threshold; the process of judging the state of the proximity sensor through the reflected infrared ray intensity value and the perception threshold value of the proximity sensor comprises the following steps:
when the obtained reflected infrared ray intensity value is larger than the approach threshold value, judging that the approach sensor is in an approach state;
and when the obtained reflected infrared ray intensity value is smaller than the far threshold value, judging that the proximity sensor is in a far state.
5. The method of adjusting the perception threshold of a proximity sensor according to claim 4, wherein the adjusting the perception threshold of the proximity sensor according to the reflected infrared ray intensity value comprises:
and setting the obtained reflected infrared ray intensity value as a new far threshold value.
6. A system for adjusting a proximity sensor sensing threshold, comprising:
the acquisition module is used for acquiring the reflected infrared ray intensity value measured by the proximity sensor;
the first judgment module is used for judging the state of the proximity sensor through the reflected infrared ray intensity value and the perception threshold value of the proximity sensor;
the calculation module is used for calculating the change value of the reflected infrared ray intensity value when the proximity sensor is judged to be in a far state; the change value is the difference value between the reflected infrared ray intensity value obtained this time and the reflected infrared ray intensity value obtained last time;
the second judgment module is used for judging whether the change value is larger than a set value or not;
the adjusting module is used for executing an algorithm for adjusting the sensing threshold value of the proximity sensor when the change value is larger than the set value, and adjusting the sensing threshold value of the proximity sensor according to the obtained reflected infrared ray intensity value;
when the change value is smaller than or equal to the set value, the obtaining module continues to obtain the reflected infrared ray intensity value at a first polling rate;
after the adjusting module adjusts the perception threshold value of the proximity sensor according to the currently acquired reflected infrared ray intensity value, the acquiring module continues to acquire the reflected infrared ray intensity value at a second polling rate;
the second polling rate is greater than the first polling rate.
7. The system for adjusting a proximity sensor sensing threshold of claim 6, further comprising:
the stopping module is used for stopping executing the algorithm for adjusting the sensing threshold value of the proximity sensor if the first judging module judges that the proximity sensor is in the proximity state after the adjusting module adjusts the sensing threshold value of the proximity sensor according to the reflected infrared ray intensity value;
the acquisition module continues to acquire the reflected infrared intensity values at a third polling rate after the stop module stops executing the algorithm to adjust the proximity sensor perception threshold.
8. The system for adjusting proximity sensor sensing thresholds according to claim 7, wherein said third polling rate is greater than said first polling rate.
CN201610389214.1A 2016-06-01 2016-06-01 Method and system for adjusting sensing threshold of proximity sensor Expired - Fee Related CN106101402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610389214.1A CN106101402B (en) 2016-06-01 2016-06-01 Method and system for adjusting sensing threshold of proximity sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610389214.1A CN106101402B (en) 2016-06-01 2016-06-01 Method and system for adjusting sensing threshold of proximity sensor

Publications (2)

Publication Number Publication Date
CN106101402A CN106101402A (en) 2016-11-09
CN106101402B true CN106101402B (en) 2020-01-10

Family

ID=57448265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610389214.1A Expired - Fee Related CN106101402B (en) 2016-06-01 2016-06-01 Method and system for adjusting sensing threshold of proximity sensor

Country Status (1)

Country Link
CN (1) CN106101402B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791120B (en) * 2016-12-27 2020-05-12 Oppo广东移动通信有限公司 Control method and device for screen-off of mobile terminal
CN107991664A (en) * 2017-11-30 2018-05-04 努比亚技术有限公司 Calibration method, device and the computer-readable recording medium of ultrasonic wave threshold value
CN110865710B (en) * 2019-11-19 2023-08-18 Oppo(重庆)智能科技有限公司 Terminal control method and device, mobile terminal and storage medium
CN112162329B (en) * 2020-10-12 2022-08-05 深圳市锐尔觅移动通信有限公司 Proximity sensing detection method and device, storage medium and electronic equipment
CN113514902A (en) * 2021-06-22 2021-10-19 Tcl通讯(宁波)有限公司 Infrared proximity sensor dynamic threshold adjustment method and mobile device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN102609082A (en) * 2010-12-01 2012-07-25 宏达国际电子股份有限公司 Method for adjusting electronic device and related electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9689810B2 (en) * 2013-10-08 2017-06-27 Htc Corporation Electronic apparatus with proximity sensor and automatic calibration method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609082A (en) * 2010-12-01 2012-07-25 宏达国际电子股份有限公司 Method for adjusting electronic device and related electronic device
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor

Also Published As

Publication number Publication date
CN106101402A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106101402B (en) Method and system for adjusting sensing threshold of proximity sensor
CN106055097B (en) Bright screen control method and device and electronic equipment
CN106443639B (en) A kind of range calibration method and terminal
US10761642B2 (en) Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen
WO2019024642A1 (en) Process control method and apparatus, storage medium, and electronic device
CN107249084B (en) Mobile terminal, program calling method and computer-readable storage medium
US9965086B2 (en) Method for enabling function module of terminal, and terminal device
CN108759892B (en) Sensor calibration method, electronic device and computer-readable storage medium
CN107219515A (en) The parameter calibrating method and terminal of a kind of range sensor
CN107135316B (en) method and device for adjusting call volume, storage medium and terminal
US20170060301A1 (en) Method and apparatus for setting sensing threshold for a touch screen
WO2019024641A1 (en) Data synchronization method and apparatus, storage medium and electronic device
CN103377353A (en) Electronic device and touch screen protection method and protection system thereof
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor
CN106131334B (en) Method and device for controlling screen state of mobile terminal
TWI649677B (en) Method and device for controlling an electronic device
CN111698601A (en) Bluetooth headset, key sensitivity adjusting method and device thereof and readable storage medium
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
CN108801321B (en) Sensor calibration method, electronic device and computer-readable storage medium
CN106097984A (en) The method of proximity transducer, device and mobile terminal is opened in backlight adjusts
CN111104001A (en) Method and device for preventing screen from being touched mistakenly, mobile terminal and storage medium
CN112905035A (en) Touch screen control method and device and computer storage medium
CN113126815B (en) Key response control method and device, terminal equipment and storage medium
CN113835558A (en) Screen parameter adjusting method and device and electronic equipment
CN109510896B (en) Proximity sensor selection method and device, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200110