WO2021057511A1 - Infrared proximity sensor control method and device, and mobile terminal - Google Patents

Infrared proximity sensor control method and device, and mobile terminal Download PDF

Info

Publication number
WO2021057511A1
WO2021057511A1 PCT/CN2020/114754 CN2020114754W WO2021057511A1 WO 2021057511 A1 WO2021057511 A1 WO 2021057511A1 CN 2020114754 W CN2020114754 W CN 2020114754W WO 2021057511 A1 WO2021057511 A1 WO 2021057511A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
control device
switch
switch control
infrared
Prior art date
Application number
PCT/CN2020/114754
Other languages
French (fr)
Chinese (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 深圳市万普拉斯科技有限公司
Publication of WO2021057511A1 publication Critical patent/WO2021057511A1/en

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/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present invention relates to the field of mobile terminal manufacturing, in particular to an infrared proximity sensor control method, device, mobile terminal and computer storage medium.
  • the traditional infrared proximity sensor has moved from the edge of the screen to the lower end of the display of the mobile terminal.
  • the infrared proximity sensor includes an infrared transmitter and an infrared sensor, which senses proximity by emitting and receiving infrared light.
  • an infrared transmitter In the case of a software abnormality in the mobile terminal, it will take a long time to turn off the infrared transmitter under the screen, and therefore the phenomenon of the infrared transmitter flickering after the screen is turned on, which affects the user experience.
  • the present invention provides a control method of an infrared proximity sensor, which is applied to a mobile terminal, the mobile terminal includes the infrared proximity sensor, a screen and a power supply, the infrared proximity sensor includes an infrared transmitter, The infrared transmitter is connected to the power supply through a switch control device, and the infrared transmitter is covered by the screen, and the method includes: in response to the screen being turned on, sending a disconnection instruction to the switch control Device, so that the switch control device is in an off state, so that the infrared transmitter does not work; in response to the screen being turned off, a switch-on instruction is sent to the switch control device, so that the switch control device In the on state, the infrared transmitter works.
  • the present invention provides an infrared proximity sensor control device, which is applied to a mobile terminal, the mobile terminal includes the infrared proximity sensor, a screen, and a power supply, wherein the infrared proximity sensor includes an infrared transmitter,
  • the infrared transmitter is connected to the power supply through a switch control device, and the infrared proximity sensor control device includes: a disconnection instruction sending module, configured to send a disconnection instruction to the switch control in response to the bright screen of the screen Device, so that the switch control device is in an off state, so that the infrared transmitter does not work; a switch-on instruction sending module is used to send a switch-on instruction to the switch control device in response to the screen being turned off , So that the switch control device is in an on state, so that the infrared transmitter works.
  • a disconnection instruction sending module configured to send a disconnection instruction to the switch control in response to the bright screen of the screen Device, so that the switch control device is in an off state, so that the inf
  • the present invention provides a mobile terminal, which includes a memory, a processor, an infrared proximity sensor, a screen, and a power supply, wherein the memory is used to store a computer program, and the infrared proximity sensor includes an infrared transmitter.
  • the infrared transmitter is connected to the power supply through a switch control device, and the infrared transmitter is covered by the screen, when the computer program is executed, the processor is executed: in response to the screen To turn off the screen, send an off instruction to the switch control device, so that the switch control device is in an off state, so that the infrared transmitter does not work; in response to the screen off, send an on instruction to The switch control device is such that the switch control device is in an on state, so that the infrared transmitter works.
  • the present invention provides a mobile terminal, including: an infrared proximity sensor, including an infrared transmitter; a screen, covering the infrared transmitter; a switch; The transmitter is connected, wherein the switch is controlled to be in an off state in response to the screen being turned on, so that the infrared transmitter does not work, and in response to the screen being turned off, the switch is controlled to be turned on State so that the infrared transmitter works.
  • Figure 1 is a flowchart of an infrared proximity sensor control method provided by an embodiment of the present invention
  • Figure 2 is a flow chart of turning off an infrared transmitter provided by an embodiment of the present invention.
  • Figure 3 is a flow chart of starting an infrared transmitter provided by an embodiment of the present invention.
  • Figure 4 is a control circuit diagram of an infrared proximity sensor provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an infrared proximity sensor control device provided by an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a disconnect instruction sending module of an infrared proximity sensor control device provided by an embodiment of the present invention.
  • Fig. 7 is a schematic structural diagram of a switch-on instruction sending module of an infrared proximity sensor control device provided by an embodiment of the present invention.
  • the present invention provides a control method of an infrared proximity sensor, which is applied to a mobile terminal.
  • the mobile terminal includes the infrared proximity sensor, a screen, and a power supply.
  • the infrared proximity sensor includes an infrared transmitter, and the infrared transmitter is controlled by a switch.
  • the device is connected to the power supply, and the infrared transmitter is covered by the screen, and the method includes: in response to the bright screen of the screen, sending a disconnection instruction to the switch control device to make the switch control The device is in the off state, so that the infrared transmitter does not work; in response to the off-screen of the screen, an on instruction is sent to the switch control device to make the switch control device in the on state, so that the The infrared transmitter works.
  • the infrared transmitter is arranged at a preset position below the screen.
  • sending a disconnection instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is at a high voltage Level; when the input pin is at a high level, the disconnect command is generated and sent to the switch control device.
  • sending a turn-on instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is in a low power state. Level; when the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
  • the sending a disconnection instruction to the switch control device in response to the screen being turned on includes: determining whether the working voltage of the screen is greater than a first preset voltage value; When the operating voltage is greater than the first preset voltage value, the disconnect command is generated and sent to the switch control device.
  • sending a switch-on instruction to the switch control device includes:
  • the turn-on instruction is generated and sent to the switch control device.
  • the infrared proximity sensor further includes an infrared receiver, and the infrared receiver is used to receive the reflected infrared light for proximity detection.
  • the present invention provides an infrared proximity sensor control device, which is applied to a mobile terminal.
  • the mobile terminal includes the infrared proximity sensor, a screen, and a power supply, wherein the infrared proximity sensor includes an infrared transmitter, and the infrared transmitter is controlled by a switch
  • the device is connected to the power supply, and the infrared proximity sensor control device includes: a disconnection instruction sending module, configured to send a disconnection instruction to the switch control device in response to the bright screen of the screen, so that the switch control The device is in an off state, so the infrared transmitter does not work; an on instruction sending module is used to send an on instruction to the switch control device in response to the screen being turned off, so that the switch control device In the on state, the infrared transmitter works.
  • the disconnection instruction sending module includes: a high-level detection unit, configured to detect the working power input pin of the screen, and determine whether the input pin is at a high level; and the disconnection instruction is generated The unit is configured to generate the disconnection instruction and send it to the switch control device when the input pin is at a high level.
  • the present invention provides a mobile terminal, which includes a memory, a processor, an infrared proximity sensor, a screen, and a power supply.
  • the memory is used to store a computer program
  • the infrared proximity sensor includes an infrared transmitter
  • the infrared transmitter passes through
  • the switch control device is connected to the power supply, and the infrared transmitter is covered by the screen.
  • the processor When the computer program is executed, the processor is caused to execute: in response to the bright screen of the screen, send a disconnect instruction To the switch control device, so that the switch control device is in the off state, so that the infrared transmitter does not work; in response to the off-screen of the screen, send an on instruction to the switch control device to make The switch control device is in an on state, so that the infrared transmitter works.
  • the infrared transmitter is arranged at a preset position below the screen.
  • sending a disconnection instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is at a high voltage Level; when the input pin is at a high level, the disconnect command is generated and sent to the switch control device.
  • sending a turn-on instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is in a low power state. Level; when the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
  • the sending a disconnection instruction to the switch control device in response to the screen being turned on includes: determining whether the working voltage of the screen is greater than a first preset voltage value; When the operating voltage is greater than the first preset voltage value, the disconnect command is generated and sent to the switch control device.
  • sending a switch-on instruction to the switch control device includes: determining whether the working voltage of the screen is less than a second preset voltage value; When the operating voltage is less than the second preset voltage value, the turn-on instruction is generated and sent to the switch control device.
  • the present invention provides a mobile terminal, including: an infrared proximity sensor, including an infrared transmitter; a screen, covering the infrared transmitter; a switch; For the bright screen of the screen, the switch is controlled to be in the off state, so that the infrared transmitter does not work, and in response to the screen off, the switch is controlled to be in the on state, so that the infrared transmitter the work.
  • an infrared proximity sensor including an infrared transmitter
  • a screen covering the infrared transmitter
  • a switch For the bright screen of the screen, the switch is controlled to be in the off state, so that the infrared transmitter does not work, and in response to the screen off, the switch is controlled to be in the on state, so that the infrared transmitter the work.
  • the infrared transmitter is arranged at a preset position below the screen.
  • the mobile terminal further includes: a processor, connected to the switch through a communication port, for responding to the screen light-up, disconnecting instructions to the switch, so that the switch is in the off state. State, and in response to the screen being turned off, sending an on instruction to the switch so that the switch is in the on state.
  • a processor connected to the switch through a communication port, for responding to the screen light-up, disconnecting instructions to the switch, so that the switch is in the off state. State, and in response to the screen being turned off, sending an on instruction to the switch so that the switch is in the on state.
  • the communication port includes a GPIO port.
  • the sending a disconnection instruction to the switch control device in response to the screen being turned on includes: determining whether the working voltage of the screen is greater than a first preset voltage value; When the operating voltage is greater than the first preset voltage value, the disconnect command is generated and sent to the switch control device.
  • the sending a switch-on instruction to the switch control device in response to the screen turning off includes: determining whether the working voltage of the screen is less than a second preset voltage value; when the working voltage of the screen is less than the first preset voltage value; 2. When the voltage value is preset, the switch-on instruction is generated and sent to the switch control device. Wherein, the first preset voltage value is greater than the second preset voltage value.
  • the mobile terminal further includes: a second power supply connected to the screen, wherein when the input pin of the second power supply is at a high level, the switch is controlled to be in an off state, and the second power supply When the input pin of the power supply is at a low level, the switch is controlled to be in an on state.
  • the infrared proximity sensor further includes an infrared receiver, and the infrared receiver is used to receive the reflected infrared light for proximity detection.
  • FIG. 1 is a flowchart of an infrared proximity sensor control method provided by an embodiment of the present invention, which is applied to a mobile terminal, the mobile terminal includes the infrared proximity sensor, a screen, and a power source, the infrared proximity sensor includes an infrared transmitter, It is characterized in that the infrared transmitter is connected to the power supply through a switch control device, and the infrared transmitter is covered by the screen.
  • the method includes the following steps:
  • Step S11 In response to the lighting of the screen, a disconnection instruction is sent to the switch control device, so that the switch control device disconnects the power supply of the infrared transmitter.
  • the lighting of the screen that is, the bright screen of the screen
  • the disconnect command is sent to the switch control device, and the switch control device is in the disconnected state.
  • the infrared transmitter does not work.
  • a proximity sensor is provided in the mobile terminal.
  • the proximity sensor also includes an infrared receiver.
  • the infrared receiver is used to receive reflected infrared light for proximity detection.
  • the beam axis of the infrared transmitter and the axis of the infrared receiver are on the same plane and form an angle to intersect at an intersection point.
  • the beam line of the infrared transmitter can be emitted to the infrared receiver. So as to achieve the effect of proximity detection.
  • the infrared transmitter is arranged at a preset position under the screen of the mobile terminal, for example, it can be arranged at an edge position under the screen.
  • the infrared transmitter When the mobile terminal is provided with a black screen gesture, the infrared transmitter is in a continuous working state when the mobile terminal is off the screen, so that the mobile terminal can automatically detect whether it is in a pocket and avoid touching the black screen gesture in the pocket by mistake.
  • the switch control device is connected to the communication port of the mobile terminal processor, and the communication port includes a GPIO port.
  • the processor sends instructions to the infrared sensor, turns on the infrared sensor and then turns on the infrared transmitter. When it is turned off, it also issues instructions to the infrared sensor, and then turns off the infrared transmitter after turning off the infrared sensor. There is a time difference between the current process of controlling the turning on or off of the infrared transmitter and the bright screen.
  • controlling the turning on or off of the infrared transmitter may cause a delay, resulting in an infrared flash screen phenomenon. , Or the proximity detection delay phenomenon causes the screen to be touched by mistake, which affects the customer experience.
  • a hardware GPIO interface (GPIO, General Purpose Input Output, general purpose input and output) of the processor can be used to add a switch control device for the infrared transmitter in the mobile terminal.
  • the process is used for control.
  • the switch control device controls the turning off or turning on of the infrared transmitter.
  • the processor of the mobile terminal may generate a disconnection instruction and send it to the switch device to control the switch device to turn off the infrared transmitter and turn off the Infrared transmitter, to avoid the phenomenon that the infrared transmitter cannot be turned off in time after the mobile terminal is turned on and the screen is bright, which affects the customer experience.
  • the processor of the mobile terminal can use the switch control device to control the infrared transmitter, or use the original circuit to control the infrared.
  • the transmitter is not limited here.
  • Step S12 In response to the turning off of the screen, a turn-on instruction is sent to the switch control device, so that the switch control device turns on the power supply of the infrared transmitter.
  • the screen When the screen is turned off, that is, the screen is off, it means that the screen is in the off-screen state.
  • the switch-on instruction is sent to the switch control device, and the switch control device is in the on state. At this time, the infrared transmitter can work.
  • the processor of the mobile terminal when the mobile terminal closes the screen, the processor of the mobile terminal receives the screen-off instruction, and at the same time can generate the turn-on instruction and send it to the switch device to control the switch device to turn on the infrared transmitter and turn on the infrared transmitter. , So that the mobile terminal can turn on the infrared transmitter for proximity detection in time when the screen is off, avoiding the delay of proximity detection and causing false touches on the screen, and providing user experience.
  • FIG. 2 it is a flow chart for turning off the infrared transmitter, which includes the following steps:
  • Step S21 Detect the working power input pin of the screen, and determine whether the input pin is at a high level.
  • the mobile terminal can detect the working power input pin of the screen through hardware, and judge the on-off state of the screen by judging the level of the input pin. It can also monitor the working voltage of the screen of the mobile terminal in real time, and when it is detected that the screen of the mobile terminal starts to work at a high voltage, it is determined that the screen enters the bright screen state.
  • a first preset voltage value may be set in the mobile terminal, and the first preset voltage value may be used to determine whether the screen of the mobile terminal is in a bright screen state. For example, when the working voltage of the screen is greater than the first preset voltage value, the screen is in a bright screen state. At this time, the disconnect command is generated and sent to the switch control device.
  • Step S22 When the input pin is at a high level, the disconnect instruction is generated and sent to the switch control device.
  • a disconnect instruction can be generated and sent to the switch control device, so that The switch control device turns off the infrared transmitter.
  • an algorithm or application program can also be provided in the mobile terminal to determine whether the input pin level of the screen is at a high level.
  • an application program that detects the input pin level can be provided in the mobile terminal. The program monitors the level of the input pin of the screen in real time, and when it detects that the level of the input pin is high, it can generate a disconnection instruction and send it to the switch control device.
  • FIG. 3 it is a flow chart for starting the infrared transmitter, which includes the following steps:
  • Step S31 Detect the working power input pin of the screen, and determine whether the input pin is at a low level.
  • a second preset voltage value may be set in the mobile terminal, and the second preset voltage value is used to determine whether the screen of the mobile terminal is in the off-screen state.
  • the working voltage of the screen is less than the second preset voltage value, the screen is in an off-screen state.
  • the turn-on command is generated and sent to the switch control device.
  • the first preset voltage value is greater than the second preset voltage value.
  • Step S32 When the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
  • a switch-on instruction can be generated and sent to the switch control device, so that The switch control device turns on the infrared transmitter.
  • an algorithm or an application program can also be provided in the mobile terminal to determine whether the input pin level of the screen is at a low level.
  • an application program that detects the input pin level can be provided in the mobile terminal. The program monitors the level of the input pin of the screen in real time, and when it detects that the level of the input pin is low, it can generate a turn-on instruction and send it to the switch control device.
  • FIG. 4 it is an infrared proximity sensor control circuit diagram.
  • the CPU CPU, Central Processing Unit, central processing unit
  • the CPU of the mobile terminal is connected to the DC-DC power supply module of the display screen to detect
  • the level of the EN pin of the DC-DC power supply module when a high level is detected, is controlled by GPIO to disconnect the switch MOS tube connected to the infrared transmitter, thereby disconnecting the power supply to the infrared transmitter.
  • the PMIC in the figure is a power management integrated circuit, which is used to control an infrared power supply LDO (LDO, low dropout regulator, low dropout linear regulator) to supply power to the infrared emitting device.
  • LDO infrared power supply LDO
  • Fig. 5 is a schematic structural diagram of an infrared proximity sensor control device provided by an embodiment of the present invention.
  • the control device 500 is applied to a mobile terminal provided with an infrared proximity sensor.
  • the infrared proximity sensor includes an infrared transmitter, which is connected to the power supply through a switch control device, and the infrared proximity sensor control device includes:
  • the disconnection instruction sending module 510 is configured to send a disconnection instruction to the switch control device in response to the lighting of the screen of the mobile terminal, so that the switch control device disconnects the power supply of the infrared transmitter;
  • the switch-on instruction sending module 520 is configured to send a switch-on instruction to the switch control device in response to the screen of the mobile terminal being turned off, so that the switch control device switches on the power supply of the infrared transmitter.
  • the disconnection instruction sending module 510 includes:
  • the high-level detection unit 511 is configured to detect the working power input pin of the screen of the mobile terminal, and determine whether the input pin is at a high level;
  • the disconnection instruction generating unit 512 is configured to generate the disconnection instruction and send it to the switch control device when the input pin is at a high level.
  • connection instruction sending module 520 includes:
  • the low level detection unit 521 is configured to detect the working power input pin of the mobile terminal screen, and determine whether the input pin is at a low level;
  • the switch-on instruction generating unit 522 is configured to generate and send the switch-on instruction to the switch control device when the input pin is at a low level.
  • the present invention also provides a mobile terminal, which may include a smart phone, a tablet computer, a vehicle-mounted computer, a smart wearable device, and the like.
  • the mobile terminal includes a memory and a processor, and the memory can be used to store a computer program.
  • the processor runs the computer program to enable the mobile terminal to execute the above method or the functions of each module in the above infrared proximity sensor control device.
  • the memory may include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Use the created data (such as audio data, phone book, etc.) and so on.
  • the memory 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.
  • This embodiment also provides a computer storage medium for storing the computer program used in the above-mentioned mobile terminal.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more functions for realizing the specified logic function.
  • Executable instructions may also occur in a different order from the order marked in the drawings.
  • each block in the structure diagram and/or flowchart, and the combination of the blocks in the structure diagram and/or flowchart can be used as a dedicated hardware-based system that performs specified functions or actions. , Or can be realized by a combination of dedicated hardware and computer instructions.
  • the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
  • the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present invention essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides an infrared proximity sensor control method and device, and a mobile terminal, which are applied to a mobile terminal. The mobile terminal comprises an infrared proximity sensor, a screen and a power supply. The infrared proximity sensor comprises an infrared transmitter, characterized in that the infrared transmitter is connected to the power supply by means of a switch control device, and the infrared transmitter is covered by the screen. Said method comprises: in response to screen-on, sending a turn-off instruction to the switch control device, so that the switch control device is in a turn-off state, and thus the infrared transmitter does not operate; and in response to screen-off, sending a turn-on instruction to the switch control device, so that the switch control device is in a turn-on state, and thus the infrared transmitter operates.

Description

红外接近传感器控制方法、装置和移动终端Infrared proximity sensor control method, device and mobile terminal 【技术领域】【Technical Field】
本发明涉及移动终端制造领域,具体而言,涉及一种红外接近传感器控制方法、装置、移动终端和计算机存储介质。The present invention relates to the field of mobile terminal manufacturing, in particular to an infrared proximity sensor control method, device, mobile terminal and computer storage medium.
【背景技术】【Background technique】
随着手机全面屏的发展与普及,传统的红外接近传感器已经从屏幕边缘移至移动终端显示屏的下端。With the development and popularization of full-screen mobile phones, the traditional infrared proximity sensor has moved from the edge of the screen to the lower end of the display of the mobile terminal.
红外接近传感器包括有红外发射器以及红外传感器,通过发射以及接收红外光来感测接近物。在移动终端出现软件异常的情况下,将会导致关闭屏下红外发射器的时间比较久,因此就会出现在亮屏后红外发射器闪屏的现象,从而影响用户的体验。The infrared proximity sensor includes an infrared transmitter and an infrared sensor, which senses proximity by emitting and receiving infrared light. In the case of a software abnormality in the mobile terminal, it will take a long time to turn off the infrared transmitter under the screen, and therefore the phenomenon of the infrared transmitter flickering after the screen is turned on, which affects the user experience.
【发明内容】[Summary of the invention]
根据本发明的第一方面,本发明提供一种红外接近传感器的控制方法,应用于移动终端,所述移动终端包括所述红外接近传感器、屏幕和电源,所述红外接近传感器包括红外发射器,所述红外发射器通过开关控制装置与所述电源连接,且所述红外发射器被所述屏幕覆盖,所述方法包括:响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。According to a first aspect of the present invention, the present invention provides a control method of an infrared proximity sensor, which is applied to a mobile terminal, the mobile terminal includes the infrared proximity sensor, a screen and a power supply, the infrared proximity sensor includes an infrared transmitter, The infrared transmitter is connected to the power supply through a switch control device, and the infrared transmitter is covered by the screen, and the method includes: in response to the screen being turned on, sending a disconnection instruction to the switch control Device, so that the switch control device is in an off state, so that the infrared transmitter does not work; in response to the screen being turned off, a switch-on instruction is sent to the switch control device, so that the switch control device In the on state, the infrared transmitter works.
根据本发明的第二方面,本发明提供一种红外接近传感器控制装置,应用于移动终端,所述移动终端包括所述红外接近传感器、屏幕和电源,其中所述红外接近传感器包括红外发射器,所述红外发射器通过开关控制装置与所述电源连接,所述红外接近传感器控制装置包括:断开指令发送模块,用于响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;接通指令发送模块,用于响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置 处于接通状态,从而所述红外发射器工作。According to a second aspect of the present invention, the present invention provides an infrared proximity sensor control device, which is applied to a mobile terminal, the mobile terminal includes the infrared proximity sensor, a screen, and a power supply, wherein the infrared proximity sensor includes an infrared transmitter, The infrared transmitter is connected to the power supply through a switch control device, and the infrared proximity sensor control device includes: a disconnection instruction sending module, configured to send a disconnection instruction to the switch control in response to the bright screen of the screen Device, so that the switch control device is in an off state, so that the infrared transmitter does not work; a switch-on instruction sending module is used to send a switch-on instruction to the switch control device in response to the screen being turned off , So that the switch control device is in an on state, so that the infrared transmitter works.
根据本发明的第三方面,本发明提供一种移动终端,其包括存储器、处理器、红外接近传感器、屏幕以及电源,其中,所述存储器用于存储计算机程序,所述红外接近传感器包括红外发射器,所述红外发射器通过开关控制装置与所述电源连接,且所述红外发射器被所述屏幕覆盖,在所述计算机程序被执行时,使得所述处理器执行:响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。According to a third aspect of the present invention, the present invention provides a mobile terminal, which includes a memory, a processor, an infrared proximity sensor, a screen, and a power supply, wherein the memory is used to store a computer program, and the infrared proximity sensor includes an infrared transmitter. The infrared transmitter is connected to the power supply through a switch control device, and the infrared transmitter is covered by the screen, when the computer program is executed, the processor is executed: in response to the screen To turn off the screen, send an off instruction to the switch control device, so that the switch control device is in an off state, so that the infrared transmitter does not work; in response to the screen off, send an on instruction to The switch control device is such that the switch control device is in an on state, so that the infrared transmitter works.
根据本发明的第四方面,本发明提供一种移动终端,包括:红外接近传感器,包括红外发射器;屏幕,覆盖所述红外发射器;开关;第一电源,经过所述开关与所述红外发射器连接,其中响应于所述屏幕的亮屏,所述开关被控制处于断开状态,从而所述红外发射器不工作,响应于所述屏幕的灭屏,所述开关被控制处于接通状态,从而所述红外发射器工作。According to a fourth aspect of the present invention, the present invention provides a mobile terminal, including: an infrared proximity sensor, including an infrared transmitter; a screen, covering the infrared transmitter; a switch; The transmitter is connected, wherein the switch is controlled to be in an off state in response to the screen being turned on, so that the infrared transmitter does not work, and in response to the screen being turned off, the switch is controlled to be turned on State so that the infrared transmitter works.
【附图说明】【Explanation of the drawings】
为了更清楚地说明本发明的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对本发明保护范围的限定。在各个附图中,类似的构成部分采用类似的编号。In order to explain the technical solution of the present invention more clearly, the following will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show certain embodiments of the present invention, and therefore should not be It is regarded as a limitation of the protection scope of the present invention. In each figure, similar components are numbered similarly.
图1是本发明实施例提供的一种红外接近传感器控制方法的流程图;Figure 1 is a flowchart of an infrared proximity sensor control method provided by an embodiment of the present invention;
图2是本发明实施例提供的一种关闭红外发射器的流程图;Figure 2 is a flow chart of turning off an infrared transmitter provided by an embodiment of the present invention;
图3是本发明实施例提供的一种启动红外发射器的流程图;Figure 3 is a flow chart of starting an infrared transmitter provided by an embodiment of the present invention;
图4是本发明实施例提供的一种红外接近传感器控制电路图;Figure 4 is a control circuit diagram of an infrared proximity sensor provided by an embodiment of the present invention;
图5是本发明实施例提供的一种红外接近传感器控制装置的结构示意图;5 is a schematic structural diagram of an infrared proximity sensor control device provided by an embodiment of the present invention;
图6是本发明实施例提供的一种红外接近传感器控制装置的断开指令发送模块的结构示意图;6 is a schematic structural diagram of a disconnect instruction sending module of an infrared proximity sensor control device provided by an embodiment of the present invention;
图7是本发明实施例提供的一种红外接近传感器控制装置的接通指令发送模块的结构示意图。Fig. 7 is a schematic structural diagram of a switch-on instruction sending module of an infrared proximity sensor control device provided by an embodiment of the present invention.
【具体实施方式】【detailed description】
下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments.
通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The components of the embodiments of the present invention generally described and illustrated in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.
在下文中,可在本发明的各种实施例中使用的术语“包括”、“具有”及其同源词仅意在表示特定特征、数字、步骤、操作、元件、组件或前述项的组合,并且不应被理解为首先排除一个或更多个其它特征、数字、步骤、操作、元件、组件或前述项的组合的存在或增加一个或更多个特征、数字、步骤、操作、元件、组件或前述项的组合的可能性。Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present invention are only intended to represent specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, And should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding one or more features, numbers, steps, operations, elements, components Or the possibility of a combination of the foregoing.
此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, the terms "first", "second", "third", etc. are only used for distinguishing description, and cannot be understood as indicating or implying relative importance.
除非另有限定,否则在这里使用的所有术语(包括技术术语和科学术语)具有与本发明的各种实施例所属领域普通技术人员通常理解的含义相同的含义。所述术语(诸如在一般使用的词典中限定的术语)将被解释为具有与在相关技术领域中的语境含义相同的含义并且将不被解释为具有理想化的含义或过于正式的含义,除非在本发明的各种实施例中被清楚地限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meanings as commonly understood by those of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having idealized or overly formal meanings, Unless clearly defined in various embodiments of the present invention.
本发明提供一种红外接近传感器的控制方法,应用于移动终端,所述移动终端包括所述红外接近传感器、屏幕和电源,所述红外接近传感器包括红外发射器,所述红外发射器通过开关控制装置与所述电源连接,且所述红外发射器被所述屏幕覆盖,所述方法包括:响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。The present invention provides a control method of an infrared proximity sensor, which is applied to a mobile terminal. The mobile terminal includes the infrared proximity sensor, a screen, and a power supply. The infrared proximity sensor includes an infrared transmitter, and the infrared transmitter is controlled by a switch. The device is connected to the power supply, and the infrared transmitter is covered by the screen, and the method includes: in response to the bright screen of the screen, sending a disconnection instruction to the switch control device to make the switch control The device is in the off state, so that the infrared transmitter does not work; in response to the off-screen of the screen, an on instruction is sent to the switch control device to make the switch control device in the on state, so that the The infrared transmitter works.
在一些实施例中,所述红外发射器设置于所述屏幕下方的预设位置。In some embodiments, the infrared transmitter is arranged at a preset position below the screen.
在一些实施例中,所述响应于所述屏幕的亮屏,发送断开指令至所述开关 控制装置包括:检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平;当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。In some embodiments, in response to the screen being turned on, sending a disconnection instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is at a high voltage Level; when the input pin is at a high level, the disconnect command is generated and sent to the switch control device.
在一些实施例中,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于低电平;当所述输入引脚处于低电平时,生成所述接通指令并发送至所述开关控制装置。In some embodiments, in response to the screen being turned off, sending a turn-on instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is in a low power state. Level; when the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
在一些实施例中,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:判断所述屏幕的工作电压是否大于第一预设电压值;当所述屏幕的工作电压大于所述第一预设电压值时,生成所述断开指令并发送至所述开关控制装置。In some embodiments, the sending a disconnection instruction to the switch control device in response to the screen being turned on includes: determining whether the working voltage of the screen is greater than a first preset voltage value; When the operating voltage is greater than the first preset voltage value, the disconnect command is generated and sent to the switch control device.
在一些实施例中,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:In some embodiments, in response to the screen turning off, sending a switch-on instruction to the switch control device includes:
判断所述屏幕的工作电压是否小于第二预设电压值;Judging whether the working voltage of the screen is less than a second preset voltage value;
当所述屏幕的工作电压小于所述第二预设电压值时,生成所述接通指令并发送至所述开关控制装置。When the operating voltage of the screen is less than the second preset voltage value, the turn-on instruction is generated and sent to the switch control device.
在一些实施例中,所述红外接近传感器还包括红外接收器,所述红外接收器用于接收反射回来的红外光进行接近检测。In some embodiments, the infrared proximity sensor further includes an infrared receiver, and the infrared receiver is used to receive the reflected infrared light for proximity detection.
本发明提供一种红外接近传感器控制装置,应用于移动终端,所述移动终端包括所述红外接近传感器、屏幕和电源,其中所述红外接近传感器包括红外发射器,所述红外发射器通过开关控制装置与所述电源连接,所述红外接近传感器控制装置包括:断开指令发送模块,用于响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;接通指令发送模块,用于响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。The present invention provides an infrared proximity sensor control device, which is applied to a mobile terminal. The mobile terminal includes the infrared proximity sensor, a screen, and a power supply, wherein the infrared proximity sensor includes an infrared transmitter, and the infrared transmitter is controlled by a switch The device is connected to the power supply, and the infrared proximity sensor control device includes: a disconnection instruction sending module, configured to send a disconnection instruction to the switch control device in response to the bright screen of the screen, so that the switch control The device is in an off state, so the infrared transmitter does not work; an on instruction sending module is used to send an on instruction to the switch control device in response to the screen being turned off, so that the switch control device In the on state, the infrared transmitter works.
在一些实施例中,所述断开指令发送模块包括:高电平检测单元,用于检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平;断开指令生成单元,用于当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。In some embodiments, the disconnection instruction sending module includes: a high-level detection unit, configured to detect the working power input pin of the screen, and determine whether the input pin is at a high level; and the disconnection instruction is generated The unit is configured to generate the disconnection instruction and send it to the switch control device when the input pin is at a high level.
本发明提供一种移动终端,其包括存储器、处理器、红外接近传感器、屏幕以及电源,其中,所述存储器用于存储计算机程序,所述红外接近传感器包括红外发射器,所述红外发射器通过开关控制装置与所述电源连接,且所述红外发射器被所述屏幕覆盖,在所述计算机程序被执行时,使得所述处理器执行:响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。The present invention provides a mobile terminal, which includes a memory, a processor, an infrared proximity sensor, a screen, and a power supply. The memory is used to store a computer program, the infrared proximity sensor includes an infrared transmitter, and the infrared transmitter passes through The switch control device is connected to the power supply, and the infrared transmitter is covered by the screen. When the computer program is executed, the processor is caused to execute: in response to the bright screen of the screen, send a disconnect instruction To the switch control device, so that the switch control device is in the off state, so that the infrared transmitter does not work; in response to the off-screen of the screen, send an on instruction to the switch control device to make The switch control device is in an on state, so that the infrared transmitter works.
在一些实施例中,所述红外发射器设置于所述屏幕下方的预设位置。In some embodiments, the infrared transmitter is arranged at a preset position below the screen.
在一些实施例中,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平;当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。In some embodiments, in response to the screen being turned on, sending a disconnection instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is at a high voltage Level; when the input pin is at a high level, the disconnect command is generated and sent to the switch control device.
在一些实施例中,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于低电平;当所述输入引脚处于低电平时,生成所述接通指令并发送至所述开关控制装置。In some embodiments, in response to the screen being turned off, sending a turn-on instruction to the switch control device includes: detecting a working power input pin of the screen, and determining whether the input pin is in a low power state. Level; when the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
在一些实施例中,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:判断所述屏幕的工作电压是否大于第一预设电压值;当所述屏幕的工作电压大于所述第一预设电压值时,生成所述断开指令并发送至所述开关控制装置。In some embodiments, the sending a disconnection instruction to the switch control device in response to the screen being turned on includes: determining whether the working voltage of the screen is greater than a first preset voltage value; When the operating voltage is greater than the first preset voltage value, the disconnect command is generated and sent to the switch control device.
在一些实施例中,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:判断所述屏幕的工作电压是否小于第二预设电压值;当所述屏幕的工作电压小于所述第二预设电压值时,生成所述接通指令并发送至所述开关控制装置。In some embodiments, in response to the screen being turned off, sending a switch-on instruction to the switch control device includes: determining whether the working voltage of the screen is less than a second preset voltage value; When the operating voltage is less than the second preset voltage value, the turn-on instruction is generated and sent to the switch control device.
本发明提供一种移动终端,包括:红外接近传感器,包括红外发射器;屏幕,覆盖所述红外发射器;开关;第一电源,经过所述开关与所述红外发射器连接,其中响应于所述屏幕的亮屏,所述开关被控制处于断开状态,从而所述红外发射器不工作,响应于所述屏幕的灭屏,所述开关被控制处于接通状态,从而所述红外发射器工作。The present invention provides a mobile terminal, including: an infrared proximity sensor, including an infrared transmitter; a screen, covering the infrared transmitter; a switch; For the bright screen of the screen, the switch is controlled to be in the off state, so that the infrared transmitter does not work, and in response to the screen off, the switch is controlled to be in the on state, so that the infrared transmitter the work.
在一些实施例中,所述红外发射器设置于所述屏幕下方的预设位置。In some embodiments, the infrared transmitter is arranged at a preset position below the screen.
在一些实施例中,移动终端还包括:处理器,通过通信端口与所述开关连接,用于响应于所述屏幕的亮屏,断开指令至所述开关,以使所述开关处于断开状态,以及响应于所述屏幕的灭屏,发送接通指令至所述开关,以使所述开关处于接通状态。In some embodiments, the mobile terminal further includes: a processor, connected to the switch through a communication port, for responding to the screen light-up, disconnecting instructions to the switch, so that the switch is in the off state. State, and in response to the screen being turned off, sending an on instruction to the switch so that the switch is in the on state.
在一些实施例中,所述通信端口包括GPIO端口。In some embodiments, the communication port includes a GPIO port.
在一些实施例中,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:判断所述屏幕的工作电压是否大于第一预设电压值;当所述屏幕的工作电压大于所述第一预设电压值时,生成所述断开指令并发送至所述开关控制装置。所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:判断所述屏幕的工作电压是否小于第二预设电压值;当所述屏幕的工作电压小于所述第二预设电压值时,生成所述接通指令并发送至所述开关控制装置。其中,所述第一预设电压值大于所述第二预设电压值。In some embodiments, the sending a disconnection instruction to the switch control device in response to the screen being turned on includes: determining whether the working voltage of the screen is greater than a first preset voltage value; When the operating voltage is greater than the first preset voltage value, the disconnect command is generated and sent to the switch control device. The sending a switch-on instruction to the switch control device in response to the screen turning off includes: determining whether the working voltage of the screen is less than a second preset voltage value; when the working voltage of the screen is less than the first preset voltage value; 2. When the voltage value is preset, the switch-on instruction is generated and sent to the switch control device. Wherein, the first preset voltage value is greater than the second preset voltage value.
在一些实施例中,移动终端还包括:第二电源,与所述屏幕连接,其中所述第二电源的输入引脚处于高电平时,所述开关被控制处于断开状态,所述第二电源的输入引脚处于低电平时,所述开关被控制处于接通状态。In some embodiments, the mobile terminal further includes: a second power supply connected to the screen, wherein when the input pin of the second power supply is at a high level, the switch is controlled to be in an off state, and the second power supply When the input pin of the power supply is at a low level, the switch is controlled to be in an on state.
在一些实施例中,所述红外接近传感器还包括红外接收器,所述红外接收器用于接收反射回来的红外光进行接近检测。In some embodiments, the infrared proximity sensor further includes an infrared receiver, and the infrared receiver is used to receive the reflected infrared light for proximity detection.
图1是本发明实施例提供的一种红外接近传感器控制方法的流程图,应用于移动终端,所述移动终端包括所述红外接近传感器、屏幕和电源,所述红外接近传感器包括红外发射器,其特征在于,所述红外发射器通过开关控制装置与所述电源连接,且所述红外发射器被所述屏幕覆盖。该方法包括如下步骤:FIG. 1 is a flowchart of an infrared proximity sensor control method provided by an embodiment of the present invention, which is applied to a mobile terminal, the mobile terminal includes the infrared proximity sensor, a screen, and a power source, the infrared proximity sensor includes an infrared transmitter, It is characterized in that the infrared transmitter is connected to the power supply through a switch control device, and the infrared transmitter is covered by the screen. The method includes the following steps:
步骤S11:响应于屏幕的点亮,发送断开指令至所述开关控制装置,以使所述开关控制装置断开所述红外发射器的电源。Step S11: In response to the lighting of the screen, a disconnection instruction is sent to the switch control device, so that the switch control device disconnects the power supply of the infrared transmitter.
屏幕的点亮,即屏幕的亮屏,表示屏幕处于亮屏状态,断开指令发送至开关控制装置,开关控制装置处于断开状态,此时,红外发射器不工作。The lighting of the screen, that is, the bright screen of the screen, means that the screen is in the bright screen state, the disconnect command is sent to the switch control device, and the switch control device is in the disconnected state. At this time, the infrared transmitter does not work.
本发明实施例中,移动终端中设置有接近传感器,该接近传感器除了包括有红外发射器,还包括有红外接收器,该红外接收器用于接收反射回来的红外光进行接近检测。具体地,该红外发射器的光束轴线与红外接收器的轴线在同一平面上,并形成夹角相交于一个交点,当物体接近交点时即可将红外发射器 的光束线发射至红外接收器,从而达到接近检测的效果。其中,该红外发射器设置于移动终端的屏幕下方的预设位置,例如可以设置在屏幕下方的边缘位置上。在移动终端设置有黑屏手势时,该红外发射器在移动终端灭屏状态时是出于持续工作的状态,从而使移动终端可以自动检测是否处于口袋中,在口袋中避免误触黑屏手势。所述开关控制装置与移动终端处理器的通信端口连接,通信端口包括GPIO端口。In the embodiment of the present invention, a proximity sensor is provided in the mobile terminal. In addition to an infrared transmitter, the proximity sensor also includes an infrared receiver. The infrared receiver is used to receive reflected infrared light for proximity detection. Specifically, the beam axis of the infrared transmitter and the axis of the infrared receiver are on the same plane and form an angle to intersect at an intersection point. When the object approaches the intersection point, the beam line of the infrared transmitter can be emitted to the infrared receiver. So as to achieve the effect of proximity detection. Wherein, the infrared transmitter is arranged at a preset position under the screen of the mobile terminal, for example, it can be arranged at an edge position under the screen. When the mobile terminal is provided with a black screen gesture, the infrared transmitter is in a continuous working state when the mobile terminal is off the screen, so that the mobile terminal can automatically detect whether it is in a pocket and avoid touching the black screen gesture in the pocket by mistake. The switch control device is connected to the communication port of the mobile terminal processor, and the communication port includes a GPIO port.
现有的移动终端中,处理器通过下发指令至红外传感器,开启该红外传感器后再开启红外发射器,在关闭时也是下发指令至红外传感器,关闭红外传感器后再关闭红外发射器,因此现有的控制红外发射器的开启或关闭与亮屏流程存在时间差,在移动终端的处理器处理事件较多的时候,控制红外发射器的开启或关闭可能会产生延迟,从而出现红外闪屏现象,或者是接近检测延迟现象而导致屏幕误触,从而影响客户体验。In the existing mobile terminal, the processor sends instructions to the infrared sensor, turns on the infrared sensor and then turns on the infrared transmitter. When it is turned off, it also issues instructions to the infrared sensor, and then turns off the infrared transmitter after turning off the infrared sensor. There is a time difference between the current process of controlling the turning on or off of the infrared transmitter and the bright screen. When the processor of the mobile terminal processes many events, controlling the turning on or off of the infrared transmitter may cause a delay, resulting in an infrared flash screen phenomenon. , Or the proximity detection delay phenomenon causes the screen to be touched by mistake, which affects the customer experience.
本发明实施例中,在移动终端中可以通过处理器的硬件GPIO接口(GPIO,General Purpose Input Output,通用型之输入输出)为红外发射器新增一个开关控制装置,并由处理器的亮屏流程来进行控制,在亮屏或灭屏时由开关控制装置控制红外发射器的关闭或开启。In the embodiment of the present invention, a hardware GPIO interface (GPIO, General Purpose Input Output, general purpose input and output) of the processor can be used to add a switch control device for the infrared transmitter in the mobile terminal. The process is used for control. When the screen is turned on or off, the switch control device controls the turning off or turning on of the infrared transmitter.
本发明实施例中,例如在移动终端的处理器接收亮屏指令点亮屏幕后,该处理器可以生成断开指令发送至该开关装置,控制该开关装置断开红外发射器的电源,关闭该红外发射器,避免在移动终端亮屏后不能及时关闭红外发射器而产生亮屏的现象,影响客户体验。在点亮移动终端的屏幕后,在运行移动终端的应用时如果需要使用红外发射装置,该移动终端的处理器可以利用开关控制装置去控制红外发射器,也可以利用原有的电路去控制红外发射器,这里不做限定。In the embodiment of the present invention, for example, after the processor of the mobile terminal receives a screen-on instruction to turn on the screen, the processor may generate a disconnection instruction and send it to the switch device to control the switch device to turn off the infrared transmitter and turn off the Infrared transmitter, to avoid the phenomenon that the infrared transmitter cannot be turned off in time after the mobile terminal is turned on and the screen is bright, which affects the customer experience. After lighting up the screen of the mobile terminal, if you need to use the infrared transmitter when running the application of the mobile terminal, the processor of the mobile terminal can use the switch control device to control the infrared transmitter, or use the original circuit to control the infrared. The transmitter is not limited here.
步骤S12:响应于屏幕的关闭,发送接通指令至所述开关控制装置,以使所述开关控制装置接通所述红外发射器的电源。Step S12: In response to the turning off of the screen, a turn-on instruction is sent to the switch control device, so that the switch control device turns on the power supply of the infrared transmitter.
屏幕的关闭,即屏幕的灭屏,表示屏幕处于灭屏状态,接通指令发送至开关控制装置,开关控制装置处于接通状态,此时,红外发射器可以工作。When the screen is turned off, that is, the screen is off, it means that the screen is in the off-screen state. The switch-on instruction is sent to the switch control device, and the switch control device is in the on state. At this time, the infrared transmitter can work.
本发明实施例中,在移动终端关闭屏幕时,移动终端的处理器接收灭屏指令,同时可以生成开启指令发送至开关装置,控制该开关装置接通红外发射器的电源,开启该红外发射器,以使移动终端在灭屏状态下及时开启红外发射器 进行接近检测,避免接近检测的延迟而导致屏幕误触,提供用户体验度。In the embodiment of the present invention, when the mobile terminal closes the screen, the processor of the mobile terminal receives the screen-off instruction, and at the same time can generate the turn-on instruction and send it to the switch device to control the switch device to turn on the infrared transmitter and turn on the infrared transmitter. , So that the mobile terminal can turn on the infrared transmitter for proximity detection in time when the screen is off, avoiding the delay of proximity detection and causing false touches on the screen, and providing user experience.
本发明实施例中,如图2所示,为一种关闭红外发射器的流程图,包括如下步骤:In the embodiment of the present invention, as shown in FIG. 2, it is a flow chart for turning off the infrared transmitter, which includes the following steps:
步骤S21:检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平。Step S21: Detect the working power input pin of the screen, and determine whether the input pin is at a high level.
本发明实施例中,移动终端可以通过硬件检测屏幕的工作电源输入引脚,通过判断该输入引脚电平的高低来进行亮灭屏状态的判断。还可以实时监测移动终端屏幕的工作电压,在检测到移动终端的屏幕开始工作在高电压时,确定屏幕进入亮屏状态。其中,可以在移动终端中设置有一个第一预设电压值,利用该第一预设电压值判断移动终端的屏幕是否处于亮屏状态。例如,当所述屏幕的工作电压大于第一预设电压值时,屏幕处于亮屏状态。此时,断开指令被生成并发送至开关控制装置。In the embodiment of the present invention, the mobile terminal can detect the working power input pin of the screen through hardware, and judge the on-off state of the screen by judging the level of the input pin. It can also monitor the working voltage of the screen of the mobile terminal in real time, and when it is detected that the screen of the mobile terminal starts to work at a high voltage, it is determined that the screen enters the bright screen state. Wherein, a first preset voltage value may be set in the mobile terminal, and the first preset voltage value may be used to determine whether the screen of the mobile terminal is in a bright screen state. For example, when the working voltage of the screen is greater than the first preset voltage value, the screen is in a bright screen state. At this time, the disconnect command is generated and sent to the switch control device.
步骤S22:当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。Step S22: When the input pin is at a high level, the disconnect instruction is generated and sent to the switch control device.
本发明实施例中,在确定移动终端的屏幕的输入引脚电平处于高电平时,也即确定移动终端的屏幕工作在亮屏状态时,可以生成断开指令并发送至开关控制装置,使该开关控制装置关闭红外发射器。具体的,还可以在移动终端中设置有算法或应用程序来判断屏幕的输入引脚电平是否处于高电平,例如可以在移动终端中设置有检测输入引脚电平的应用程序,该应用程序实时监测屏幕的输入引脚电平的高低,在监测到输入引脚电平为高电平时则可以生成断开指令并发送至所述开关控制装置。In the embodiment of the present invention, when it is determined that the input pin level of the screen of the mobile terminal is at a high level, that is, when it is determined that the screen of the mobile terminal is working in a bright screen state, a disconnect instruction can be generated and sent to the switch control device, so that The switch control device turns off the infrared transmitter. Specifically, an algorithm or application program can also be provided in the mobile terminal to determine whether the input pin level of the screen is at a high level. For example, an application program that detects the input pin level can be provided in the mobile terminal. The program monitors the level of the input pin of the screen in real time, and when it detects that the level of the input pin is high, it can generate a disconnection instruction and send it to the switch control device.
本发明实施例中,如图3所示,为一种启动红外发射器的流程图,包括如下步骤:In the embodiment of the present invention, as shown in FIG. 3, it is a flow chart for starting the infrared transmitter, which includes the following steps:
步骤S31:检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于低电平。Step S31: Detect the working power input pin of the screen, and determine whether the input pin is at a low level.
本发明实施例中,除了检测输入引脚的电平,还可以在检测到移动终端的屏幕开始工作在低电压时,确定屏幕进入灭屏状态。其中,可以在移动终端中设置有一个第二预设电压值,利用该第二预设电压值判断移动终端的屏幕是否处于灭屏状态。当所述屏幕的工作电压小于所述第二预设电压值时,屏幕处于灭屏状态。此时,接通指令被生成并发送至开关控制装置。其中,第一预设电 压值大于第二预设电压值。In the embodiment of the present invention, in addition to detecting the level of the input pin, it can also be determined that the screen enters the off-screen state when it is detected that the screen of the mobile terminal starts to work at a low voltage. Wherein, a second preset voltage value may be set in the mobile terminal, and the second preset voltage value is used to determine whether the screen of the mobile terminal is in the off-screen state. When the working voltage of the screen is less than the second preset voltage value, the screen is in an off-screen state. At this time, the turn-on command is generated and sent to the switch control device. Wherein, the first preset voltage value is greater than the second preset voltage value.
步骤S32:当所述输入引脚处于低电平时,生成所述接通指令并发送至所述开关控制装置。Step S32: When the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
本发明实施例中,在确定移动终端的屏幕的输入引脚电平处于低电平时,也即确定移动终端的屏幕工作在灭屏状态时,可以生成接通指令并发送至开关控制装置,使该开关控制装置开启红外发射器。具体的,还可以在移动终端中设置有算法或应用程序来判断屏幕的输入引脚电平是否处于低电平,例如可以在移动终端中设置有检测输入引脚电平的应用程序,该应用程序实时监测屏幕的输入引脚电平的高低,在监测到输入引脚电平为低电平时则可以生成接通指令并发送至所述开关控制装置。In the embodiment of the present invention, when it is determined that the input pin level of the screen of the mobile terminal is at a low level, that is, when it is determined that the screen of the mobile terminal is working in the off-screen state, a switch-on instruction can be generated and sent to the switch control device, so that The switch control device turns on the infrared transmitter. Specifically, an algorithm or an application program can also be provided in the mobile terminal to determine whether the input pin level of the screen is at a low level. For example, an application program that detects the input pin level can be provided in the mobile terminal. The program monitors the level of the input pin of the screen in real time, and when it detects that the level of the input pin is low, it can generate a turn-on instruction and send it to the switch control device.
本发明实施例中,具体地,如图4所示,为一种红外接近传感器控制电路图,移动终端的CPU(CPU,Central Processing Unit,中央处理器)连接显示屏的DC-DC电源模块,检测DC-DC电源模块的EN引脚的电平,在检测到高电平时通过GPIO控制连接红外发射器的开关MOS管断开,从而断开对红外发射器的供电。其中,图中的PMIC为电源管理集成电路,用于控制红外供电LDO(LDO,low dropout regulator,低压差线性稳压器)为红外发射装置供电。In the embodiment of the present invention, specifically, as shown in FIG. 4, it is an infrared proximity sensor control circuit diagram. The CPU (CPU, Central Processing Unit, central processing unit) of the mobile terminal is connected to the DC-DC power supply module of the display screen to detect The level of the EN pin of the DC-DC power supply module, when a high level is detected, is controlled by GPIO to disconnect the switch MOS tube connected to the infrared transmitter, thereby disconnecting the power supply to the infrared transmitter. Among them, the PMIC in the figure is a power management integrated circuit, which is used to control an infrared power supply LDO (LDO, low dropout regulator, low dropout linear regulator) to supply power to the infrared emitting device.
图5是本发明实施例提供的一种红外接近传感器控制装置的结构示意图。Fig. 5 is a schematic structural diagram of an infrared proximity sensor control device provided by an embodiment of the present invention.
该控制装置500应用于设置有红外接近传感器的移动终端,所述红外接近传感器包括红外发射器,红外发射器通过开关控制装置与所述电源连接,所述红外接近传感器控制装置包括:The control device 500 is applied to a mobile terminal provided with an infrared proximity sensor. The infrared proximity sensor includes an infrared transmitter, which is connected to the power supply through a switch control device, and the infrared proximity sensor control device includes:
断开指令发送模块510,用于响应于移动终端屏幕的点亮,发送断开指令至所述开关控制装置,以使所述开关控制装置断开所述红外发射器的电源;The disconnection instruction sending module 510 is configured to send a disconnection instruction to the switch control device in response to the lighting of the screen of the mobile terminal, so that the switch control device disconnects the power supply of the infrared transmitter;
接通指令发送模块520,用于响应于移动终端屏幕的关闭,发送接通指令至所述开关控制装置,以使所述开关控制装置接通所述红外发射器的电源。The switch-on instruction sending module 520 is configured to send a switch-on instruction to the switch control device in response to the screen of the mobile terminal being turned off, so that the switch control device switches on the power supply of the infrared transmitter.
如图6所示,该断开指令发送模块510包括:As shown in FIG. 6, the disconnection instruction sending module 510 includes:
高电平检测单元511,用于检测所述移动终端屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平;The high-level detection unit 511 is configured to detect the working power input pin of the screen of the mobile terminal, and determine whether the input pin is at a high level;
断开指令生成单元512,用于当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。The disconnection instruction generating unit 512 is configured to generate the disconnection instruction and send it to the switch control device when the input pin is at a high level.
如图7所示,该接通指令发送模块520包括:As shown in FIG. 7, the connection instruction sending module 520 includes:
低电平检测单元521,用于检测所述移动终端屏幕的工作电源输入引脚,判断所述输入引脚是否处于低电平;The low level detection unit 521 is configured to detect the working power input pin of the mobile terminal screen, and determine whether the input pin is at a low level;
接通指令生成单元522,用于当所述输入引脚处于低电平时,生成所述接通指令并发送至所述开关控制装置。The switch-on instruction generating unit 522 is configured to generate and send the switch-on instruction to the switch control device when the input pin is at a low level.
本发明实施例中,上述各个模块以及单元更加详细的功能描述可以参考前述实施例中相应部分的内容,在此不再赘述。In the embodiments of the present invention, for more detailed functional descriptions of the foregoing modules and units, reference may be made to the content of the corresponding parts in the foregoing embodiments, and details are not described herein again.
此外,本发明还提供了一种移动终端,该移动终端可以包括智能电话、平板电脑、车载电脑、智能穿戴设备等。该移动终端包括存储器和处理器,存储器可用于存储计算机程序,处理器通过运行所述计算机程序,从而使移动终端执行上述方法或者上述红外接近传感器控制装置中的各个模块的功能。In addition, the present invention also provides a mobile terminal, which may include a smart phone, a tablet computer, a vehicle-mounted computer, a smart wearable device, and the like. The mobile terminal includes a memory and a processor, and the memory can be used to store a computer program. The processor runs the computer program to enable the mobile terminal to execute the above method or the functions of each module in the above infrared proximity sensor control device.
存储器可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory may include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Use the created data (such as audio data, phone book, etc.) and so on. In addition, the memory 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.
本实施例还提供了一种计算机存储介质,用于储存上述移动终端中使用的计算机程序。This embodiment also provides a computer storage medium for storing the computer program used in the above-mentioned mobile terminal.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和结构图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,结构图和/或流程图中的每个方框、以及结构图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed device and method may also be implemented in other ways. The device embodiments described above are only schematic. For example, the flowcharts and structural diagrams in the accompanying drawings show the possible implementation architecture and functions of the devices, methods, and computer program products according to multiple embodiments of the present invention. And operation. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more functions for realizing the specified logic function. Executable instructions. It should also be noted that, in alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the structure diagram and/or flowchart, and the combination of the blocks in the structure diagram and/or flowchart, can be used as a dedicated hardware-based system that performs specified functions or actions. , Or can be realized by a combination of dedicated hardware and computer instructions.
另外,在本发明各个实施例中的各功能模块或单元可以集成在一起形成一 个独立的部分,也可以是各个模块单独存在,也可以两个或更多个模块集成形成一个独立的部分。In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是智能手机、个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (22)

  1. 一种红外接近传感器的控制方法,应用于移动终端,所述移动终端包括所述红外接近传感器、屏幕和电源,所述红外接近传感器包括红外发射器,其特征在于,所述红外发射器通过开关控制装置与所述电源连接,且所述红外发射器被所述屏幕覆盖,所述方法包括:A control method of an infrared proximity sensor is applied to a mobile terminal. The mobile terminal includes the infrared proximity sensor, a screen, and a power supply. The infrared proximity sensor includes an infrared transmitter, characterized in that the infrared transmitter passes through a switch The control device is connected to the power supply, and the infrared transmitter is covered by the screen, the method includes:
    响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;In response to the bright screen of the screen, sending a disconnection instruction to the switch control device, so that the switch control device is in a disconnected state, so that the infrared transmitter does not work;
    响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。In response to the screen turning off, an on instruction is sent to the switch control device, so that the switch control device is in the on state, so that the infrared transmitter works.
  2. 根据权利要求1所述的红外接近传感器控制方法,其特征在于,所述红外发射器设置于所述屏幕下方的预设位置。The infrared proximity sensor control method according to claim 1, wherein the infrared transmitter is arranged at a preset position below the screen.
  3. 根据权利要求2所述的红外接近传感器控制方法,其特征在于,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:The infrared proximity sensor control method according to claim 2, wherein the sending a disconnection instruction to the switch control device in response to the bright screen of the screen comprises:
    检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平;Detecting the working power input pin of the screen, and judging whether the input pin is at a high level;
    当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。When the input pin is at a high level, the disconnect instruction is generated and sent to the switch control device.
  4. 根据权利要求2所述的红外接近传感器控制方法,其特征在于,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:The infrared proximity sensor control method according to claim 2, wherein in response to the screen turning off, sending a switch-on instruction to the switch control device comprises:
    检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于低电平;Detecting the working power input pin of the screen, and judging whether the input pin is at a low level;
    当所述输入引脚处于低电平时,生成所述接通指令并发送至所述开关控制装置。When the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
  5. 根据权利要求2所述的红外接近传感器控制方法,其特征在于,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:The infrared proximity sensor control method according to claim 2, wherein the sending a disconnection instruction to the switch control device in response to the bright screen of the screen comprises:
    判断所述屏幕的工作电压是否大于第一预设电压值;Judging whether the working voltage of the screen is greater than a first preset voltage value;
    当所述屏幕的工作电压大于所述第一预设电压值时,生成所述断开指令并发送至所述开关控制装置。When the operating voltage of the screen is greater than the first preset voltage value, the disconnection instruction is generated and sent to the switch control device.
  6. 根据权利要求2所述的红外接近传感器控制方法,其特征在于,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:The infrared proximity sensor control method according to claim 2, wherein in response to the screen turning off, sending a switch-on instruction to the switch control device comprises:
    判断所述屏幕的工作电压是否小于第二预设电压值;Judging whether the working voltage of the screen is less than a second preset voltage value;
    当所述屏幕的工作电压小于所述第二预设电压值时,生成所述接通指令并发送至所述开关控制装置。When the operating voltage of the screen is less than the second preset voltage value, the turn-on instruction is generated and sent to the switch control device.
  7. 根据权利要求1所述的红外接近传感器控制方法,其特征在于,所述红外接近传感器还包括红外接收器,所述红外接收器用于接收反射回来的红外光进行接近检测。The infrared proximity sensor control method according to claim 1, wherein the infrared proximity sensor further comprises an infrared receiver, and the infrared receiver is used to receive the reflected infrared light for proximity detection.
  8. 一种红外接近传感器控制装置,应用于移动终端,所述移动终端包括所述红外接近传感器、屏幕和电源,其中所述红外接近传感器包括红外发射器,其特征在于,所述红外发射器通过开关控制装置与所述电源连接,所述红外接近传感器控制装置包括:An infrared proximity sensor control device is applied to a mobile terminal. The mobile terminal includes the infrared proximity sensor, a screen, and a power supply, wherein the infrared proximity sensor includes an infrared transmitter, characterized in that the infrared transmitter passes through a switch The control device is connected to the power supply, and the infrared proximity sensor control device includes:
    断开指令发送模块,用于响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;A disconnection instruction sending module, which is used to send a disconnection instruction to the switch control device in response to the bright screen of the screen, so that the switch control device is in a disconnected state, so that the infrared transmitter does not work;
    接通指令发送模块,用于响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。The switch-on instruction sending module is configured to send a switch-on instruction to the switch control device in response to the screen being turned off, so that the switch control device is in the switch-on state, so that the infrared transmitter works.
  9. 根据权利要求8所述的红外接近传感器控制装置,其特征在于,所述断开指令发送模块包括:The infrared proximity sensor control device according to claim 8, wherein the disconnection instruction sending module comprises:
    高电平检测单元,用于检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平;The high-level detection unit is used to detect the working power input pin of the screen and determine whether the input pin is at a high level;
    断开指令生成单元,用于当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。The disconnection instruction generating unit is configured to generate the disconnection instruction and send it to the switch control device when the input pin is at a high level.
  10. 一种移动终端,其特征在于,包括存储器、处理器、红外接近传感器、屏幕以及电源,其中,所述存储器用于存储计算机程序,所述红外接近传感器包括红外发射器,所述红外发射器通过开关控制装置与所述电源连接,且所述红外发射器被所述屏幕覆盖,在所述计算机程序被执行时,使得所述处理器执行:A mobile terminal, which is characterized by comprising a memory, a processor, an infrared proximity sensor, a screen, and a power supply, wherein the memory is used to store a computer program, the infrared proximity sensor includes an infrared transmitter, and the infrared transmitter passes through The switch control device is connected to the power supply, and the infrared transmitter is covered by the screen, and when the computer program is executed, the processor is caused to execute:
    响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置,以使所述开关控制装置处于断开状态,从而所述红外发射器不工作;In response to the bright screen of the screen, sending a disconnection instruction to the switch control device, so that the switch control device is in a disconnected state, so that the infrared transmitter does not work;
    响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置,以使所述开关控制装置处于接通状态,从而所述红外发射器工作。In response to the screen turning off, an on instruction is sent to the switch control device, so that the switch control device is in the on state, so that the infrared transmitter works.
  11. 根据权利要求10所述的移动终端,其特征在于,所述红外发射器设置 于所述屏幕下方的预设位置。The mobile terminal according to claim 10, wherein the infrared transmitter is arranged at a preset position below the screen.
  12. 根据权利要求11所述的移动终端,其特征在于,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:The mobile terminal according to claim 11, wherein the sending a disconnection instruction to the switch control device in response to the screen being turned on comprises:
    检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于高电平;Detecting the working power input pin of the screen, and judging whether the input pin is at a high level;
    当所述输入引脚处于高电平时,生成所述断开指令并发送至所述开关控制装置。When the input pin is at a high level, the disconnect instruction is generated and sent to the switch control device.
  13. 根据权利要求11所述的移动终端,其特征在于,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:The mobile terminal according to claim 11, wherein in response to the screen turning off, sending a switch-on instruction to the switch control device comprises:
    检测所述屏幕的工作电源输入引脚,判断所述输入引脚是否处于低电平;Detecting the working power input pin of the screen, and judging whether the input pin is at a low level;
    当所述输入引脚处于低电平时,生成所述接通指令并发送至所述开关控制装置。When the input pin is at a low level, the turn-on instruction is generated and sent to the switch control device.
  14. 根据权利要求11所述的移动终端,其特征在于,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:The mobile terminal according to claim 11, wherein the sending a disconnection instruction to the switch control device in response to the screen being turned on comprises:
    判断所述屏幕的工作电压是否大于第一预设电压值;Judging whether the working voltage of the screen is greater than a first preset voltage value;
    当所述屏幕的工作电压大于所述第一预设电压值时,生成所述断开指令并发送至所述开关控制装置。When the operating voltage of the screen is greater than the first preset voltage value, the disconnection instruction is generated and sent to the switch control device.
  15. 根据权利要求11所述的移动终端,其特征在于,所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:The mobile terminal according to claim 11, wherein in response to the screen turning off, sending a switch-on instruction to the switch control device comprises:
    判断所述屏幕的工作电压是否小于第二预设电压值;Judging whether the working voltage of the screen is less than a second preset voltage value;
    当所述屏幕的工作电压小于所述第二预设电压值时,生成所述接通指令并发送至所述开关控制装置。When the operating voltage of the screen is less than the second preset voltage value, the turn-on instruction is generated and sent to the switch control device.
  16. 一种移动终端,其特征在于,包括:A mobile terminal, characterized in that it comprises:
    红外接近传感器,包括红外发射器;Infrared proximity sensor, including infrared transmitter;
    屏幕,覆盖所述红外发射器;A screen, covering the infrared transmitter;
    开关;switch;
    第一电源,经过所述开关与所述红外发射器连接,其中响应于所述屏幕的亮屏,所述开关被控制处于断开状态,从而所述红外发射器不工作,响应于所述屏幕的灭屏,所述开关被控制处于接通状态,从而所述红外发射器工作。The first power source is connected to the infrared transmitter via the switch, wherein the switch is controlled to be in an off state in response to the bright screen of the screen, so that the infrared transmitter does not work and responds to the screen When the screen is off, the switch is controlled to be in the on state, so that the infrared transmitter works.
  17. 根据权利要求16所述的移动终端,其特征在于,所述红外发射器设置于所述屏幕下方的预设位置。The mobile terminal according to claim 16, wherein the infrared transmitter is arranged at a preset position below the screen.
  18. 根据权利要求17所述的移动终端,其特征在于,还包括:The mobile terminal according to claim 17, further comprising:
    处理器,通过通信端口与所述开关连接,用于响应于所述屏幕的亮屏,断开指令至所述开关,以使所述开关处于断开状态,以及响应于所述屏幕的灭屏,发送接通指令至所述开关,以使所述开关处于接通状态。The processor is connected to the switch through a communication port, and is configured to respond to the screen turning on of the screen, disconnect an instruction to the switch, so that the switch is in the off state, and respond to the screen turning off , Send a switch-on instruction to the switch, so that the switch is in the switch-on state.
  19. 根据权利要求18所述的移动终端,其特征在于,所述通信端口包括GPIO端口。The mobile terminal according to claim 18, wherein the communication port comprises a GPIO port.
  20. 根据权利要求18所述的移动终端,其特征在于,所述响应于所述屏幕的亮屏,发送断开指令至所述开关控制装置包括:The mobile terminal according to claim 18, wherein the sending a disconnection instruction to the switch control device in response to the screen being turned on comprises:
    判断所述屏幕的工作电压是否大于第一预设电压值;Judging whether the working voltage of the screen is greater than a first preset voltage value;
    当所述屏幕的工作电压大于所述第一预设电压值时,生成所述断开指令并发送至所述开关控制装置;When the working voltage of the screen is greater than the first preset voltage value, generating the disconnection instruction and sending it to the switch control device;
    所述响应于所述屏幕的灭屏,发送接通指令至所述开关控制装置包括:The sending a switch-on instruction to the switch control device in response to the screen turning off includes:
    判断所述屏幕的工作电压是否小于第二预设电压值;Judging whether the working voltage of the screen is less than a second preset voltage value;
    当所述屏幕的工作电压小于所述第二预设电压值时,生成所述接通指令并发送至所述开关控制装置;When the operating voltage of the screen is less than the second preset voltage value, generating the switch-on instruction and sending it to the switch control device;
    其中,所述第一预设电压值大于所述第二预设电压值。Wherein, the first preset voltage value is greater than the second preset voltage value.
  21. 根据权利要求17所述的移动终端,其特征在于,还包括:The mobile terminal according to claim 17, further comprising:
    第二电源,与所述屏幕连接,其中所述第二电源的输入引脚处于高电平时,所述开关被控制处于断开状态,所述第二电源的输入引脚处于低电平时,所述开关被控制处于接通状态。The second power supply is connected to the screen. When the input pin of the second power supply is at a high level, the switch is controlled to be in an off state. When the input pin of the second power supply is at a low level, the switch is controlled to be in an off state. The switch is controlled to be in an on state.
  22. 根据权利要求17所述的移动终端,其特征在于,所述红外接近传感器还包括红外接收器,所述红外接收器用于接收反射回来的红外光进行接近检测。The mobile terminal according to claim 17, wherein the infrared proximity sensor further comprises an infrared receiver, and the infrared receiver is used to receive the reflected infrared light for proximity detection.
PCT/CN2020/114754 2019-09-23 2020-09-11 Infrared proximity sensor control method and device, and mobile terminal WO2021057511A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910898671.7 2019-09-23
CN201910898671.7A CN112637417A (en) 2019-09-23 2019-09-23 Infrared proximity sensor control method and device and mobile terminal

Publications (1)

Publication Number Publication Date
WO2021057511A1 true WO2021057511A1 (en) 2021-04-01

Family

ID=75166408

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/114754 WO2021057511A1 (en) 2019-09-23 2020-09-11 Infrared proximity sensor control method and device, and mobile terminal

Country Status (2)

Country Link
CN (1) CN112637417A (en)
WO (1) WO2021057511A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765590B (en) * 2021-09-07 2023-07-07 维沃移动通信有限公司 Infrared emission circuit, structure, control method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140147124A1 (en) * 2012-11-23 2014-05-29 Samsung Electronics Co., Ltd. Electronic device and control method thereof
CN106506794A (en) * 2016-09-05 2017-03-15 广东欧珀移动通信有限公司 The state monitoring method of terminal unit, device and terminal unit
CN107948419A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Electronic device
CN108322608A (en) * 2018-01-30 2018-07-24 维沃移动通信有限公司 A kind of screen light on and off control method, mobile terminal
CN109361815A (en) * 2018-09-26 2019-02-19 Oppo广东移动通信有限公司 Light on and off screen control method, device and the electronic equipment of electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357882A (en) * 2016-08-22 2017-01-25 华蓥市高科龙电子科技有限公司 A Smartphone Approach Wakeup Device
CN106873879B (en) * 2017-01-25 2019-10-29 维沃移动通信有限公司 A kind of electronic equipment and put out screen processing method, device
CN207410352U (en) * 2017-09-10 2018-05-25 西安枭龙科技有限公司 A kind of short-range communication circuit
WO2019061536A1 (en) * 2017-09-30 2019-04-04 深圳市云中飞网络科技有限公司 Call processing method and related product
CN108833625B (en) * 2018-06-15 2021-03-12 Oppo广东移动通信有限公司 Sensor control circuit and electronic device
CN109088961B (en) * 2018-06-15 2021-03-02 Oppo广东移动通信有限公司 Sensor control circuit and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140147124A1 (en) * 2012-11-23 2014-05-29 Samsung Electronics Co., Ltd. Electronic device and control method thereof
CN106506794A (en) * 2016-09-05 2017-03-15 广东欧珀移动通信有限公司 The state monitoring method of terminal unit, device and terminal unit
CN107948419A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Electronic device
CN108322608A (en) * 2018-01-30 2018-07-24 维沃移动通信有限公司 A kind of screen light on and off control method, mobile terminal
CN109361815A (en) * 2018-09-26 2019-02-19 Oppo广东移动通信有限公司 Light on and off screen control method, device and the electronic equipment of electronic equipment

Also Published As

Publication number Publication date
CN112637417A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US10720791B2 (en) Charging method, charging device and terminal
US20210149558A1 (en) Method and apparatus for controlling terminal device, and non-transitory computer-readle storage medium
US20210097993A1 (en) Speech recognition control method and apparatus, electronic device and readable storage medium
TW201541960A (en) Electronic device and method for switching camera modules
US20170300225A1 (en) Displaying application page of mobile terminal
US10120488B2 (en) Display method and display device
KR20140099741A (en) Charge apparatus and charge method
CN110764978A (en) Hard disk lighting method and device, electronic equipment and storage medium
CN105278843A (en) Method and system for gesture fast operation based on remote control
WO2021057511A1 (en) Infrared proximity sensor control method and device, and mobile terminal
CN104216819A (en) Method for managing terminal application
US9894318B1 (en) Method for output control of videos from multiple available sources and user terminal using the same
CN113067769B (en) Router restarting method, device, equipment and storage medium
US20180314317A1 (en) Electronic device and method
US20230251755A1 (en) Information Processing Method and Apparatus, and Electronic Device
CN112416172A (en) Electronic equipment control method and device and electronic equipment
CN110515662B (en) Remote control method, system, equipment and readable storage medium for dual-system equipment
US11460971B2 (en) Control method and electronic device
US9857910B2 (en) Method for controlling multiple touchscreens and electronic device
CN110716158B (en) Detection method, system, storage medium and mobile terminal
WO2021012885A1 (en) Accidental touch prevention method and apparatus, and storage medium
JP2018050285A (en) Communication terminal, communication system, output method, and program
CN113238979A (en) System with type c interface or lightning interface for automatically detecting kvm mode and display equipment thereof
WO2019153986A1 (en) Application display method, application, storage medium, and electronic device
US11327631B2 (en) Method for displaying application storage space and terminal

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: 20867995

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 29/08/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20867995

Country of ref document: EP

Kind code of ref document: A1