WO2011150891A2 - 一种终端确定物体接近的方法及装置 - Google Patents

一种终端确定物体接近的方法及装置 Download PDF

Info

Publication number
WO2011150891A2
WO2011150891A2 PCT/CN2011/076321 CN2011076321W WO2011150891A2 WO 2011150891 A2 WO2011150891 A2 WO 2011150891A2 CN 2011076321 W CN2011076321 W CN 2011076321W WO 2011150891 A2 WO2011150891 A2 WO 2011150891A2
Authority
WO
WIPO (PCT)
Prior art keywords
infrared
intensity value
terminal
infrared intensity
threshold
Prior art date
Application number
PCT/CN2011/076321
Other languages
English (en)
French (fr)
Other versions
WO2011150891A3 (zh
Inventor
郭雷
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2011/076321 priority Critical patent/WO2011150891A2/zh
Priority to CN201180000735.9A priority patent/CN102301684B/zh
Priority to EP11789270.3A priority patent/EP2701312A4/en
Publication of WO2011150891A2 publication Critical patent/WO2011150891A2/zh
Publication of WO2011150891A3 publication Critical patent/WO2011150891A3/zh
Priority to US14/139,006 priority patent/US9310486B2/en

Links

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
    • 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/04Systems determining the presence of a target
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/941Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated using an optical detector
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/9627Optical touch switches
    • H03K17/9631Optical touch switches using a light source as part of the switch
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/9627Optical touch switches
    • H03K17/9631Optical touch switches using a light source as part of the switch
    • H03K17/9636Optical touch switches using a light source as part of the switch using a pulsed light source
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/94Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
    • H03K2217/9401Calibration techniques
    • H03K2217/94026Automatic threshold calibration; e.g. threshold automatically adapts to ambient conditions or follows variation of input
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/94Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
    • H03K2217/941Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated using an optical detector
    • H03K2217/94102Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated using an optical detector characterised by the type of activation
    • H03K2217/94108Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated using an optical detector characterised by the type of activation making use of reflection
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/94Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
    • H03K2217/941Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated using an optical detector
    • H03K2217/94116Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated using an optical detector increasing reliability, fail-safe

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for determining proximity of an object by a terminal. Background technique
  • the emitter emits infrared light and receives infrared light that is reflected to the receiver end, and finally determines whether an object is close to the mobile phone based on the intensity of the received infrared light.
  • the mobile phone has an infrared light emitting diode and an infrared receiver to form a proximity light sensor.
  • the tube emits infrared rays. If an object reflects the emitted infrared rays, the reflected infrared rays are received by the infrared receiver after being blocked by a physical structure such as a screen of the mobile phone. Wherein, when the infrared emitting diode in the mobile phone works, the mobile phone receives the infrared light in real time through the infrared receiver, and obtains the intensity value of the reflected infrared light from the received infrared light, if the intensity value of the reflected infrared light exceeds a preset threshold value , to determine that an object is close to the phone.
  • an embodiment of the present invention provides a method and apparatus for determining the proximity of an object by a terminal.
  • the technical solution is as follows:
  • a method for a terminal to determine object proximity comprising:
  • the infrared receiver reads the first infrared intensity value when the infrared emitting diode is not working, and the infrared receiver reads the second infrared intensity value when the infrared emitting diode operates;
  • a method for a terminal to determine object proximity comprising:
  • the infrared emitting diode of the terminal When the infrared emitting diode of the terminal is turned on, receiving infrared rays from the outside, reading and buffering the intensity value of the received infrared rays;
  • the intensity value of the received infrared ray is read, and a difference between the intensity value of the received infrared ray and the buffered infrared intensity value is calculated;
  • a device for determining the proximity of an object comprising:
  • An infrared receiver for reading a first infrared intensity value when the infrared emitting diode is not operating, and reading a second infrared intensity value when the infrared emitting diode is in operation;
  • An acquiring module configured to obtain a first difference between the second infrared intensity value and the first infrared intensity value as a reflected infrared intensity value
  • a determining module configured to determine whether a second difference between the reflected infrared intensity value and the infrared intensity threshold stored by the terminal itself is greater than a preset second threshold
  • the first determining module is configured to determine that an object is close to the terminal when the second difference is greater than the preset second threshold.
  • a device for determining the proximity of an object comprising:
  • a reading module configured to receive infrared rays of the outside when the infrared emitting diode of the terminal is turned on, and read and buffer the intensity value of the received infrared rays;
  • a calculation module configured to read an intensity value of the received infrared light when receiving infrared rays from the outside, and calculate a difference between the received infrared intensity value and the buffered infrared intensity value;
  • a second determining module configured to determine that an object is close to the terminal when the calculated difference is greater than a preset second threshold.
  • the reflected infrared intensity value is obtained, and it is determined whether the second difference between the obtained reflected infrared intensity value and the infrared intensity threshold stored by the terminal itself is greater than a preset second threshold, when the second difference is greater than the pre-
  • the second threshold is set to determine that an object is close to the terminal.
  • FIG. 1 is a flowchart of a method for determining proximity of an object by a terminal according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for determining proximity of an object by a terminal according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for determining proximity of an object by a terminal according to Embodiment 3 of the present invention
  • FIG. 4 is a flowchart of a method for determining proximity of an object by a terminal according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic diagram of a device for determining proximity of an object according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic diagram of a device for determining proximity of an object according to Embodiment 6 of the present invention. detailed description
  • an embodiment of the present invention provides a method for determining, by a terminal, an object, including:
  • Step 101 The infrared receiver reads a first infrared intensity value when the infrared emitting diode is not working, and the infrared receiver reads a second infrared intensity value when the infrared emitting diode operates;
  • Step 102 Obtain a first difference between the second infrared intensity value and the first infrared intensity value as the reflected infrared intensity value;
  • Step 103 Determine whether a second difference between the reflected infrared intensity value and the infrared intensity threshold stored by the terminal itself is greater than a preset second threshold;
  • Step 104 When the second difference is greater than the preset second threshold, determining that an object is close to the terminal.
  • the reflected infrared intensity value is obtained, and it is determined whether the second difference between the obtained reflected infrared intensity value and the infrared intensity threshold stored by the terminal itself is greater than a preset second threshold, when the second difference is If it is greater than the preset second threshold, it is determined that an object is close to the terminal.
  • the second difference between the acquired infrared intensity value of the reflection and the infrared intensity threshold stored by the terminal itself is greater than a preset second threshold, the influence of the physical structure of the terminal may be eliminated, so that the same setting may be set in each terminal.
  • the second threshold is such that each terminal can accurately determine if an object is approaching.
  • Embodiments of the present invention provide a method for a terminal to determine an object approaching.
  • Infrared emitting diode and red in the terminal The proximity receiver is composed of a proximity light sensor, and the terminal uses the method for determining the approach of the object provided by the present embodiment to determine whether an object is close to the terminal.
  • the method includes:
  • Step 201 reading, by the infrared receiver, a first infrared intensity value Ir when the infrared emitting diode is not working, and buffering the first infrared intensity value Ir ;
  • the infrared ray emitting diode is stopped to continue to operate, the external infrared ray is received by the infrared ray receiver, and the first infrared ray intensity value Ir of the received infrared ray is read, wherein the infrared ray received when the infrared ray emitting diode is not working is infrared ray in the environment. Therefore, the first infrared intensity value Ir is an infrared intensity value in the environment.
  • Step 202 Turn on the infrared emitting diode in the terminal, receive the infrared light through the infrared receiver, and read the intensity value of the received infrared light Psl;
  • the infrared emitting diode in the terminal After the infrared emitting diode in the terminal is turned on, the infrared emitting diode emits infrared light in real time, and the infrared receiver in the terminal receives infrared light in real time, and the received infrared light includes infrared rays in the environment, and may also include infrared emitting diodes to emit outward.
  • the infrared ray is reflected back by the infrared ray; therefore, the intensity value Psl of the infrared ray received by the reading infrared ray receiver includes the first infrared ray intensity value Ir, and may also include the intensity value of the reflected infrared ray Psl lo
  • the infrared emitting diode in the terminal emits infrared rays outward, and some of the infrared rays are reflected back by the air and the like, and are received by the infrared receiver in the terminal; if there is an object in the direction in which the terminal emits infrared rays, the object will The infrared light emitted by the infrared emitting diode is reflected back and received by the infrared receiver in the terminal; if the object located in the direction in which the terminal emits infrared light is closer to the terminal, the infrared receiver receives the infrared light reflected by the object with greater intensity.
  • Step 203 Obtain a reflected infrared intensity value Psl1 according to the read infrared intensity value Psl and the first infrared intensity value Ir, and use the reflected infrared intensity value Psl as an infrared intensity threshold and buffer the infrared intensity threshold; specifically Calculating a first difference Psl l between the read infrared intensity value Psl and the first infrared intensity value Ir, the first difference Psl l being equal to Psl-Ir, wherein the calculated first difference Psl l is The reflected infrared intensity value, the calculated first difference value Psl is taken as the infrared intensity threshold, and the infrared line intensity threshold is buffered.
  • the reflected infrared rays need to be blocked by the physical structure such as the screen of the terminal, and then received by the infrared receiver in the terminal, so the first difference obtained, that is, the infrared intensity threshold has an influence due to the physical structure of the terminal. .
  • the infrared emitting diode in the terminal emits infrared light in real time, and the infrared receiver in the terminal receives the infrared light in real time.
  • the step 204 is continued.
  • Step 204 Receive infrared rays from the outside through an infrared receiver and read the intensity value of the received infrared rays Ps2, root Obtaining the reflected infrared intensity value Ps21 according to the received infrared intensity value Ps2 and the first infrared intensity value Ir ;
  • the infrared ray is received by the infrared receiver in the terminal, and the intensity value Ps2 of the received infrared ray is read, and the first difference Ps21 between the intensity value Ps2 of the read infrared ray and the first infrared intensity value Ir is calculated.
  • a difference Ps21 is equal to Ps2-Ir, wherein the calculated first difference Ps21 is a reflected infrared intensity value of 1.
  • the acquired infrared intensity value Ps21 also has an influence due to the physical structure of the terminal, but the effect is the same for each terminal.
  • Step 205 Compare the acquired infrared intensity value Ps21 with the buffered infrared intensity threshold Psl l, if less than, execute step 206, if it is greater, perform step 207;
  • Step 206 Update the buffered infrared intensity threshold Psll to obtain the reflected infrared intensity value Ps21, and end the operation;
  • Step 207 Calculate a second difference according to the acquired infrared intensity value Ps21 and the buffered infrared intensity threshold Psl l;
  • the buffered infrared intensity threshold Psll has an influence caused by the physical structure of the terminal, and the acquired infrared intensity value Ps21 also has an influence caused by the physical structure of the terminal; and because each time the same terminal is generated The effects are all the same, therefore, the effect of the second difference Ps21-Psll to eliminate the physical structural barrier of the terminal is calculated.
  • Step 208 Determine whether an object is close to the terminal according to the calculated second difference and the preset second threshold.
  • comparing the calculated second difference with the preset second threshold if the preset second threshold is exceeded, determining that an object is close to the terminal, and if the preset second threshold is not exceeded, determining that there is no object Close to the terminal.
  • the infrared receiver in the terminal receives the infrared light emitted by the object reflecting the infrared emitting diode, and the intensity is stronger, so that the calculated second difference is obtained.
  • the value is getting larger and larger, and when the calculated second difference exceeds the preset second threshold, it can be determined that an object is close to the terminal.
  • the calculated second difference eliminates the influence of the physical structure of the terminal, so that the same second threshold can be set in advance in each terminal to determine whether an object is close to the terminal.
  • steps 205 and 206 are optional steps, that is, after the proximity sensor is initially activated and the infrared intensity threshold is first buffered in step 203, the reflection can be directly obtained each time the reflected infrared intensity value is acquired.
  • the second difference between the infrared intensity value and the first buffered infrared intensity value determines whether an object is close to the terminal based on the second difference and the preset second threshold, so steps 205 and 206 may not be performed.
  • the infrared intensity threshold is first acquired and cached, and then the infrared rays are received every time. Obtaining a reflected infrared intensity value, and if the reflected infrared intensity value is less than a buffered infrared intensity threshold, calculating a second difference between the reflected infrared intensity value and the buffered infrared intensity threshold; wherein, for the same terminal, the terminal The effect on the infrared intensity value of each received reflection is the same, so when calculating the second difference between the reflected infrared intensity value and the buffered infrared intensity threshold, the influence of the physical structure of the terminal is eliminated, so that each The same second threshold is set in each terminal, and each terminal accurately determines whether an object is approaching.
  • an embodiment of the present invention provides a method for determining, by a terminal, an object, including:
  • Step 301 When the infrared emitting diode of the terminal is turned on, receiving infrared rays from the outside, reading and buffering the intensity value of the received infrared rays;
  • Step 302 When the infrared ray of the outside world is received again, the intensity value of the infrared ray received again is read, and the difference between the intensity value of the infrared ray received again and the value of the ray infrared intensity is calculated;
  • Step 303 When the calculated difference is greater than the preset second threshold, it is determined that an object is close to the terminal.
  • the intensity value of the received infrared light is first acquired and buffered, and then the intensity value of the received infrared light is read every time the infrared light of the outside is received, according to the read infrared intensity value and the buffered infrared intensity value.
  • the difference is calculated, and whether the object is close to the terminal is determined according to the calculated difference and the preset second threshold.
  • the terminal has the same influence on the intensity value of the reflected infrared rays received each time, so when calculating the difference between the read infrared intensity value and the buffered infrared intensity value, the influence of the physical structure of the terminal is eliminated.
  • the same second threshold can be set in each terminal, and each terminal can accurately determine whether an object is close.
  • Embodiments of the present invention provide a method for a terminal to determine an object approaching.
  • the terminal has an infrared emitting diode and an infrared receiver, and the terminal uses the method for determining the approach of the object provided by the present embodiment to determine whether an object is close to the terminal.
  • the method includes:
  • Step 401 When the infrared emitting diode in the terminal is turned on, receiving infrared rays from the outside through the infrared receiver; wherein, when the infrared emitting diode is turned on, the infrared emitting diode emits infrared light outward, and some of the emitted infrared rays are exposed to air and the like. Reflected back; In addition, infrared rays are also present in the environment; therefore, infrared rays received by the infrared receiver include infrared rays in the environment and reflected infrared rays.
  • Step 402 Read the intensity value of the received infrared light, and buffer the read infrared intensity value;
  • the received infrared rays include infrared rays in the environment and reflected infrared rays, so the intensity of the read infrared rays Values include the intensity value of the reflected infrared light and the intensity value of the infrared light in the environment.
  • the reflected infrared rays need to be blocked by the physical structure such as the screen of the terminal, and then received by the infrared receiver in the terminal. Therefore, the intensity value of the reflected reflected infrared rays is affected by the physical structure of the terminal.
  • the infrared emitting diode in the terminal emits infrared light in real time, and the infrared receiver in the terminal receives the infrared light in real time.
  • step 403 is performed.
  • Step 403 Receive infrared rays from the outside through the infrared receiver, and read the intensity values of the received infrared rays; wherein the received infrared rays include infrared rays in the environment and reflected infrared rays, so the intensity values of the infrared rays read this time include reflections.
  • the intensity value of infrared rays and the intensity value of infrared rays in the environment are the same as the intensity values of the infrared rays in the environment.
  • the reflected infrared rays need to be blocked by the physical structure such as the screen of the terminal, and then received by the infrared receiver in the terminal. Therefore, the intensity value of the reflected reflected infrared rays also has an influence due to the physical structure of the terminal.
  • Step 404 Calculate a difference between the read infrared intensity value and the buffered infrared intensity value
  • the intensity value of the infrared light that is read each time includes the same intensity value of the infrared rays in the environment, so the difference between the read infrared intensity value and the buffered infrared intensity value is calculated, and the difference obtained is reflected infrared light. Intensity difference.
  • the physical structure of the terminal has the same influence on the infrared rays received every reflection and the intensity value of the infrared rays in the environment of each reading is also the same, so the intensity value of the read infrared rays and the buffered infrared rays are The intensity value is used as a difference operation, which can affect the influence of the message terminal and the intensity of the infrared rays in the environment.
  • Step 405 Determine whether an object is close to the terminal according to the calculated difference value and the preset second threshold.
  • the same second threshold may be set in advance in each terminal to determine whether there is an object. Close to the terminal.
  • the process returns to step 403.
  • the intensity value of the received infrared light is first acquired and buffered, and then the intensity value of the received infrared light is read every time the infrared light of the outside is received, according to the read infrared intensity value and the buffered infrared intensity value.
  • the difference is calculated, and whether the object is close to the terminal is determined according to the calculated difference and the preset second threshold.
  • the terminal has the same influence on the intensity value of the reflected infrared rays received each time, so when calculating the difference between the read infrared intensity value and the buffered infrared intensity value, the influence of the physical structure of the terminal is eliminated. So that can be in every The same second threshold is set in each terminal, and each terminal can accurately determine whether an object is close.
  • Example 5
  • an embodiment of the present invention provides a device for determining, by a terminal, an object, including:
  • the infrared receiver 501 is configured to read a first infrared intensity value when the infrared emitting diode is not working, and read a second infrared intensity value when the infrared emitting diode operates;
  • the obtaining module 502 is configured to obtain a first difference between the second infrared intensity value and the first infrared intensity value as the reflected infrared intensity value;
  • the determining module 503 is configured to determine whether a second difference between the reflected infrared intensity value and the infrared intensity threshold stored by the terminal itself is greater than a preset second threshold;
  • the first determining module 504 is configured to determine that an object is close to the terminal when the second difference is greater than the preset second threshold. Further, the device further includes:
  • a comparison module configured to compare the magnitude of the reflected infrared intensity value with the infrared intensity threshold stored by the terminal; when the reflected infrared intensity value is less than the stored infrared intensity threshold, replace the stored infrared intensity threshold with the reflected infrared intensity value as a new The infrared intensity threshold is saved in the terminal.
  • the stored infrared intensity threshold is a first difference between the second infrared intensity value and the first infrared intensity value obtained when the photosensor is initially activated.
  • the intensity value of the received infrared light is first acquired and buffered, and then the intensity value of the received infrared light is read every time the infrared light of the outside is received, according to the read infrared intensity value and the buffered infrared intensity value.
  • the difference is calculated, and whether the object is close to the terminal is determined according to the calculated difference and the preset second threshold.
  • the terminal has the same influence on the intensity value of the reflected infrared rays received each time, so when calculating the difference between the read infrared intensity value and the buffered infrared intensity value, the influence of the physical structure of the terminal is eliminated.
  • the same second threshold can be set in each terminal, and each terminal can accurately determine whether an object is close.
  • an embodiment of the present invention provides a device for determining, by a terminal, an object, including:
  • the reading module 601 is configured to receive infrared rays of the outside when the infrared emitting diode of the terminal is turned on, and read and buffer the intensity value of the received infrared rays;
  • the calculating module 602 is configured to: when receiving infrared rays from the outside, read the intensity value of the received infrared rays, and calculate a difference between the received infrared intensity value and the buffered infrared intensity value;
  • the second determining module 603 is configured to determine that an object is close to the terminal when the calculated difference is greater than a preset second threshold.
  • the intensity value of the received infrared light is first acquired and buffered, and then the intensity value of the received infrared light is read every time the infrared light of the outside is received, according to the read infrared intensity value and the buffered infrared intensity value.
  • the difference is calculated, and whether the object is close to the terminal is determined according to the calculated difference and the preset second threshold.
  • the terminal has the same influence on the intensity value of the reflected infrared rays received each time, so when calculating the difference between the read infrared intensity value and the buffered infrared intensity value, the influence of the physical structure of the terminal is eliminated.
  • the same second threshold can be set in each terminal, and each terminal can accurately determine whether an object is close.
  • the foregoing apparatus for determining the proximity of an object in Embodiment 5 and Embodiment 6 may be a mobile phone, an e-book, a personal digital assistant (PDA), a handheld computer, a human-machine interactive terminal or the like. Handheld terminal device with display function.
  • the mobile phone when the device is a mobile phone, the mobile phone may further include: a casing, a circuit board, a processor, a touch screen, an infrared proximity sensor, a radio frequency circuit, a microphone, a speaker, and a power source;
  • the touch screen is disposed on the outer casing, the infrared proximity sensor is disposed under the touch screen, the circuit board is disposed inside the space enclosed by the outer casing, and the processor and the radio frequency circuit are disposed on the circuit board;
  • the processor includes the foregoing All or part of each module or unit; the processor is configured to process data input through the touch screen or the infrared proximity sensor, and/or output the processed data result through the touch screen;
  • the radio frequency circuit is used to establish communication between the mobile phone and the wireless network, and realize data receiving and sending of the mobile phone and the wireless network;
  • the microphone is configured to collect sound and convert the collected sound into sound data, so that the mobile phone sends the sound data to the wireless network through the radio frequency circuit;
  • the speaker is configured to restore sound data received by the mobile phone from the wireless network through the radio frequency circuit to sound and play the sound to the user;
  • the above power source is used to supply power to various circuits or devices of the above mobile phone.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Geophysics And Detection Of Objects (AREA)

Description

一种终端确定物体接近的方法及装置 技术领域
本发明涉及通信领域, 特别涉及一种终端确定物体接近的方法及装置。 背景技术
目前在各种手机中, 都大量应用说接近光传感器来确定是否有物体接近手机。 接近光传 感器的原理是, 发射器发射红外线, 并接收被反射到接收器端的红外线, 最后根据接收的 红外线的强度来判定是否有物体接近手机。
手机内部有红外线发射二级管和红外线接收器组成的接近光传感器, 红外线发射二级 书
管发射红外线, 如果有物体将发射的红外线反射回来, 则反射的红外线经过手机屏幕等物 理结构隔挡后被红外线接收器接收。 其中, 当手机中的红外线发射二级管工作时, 手机通 过红外线接收器实时接收红外线, 并从接收的红外线中获取反射的红外线的强度值, 如果 反射的红外线的强度值超过预设门限值, 则确定出有物体接近手机。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题:
红外线接收器接收的红外线要经过手机的屏幕等物理结构隔挡, 因此获取反射的红外 线的强度值存在因手机物体结构而产生的影响, 但每个手机产生的影响都各不相同, 如果 在每个手机中设置相同的门限值, 使得有些手机无法精确地确定出是否有物体接近。 发明内容
为了使每个终端都能精确地确定是否有物体接近, 本发明实施例提供了一种终端确定 物体接近的方法及装置。 所述技术方案如下:
一种终端确定物体接近的方法, 所述方法包括:
红外线接收器读取红外发射二极管不工作时的第一红外线强度值, 并且红外线接受器 读取红外发射二极管工作时的第二红外线强度值;
获取所述第二红外线强度值与所述第一红外线强度值之间的第一差值, 作为反射的红 外线强度值;
判断所述反射的红外线强度值与终端自身存储的红外线强度阈值之间的第二差值是否 大于预设的第二阈值; 当所述第二差值大于所述预设的第二阈值时, 则确定有物体接近所述终端。
一种终端确定物体接近的方法, 所述方法包括:
当终端的红外线发射二极管开启时, 接收外界的红外线, 读取并缓存所述接收的红外 线的强度值;
当再次接收到外界的红外线时, 读取所述接收的红外线的强度值, 计算出所述接收的 红外线的强度值与缓存的红外线强度值之间的差值;
当所述计算的差值大于预设的第二阈值时, 则确定有物体接近所述终端。
一种终端确定物体接近的装置, 所述装置包括:
红外线接收器, 用于读取红外发射二极管不工作时的第一红外线强度值, 并且读取红 外发射二极管工作时的第二红外线强度值;
获取模块, 用于获取所述第二红外线强度值与所述第一红外线强度值之间的第一差值, 作为反射的红外线强度值;
判断模块, 用于判断所述反射的红外线强度值与终端自身存储的红外线强度阈值之间 的第二差值是否大于预设的第二阈值;
第一确定模块, 用于当所述第二差值大于所述预设的第二阈值时, 则确定有物体接近 所述终端。
一种终端确定物体接近的装置, 所述装置包括:
读取模块, 用于当终端的红外线发射二极管开启时, 接收外界的红外线, 读取并缓存 所述接收的红外线的强度值;
计算模块, 用于当再次接收到外界的红外线时, 读取所述接收的红外线的强度值, 计 算出所述接收的红外线的强度值与缓存的红外线强度值之间的差值;
第二确定模块, 用于当所述计算的差值大于预设的第二阈值时, 则确定有物体接近所 述终端。
在本发明中, 获取反射的红外线强度值, 判断获取反射的红外线强度值与终端自身存 储的红外线强度阈值之间的第二差值是否大于预设的第二阈值, 当第二差值大于预设的第 二阈值, 则确定有物体接近终端。 在判断获取反射的红外线强度值与终端自身存储的红外 线强度阈值之间的第二差值是否大于预设的第二阈值时可以消除终端的物理结构产生的影 响, 如此可以在每个终端设置相同的第二阈值, 从而使得每个终端都能精确地确定是否有 物体接近。 附图说明
图 1是本发明实施例 1提供的 种终端确定物体接近的方法流程图;
图 2是本发明实施例 2提供的 种终端确定物体接近的方法流程图;
图 3是本发明实施例 3提供的 种终端确定物体接近的方法流程图;
图 4是本发明实施例 4提供的 种终端确定物体接近的方法流程图;
图 5是本发明实施例 5提供的 种终端确定物体接近的装置示意图;
图 6是本发明实施例 6提供的 种终端确定物体接近的装置示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。 实施例 1
如图 1所示, 本发明实施例提供了一种终端确定物体接近的方法, 包括:
步骤 101 : 红外线接收器读取红外发射二极管不工作时的第一红外线强度值, 并且红外 线接受器读取红外发射二极管工作时的第二红外线强度值;
步骤 102: 获取第二红外线强度值与第一红外线强度值之间的第一差值, 作为反射的红 外线强度值;
步骤 103 :判断反射的红外线强度值与终端自身存储的红外线强度阈值之间的第二差值 是否大于预设的第二阈值;
步骤 104: 当第二差值大于所述预设的第二阈值时, 则确定有物体接近终端。
在本发明实施例中, 获取反射的红外线强度值, 判断获取反射的红外线强度值与终端 自身存储的红外线强度阈值之间的第二差值是否大于预设的第二阈值, 当第二差值大于预 设的第二阈值, 则确定有物体接近终端。 在判断获取反射的红外线强度值与终端自身存储 的红外线强度阈值之间的第二差值是否大于预设的第二阈值时可以消除终端的物理结构产 生的影响, 如此可以在每个终端设置相同的第二阈值, 从而使得每个终端都能精确地确定 是否有物体接近。 实施例 2
本发明实施例提供了一种终端确定物体接近的方法。 终端内有红外线发射二极管和红 外线接收器组成的接近光传感器, 且终端利用本实施提供的确定物体接近的方法, 来确定 是否有物体接近终端。 参见图 2, 该方法包括:
步骤 201 : 通过红外线接收器读取红外线发射二极管不工作时的第一红外线强度值 Ir, 并缓存第一红外线强度值 Ir;
具体地, 停止红外线发射二极管继续工作, 通过红外线接收器接收外界的红外线, 并 读取接收的红外线的第一红外线强度值 Ir,其中,红外线发射二极管不工作时接收的红外线 为环境中的红外线, 因此第一红外线强度值 Ir为环境中的红外线强度值。
步骤 202: 开启终端内的红外线发射二极管, 通过红外线接收器接收红外线并读取接收 的红外线的强度值 Psl ;
其中, 开启终端内的红外线发射二极管后, 红外线发射二极管实时地向外发射红外线, 终端内的红外线接收器实时接收红外线, 且接收的红外线包括环境中的红外线, 还可以包 括红外线发射二极管向外发射的红外线被反射回来的红外线; 因此, 读取红外线接收器接 收的红外线的强度值 Psl 包括第一红外线强度值 Ir, 还可以包括反射的红外线的强度值 Psl l o
其中, 终端内的红外线发射二极管向外发射红外线, 会因空气等因素将部分的红外线 反射回去, 并被终端内的红外线接收器接收; 如果位于终端发射红外线的方向上有物体, 则物体会将红外线发射二极管发射的红外线反射回去, 并被终端内的红外线接收器接收; 如果位于终端发射红外线的方向上的物体离终端越接近, 红外线接收器接收到物体反射的 红外线的强度就越大。
步骤 203 : 根据读取的红外线的强度值 Psl和第一红外线强度值 Ir, 获取反射的红外线 强度值 Psl l, 将反射的红外线强度值 Psl l作为红外线强度阈值并缓存该红外线强度阈值; 具体地,计算读取的红外线的强度值 Psl与第一红外线强度值 Ir之间的第一差值 Psl l, 第一差值 Psl l等于 Psl-Ir, 其中, 计算的第一差值 Psl l即为反射的红外线强度值, 将计算 的第一差值 Psl l作为红外线强度阈值, 并缓存该红外线线强度阈值。
其中, 反射的红外线需要经过终端的屏幕等物理结构隔挡后, 被终端内的红外线接收 器接收, 因此获取的第一差值, 即红外线强度阈值存在因终端的物理结构隔挡而产生的影 响。
其中, 终端内的红外线发射二极管实时地向外发射红外线, 且终端内的红外线接收器 实时接收红外线, 当再次接收到红外线时, 继续执行步骤 204。
步骤 204: 通过红外线接收器接收外界的红外线并读取接收的红外线的强度值 Ps2, 根 据接收的红外线的强度值 Ps2和第一红外线强度值 Ir获取反射的红外线强度值 Ps21 ;
具体地, 通过终端内的红外线接收器接收红外线, 并读取接收的红外线的强度值 Ps2, 计算读取的红外线的强度值 Ps2与第一红外线强度值 Ir之间的第一差值 Ps21,第一差值 Ps21 等于 Ps2-Ir, 其中, 计算出的第一差值 Ps21为反射的红外线强度值 1。
其中, 获取反射的红外线强度值 Ps21也存在因终端的物理结构而产生的影响, 但是对 于同一个终端, 每次产生的影响都是相同的。
步骤 205: 比较获取反射的红外线强度值 Ps21与缓存的红外线强度阈值 Psl l, 如果小 于, 则执行步骤 206, 如果大于, 则执行步骤 207;
步骤 206: 将缓存的红外线强度阈值 Psll更新为获取反射的红外线强度值 Ps21, 结束 操作;
步骤 207: 根据获取反射的红外线强度值 Ps21和缓存的红外线强度阈值 Psl l, 计算出 第二差值;
其中, 缓存的红外线强度阈值 Psll存在因终端的物理结构隔挡而产生的影响, 获取反 射的红外线强度值 Ps21也存在因终端的物理结构隔挡而产生的影响; 又因为对于同一终端 每次产生的影响都相同, 因此, 计算出第二差值 Ps21-Psll消除终端的物理结构隔挡而产生 的影响。
步骤 208: 根据计算的第二差值和预设的第二阈值确定是否有物体接近终端。
具体地, 比较计算的第二差值与预设的第二阈值, 如果超过预设的第二阈值, 则确定 出有物体接近终端, 如果未超过预设的第二阈值, 则确定出没有物体接近终端。
其中, 当位于终端发射红外线的方向上的物体离终端越来越近时, 终端内的红外线接 收器接收到物体反射红外线发射二极管发射的红外线的强度越来越强, 使得计算出的第二 差值越来越大, 当计算出的第二差值超过预设的第二阈值, 则可以确定出有物体接近终端。
其中, 计算出的第二差值消除了终端的物理结构隔挡而产生的影响, 因此可以在每个 终端中预先设置相同的第二阈值, 来确定是否有物体接近终端。
其中, 当终端的红外线接收再次接收到外界的红外线时, 返回执行步骤 204。
其中, 在本实施例中, 步骤 205和 206是可选的步骤, 即接近光传感器初次启动并在 步骤 203 中首次缓存红外强度阈值之后, 每次获取到反射的红外线强度值时可以直接获取 反射的红外线强度值与首次缓存的红外线强度值之间的第二差值并根据第二差值和预设的 第二阈值确定是否有物体接近终端, 所以可以不需要执行步骤 205和 206。
在本发明实施例中, 首先获取并缓存红外线强度阈值, 然后每当接收到外界的红外线 时, 获取反射的红外线强度值, 如果反射的红外线强度值小于缓存的红外线强度阈值, 则 计算反射的红外线强度值与缓存的红外线强度阈值之间的第二差值; 其中, 对于同一终端, 终端对每次接收的反射的红外线强度值的影响都相同, 因此在计算反射的红外线强度值与 缓存的红外线强度阈值之间的第二差值时, 消除终端的物理结构的影响, 从而可以在每个 终端中设置相同的第二阈值, 并使每个终端精确地确定是否有物体接近。 实施例 3
如图 3所示, 本发明实施例提供了一种终端确定物体接近的方法, 包括:
步骤 301 : 当终端的红外线发射二极管开启时, 接收外界的红外线, 读取并缓存接收的 红外线的强度值;
步骤 302: 当再次接收到外界的红外线时, 读取再次接收的红外线的强度值, 计算出再 次接收的红外线的强度值与缓存的红外线强度值之间的差值;
步骤 303 : 当计算的差值大于预设的第二阈值时, 则确定有物体接近终端。
在本发明实施例中, 首先获取并缓存接收的红外线的强度值, 然后每当接收到外界的 红外线时, 读取接收的红外线的强度值, 根据读取的红外线强度值和缓存的红外线强度值 计算出差值, 根据计算出的差值和预设的第二阈值确定是否有物体接近终端。 其中, 对于 同一终端, 终端对每次接收的反射的红外线的强度值的影响都相同, 因此在计算读取的红 外线强度值与缓存的红外线强度值的差值时, 消除终端的物理结构的影响, 从而可以在每 个终端中设置相同的第二阈值, 并使每个终端都能精确地确定是否有物体接近。 实施例 4
本发明实施例提供了一种终端确定物体接近的方法。 终端内有红外线发射二极管和红 外线接收器, 且终端利用本实施提供的确定物体接近的方法, 来确定是否有物体接近终端。 参见图 4, 该方法包括:
步骤 401 :当终端内的红外线发射二极管开启时,通过红外线接收器接收外界的红外线; 其中, 当红外线发射二极管开启时, 红外线发射二极管向外发射红外线, 且存在部分 发射的红外线会被空气等物质反射回来; 另外, 环境中也会存在红外线; 因此, 红外线接 收器接收的红外线包括环境中的红外线和反射的红外线。
步骤 402: 读取接收的红外线的强度值, 并缓存读取的红外线强度值;
其中, 接收的红外线包括环境中的红外线和反射的红外线, 因此读取的红外线的强度 值包括反射的红外线的强度值和环境中的红外线的强度值。
其中, 反射的红外线需要经过终端的屏幕等物理结构隔挡后, 被终端内的红外线接收 器接收, 因此读取的反射的红外线的强度值存在因终端的物理结构隔挡而产生的影响。
其中, 终端内的红外线发射二极管实时地向外发射红外线, 终端内的红外线接收器实 时地接收红外线, 当再次接收到红外线时, 执行步骤 403。
步骤 403 : 通过红外线接收器接收外界的红外线, 并读取接收的红外线的强度值; 其中, 接收的红外线包括环境中的红外线和反射的红外线, 因此此次读取的红外线的 强度值包括反射的红外线的强度值和环境中的红外线的强度值。 另外, 环境中的红外线的 强度较稳定, 因此每次读取的红外线的强度值中包括环境中的红外线的强度值都相同。
其中, 反射的红外线需要经过终端的屏幕等物理结构隔挡后, 被终端内的红外线接收 器接收, 因此读取的反射的红外线的强度值也存在因终端的物理结构隔挡而产生的影响。
步骤 404: 计算读取的红外线强度值和缓存的红外线强度值之间的差值;
其中, 每次读取的红外线的强度值中包括环境中的红外线的强度值都相同, 因此将读 取的红外线强度值与缓存的红外线强度值作差运算, 得到的差值为反射的红外线的强度差 值。
其中, 对于同一终端, 终端的物理结构对每次接收反射的红外线的影响都相同以及每 次读取的环境中的红外线的强度值也相同, 因此将读取的红外线的强度值与缓存的红外线 的强度值作差运算, 可以消息终端的影响以及环境中的红外线的强度值。
步骤 405 : 根据计算的差值和预设的第二阈值确定是否有物体接近终端。
具体地, 判断计算的差值是否超过预设的第二阈值, 如果是, 则确定出有物体接近终 端, 如果否, 则确定出没有物体接近终端。
其中, 在计算读取的红外线强度值和缓存的红外线强度值之间的差值时消除终端的物 理结构产生的影响, 因此可以在每个终端中预先设置相同的第二阈值来确定是否有物体接 近终端。
其中, 当终端内的红外线接收器再次接收的外界的红外线时, 返回执行步骤 403。 在本发明实施例中, 首先获取并缓存接收的红外线的强度值, 然后每当接收到外界的 红外线时, 读取接收的红外线的强度值, 根据读取的红外线强度值和缓存的红外线强度值 计算出差值, 根据计算出的差值和预设的第二阈值确定是否有物体接近终端。 其中, 对于 同一终端, 终端对每次接收的反射的红外线的强度值的影响都相同, 因此在计算读取的红 外线强度值与缓存的红外线强度值的差值时, 消除终端的物理结构的影响, 从而可以在每 个终端中设置相同的第二阈值, 并使每个终端都能精确地确定是否有物体接近。 实施例 5
如图 5所示, 本发明实施例提供了一种终端确定物体接近的装置, 包括:
红外线接收器 501, 用于读取红外发射二极管不工作时的第一红外线强度值, 并且读取 红外发射二极管工作时的第二红外线强度值;
获取模块 502, 用于获取第二红外线强度值与第一红外线强度值之间的第一差值, 作为 反射的红外线强度值;
判断模块 503,用于判断反射的红外线强度值与终端自身存储的红外线强度阈值之间的 第二差值是否大于预设的第二阈值;
第一确定模块 504, 用于当第二差值大于预设的第二阈值时, 则确定有物体接近终端。 进一步地, 该装置还包括:
比较模块, 用于比较反射的红外线强度值与终端存储的红外线强度阈值的大小; 当反 射的红外线强度值小于存储的红外线强度阈值时, 用反射的红外线强度值替换存储的红外 线强度阈值作为新的红外线强度阈值保存在终端中。
其中, 存储的红外线强度阈值为接近光传感器初次启动时获取的第二红外线强度值与 第一红外线强度值之间的第一差值。
在本发明实施例中, 首先获取并缓存接收的红外线的强度值, 然后每当接收到外界的 红外线时, 读取接收的红外线的强度值, 根据读取的红外线强度值和缓存的红外线强度值 计算出差值, 根据计算出的差值和预设的第二阈值确定是否有物体接近终端。 其中, 对于 同一终端, 终端对每次接收的反射的红外线的强度值的影响都相同, 因此在计算读取的红 外线强度值与缓存的红外线强度值的差值时, 消除终端的物理结构的影响, 从而可以在每 个终端中设置相同的第二阈值, 并使每个终端都能精确地确定是否有物体接近。 实施例 6
如图 6所示, 本发明实施例提供了一种终端确定物体接近的装置, 包括:
读取模块 601, 用于当终端的红外线发射二极管开启时, 接收外界的红外线, 读取并缓 存接收的红外线的强度值;
计算模块 602, 用于当再次接收到外界的红外线时, 读取接收的红外线的强度值, 计算 出接收的红外线的强度值与缓存的红外线强度值之间的差值; 第二确定模块 603,用于当计算的差值大于预设的第二阈值时,则确定有物体接近终端。 在本发明实施例中, 首先获取并缓存接收的红外线的强度值, 然后每当接收到外界的 红外线时, 读取接收的红外线的强度值, 根据读取的红外线强度值和缓存的红外线强度值 计算出差值, 根据计算出的差值和预设的第二阈值确定是否有物体接近终端。 其中, 对于 同一终端, 终端对每次接收的反射的红外线的强度值的影响都相同, 因此在计算读取的红 外线强度值与缓存的红外线强度值的差值时, 消除终端的物理结构的影响, 从而可以在每 个终端中设置相同的第二阈值, 并使每个终端都能精确地确定是否有物体接近。 需要说明的是, 实施例 5和实施例 6中的上述一种终端确定物体接近的装置可以是手 机, 电子书, 个人数字助理 (PDA, personal digital assistant), 掌上电脑, 人机交互终端或 其他具有显示功能的手持式终端设备。 在本发明实施例中, 当所述装置为手机时, 所述手 机可以进一步包括: 外壳, 电路板, 处理器, 触摸屏, 红外接近传感器, 射频电路, 麦克 风, 扬声器, 电源;
上述触摸屏安置在上述外壳上, 上述红外接近传感器设置在上述触摸屏下, 上述电路 板安置在上述外壳围成的空间内部, 上述处理器和上述射频电路设置在上述电路板上; 上述处理器包括前述的各个模块或单元中的全部或者部分; 上述处理器, 用于对通过 上述触摸屏或上述红外接近传感器输入的数据进行处理, 和 /或将处理后的数据结果通过上 述触摸屏输出;
上述射频电路, 用于建立手机与无线网络的通信, 实现手机与无线网络的数据接收和 发送;
上述麦克风, 用于采集声音并将采集的声音转化为声音数据, 以便上述手机通过上述 射频电路向无线网络发送上述声音数据;
上述扬声器, 用于将上述手机通过上述射频电路从无线网络接收的声音数据, 还原为 声音并向用户播放该声音;
上述电源, 用于为上述手机的各个电路或器件供电。 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完 成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读存储 介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种终端确定物体接近的方法, 其特征在于, 所述方法包括:
红外线接收器读取红外发射二极管不工作时的第一红外线强度值, 并且红外线接受器读 取红外发射二极管工作时的第二红外线强度值;
获取所述第二红外线强度值与所述第一红外线强度值之间的第一差值, 作为反射的红外 线强度值;
判断所述反射的红外线强度值与终端自身存储的红外线强度阈值之间的第二差值是否大 于预设的第二阈值;
当所述第二差值大于所述预设的第二阈值时, 则确定有物体接近所述终端。
2、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括:
比较所述反射的红外线强度值与终端存储的红外线强度阈值的大小;
当所述反射的红外线强度值小于所述存储的红外线强度阈值时, 用所述反射的红外线强 度值替换所述存储的红外线强度阈值作为新的红外线强度阈值保存在终端中。
3、 如权利要求 1所述的方法, 其特征在于, 所述存储的红外线强度阈值为接近光传感器 初次启动时获取的第二红外线强度值与第一红外线强度值之间的第一差值。
4、 一种终端确定物体接近的方法, 其特征在于, 所述方法包括:
当终端的红外线发射二极管开启时, 接收外界的红外线, 读取并缓存所述接收的红外线 的强度值;
当再次接收到外界的红外线时, 读取再次接收的红外线的强度值, 计算出所述再次接收 的红外线的强度值与缓存的红外线强度值之间的差值;
当所述计算的差值大于预设的第二阈值时, 则确定有物体接近所述终端。
5、 一种终端确定物体接近的装置, 其特征在于, 所述装置包括:
红外线接收器, 用于读取红外发射二极管不工作时的第一红外线强度值, 并且读取红外 发射二极管工作时的第二红外线强度值;
获取模块, 用于获取所述第二红外线强度值与所述第一红外线强度值之间的第一差值,
11 作为反射的红外线强度值;
判断模块, 用于判断所述反射的红外线强度值与终端自身存储的红外线强度阈值之间的 第二差值是否大于预设的第二阈值;
第一确定模块, 用于当所述第二差值大于所述预设的第二阈值时, 则确定有物体接近所 述终端。
6、 如权利要求 5所述的装置, 其特征在于, 所述装置还包括:
比较模块, 用于比较所述反射的红外线强度值与终端存储的红外线强度阈值的大小; 当 所述反射的红外线强度值小于所述存储的红外线强度阈值时, 用所述反射的红外线强度值替 换所述存储的红外线强度阈值作为新的红外线强度阈值保存在终端中。
7、 如权利要求 5所述的装置, 其特征在于, 所述存储的红外线强度阈值为接近光传感器 初次启动时获取的第二红外线强度值与第一红外线强度值之间的第一差值。
8、 如权利要求 5至 7任一项所述的装置, 其特征在于, 所述装置为手机; 所述手机还包 括: 外壳, 电路板, 处理器, 触摸屏, 红外接近传感器, 射频电路, 麦克风, 扬声器, 电源; 所述触摸屏安置在所述外壳上, 所述红外接近传感器设置在所述触摸屏下, 所述电路板 安置在所述外壳围成的空间内部, 所述处理器和所述射频电路设置在所述电路板上;
所述处理器包括前述的各个模块或单元中的全部或者部分; 所述处理器, 用于对通过所 述触摸屏或所述红外接近传感器输入的数据进行处理, 和 /或将处理后的数据结果通过所述触 摸屏输出;
所述射频电路, 用于建立手机与无线网络的通信, 实现手机与无线网络的数据接收和发 送;
所述麦克风, 用于采集声音并将采集的声音转化为声音数据, 以便所述手机通过所述射 频电路向无线网络发送所述声音数据;
所述扬声器, 用于将所述手机通过所述射频电路从无线网络接收的声音数据, 还原为声 音并向用户播放该声音;
所述电源, 用于为所述手机的各个电路或器件供电。
9、 一种终端确定物体接近的装置, 其特征在于, 所述装置包括:
12 读取模块, 用于当终端的红外线发射二极管开启时, 接收外界的红外线, 读取并缓存所 述接收的红外线的强度值;
计算模块, 用于当再次接收到外界的红外线时, 读取所述接收的红外线的强度值, 计算 出所述接收的红外线的强度值与缓存的红外线强度值之间的差值;
第二确定模块, 用于当所述计算的差值大于预设的第二阈值时, 则确定有物体接近所述 终端。
10、 如权利要求 9所述的装置, 其特征在于, 所述装置为手机; 所述手机还包括: 外壳, 电路板, 处理器, 触摸屏, 红外接近传感器, 射频电路, 麦克风, 扬声器, 电源;
所述触摸屏安置在所述外壳上, 所述红外接近传感器设置在所述触摸屏下, 所述电路板 安置在所述外壳围成的空间内部, 所述处理器和所述射频电路设置在所述电路板上;
所述处理器包括前述的各个模块或单元中的全部或者部分; 所述处理器, 用于对通过所 述触摸屏或所述红外接近传感器输入的数据进行处理, 和 /或将处理后的数据结果通过所述触 摸屏输出;
所述射频电路, 用于建立手机与无线网络的通信, 实现手机与无线网络的数据接收和发 送;
所述麦克风, 用于采集声音并将采集的声音转化为声音数据, 以便所述手机通过所述射 频电路向无线网络发送所述声音数据;
所述扬声器, 用于将所述手机通过所述射频电路从无线网络接收的声音数据, 还原为声 音并向用户播放该声音;
所述电源, 用于为所述手机的各个电路或器件供电。
13
PCT/CN2011/076321 2011-06-24 2011-06-24 一种终端确定物体接近的方法及装置 WO2011150891A2 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2011/076321 WO2011150891A2 (zh) 2011-06-24 2011-06-24 一种终端确定物体接近的方法及装置
CN201180000735.9A CN102301684B (zh) 2011-06-24 2011-06-24 一种终端确定物体接近的方法及装置
EP11789270.3A EP2701312A4 (en) 2011-06-24 2011-06-24 METHOD AND DEVICE WITH WHICH A TERMINAL DETERMINES APPROACH TO AN OBJECT
US14/139,006 US9310486B2 (en) 2011-06-24 2013-12-23 Method and apparatus for terminal to determine approach of object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/076321 WO2011150891A2 (zh) 2011-06-24 2011-06-24 一种终端确定物体接近的方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/139,006 Continuation US9310486B2 (en) 2011-06-24 2013-12-23 Method and apparatus for terminal to determine approach of object

Publications (2)

Publication Number Publication Date
WO2011150891A2 true WO2011150891A2 (zh) 2011-12-08
WO2011150891A3 WO2011150891A3 (zh) 2012-05-24

Family

ID=45067127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076321 WO2011150891A2 (zh) 2011-06-24 2011-06-24 一种终端确定物体接近的方法及装置

Country Status (4)

Country Link
US (1) US9310486B2 (zh)
EP (1) EP2701312A4 (zh)
CN (1) CN102301684B (zh)
WO (1) WO2011150891A2 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777818A (zh) * 2012-10-17 2014-05-07 敦南科技股份有限公司 近接感测方法及装置

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665008B (zh) * 2012-05-08 2013-11-13 广东欧珀移动通信有限公司 一种触屏手机红外接近传感器的检测算法
TWI503701B (zh) * 2012-07-20 2015-10-11 接近感測方法
CN104142759A (zh) * 2013-05-07 2014-11-12 北京汇冠新技术股份有限公司 一种红外触摸屏的光路检测方法及系统
CN103546645B (zh) * 2013-10-30 2016-08-31 上海斐讯数据通信技术有限公司 一种实现移动终端smart cover功能的系统、方法及移动终端
CN103953252A (zh) * 2014-03-28 2014-07-30 安徽芜湖福安居实业有限公司 车库门用红外传感系统及其使用方法
TWI584630B (zh) * 2014-12-10 2017-05-21 昇佳電子股份有限公司 用來識別手機與遮蔽物距離之方法與系統
CN104618575B (zh) * 2014-12-30 2018-02-02 小米科技有限责任公司 检测物体接近的方法和装置
CN104580904B (zh) * 2014-12-31 2017-09-29 广东欧珀移动通信有限公司 一种确定旋转摄像头位置的方法及装置
CN104994240B (zh) * 2015-07-10 2018-04-06 Tcl移动通信科技(宁波)有限公司 一种基于移动终端的接近传感器节电控制方法及系统
CN105445812B (zh) * 2015-11-12 2018-03-23 青岛海信电器股份有限公司 一种人体传感器检测方法及装置
CN106303021A (zh) * 2016-08-12 2017-01-04 广东欧珀移动通信有限公司 屏幕工作状态控制方法及装置
CN106371548B (zh) * 2016-08-31 2019-03-05 深圳市创凯智能股份有限公司 显示屏节能控制方法及装置
CN106506794A (zh) * 2016-09-05 2017-03-15 广东欧珀移动通信有限公司 终端设备的状态监测方法、装置及终端设备
CN106357922B (zh) * 2016-10-12 2018-05-01 广东欧珀移动通信有限公司 终端设备的状态监测方法、装置及终端设备
CN107064948B (zh) * 2016-12-06 2023-09-05 Oppo广东移动通信有限公司 传感器模组及移动终端
CN106774655B (zh) * 2016-12-06 2019-09-13 Oppo广东移动通信有限公司 盖板、传感器组件、终端及屏幕亮度的调整方法
CN106850989B (zh) * 2017-02-08 2019-08-06 Oppo广东移动通信有限公司 显示屏状态控制方法及装置
CN107257414B (zh) 2017-07-18 2019-07-23 Oppo广东移动通信有限公司 一种屏幕状态控制方法、装置、存储介质及移动终端
CN107422876B (zh) * 2017-07-18 2019-06-28 Oppo广东移动通信有限公司 一种接近传感器的控制方法、装置、存储介质及移动终端
CN107948420B (zh) * 2017-11-22 2020-04-10 Oppo广东移动通信有限公司 显示屏状态控制方法、装置、存储介质及终端
CN107844246B (zh) * 2017-11-22 2019-08-20 Oppo广东移动通信有限公司 显示屏状态控制方法、装置、存储介质及终端
CN107948418B (zh) * 2017-11-22 2019-09-13 Oppo广东移动通信有限公司 显示屏状态控制方法、装置、存储介质及终端
CN109040417B (zh) 2018-06-06 2022-01-18 Oppo广东移动通信有限公司 控制方法、控制装置、电子装置、存储介质和计算机设备
CN110581904B (zh) 2018-06-11 2021-01-15 Oppo广东移动通信有限公司 控制方法、控制装置、电子装置和存储介质
CN108923865B (zh) * 2018-07-06 2021-06-11 Oppo(重庆)智能科技有限公司 红外距离传感器的校准方法、装置、移动终端及存储介质
CN108989566A (zh) * 2018-08-01 2018-12-11 Oppo广东移动通信有限公司 控制方法、电子装置和计算机可读存储介质
CN111338332B (zh) * 2018-11-30 2022-03-18 宝时得科技(中国)有限公司 自动行走设备、其避障方法及装置
CN109523939A (zh) * 2019-01-22 2019-03-26 苏州随身玩信息技术有限公司 一种讲解触发方法、导游讲解机和播放设备
CN110531438B (zh) * 2019-09-01 2021-07-13 福州优朋电子有限公司 自适应运动物体的红外感应检测方法及其感应洁具
CN113746984A (zh) * 2020-05-13 2021-12-03 中兴通讯股份有限公司 终端、接近检测方法和计算机可读存储介质
CN111710151B (zh) * 2020-06-30 2021-11-05 珠海格力智能装备有限公司 红外发射强度检测系统、方法、装置、存储介质及处理器
CN112925039A (zh) * 2021-01-22 2021-06-08 广东思理智能科技股份有限公司 抗太阳光干扰的红外线货位货物感应方法及系统

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3408261A1 (de) * 1984-03-07 1985-09-19 Hansa Metallwerke Ag, 7000 Stuttgart Annaeherungsschalter sowie steuerschaltungsanordnung hierfuer
JP4618026B2 (ja) * 2005-07-12 2011-01-26 ソニー株式会社 表示装置及び表示および受光を行う表示装置を用いた検出方法
US7728316B2 (en) 2005-09-30 2010-06-01 Apple Inc. Integrated proximity sensor and light sensor
US7714265B2 (en) * 2005-09-30 2010-05-11 Apple Inc. Integrated proximity sensor and light sensor
DE102006004979B4 (de) * 2006-02-01 2012-05-10 Diehl Ako Stiftung & Co. Kg Berührungsempfindlicher Tastschalter
US7907061B2 (en) * 2007-11-14 2011-03-15 Intersil Americas Inc. Proximity sensors and methods for sensing proximity
US8217482B2 (en) * 2007-12-21 2012-07-10 Avago Technologies General Ip (Singapore) Pte. Ltd. Infrared proximity sensor package with reduced crosstalk
CN201374735Y (zh) * 2008-12-15 2009-12-30 康佳集团股份有限公司 一种具有红外线测距功能的手机
KR20100081052A (ko) 2009-01-05 2010-07-14 삼성전자주식회사 근접 센서를 이용한 감지 장치 및 이를 구비하는 휴대 단말기
US8391719B2 (en) * 2009-05-22 2013-03-05 Motorola Mobility Llc Method and system for conducting communication between mobile devices
US8063790B2 (en) * 2009-07-10 2011-11-22 Rothenberger David C System and method for detecting the presence of an object
US9733357B2 (en) * 2009-11-23 2017-08-15 Avago Technologies General Ip (Singapore) Pte. Ltd. Infrared proximity sensor package with improved crosstalk isolation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
None
See also references of EP2701312A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777818A (zh) * 2012-10-17 2014-05-07 敦南科技股份有限公司 近接感测方法及装置
CN103777818B (zh) * 2012-10-17 2016-08-17 敦宏科技股份有限公司 近接感测方法及装置

Also Published As

Publication number Publication date
EP2701312A4 (en) 2014-11-26
US9310486B2 (en) 2016-04-12
CN102301684B (zh) 2014-01-22
US20140113686A1 (en) 2014-04-24
EP2701312A2 (en) 2014-02-26
WO2011150891A3 (zh) 2012-05-24
CN102301684A (zh) 2011-12-28

Similar Documents

Publication Publication Date Title
WO2011150891A2 (zh) 一种终端确定物体接近的方法及装置
CN105786104B (zh) 有双对角线接近传感器和模式切换功能的便携式电子设备
CN103729765B (zh) 一种验证控制方法、终端、服务器、终端设备及系统
CN106778585A (zh) 一种人脸关键点跟踪方法和装置
US20140354567A1 (en) Apparatus and method for operating proximity sensing function in electronic device having touch screen
WO2011150887A2 (zh) 一种调整红外接近传感器的感知阈值的方法和装置
CN109597481A (zh) Ar虚拟人物绘制方法、装置、移动终端及存储介质
CN103699409B (zh) 一种电子设备切入唤醒状态的方法、装置和系统
WO2015062235A1 (zh) 电子设备、电池保护方法和装置
CN108108007A (zh) 一种降低功耗的处理方法及移动终端
CN104635235A (zh) 用于调节接近检测器的方法
CN103716331A (zh) 一种数值转移的方法、终端、服务器及系统
CN110034876A (zh) Pucch资源指示、处理方法、网络侧设备、用户终端
US9974026B2 (en) Terminal control method and terminal
CN103823626A (zh) 显示内容调节方法、装置和电子设备
WO2017215635A1 (zh) 一种音效处理方法及移动终端
CN103516726A (zh) 基于终端行为的验证方法、装置、客户端、服务器及设备
AU2018273505A1 (en) Method for capturing fingerprint and associated products
WO2019165999A1 (zh) 超声波指纹采集精度控制处理方法、存储介质及移动终端
CN103631502B (zh) 显示内容调节方法、装置和电子设备
CN107782250B (zh) 一种深度信息测量方法、装置和移动终端
CN104836717A (zh) 一种数据处理方法、装置及终端设备
CN106210514B (zh) 拍照对焦的方法、装置及智能设备
US20200333863A1 (en) On-the-go (otg) control and configuration method, mobile terminal, and storage medium
CN106155944B (zh) 设备配置方法、装置和系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000735.9

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11789270

Country of ref document: EP

Kind code of ref document: A2

REEP Request for entry into the european phase

Ref document number: 2011789270

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE