WO2020083105A1 - 距离传感装置、电子设备及距离检测方法 - Google Patents

距离传感装置、电子设备及距离检测方法 Download PDF

Info

Publication number
WO2020083105A1
WO2020083105A1 PCT/CN2019/111846 CN2019111846W WO2020083105A1 WO 2020083105 A1 WO2020083105 A1 WO 2020083105A1 CN 2019111846 W CN2019111846 W CN 2019111846W WO 2020083105 A1 WO2020083105 A1 WO 2020083105A1
Authority
WO
WIPO (PCT)
Prior art keywords
distance
tube
receiving tube
receiving
electronic device
Prior art date
Application number
PCT/CN2019/111846
Other languages
English (en)
French (fr)
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 维沃移动通信有限公司
Publication of WO2020083105A1 publication Critical patent/WO2020083105A1/zh

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/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/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
    • 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
    • H04M1/0277Details of the structure or mounting of specific components for a printed circuit board assembly
    • 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/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • Some embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a distance sensing device, electronic equipment, and distance detection method.
  • IR Infrared Radiation
  • the cover plate of the electronic device needs to be processed, which is not conducive to production operations, and because the IR ink is black, that is, the opening is black, resulting in a white or other color cover plate In the electronic device, the color of the opening is in contrast with the color of other areas on the cover.
  • the present disclosure provides a distance sensing device, an electronic device, and a distance detection method to solve the problem that the color at the corresponding position of the opening of the distance sensor in the cover plate in the related art has a clear contrast with the color of other areas on the cover plate .
  • some embodiments of the present disclosure provide a distance sensing device, including:
  • Launch tube used to emit infrared light
  • a first receiving tube configured to receive first reflected light reflected by the first emitted light after being irradiated to the target body, wherein the first emitted light is infrared light emitted by the emitting tube at a first power;
  • a second receiving tube configured to receive second reflected light reflected by the second emitted light after being irradiated to the target body, wherein the second emitted light is infrared light emitted by the emitting tube at a second power;
  • the first distance between the first receiving tube and the transmitting tube is different from the second distance between the second receiving tube and the transmitting tube.
  • some embodiments of the present disclosure also provide an electronic device, including the distance sensing device as described above.
  • some embodiments of the present disclosure also provide a distance detection method applied to the electronic device as described above, wherein the first distance from the first receiving tube to the transmitting tube is greater than the second receiving A second distance between the tube and the launch tube, the method includes:
  • the first distance between the electronic device and the target body is determined according to the first duration of receiving the first reflected light.
  • near-channel and far-channel detection are performed, respectively.
  • the energy of the emitted light can be ensured without resorting to the IR ink layer.
  • the IR ink layer can be used to ensure that there is sufficient energy to sense the target body at a longer distance, and the interference caused by noise can be reduced when the power is increased due to increased power.
  • FIG. 1 shows one of the schematic diagrams of the distance sensing devices of some embodiments of the present disclosure
  • FIG. 2 shows a second schematic diagram of a distance sensing device according to some embodiments of the present disclosure
  • FIG. 3 shows a third schematic diagram of the distance sensing device of some embodiments of the present disclosure
  • FIG. 5 shows a second schematic diagram of an electronic device of some embodiments of the present disclosure
  • FIG. 6 shows a third schematic diagram of an electronic device of some embodiments of the present disclosure.
  • FIG. 8 shows a second flowchart of the distance detection method according to some embodiments of the present disclosure
  • FIG. 9 shows a structural block diagram of an electronic device of some embodiments of the present disclosure.
  • FIG. 10 shows a schematic diagram of a hardware structure of an electronic device of some embodiments of the present disclosure.
  • some embodiments of the present disclosure provide a distance sensing device, including: a transmitting tube 1, a first receiving tube 2, and a second receiving tube 3, wherein the first receiving tube 2 is The first distance between the transmitting tube 1 and the second distance between the second receiving tube 3 and the transmitting tube 1 are different.
  • the launch tube 1 is used to emit infrared light.
  • the first receiving tube 2 is used to receive the first reflected light reflected by the first emitted light after being irradiated to the target body, wherein the first emitted light is infrared light emitted by the emitting tube 1 at a first power.
  • the second receiving tube 3 is used to receive the second reflected light reflected by the second emitted light after being irradiated to the target body, wherein the second emitted light is infrared light emitted by the emitting tube 1 at a second power.
  • the first power is greater than the second power; when the first distance is less than the second distance, the first power One power is less than the second power.
  • the first distance from the first receiving tube 2 to the transmitting tube 1 is greater than the second distance from the second receiving tube 3 to the transmitting tube 1, that is, the first receiving tube 2 serves as a remote channel, and the second receiving tube 3 serves as Near the channel.
  • the transmitting tube 1 needs to adjust the smaller second power to emit the second transmitted light to avoid the near channel reaching data saturation; when performing far-channel detection, to ensure that the first transmitted light has sufficient energy to illuminate After reaching the target body and being able to receive the first reflected light through the first receiving tube 2, the transmitting tube 1 needs to adjust a larger first power to emit the first emitted light.
  • the first distance from the first receiving tube 2 to the transmitting tube 1 is greater than the second distance from the second receiving tube 3 to the transmitting tube 1, it is possible to reduce the interference caused by noise when the power is increased due to increased power.
  • the first distance from the first receiving tube 2 to the transmitting tube 1 is less than the second distance from the second receiving tube 3 to the transmitting tube 1, that is, the first receiving tube 2 serves as a near channel, and the second receiving tube 3 As a distant passage.
  • the transmitting tube 1 needs to adjust the smaller first power to emit the first emitted light to avoid the near channel from reaching data saturation; when performing far-channel detection, to ensure that the second emitted light has sufficient energy to illuminate After reaching the target body and being able to receive the second reflected light through the second receiving tube 3, the emitting tube 1 needs to adjust a larger second power to emit the second emitted light.
  • the second distance from the second receiving tube 3 to the transmitting tube 1 is greater than the first distance from the first receiving tube 2 to the transmitting tube 1, it is possible to reduce the interference caused by noise when the power is increased and the noise increases.
  • the first receiving tube 2 and the second receiving tube 3 having different distances from the transmitting tube 1 are provided to perform near-channel and far-channel detection, respectively.
  • the energy of the emitted light can be ensured without resorting to the IR ink layer.
  • the IR ink layer can be used to ensure that there is sufficient energy to sense the target body at a longer distance, and the interference caused by noise can be reduced when the power is increased due to increased power.
  • the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 may be located on a straight line, or may be located on a non-straight line, that is, the transmitting tube 1, the first receiving tube 2
  • the connection with the geometric center of the second receiving tube 3 may form a triangle, as shown in FIG. 2.
  • the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 may be arranged on the same straight line.
  • the transmitting tube 1 may be located between the first receiving tube 2 and the second receiving tube 3, that is, when the first receiving tube 2 and the second receiving tube 3 are located on a straight line
  • the first receiving tube 2 is located on the first side of the transmitting tube 1
  • the second receiving tube 3 is located on the second side of the transmitting tube 1, wherein the first side and the second side are disposed oppositely.
  • the first receiving tube 2 and the second receiving tube 3 may also be arranged adjacently, and the transmitting tube 1 is one of the first receiving tube 2 and the second receiving tube 3 Adjacent settings. Specifically, when the first receiving tube 2 serves as a near channel and the second receiving tube 3 serves as a far channel, the transmitting tube 1 is disposed adjacent to the first receiving tube 2; when the second receiving tube 3 serves as a near channel, the first When the receiving tube 2 is used as a remote channel, the transmitting tube 1 is arranged adjacent to the second receiving tube 3.
  • the transmitting tube 1 is disposed adjacent to the first receiving tube 2 or the second receiving tube 3, one of the first receiving tube 2 and the second receiving tube 3 can be ensured as a near channel, and the other As a remote channel, it can avoid that the first distance from the first receiving tube to the transmitting tube is different from the second distance from the second receiving tube to the transmitting tube, which may cause a problem of space limitation, thereby facilitating space layout.
  • the distance sensing device further includes: a circuit board 4; the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 are respectively connected to the circuit board 4.
  • the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 may be respectively connected to the circuit board 4 by soldering to ensure the stability of the connection; or, the transmitting The tube 1, the first receiving tube 2 and the second receiving tube 3 can also be connected to the circuit board 4 through connectors, respectively, to facilitate disassembly.
  • the electronic device may be a device with a distance sensing device such as a mobile phone, a tablet computer, a smart watch.
  • the distance sensing device includes: a transmitting tube 1, a first receiving 2, and a second receiving tube 3, wherein the first distance from the first receiving tube 2 to the transmitting tube 1 and the second receiving The second distance between the tube 3 and the launch tube 1 is different.
  • the launch tube 1 is used to emit infrared light.
  • the first receiving tube 2 is used to receive first reflected light reflected by the first emitted light after being irradiated to the target body, wherein the first emitted light is infrared light emitted by the emitting tube 1 at a first power.
  • the second receiving tube 3 is used to receive the second reflected light reflected by the second emitted light after being irradiated to the target body, wherein the second emitted light is infrared light emitted by the emitting tube 1 at a second power.
  • the first power is greater than the second power; when the first distance is less than the second distance, the first power One power is less than the second power.
  • the first distance from the first receiving tube 2 to the transmitting tube 1 is greater than the second distance from the second receiving tube 3 to the transmitting tube 1, that is, the first receiving tube 2 serves as a remote channel, and the second receiving tube 3 serves as Near the channel.
  • the transmitting tube 1 needs to adjust the smaller second power to emit the second transmitted light to avoid the near channel reaching data saturation; when performing far-channel detection, to ensure that the first transmitted light has sufficient energy to illuminate After reaching the target body and being able to receive the first reflected light through the first receiving tube 2, the transmitting tube 1 needs to adjust a larger first power to emit the first emitted light.
  • the first distance from the first receiving tube 2 to the transmitting tube 1 is greater than the second distance from the second receiving tube 3 to the transmitting tube 1, it is possible to reduce the interference caused by noise when the noise is increased by increasing the power.
  • the first distance from the first receiving tube 2 to the transmitting tube 1 is less than the second distance from the second receiving tube 3 to the transmitting tube 1, that is, the first receiving tube 2 serves as a near channel, and the second receiving tube 3 As a distant passage.
  • the transmitting tube 1 needs to adjust the smaller first power to emit the first emitted light to avoid the near channel from reaching data saturation; when performing far-channel detection, to ensure that the second emitted light has sufficient energy to illuminate After reaching the target body and being able to receive the second reflected light through the second receiving tube 3, the emitting tube 1 needs to adjust a larger second power to emit the second emitted light.
  • the second distance from the second receiving tube 3 to the transmitting tube 1 is greater than the first distance from the first receiving tube 2 to the transmitting tube 1, it is possible to reduce the interference caused by noise when the power is increased and the noise increases.
  • the first receiving tube 2 and the second receiving tube 3 having different distances from the transmitting tube 1 are provided in the distance sensing device to perform near-channel and far-channel detection, respectively.
  • the electronic device adopting this distance sensing device senses the distance of the target body, the energy of the emitted light can be ensured without providing an IR ink layer.
  • the IR ink layer can be used to ensure that there is sufficient energy to sense the target body at a longer distance, and the interference caused by noise can be reduced when the power is increased due to increased power.
  • the distance sensing device further includes: a circuit board 4; the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 are respectively connected to the circuit board 4.
  • the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 may be respectively connected to the circuit board 4 by soldering to ensure the stability of the connection; or, the transmitting The tube 1, the first receiving tube 2 and the second receiving tube 3 can also be connected to the circuit board 4 through connectors, respectively, to facilitate disassembly.
  • the electronic device further includes a cover plate 5; the distance sensing device is disposed below the cover plate 5, and the transmitting tube 1, the first receiving tube 2, and the second receiving tube There is a gap between 3 and the cover plate 5 to ensure that the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 can work normally and effectively emit / receive infrared light.
  • the distance between the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3, and the cover plate 5 is 0 to 1 mm.
  • the first receiving tube 2 and the second receiving tube 3 having different distances from the transmitting tube 1 are provided in the distance sensing device to perform near-channel and far-channel detection, respectively.
  • the electronic equipment adopting this distance sensing device can ensure the energy of the emitted light without setting the IR ink layer when sensing the distance of the target body, thereby avoiding the opening processing on the cover plate 5 and reducing the cover
  • the number of openings on the plate 5 ensures the appearance integrity of the cover plate 5, and can avoid the appearance violation caused by coating the IR ink layer on the white or other color cover plate 5, and reduces the manufacturing process flow of the cover plate 5 , Which reduces the difficulty in manufacturing the cover 5.
  • the cover 5 includes a display area 51 and a non-display area 52 surrounding the display area 51.
  • the projection of the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 on the cover plate 5 is in the non-display area 52, so as to avoid the occupation of the internal space of the electronic device It is conducive to the space management inside the electronic equipment, and is conducive to the thinning and thinning of the whole machine.
  • the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 may be arranged at any position below the non-display area 53.
  • the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 can be arranged on a straight line; in order to avoid the interference of the remote channel, it can also be The transmitting tube 1, the first receiving tube 2 and the second receiving tube 3 are arranged on a non-straight line, that is, the transmitting tube 1, the first receiving tube 2 and the second receiving tube 3
  • the connection of the center of the collection can form a triangle.
  • the transmitting tube 1 may be located between the first receiving tube 2 and the second receiving tube 3, that is, when the first receiving tube 2 and the second receiving tube 3 are located on a straight line
  • the first receiving tube 2 is located on the first side of the transmitting tube 1
  • the second receiving tube 3 is located on the second side of the transmitting tube 1, wherein the first side and the second side are disposed oppositely.
  • the first receiving tube 2 and the second receiving tube 3 may also be arranged adjacently, and the transmitting tube 1 is one of the first receiving tube 2 and the second receiving tube 3 Adjacent settings. Specifically, when the first receiving tube 2 serves as a near channel and the second receiving tube 3 serves as a far channel, the transmitting tube 1 is disposed adjacent to the first receiving tube 2; when the second receiving tube 3 serves as a near channel, the first When the receiving tube 2 is used as a remote channel, the transmitting tube 1 is arranged adjacent to the second receiving tube 3.
  • some embodiments of the present disclosure also provide a distance detection method, which is applied to the electronic device as described above, wherein the first distance from the first receiving tube to the transmitting tube is greater than the second receiving The second distance of the tube from the launch tube.
  • the method includes:
  • Step 71 Control the emission tube to emit the first emission light at the first power, and receive the first reflected light reflected by the first emission light after irradiating the target body through the first reception tube.
  • Step 72 Determine the first distance between the electronic device and the target body according to the first duration of receiving the first reflected light.
  • the time for receiving the first reflected light is the time from when the first emitting light is emitted by the emitting tube to when the first receiving light receives the first reflected light.
  • the electron can also be determined according to the energy difference between the first emitting light and the first reflected light, that is, energy loss The first distance between the device and the target.
  • the first emission light is emitted by the emission tube at the first emission power
  • the electronic device is determined according to the first duration of the first reflected light reflected by the first reception tube after receiving the first emission light and irradiating the target body The first distance from the target body, so as to realize the distance detection of the target body by the electronic device.
  • some embodiments of the present disclosure also provide a distance detection method, which is applied to the electronic device as described above, wherein the first receiving tube is away from the transmitting tube. The first distance is greater than the second distance of the second receiving tube from the transmitting tube.
  • the method includes:
  • Step 81 Control the emission tube to emit first emission light at a first power, and receive the first reflected light reflected by the first emission light after irradiating the target body through the first reception tube.
  • Step 82 Determine the first distance between the electronic device and the target body according to the first duration of receiving the first reflected light.
  • the time for receiving the first reflected light is the time from when the first emitting light is emitted by the emitting tube to when the first receiving light receives the first reflected light.
  • the electron can also be determined according to the energy difference between the first emitting light and the first reflected light, that is, the energy loss The first distance between the device and the target.
  • the preset threshold value range is 5 ⁇ 10cm.
  • Step 84 In the case that the first distance is less than or equal to the preset threshold, control the transmitting tube to emit second transmitting light at a second power, and receive the second transmitting through the second receiving tube The second reflected light reflected after the light hits the target.
  • Step 85 Determine a second distance between the electronic device and the target body according to the second duration of receiving the second reflected light, and determine the second distance as the electronic device and the target The distance between the objects is measured.
  • the time for receiving the second reflected light is the time from when the second emitting light is emitted by the emitting tube to when the second receiving light receives the second reflected light.
  • the electron can also be determined according to the energy difference between the second emitting light and the second reflected light, that is, the energy loss
  • the second distance between the device and the target body, and then the second distance between the electronic device and the target body is used as the target measurement distance.
  • step 85 after the data is detected by the first receiving tube and the second receiving tube, the electronic device detects that if the distance between the target and the electronic device changes, repeat the above steps 81 to 85 to continue the distance Detection.
  • the data detected by the far channel is used as the basis for judging the distance between the target and the electronic device, that is, the transmitting tube transmits The light is emitted, and the first reflected light is received through the first receiving tube as a judgment basis, which can ensure that enough energy penetrates the cover plate to ensure the realization of remote detection and the accuracy of the detection result.
  • the data detected by the near channel is used as the basis for judging the distance between the target body and the electronic device, that is, the emission tube emits second emission light with a smaller second power, and The second reflected light is received through the second receiving tube as a basis for judgment, to avoid noise interference caused by the use of high power in the close-range detection, and to prevent the near channel from reaching data saturation.
  • some embodiments of the present disclosure also provide an electronic device 900, wherein the electronic device 900 includes the distance sensing device as described above, and the first distance between the first receiving tube and the transmitting tube is greater than The second distance between the second receiving tube and the transmitting tube.
  • the electronic device 900 includes:
  • the control module 910 is configured to control the transmitting tube to emit first transmitted light at a first power, and receive the first reflected light reflected by the first transmitted light after irradiating the target body through the first receiving tube.
  • the first determining module 920 is configured to determine the first distance between the electronic device and the target body according to the first duration of receiving the first reflected light.
  • the electronic device 900 further includes:
  • the first processing module is configured to determine the first distance as a target measurement distance between the electronic device and the target body when the first distance is greater than a preset threshold.
  • the electronic device 900 further includes:
  • the second processing module is configured to control the transmitting tube to emit the second transmitting light at the second power under the condition that the first distance is less than or equal to the preset threshold, and receive the received light through the second receiving tube The second reflected light reflected by the second emitted light after being irradiated to the target body.
  • a second determining module configured to determine a second distance between the electronic device and the target body according to the second duration of receiving the second reflected light, and determine the second distance as the electronic device The target measured distance from the target body.
  • the electronic device provided by some embodiments of the present disclosure can implement various processes implemented by the electronic device in the method embodiments of FIG. 7 and FIG. 8. To avoid repetition, details are not described here.
  • the data detected by the far channel is used as the basis for judging the distance between the target body and the electronic device.
  • the power emits the first emitted light, and the first reflected light is received through the first receiving tube as a judgment basis, which can ensure that enough energy penetrates the cover plate to ensure the realization of remote detection and the accuracy of the detection result.
  • the data detected by the near channel is used as the basis for judging the distance between the target body and the electronic device, that is, the emission tube emits the second emission light with a smaller second power, and The second reflected light is received through the second receiving tube as a basis for judgment, to avoid noise interference caused by the use of high power in the close-range detection, and to prevent the near channel from reaching data saturation.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present disclosure.
  • the electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and Power supply 1011 and other components.
  • a radio frequency unit 1001 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and Power supply 1011 and other components.
  • Those skilled in the art may understand that the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than the illustration, or combine some components, or different components Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehi
  • the processor 1010 is configured to control the transmitting tube to emit the first transmitting light at the first power, and receive the first reflected light reflected by the first transmitting light after irradiating the target body through the first receiving tube; Determine the first distance between the electronic device and the target according to the time when the first reflected light is received; if the first distance is greater than a preset threshold, determine the first distance as the electron A target measurement distance between the device and the target body; if the first distance is less than or equal to the preset threshold, the emission tube is controlled to emit a second emission light at a second power and pass the second The receiving tube receives the second reflected light reflected by the second emitted light after irradiating the target; according to the time of receiving the second reflected light, the second distance between the electronic device and the target is determined as the The target measures the distance.
  • the data detected by the far channel is used as the basis for judging the distance between the target body and the electronic device.
  • the power emits the first emitted light, and the first reflected light is received through the first receiving tube as a judgment basis, which can ensure that enough energy penetrates the cover plate to ensure the realization of remote detection and the accuracy of the detection result.
  • the data detected by the near channel is used as the basis for judging the distance between the target body and the electronic device, that is, the emission tube emits the second emission light with a smaller second power, and The second reflected light is received through the second receiving tube as a basis for judgment, to avoid noise interference caused by the use of high power in the close-range detection, and to prevent the near channel from reaching data saturation.
  • the radio frequency unit 1001 may be used to receive and send signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1010; To send uplink data to the base station.
  • the radio frequency unit 1001 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 1001 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 1002, such as helping users send and receive e-mail, browse web pages, and access streaming media.
  • the audio output unit 1003 may convert the audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Moreover, the audio output unit 1003 may also provide audio output related to a specific function performed by the electronic device 1000 (eg, call signal reception sound, message reception sound, etc.).
  • the audio output unit 1003 includes a speaker, a buzzer, a receiver, and so on.
  • the input unit 1004 is used to receive audio or video signals.
  • the input unit 1004 may include a graphics processor (Graphics, Processing, Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 may process a still picture or video image obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode The data is processed.
  • the processed image frame may be displayed on the display unit 1006.
  • the image frame processed by the graphics processor 10041 may be stored in the memory 1009 (or other storage medium) or sent via the radio frequency unit 1001 or the network module 1002.
  • the microphone 10042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 1001 in the case of a telephone call mode and output.
  • the electronic device 1000 further includes at least one sensor 1005, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 10061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 10061 and the electronic device 1000 when moving to the ear / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; sensor 1005 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc. will not be repeated here.
  • the display unit 1006 is used to display information input by the user or information provided to the user.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • LCD Liquid Crystal
  • OLED Organic Light-Emitting Diode
  • the user input unit 1007 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072.
  • the touch panel 10071 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on or near the touch panel 10071. operating).
  • the touch panel 10071 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 1010, the command sent by the processor 1010 is received and executed.
  • the touch panel 10071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the user input unit 1007 may also include other input devices 10072.
  • other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not repeated here.
  • the touch panel 10071 may be overlaid on the display panel 10061.
  • the touch panel 10071 detects a touch operation on or near it, it is transmitted to the processor 1010 to determine the type of touch event, and then the processor 1010 according to the touch The type of event provides corresponding visual output on the display panel 10061.
  • the touch panel 10071 and the display panel 10061 are implemented as two independent components to realize the input and output functions of the electronic device, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated The input and output functions of the electronic device are not limited here.
  • the interface unit 1008 is an interface for connecting an external device to the electronic device 1000.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input / output (I / O) port, video I / O port, headphone port, etc.
  • the interface unit 1008 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1000 or may be used in the electronic device 1000 and external Transfer data between devices.
  • the memory 1009 can be used to store software programs and various data.
  • the memory 1009 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.); the storage data area may store Data created by the use of mobile phones (such as audio data, phonebooks, etc.), etc.
  • the memory 1009 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 1010 is a control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and / or modules stored in the memory 1009, and calling data stored in the memory 1009 , Perform various functions of electronic devices and process data, so as to monitor the electronic devices as a whole.
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc.
  • the modulation processor mainly handles wireless communication. It can be understood that, the foregoing modem processor may not be integrated into the processor 1010.
  • the electronic device 1000 may further include a power supply 1011 (such as a battery) that supplies power to various components.
  • a power supply 1011 (such as a battery) that supplies power to various components.
  • the power supply 1011 may be logically connected to the processor 1010 through a power management system, thereby managing charging, discharging, and power consumption through the power management system Management and other functions.
  • the electronic device 1000 includes some not-shown functional modules, which will not be repeated here.
  • some embodiments of the present disclosure also provide an electronic device, including a processor 1010, a memory 1009, and a computer program stored on the memory 1009 and executable on the processor 1010.
  • the computer program is processed by the processor During the execution of 1010, each process of the foregoing distance detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • Some embodiments of the present disclosure also provide a computer-readable storage medium that stores a computer program on the computer-readable storage medium.
  • the computer program is executed by a processor, the processes of the foregoing distance detection method embodiments are implemented, and the same can be achieved. In order to avoid repetition, we will not repeat them here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

本公开公开了一种距离传感装置、电子设备及距离检测方法,其中,距离传感装置包括:发射管、第一接收管及第二接收管;发射管用于发射红外光线,第一接收管用于接收第一发射光线照射到目标体后反射的第一反射光线,其中所述第一发射光线为所述发射管以第一功率发射的红外光线;第二接收管用于接收第二发射光线照射到所述目标体后反射的第二反射光线,其中所述第二发射光线为所述发射管以第二功率发射的红外光线;其中,所述第一接收管距离所述发射管的第一距离,与所述第二接收管距离所述发射管的第二距离之间不同。

Description

距离传感装置、电子设备及距离检测方法
相关申请的交叉引用
本申请主张在2018年10月25日在中国提交的中国专利申请号No.201811248015.4的优先权,其全部内容通过引用包含于此。
技术领域
本公开的一些实施例涉及通信技术领域,尤其涉及一种距离传感装置、电子设备及距离检测方法。
背景技术
随着电子设备的快速发展,用户对电子设备的外观要求也越来越高。目前,大多数电子设备具有距离传感器(即红外光敏),在电子设备上设置距离感应传感器时,需要在盖板的油墨层进行开孔处理,并在油墨层上开孔处理的位置涂红外线(Infrared Radiation,IR)油墨,使红外光射出之后能有足够的反射能量被检测。这种距离感应传感器在安装于电子设备时,需要对电子设备的盖板进行加工处理,不利于生产操作,并且由于IR油墨为黑色,也即开孔呈黑色,导致具有白色或者其他颜色盖板的电子设备中,开孔位置处的颜色与盖板上的其他区域的颜色具有明显反差。
发明内容
本公开提供了一种距离传感装置、电子设备及距离检测方法,以解决相关技术中盖板上对应距离感应传感器开孔位置处的颜色与盖板上的其他区域的颜色具有明显反差的问题。
为了解决上述技术问题,本公开是这样实现的:
第一方面,本公开的一些实施例提供了一种距离传感装置,包括:
发射管,用于发射红外光线;
第一接收管,用于接收第一发射光线照射到目标体后反射的第一反射光线,其中,所述第一发射光线为所述发射管以第一功率发射的红外光线;
第二接收管,用于接收第二发射光线照射到所述目标体后反射的第二反射光线,其中,所述第二发射光线为所述发射管以第二功率发射的红外光线;
其中,所述第一接收管距离所述发射管的第一距离与所述第二接收管距离所述发射管的第二距离不同。
第二方面,本公开的一些实施例还提供了一种电子设备,包括如上所述的距离传感装置。
第三方面,本公开的一些实施例还提供了一种距离检测方法,应用于如上所述的电子设备,其中所述第一接收管距离所述发射管的第一距离大于所述第二接收管距离所述发射管的第二距离,所述方法包括:
控制所述发射管以第一功率发射第一发射光线,并通过所述第一接收管接收所述第一发射光线照射到目标体后反射的第一反射光线;
根据接收所述第一反射光线的第一时长,确定所述电子设备与所述目标体之间的第一距离。
在本公开的一些实施例中,通过设置与发射管之间的距离不同的第一接收管和第二接收管,分别进行近通道和远通道检测。这样,在感应目标体的距离时,可以不需要借助IR油墨层,即可保证发射光线的能量。特别是在远通道检测时,可以不需要借助IR油墨层,即可保证有足够的能量感应到较远距离的目标体,并且可以在调大功率导致噪声增加时减少噪声带来的干扰。
附图说明
图1表示本公开的一些实施例的距离感应装置的示意图之一;
图2表示本公开的一些实施例的距离感应装置的示意图之二;
图3表示本公开的一些实施例的距离感应装置的示意图之三;
图4表示本公开的一些实施例的电子设备的示意图之一;
图5表示本公开的一些实施例的电子设备的示意图之二;
图6表示本公开的一些实施例的电子设备的示意图之三;
图7表示本公开的一些实施例的距离检测方法的流程图之一;
图8表示本公开的一些实施例的距离检测方法的流程图之二;
图9表示本公开的一些实施例的电子设备的结构框图;
图10表示本公开的一些实施例的电子设备的硬件结构示意图。
具体实施方式
下面将结合本公开的一些实施例中的附图,对本公开的一些实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
如图1所示,本公开的一些实施例提供了一种距离传感装置,包括:发射管1、第一接收管2以及第二接收管3,其中,所述第一接收管2距离所述发射管1的第一距离与所述第二接收管3距离所述发射管1的第二距离之间不同。
其中,发射管1用于发射红外光线。
第一接收管2用于接收第一发射光线照射到目标体后反射的第一反射光线,其中,所述第一发射光线为所述发射管1以第一功率发射的红外光线。
第二接收管3用于接收第二发射光线照射到所述目标体后反射的第二反射光线,其中,所述第二发射光线为所述发射管1以第二功率发射的红外光线。
具体的,在所述第一距离大于所述第二距离的情况下,所述第一功率大于所述第二功率;在所述第一距离小于所述第二距离的情况下,所述第一功率小于所述第二功率。
作为一种实现方式,第一接收管2距离发射管1的第一距离大于第二接收管3距离发射管1的第二距离,即第一接收管2作为远通道,第二接收管3作为近通道。在进行近通道检测时,发射管1需要调节较小的第二功率发射第二发射光线,以避免近通道达到数据饱和;在进行远通道检测时,为保证第一发射光线有足够的能量照射到目标体,并能够通过第一接收管2接收到第一反射光线,则发射管1需要调节较大的第一功率发射第一发射光线。这样,由于第一接收管2距离发射管1的第一距离大于第二接收管3距离发射管1的第二距离,可以在调大功率导致噪声增加时减少噪声带来的干扰。
作为另一种实现方式,第一接收管2距离发射管1的第一距离小于第二接收管3距离发射管1的第二距离,即第一接收管2作为近通道,第二接收管3作为远通道。在进行近通道检测时,发射管1需要调节较小的第一功率发射第一发射光线,以避免近通道达到数据饱和;在进行远通道检测时,为保证第二发射光线有足够的能量照射到目标体,并能够通过第二接收管3接收到第二反射光线,则发射管1需要调节较大的第二功率发射第二发射光线。这样,由于第二接收管3距离发射管1的第二距离大于第一接收管2距离发射管1的第一距离,可以在调大功率导致噪声增加时减少噪声带来的干扰。
该实施例中,通过设置与发射管1之间的距离不同的第一接收管2和第二接收管3,分别进行近通道和远通道检测。这样,在感应目标体的距离时,可以不需要借助IR油墨层,即可保证发射光线的能量。特别是在远通道检测时,可以不需要借助IR油墨层,即可保证有足够的能量感应到较远距离的目标体,并且可以在调大功率导致噪声增加时减少噪声带来的干扰。
其中,所述发射管1、所述第一接收管2和所述第二接收管3可以位于一直线上,也可以位于非直线上,即所述发射管1、所述第一接收管2和所述第二接收管3的几何中心两两连接可以构成三角形,如图2所示。
可选地,为了便于排线布置,以及节省安装材料,可以将所述发射管1、所述第一接收管2和所述第二接收管3设置在同一直线上。
具体的,如图1,发射管1可以位于所述第一接收管2和所述第二接收管3之间,也即第一接收管2和所述第二接收管3位于一直线上时,第一接收管2位于发射管1的第一侧,第二接收管3位于发射管1的第二侧,其中第一侧和第二侧相对设置。
如图3,所述第一接收管2和所述第二接收管3还可以是相邻设置,所述发射管1与所述第一接收管2和所述第二接收管3中的一个相邻设置。具体的,当第一接收管2作为近通道,第二接收管3作为远通道时,发射管1与所述第一接收管2相邻设置;当第二接收管3作为近通道,第一接收管2作为远通道时,发射管1与第二接收管3相邻设置。这样,无论发射管1是与第一接收管2相邻设置,还是与第二接收管3相邻设置,都可以保证第一接收管2和第二接收管3中的一个作为近通道,另一个作为远通道,可以避 免由于设置第一接收管距离发射管的第一距离与第二接收管距离发射管的第二距离不同,可能导致空间受限的问题,从而有利于空间布局。
其中,所述距离传感装置还包括:电路板4;所述发射管1、所述第一接收管2和所述第二接收管3分别与所述电路板4连接。
具体的,所述发射管1、所述第一接收管2和所述第二接收管3可以分别通过焊锡的方式与所述电路板4连接,以保证连接的稳定性;或者,所述发射管1、所述第一接收管2和所述第二接收管3还可以分别通过连接器与所述电路板4连接,以便于拆卸。
如图4,本公开的一些实施例还提供了一种电子设备,包括如上所述的距离传感装置。其中,电子设备可以是手机、平板电脑、智能手表等具有距离传感装置的设备。
具体的,该距离传感装置包括:发射管1、第一接收2以及第二接收管3,其中,所述第一接收管2距离所述发射管1的第一距离与所述第二接收管3距离所述发射管1的第二距离不同。
其中,发射管1用于发射红外光线。
第一接收管2用于接收第一发射光线照射到目标体后反射的第一反射光线,其中所述第一发射光线为所述发射管1以第一功率发射的红外光线。
第二接收管3用于接收第二发射光线照射到所述目标体后反射的第二反射光线,其中所述第二发射光线为所述发射管1以第二功率发射的红外光线。
具体的,在所述第一距离大于所述第二距离的情况下,所述第一功率大于所述第二功率;在所述第一距离小于所述第二距离的情况下,所述第一功率小于所述第二功率。
作为一种实现方式,第一接收管2距离发射管1的第一距离大于第二接收管3距离发射管1的第二距离,即第一接收管2作为远通道,第二接收管3作为近通道。在进行近通道检测时,发射管1需要调节较小的第二功率发射第二发射光线,以避免近通道达到数据饱和;在进行远通道检测时,为保证第一发射光线有足够的能量照射到目标体,并能够通过第一接收管2接收到第一反射光线,则发射管1需要调节较大的第一功率发射第一发射光线。这样,由于第一接收管2距离发射管1的第一距离大于第二接收管3距离发 射管1的第二距离,可以在调大功率导致噪声增加时减少噪声带来的干扰。
作为另一种实现方式,第一接收管2距离发射管1的第一距离小于第二接收管3距离发射管1的第二距离,即第一接收管2作为近通道,第二接收管3作为远通道。在进行近通道检测时,发射管1需要调节较小的第一功率发射第一发射光线,以避免近通道达到数据饱和;在进行远通道检测时,为保证第二发射光线有足够的能量照射到目标体,并能够通过第二接收管3接收到第二反射光线,则发射管1需要调节较大的第二功率发射第二发射光线。这样,由于第二接收管3距离发射管1的第二距离大于第一接收管2距离发射管1的第一距离,可以在调大功率导致噪声增加时减少噪声带来的干扰。
该实施例中的电子设备,通过在距离传感装置中设置与发射管1之间的距离不同的第一接收管2和第二接收管3,分别进行近通道和远通道检测。采用这种距离传感装置的电子设备在感应目标体的距离时,可以不需要设置IR油墨层,即可保证发射光线的能量。特别是在远通道检测时,可以不需要借助IR油墨层,即可保证有足够的能量感应到较远距离的目标体,并且可以在调大功率导致噪声增加时减少噪声带来的干扰。
其中,所述的距离传感装置还包括:电路板4;所述发射管1、所述第一接收管2和所述第二接收管3分别与所述电路板4连接。
具体的,所述发射管1、所述第一接收管2和所述第二接收管3可以分别通过焊锡的方式与所述电路板4连接,以保证连接的稳定性;或者,所述发射管1、所述第一接收管2和所述第二接收管3还可以分别通过连接器与所述电路板4连接,以便于拆卸。
进一步地,所述电子设备还包括盖板5;所述距离传感装置设置于所述盖板5的下方,且所述发射管1、所述第一接收管2和所述第二接收管3与所述盖板5之间设有间隙,以保证发射管1、第一接收管2和第二接收管3能够正常工作,有效发射/接收红外光线。
可选地,所述发射管1、所述第一接收管2和所述第二接收管3与所述盖板5之间的距离为0~1mm。
该实施例中的电子设备,通过在距离传感装置中设置与发射管1之间的距离不同的第一接收管2和第二接收管3,分别进行近通道和远通道检测。 采用这种距离传感装置的电子设备在感应目标体的距离时,可以不需要设置IR油墨层,即可保证发射光线的能量,从而避免在盖板5上进行开孔处理,减小了盖板5上的开孔数量,保证盖板5的外观完整性,还可以避免白色或者其他颜色的盖板5上涂设IR油墨层导致的外观违和,并且减少了盖板5的制作工艺流程,降低了盖板5的工艺制作难度。
其中,如图5,所述盖板5包括显示区51以及包围所述显示区域51设置的非显示区域52。
所述发射管1、所述第一接收管2和所述第二接收管3在所述盖板5上的投影处于所述非显示区域52内,以避免电子设备内部空间的占用,从而有利于电子设备内部的空间管理,有利于整机的轻薄化。
具体的,所述发射管1、所述第一接收管2和所述第二接收管3可以在非显示区域53下方的任意位置进行设置。为了便于排线布置,以及节省安装材料,可以将所述发射管1、所述第一接收管2和所述第二接收管3可以设置在一直线上;为了避免远通道的干扰,也可以将所述发射管1、所述第一接收管2和所述第二接收管3设置在非直线上,即所述发射管1、所述第一接收管2和所述第二接收管3集合中心两两连接可以构成三角形。
具体的,如图4,发射管1可以位于所述第一接收管2和所述第二接收管3之间,也即第一接收管2和所述第二接收管3位于一直线上时,第一接收管2位于发射管1的第一侧,第二接收管3位于发射管1的第二侧,其中第一侧和第二侧相对设置。
如图6,所述第一接收管2和所述第二接收管3还可以是相邻设置,所述发射管1与所述第一接收管2和所述第二接收管3中的一个相邻设置。具体的,当第一接收管2作为近通道,第二接收管3作为远通道时,发射管1与所述第一接收管2相邻设置;当第二接收管3作为近通道,第一接收管2作为远通道时,发射管1与第二接收管3相邻设置。
如图7,本公开的一些实施例还提供了一种距离检测方法,应用于如上所述的电子设备,其中所述第一接收管距离所述发射管的第一距离大于所述第二接收管距离所述发射管的第二距离。
所述方法包括:
步骤71:控制所述发射管以第一功率发射第一发射光线,并通过所述第一接收管接收所述第一发射光线照射到目标体后反射的第一反射光线。
步骤72:根据接收所述第一反射光线的第一时长,确定所述电子设备与所述目标体之间的第一距离。
具体的,接收所述第一反射光线的时间为从发射管发射第一发射光线到第一接收管接收第一反射光线的时间。当然,除了根据从发射管发射第一发射光线到第一接收管接收第一反射光线的时间之外,还可以根据第一发射光线和第一反射光线的能量差,即能量损失,来确定电子设备与所述目标体之间的第一距离。
上述方案中,通过发射管以第一发射功率发射第一发射光线,并根据第一接收管接收所述第一发射光线照射到目标体后反射的第一反射光线的第一时长,确定电子设备与目标体之间的第一距离,从而实现电子设备对目标体的距离检测。
进一步,为了实现距离检测的精准性,如图8本公开的一些实施例还提供了一种距离检测方法,应用于如上所述的电子设备,其中所述第一接收管距离所述发射管的第一距离大于所述第二接收管距离所述发射管的第二距离。
所述方法包括:
步骤81:控制所述发射管以第一功率发射第一发射光线,并通过所述第一接收管接收所述第一发射光线照射到目标体后反射的第一反射光线。
步骤82:根据接收所述第一反射光线的第一时长,确定所述电子设备与所述目标体之间的第一距离。
具体的,接收所述第一反射光线的时间为从发射管发射第一发射光线到第一接收管接收第一反射光线的时间。当然,除了根据从发射管发射第一发射光线到第一接收管接收第一反射光线的时间之外,还可以根据第一发射光线和第一反射光线的能量差,即能量损失,来确定电子设备与所述目标体之间的第一距离。
步骤:83:在所述第一距离大于预设门限的情况下,将所述第一距离确定为所述电子设备与所述目标体之间的目标测量距离。
其中,预设门限的取值范围为5~10cm。
步骤84:在所述第一距离小于或者等于所述预设门限的情况下,控制所述发射管以第二功率发射第二发射光线,并通过所述第二接收管接收所述第二发射光线照射到目标体后反射的第二反射光线。
步骤85:根据接收所述第二反射光线的第二时长,确定所述电子设备与所述目标体之间的第二距离,并将所述第二距离确定为所述电子设备与所述目标体之间的目标测量距离。
具体的,接收所述第二反射光线的时间为从发射管发射第二发射光线到第二接收管接收第二反射光线的时间。当然,除了根据从发射管发射第二发射光线到第二接收管接收第二反射光线的时间之外,还可以根据第二发射光线和第二反射光线的能量差,即能量损失,来确定电子设备与所述目标体之间的第二距离,进而将电子设备与所述目标体之间的第二距离作为所述目标测量距离。
此外,在上述步骤85中,通过第一接收管和第二接收管检测到数据后电子设备检测,若目标体与电子设备之间的距离发生变化时,重复上述步骤81至85,继续进行距离检测。
上述方案中,在目标体与电子设备的距离达到预设门限时,以远通道检测的数据作为目标体与电子设备之间距离的判断依据,即发射管以较大的第一功率发射第一发射光线,并通过第一接收管接收到第一反射光线作为判断依据,可以保证有足够的能量穿透盖板,以保证实现远距离检测以及检测结果的准确性。在目标体与电子设备的距离未达到预设门限时,以近通道检测的数据作为目标体与电子设备之间距离的判断依据,即发射管以较小的第二功率发射第二发射光线,并通过第二接收管接收到第二反射光线作为判断依据,以避免近距离检测采用大功率造成的噪声干扰,并且避免近通道达到数据饱和。
如图9,本公开的一些实施例还提供了一种电子设备900,其中,电子设备900包括如上所述的距离传感装置,所述第一接收管距离所述发射管的第一距离大于所述第二接收管距离所述发射管的第二距离。
所述电子设备900包括:
控制模块910,用于控制所述发射管以第一功率发射第一发射光线,并通 过所述第一接收管接收所述第一发射光线照射到目标体后反射的第一反射光线。
第一确定模块920,用于根据接收所述第一反射光线的第一时长,确定所述电子设备与所述目标体之间的第一距离。
所述电子设备900还包括:
第一处理模块,用于在所述第一距离大于预设门限的情况下,将所述第一距离确定为所述电子设备与所述目标体之间的目标测量距离。
所述电子设备900还包括:
第二处理模块,用于在所述第一距离小于或者等于所述预设门限的情况下,控制所述发射管以第二功率发射第二发射光线,并通过所述第二接收管接收所述第二发射光线照射到目标体后反射的第二反射光线。
第二确定模块,用于根据接收所述第二反射光线的第二时长,确定所述电子设备与所述目标体之间的第二距离,并将所述第二距离确定为所述电子设备与所述目标体之间的目标测量距离。
本公开的一些实施例提供的电子设备能够实现图7和图8的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
上述方案中的电子设备900,在目标体与电子设备的距离达到预设门限时,以远通道检测的数据作为目标体与电子设备之间距离的判断依据,即发射管以较大的第一功率发射第一发射光线,并通过第一接收管接收到第一反射光线作为判断依据,可以保证有足够的能量穿透盖板,以保证实现远距离检测以及检测结果的准确性。在目标体与电子设备的距离未达到预设门限时,以近通道检测的数据作为目标体与电子设备之间距离的判断依据,即发射管以较小的第二功率发射第二发射光线,并通过第二接收管接收到第二反射光线作为判断依据,以避免近距离检测采用大功率造成的噪声干扰,并且避免近通道达到数据饱和。
图10为实现本公开各个实施例的一种电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、处理器1010、以及电源1011等部件。 本领域技术人员可以理解,图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开的一些实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器1010,用于控制所述发射管以第一功率发射第一发射光线,并通过所述第一接收管接收所述第一发射光线照射到目标体后反射的第一反射光线;根据接收所述第一反射光线的时间,确定所述电子设备与所述目标体之间的第一距离;若所述第一距离大于预设门限,则确定所述第一距离作为所述电子设备与所述目标体之间的目标测量距离;若所述第一距离小于或者等于所述预设门限,则控制所述发射管以第二功率发射第二发射光线,并通过所述第二接收管接收所述第二发射光线照射到目标体后反射的第二反射光线;根据接收所述第二反射光线的时间,确定所述电子设备与所述目标体之间的第二距离作为所述目标测量距离。
上述方案中的电子设备1000,在目标体与电子设备的距离达到预设门限时,以远通道检测的数据作为目标体与电子设备之间距离的判断依据,即发射管以较大的第一功率发射第一发射光线,并通过第一接收管接收到第一反射光线作为判断依据,可以保证有足够的能量穿透盖板,以保证实现远距离检测以及检测结果的准确性。在目标体与电子设备的距离未达到预设门限时,以近通道检测的数据作为目标体与电子设备之间距离的判断依据,即发射管以较小的第二功率发射第二发射光线,并通过第二接收管接收到第二反射光线作为判断依据,以避免近距离检测采用大功率造成的噪声干扰,并且避免近通道达到数据饱和。
应理解的是,本公开的一些实施例中,射频单元1001可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1010处理;另外,将上行的数据发送给基站。通常,射频单元1001包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1001还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块1002为用户提供了无线的宽带互联网访问,如帮 助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元1003可以将射频单元1001或网络模块1002接收的或者在存储器1009中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1003还可以提供与电子设备1000执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1003包括扬声器、蜂鸣器以及受话器等。
输入单元1004用于接收音频或视频信号。输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1006上。经图形处理器10041处理后的图像帧可以存储在存储器1009(或其它存储介质)中或者经由射频单元1001或网络模块1002进行发送。麦克风10042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1001发送到移动通信基站的格式输出。
电子设备1000还包括至少一种传感器1005,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板10061的亮度,接近传感器可在电子设备1000移动到耳边时,关闭显示面板10061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1005还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元1006用于显示由用户输入的信息或提供给用户的信息。显示单元1006可包括显示面板10061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板10061。
用户输入单元1007可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板10071上或在触控面板10071附近的操作)。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1010,接收处理器1010发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板10071。除了触控面板10071,用户输入单元1007还可以包括其他输入设备10072。具体地,其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板10071可覆盖在显示面板10061上,当触控面板10071检测到在其上或附近的触摸操作后,传送给处理器1010以确定触摸事件的类型,随后处理器1010根据触摸事件的类型在显示面板10061上提供相应的视觉输出。虽然在图10中,触控面板10071与显示面板10061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板10071与显示面板10061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元1008为外部装置与电子设备1000连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1008可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备1000内的一个或多个元件或者可以用于在电子设备1000和外部装置之间传输数据。
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个 功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1009可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器1010是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1009内的软件程序和/或模块,以及调用存储在存储器1009内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器1010可包括一个或多个处理单元;可选的,处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
电子设备1000还可以包括给各个部件供电的电源1011(比如电池),可选的,电源1011可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备1000包括一些未示出的功能模块,在此不再赘述。
可选的,本公开的一些实施例还提供一种电子设备,包括处理器1010,存储器1009,存储在存储器1009上并可在所述处理器1010上运行的计算机程序,该计算机程序被处理器1010执行时实现上述距离检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开的一些实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述距离检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况 下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。

Claims (13)

  1. 一种距离传感装置,包括:
    发射管,用于发射红外光线;
    第一接收管,用于接收第一发射光线照射到目标体后反射的第一反射光线,其中,所述第一发射光线为所述发射管以第一功率发射的红外光线;
    第二接收管,用于接收第二发射光线照射到所述目标体后反射的第二反射光线,其中,所述第二发射光线为所述发射管以第二功率发射的红外光线;
    其中,所述第一接收管距离所述发射管的第一距离与所述第二接收管距离所述发射管的第二距离不同。
  2. 根据权利要求1所述的距离传感装置,其中,所述发射管、所述第一接收管和所述第二接收管位于一直线上。
  3. 根据权利要求2所述的距离传感装置,其中,所述发射管位于所述第一接收管和所述第二接收管之间。
  4. 根据权利要求2所述的距离传感装置,其中,所述第一接收管和所述第二接收管相邻设置,所述发射管与所述第一接收管和所述第二接收管中的一者相邻设置。
  5. 根据权利要求1至4中任一项所述的距离传感装置,还包括:电路板;
    所述发射管、所述第一接收管和所述第二接收管分别与所述电路板连接。
  6. 根据权利要求5所述的距离传感装置,其中,所述发射管、所述第一接收管和所述第二接收管分别通过焊锡的方式与所述电路板连接;
    或者,所述发射管、所述第一接收管和所述第二接收管分别通过连接器与所述电路板连接。
  7. 根据权利要求1所述的距离传感装置,其中,
    在所述第一距离大于所述第二距离的情况下,所述第一功率大于所述第二功率;
    在所述第一距离小于所述第二距离的情况下,所述第一功率小于所述第二功率。
  8. 一种电子设备,包括如权利要求1至7中任一项所述的距离传感装 置。
  9. 根据权利要求8所述的电子设备,还包括盖板;
    所述距离传感装置设置于所述盖板的下方,且所述发射管、所述第一接收管和所述第二接收管与所述盖板之间设有间隙。
  10. 根据权利要求9所述的电子设备,其中,所述盖板包括显示区域和包围所述显示区域的非显示区域;
    所述发射管、所述第一接收管和所述第二接收管在所述盖板上的投影处于所述非显示区域内。
  11. 一种距离检测方法,应用于如权利要求8至10中任一项所述的电子设备,所述第一接收管距离所述发射管的第一距离大于所述第二接收管距离所述发射管的第二距离,所述方法包括:
    控制所述发射管以第一功率发射第一发射光线,并通过所述第一接收管接收所述第一发射光线照射到目标体后反射的第一反射光线;
    根据接收所述第一反射光线的第一时长,确定所述电子设备与所述目标体之间的第一距离。
  12. 根据权利要求11所述的距离检测方法,其中,所述根据接收所述第一反射光线的第一时长,确定所述电子设备与所述目标体之间的第一距离之后,还包括:
    在所述第一距离大于预设门限的情况下,将所述第一距离确定为所述电子设备与所述目标体之间的目标测量距离。
  13. 根据权利要求11所述的距离检测方法,其中,所述根据接收所述第一反射光线的第一时长,确定所述电子设备与所述目标体之间的第一距离之后,还包括:
    在所述第一距离小于或者等于预设门限的情况下,控制所述发射管以第二功率发射第二发射光线,并通过所述第二接收管接收所述第二发射光线照射到目标体后反射的第二反射光线;
    根据接收所述第二反射光线的第二时长,确定所述电子设备与所述目标体之间的第二距离,并将所述第二距离确定为所述电子设备与所述目标体之间的目标测量距离。
PCT/CN2019/111846 2018-10-25 2019-10-18 距离传感装置、电子设备及距离检测方法 WO2020083105A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811248015.4 2018-10-25
CN201811248015.4A CN109525711B (zh) 2018-10-25 2018-10-25 一种电子设备及距离检测方法

Publications (1)

Publication Number Publication Date
WO2020083105A1 true WO2020083105A1 (zh) 2020-04-30

Family

ID=65773780

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/111846 WO2020083105A1 (zh) 2018-10-25 2019-10-18 距离传感装置、电子设备及距离检测方法

Country Status (2)

Country Link
CN (1) CN109525711B (zh)
WO (1) WO2020083105A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525711B (zh) * 2018-10-25 2020-10-30 维沃移动通信有限公司 一种电子设备及距离检测方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160061588A1 (en) * 2014-08-28 2016-03-03 Lg Electronics Inc. Proximity sensor and control method thereof
CN106873879A (zh) * 2017-01-25 2017-06-20 维沃移动通信有限公司 一种电子设备以及熄屏处理方法、装置
CN108540640A (zh) * 2018-02-12 2018-09-14 维沃移动通信有限公司 一种红外检测装置、移动终端及红外接收器的确定方法、装置
CN109525711A (zh) * 2018-10-25 2019-03-26 维沃移动通信有限公司 一种距离传感装置、电子设备及距离检测方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101676746B (zh) * 2008-09-18 2012-06-27 财团法人工业技术研究院 红外线定位系统及定位方法
CN201334692Y (zh) * 2008-12-19 2009-10-28 黄印章 能根据环境自动调节感应距离的红外线感应洁具
CN102891914B (zh) * 2011-05-11 2015-12-09 深圳市福智软件技术有限公司 移动终端以及移动终端切换接听模式的方法
US8873026B2 (en) * 2011-08-05 2014-10-28 Qualcomm Incorporated Proximity sensor distance detection ambiguity removal
US9753136B2 (en) * 2015-02-11 2017-09-05 Motorola Mobility Llc Portable electronic device with proximity sensors for gesture control and contact detection
CN106775137B (zh) * 2016-12-06 2019-10-25 Oppo广东移动通信有限公司 接近检测方法、装置及移动终端
CN106774656B (zh) * 2016-12-06 2023-07-21 Oppo广东移动通信有限公司 传感器组件、盖板、移动终端及终端控制方法
CN106997660B (zh) * 2017-03-31 2023-11-03 泉芯电子技术(深圳)有限公司 一种红外接收器及其增益控制方法
CN108322608B (zh) * 2018-01-30 2019-11-19 维沃移动通信有限公司 一种屏幕亮灭控制方法、移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160061588A1 (en) * 2014-08-28 2016-03-03 Lg Electronics Inc. Proximity sensor and control method thereof
CN106873879A (zh) * 2017-01-25 2017-06-20 维沃移动通信有限公司 一种电子设备以及熄屏处理方法、装置
CN108540640A (zh) * 2018-02-12 2018-09-14 维沃移动通信有限公司 一种红外检测装置、移动终端及红外接收器的确定方法、装置
CN109525711A (zh) * 2018-10-25 2019-03-26 维沃移动通信有限公司 一种距离传感装置、电子设备及距离检测方法

Also Published As

Publication number Publication date
CN109525711B (zh) 2020-10-30
CN109525711A (zh) 2019-03-26

Similar Documents

Publication Publication Date Title
CN108459797B (zh) 一种折叠屏的控制方法及移动终端
US11769273B2 (en) Parameter obtaining method and terminal device
EP3748942B1 (en) Screen on-and-off state control method and mobile terminal
WO2021233176A1 (zh) 环境光检测方法及电子设备
CN109639863B (zh) 一种语音处理方法及装置
CN109257505B (zh) 一种屏幕控制方法及移动终端
CN109343788B (zh) 一种移动终端的操作控制方法及移动终端
WO2020103685A1 (zh) 指纹模组、指纹模组的控制方法及终端
WO2020156444A1 (zh) 电子设备及其控制方法
WO2020020060A1 (zh) 补光灯模组、指纹识别方法和终端设备
CN110661949A (zh) 显示面板的控制方法及电子设备
WO2021057712A1 (zh) 接近检测方法及终端设备
WO2021147911A1 (zh) 移动终端、拍摄模式的检测方法及存储介质
WO2021104232A1 (zh) 显示方法及电子设备
WO2022247762A1 (zh) 电子设备及其指纹解锁方法、指纹解锁装置
WO2020151490A1 (zh) 应用的控制方法及终端设备
CN110058686B (zh) 一种控制方法及终端设备
CN110442261B (zh) 电子设备及其触控操作检测方法
KR20220166853A (ko) 디스플레이 방법 및 전자기기
WO2020083105A1 (zh) 距离传感装置、电子设备及距离检测方法
CN109348016B (zh) 一种显示屏、显示控制方法及终端设备
CN108955641B (zh) 一种深度摄像方法、深度摄像设备及移动终端
CN108430025B (zh) 一种检测方法及移动终端
WO2022048623A1 (zh) 电子设备及其控制方法和控制装置
CN111327822B (zh) 一种控制摄像头移动的方法及电子设备

Legal Events

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

Ref document number: 19876011

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19876011

Country of ref document: EP

Kind code of ref document: A1