Infrared control circuit, method and device and electronic equipment

By combining signal conversion and infrared enable circuit in the infrared control circuit, we can determine whether to turn off the infrared sensor based on the power button and screen status, the problem of high power consumption of infrared sensors when there is no need to be used is solved, and power resource saving is achieved.

CN119299559APending Publication Date: 2025-01-10VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411404042.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

Existing infrared sensors continue to scan in application scenarios without turning on infrared function, resulting in increased power consumption and waste of power resources.

Method used

An infrared control circuit is designed. Through the signal conversion circuit and the infrared enable circuit, the scanning frequency of the infrared sensor is determined based on the power button, acceleration sensor and screen signals, and the infrared function is turned on only when needed.

Benefits of technology

It effectively reduces the power consumption of infrared sensors and saves power resources. Especially in the scenario where the equipment is turned off, is still and has no power button fluctuations, it significantly reduces the power consumption of infrared sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299559A_ABST
    Figure CN119299559A_ABST
Patent Text Reader

Abstract

The invention discloses an infrared control circuit, method and device and electronic equipment, and belongs to the technical field of electronics. The infrared control circuit is applied to the electronic equipment, the electronic equipment comprises a power supply, an infrared sensor, a power supply key, an acceleration sensor and a screen, and the infrared control circuit comprises a signal conversion circuit which is connected with the power supply and the power supply key and is used for outputting a first signal according to a pressing state of the power supply key; the infrared enabling circuit is connected with the signal conversion circuit, the acceleration sensor, the screen and the infrared sensor and used for receiving the first signal, a second signal of the acceleration sensor and a third signal of the screen and outputting an enabling signal to the infrared sensor according to the first signal, the second signal and the third signal; under the condition that the first signal indicates that the pressing state of the power key does not jump, the second signal indicates that the electronic equipment is in a static state and the third signal indicates that the screen is in a screen-off state, the enable signal is in a low level so as to control the infrared sensor to be turned off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and specifically relates to an infrared control circuit, method and device, and electronic equipment. Background Art

[0002] Infrared sensors are mainly used in electronic devices for occlusion detection and proximity detection. For example, when a user holds an electronic device close to his ear while talking on a call, the infrared signal is blocked, and the infrared sensor receives the returned infrared signal, and the electronic device performs the screen-off action.

[0003] However, the current infrared sensor has a single scanning cycle, a high scanning frequency requirement, and uses a fixed cycle for continuous scanning in all scenarios. This will increase the power consumption of the infrared sensor in application scenarios where the infrared function does not need to be turned on, resulting in a waste of power resources. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an infrared control circuit, method and device, and electronic equipment that can reduce the power consumption of infrared sensors and save power resources.

[0005] In a first aspect, an embodiment of the present application provides an infrared control circuit, which is applied to an electronic device, wherein the electronic device includes a power supply, an infrared sensor, and a power button, an acceleration sensor, and a screen respectively connected to the power supply, and the infrared control circuit includes: a signal conversion circuit connected to the power supply and the power button, the signal conversion circuit being used to output a first signal according to the pressing state of the power button; an infrared enabling circuit connected to the signal conversion circuit, the acceleration sensor, the screen, and the infrared sensor, the infrared enabling circuit being used to receive the first signal, the second signal of the acceleration sensor, and the third signal of the screen, and output an enabling signal to the infrared sensor according to the first signal, the second signal, and the third signal; wherein, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in an off state, the enabling signal is at a low level to control the infrared sensor to turn off.

[0006] In a second aspect, an embodiment of the present application provides an infrared control method, which is applied to an electronic device, wherein the electronic device includes an infrared sensor, a power button, an acceleration sensor and a screen, and the infrared control method includes: obtaining a first signal from the power button, a second signal from the acceleration sensor and a third signal from the screen; outputting an enable signal to the infrared sensor based on the first signal, the second signal and the third signal to control the operation of the infrared sensor; wherein, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state and the third signal indicates that the screen is in an off state, the enable signal is at a low level to control the infrared sensor to turn off.

[0007] In a third aspect, an embodiment of the present application provides an infrared control device, which is applied to an electronic device, wherein the electronic device includes an infrared sensor, a power button, an acceleration sensor and a screen, and the infrared control device includes: an acquisition unit, used to acquire a first signal from the power button, a second signal from the acceleration sensor and a third signal from the screen; a processing unit, used to output an enable signal to the infrared sensor according to the first signal, the second signal and the third signal to control the operation of the infrared sensor; wherein, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state and the third signal indicates that the screen is in an off state, the enable signal is at a low level to control the infrared sensor to turn off.

[0008] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a power supply; a power button connected to the power supply; an acceleration sensor connected to the power supply; a screen connected to the power supply; an infrared control circuit as in the first aspect, connected to the power supply, the power button, the acceleration sensor and the screen; and an infrared sensor connected to the infrared control circuit.

[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the infrared control method of the second aspect are implemented.

[0010] In a sixth aspect, an embodiment of the present application provides a readable storage medium having a program or instruction stored thereon, and when the program or instruction is executed by a processor, the steps of the infrared control method of the second aspect are implemented.

[0011] In a seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the infrared control method of the second aspect.

[0012] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the infrared control method of the second aspect.

[0013] The infrared control circuit provided in the embodiment of the present application is applied to an electronic device, which includes a power supply, an infrared sensor, and a power button, an acceleration sensor and a screen respectively connected to the power supply. The infrared control circuit includes a signal conversion circuit and an infrared enabling circuit. Among them, the signal conversion circuit is connected to the power supply and the power button; the infrared enabling circuit is connected to the signal conversion circuit, the acceleration sensor, the screen and the infrared sensor. Further, the signal conversion circuit is used to output a first signal according to the pressing state of the power button; the infrared enabling circuit is used to receive the first signal, the second signal of the acceleration sensor and the third signal of the screen, and output an enabling signal to the infrared sensor according to the first signal, the second signal and the third signal. Among them, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state and the third signal indicates that the screen is in a screen-off state, the enabling signal is a low level to control the infrared sensor to turn off. Through the above-mentioned infrared control circuit, a hardware circuit is added to control the infrared sensor to turn off when the pressing state of the power button has not changed, the electronic device is in a stationary state and the screen is in a screen-off state. In this way, the infrared sensor can be turned off in a scenario where the infrared function is not needed, which reduces the power consumption of the infrared sensor and saves power resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 One of the circuit schematic diagrams of the infrared control circuit provided in the embodiment of the present application;

[0015] Figure 2 The second circuit diagram of the infrared control circuit provided in the embodiment of the present application;

[0016] Figure 3 A working principle diagram of the infrared control circuit provided in the embodiment of the present application;

[0017] Figure 4 A flowchart of the infrared controller provided in the embodiment of the present application;

[0018] Figure 5 It is a circuit diagram of an infrared control circuit in the related art;

[0019] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0020] Figure 7 A schematic diagram of the flow of the infrared control method provided in the embodiment of the present application;

[0021] Figure 8 A structural block diagram of an infrared control device provided in an embodiment of the present application;

[0022] Fig. 9 A structural block diagram of an electronic device provided in an embodiment of the present application;

[0023] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0024] Reference numerals:

[0025] 100 infrared control circuit, 102 signal conversion circuit, 104 infrared enabling circuit, 106 logic OR gate, 108 first resistor, 110 second resistor, 112 infrared controller, 114 third resistor, 116 fourth resistor, 118 first capacitor, 120 first transistor, 122 fifth resistor, 124 sixth resistor, 126 seventh resistor, 128 second transistor, 130 diode, 132 eighth resistor, 134 second capacitor, 200 electronic device, 202 power supply, 204 power button, 206 acceleration sensor, 208 screen, 210 infrared sensor. DETAILED DESCRIPTION

[0026] The embodiments of the present application will be described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0027] The features of the terms "first" and "second" in the specification and claims of this application may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0028] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0029] Combine the following Figure 1-Figure 10 The infrared control circuit, method, device, and electronic device according to the embodiments of the present application are described in detail.

[0030] like Figure 1 As shown, an embodiment of the present application provides an infrared control circuit 100 .

[0031] The infrared control circuit 100 is applied to an electronic device 200 , which includes a power supply 202 , an infrared sensor 210 , and a power button 204 , an acceleration sensor 206 , and a screen 208 respectively connected to the power supply 202 .

[0032] Furthermore, the infrared control circuit 100 includes a signal conversion circuit 102 and an infrared enabling circuit 104 .

[0033] The signal conversion circuit 102 is connected to both the power source 202 and the power button 204 .

[0034] Furthermore, the infrared enabling circuit 104 is connected to the signal conversion circuit 102 , the acceleration sensor 206 , the screen 208 and the infrared sensor 210 .

[0035] Furthermore, the signal conversion circuit 102 is used to output a first signal according to the pressing state of the power button 204 .

[0036] The first signal is a high level or a low level, and is used to indicate whether the pressing state of the power button 204 changes.

[0037] Furthermore, the infrared enabling circuit 104 is used to receive a first signal from the power button 204 , a second signal from the acceleration sensor 206 , and a third signal from the screen 208 , and output an enabling signal to the infrared sensor 210 according to the first signal, the second signal, and the third signal.

[0038] The second signal is used to indicate the existence state (such as static state or motion state) of the electronic device 200.

[0039] Furthermore, the third signal is used to indicate the display status of the screen 208 (such as the screen-on status or the screen-off status).

[0040] Specifically, the infrared enabling circuit 104 is used to output a low-level enabling signal to the infrared sensor 210 to control the infrared sensor 210 to turn off, or to control the infrared sensor 210 to reduce the scanning frequency, when the first signal indicates that the pressing state of the power key 204 has not changed, the second signal indicates that the electronic device 200 is in a stationary state, and the third signal indicates that the screen 208 is in a screen-off state. If the first signal indicates that the pressing state of the power key 204 has changed, or the second signal indicates that the electronic device 200 is in a moving state, or the third signal indicates that the screen 208 is in a screen-on state, the infrared enabling circuit 104 is used to output a high-level enabling signal to the infrared sensor 210 to control the infrared sensor 210 to turn on.

[0041] In this way, the infrared sensor 210 can be controlled to work normally in application scenarios that require infrared functions, such as shielding and preventing accidental touches of the electronic device 200 and turning off the screen when the phone is close to the ear. In application scenarios that do not require infrared functions, such as when the screen of the electronic device 200 is turned off, the screen is still, and there is no fluctuation of the power button 204, the infrared sensor 210 can be controlled to turn off or the scanning frequency of the infrared sensor 210 can be reduced. In this way, the power consumption of the infrared sensor 210 is reduced, saving power resources.

[0042] It is understandable that in the related art, such as Figure 5 As shown, the hardware architecture of the infrared control circuit includes a power supply, a power button, an accelerometer, a controller / processor, a screen, and an infrared sensor. Among them, the controller / processor is connected to the infrared sensor through I2C (Inter-Integrated Circuit, two-wire serial bus) and EN (Enable) bus, the accelerometer is connected through the bus I2C or SPI (Serial Peripheral Interface, serial peripheral interface), and the screen and SOC (System on a Chip) are connected through the MIPI (Mobile Industry Processor Interface, mobile industry processor interface) bus. In addition, in the relevant technology, in all scenarios, the infrared sensor uses 100ms or other fixed cycles for continuous scanning. For example, in an application scenario where the electronic device is turned off, stationary, and the power button is not touched and no infrared function is required, the infrared sensor still scans according to 100ms or other fixed cycles. In this way, in application scenarios where the infrared function does not need to be turned on, the power consumption of the infrared sensor will increase, resulting in a waste of power resources.

[0043] Therefore, in the infrared control circuit 100 provided in the embodiment of the present application, a hardware circuit is added to control the infrared sensor 210 to turn off or reduce the scanning frequency when the pressing state of the power button 204 has not changed, the electronic device 200 is in a stationary state and the screen 208 is in a screen-off state, that is, in an application scenario where the electronic device 200 is off, stationary and the power button 204 is not touched and no infrared function is required, such as adjusting the scanning period of the infrared sensor 210 from 100ms to 500ms, so as to reduce the power consumption of the infrared sensor 210 and save power resources of the electronic device 200.

[0044] The infrared control circuit 100 according to the embodiment of the present application is applied to an electronic device 200, which includes a power supply 202, an infrared sensor 210, and a power key 204, an acceleration sensor 206, and a screen 208 respectively connected to the power supply 202. The infrared control circuit 100 includes a signal conversion circuit 102 and an infrared enabling circuit 104. The signal conversion circuit 102 is connected to the power supply 202 and the power key 204; the infrared enabling circuit 104 is connected to the signal conversion circuit 102, the acceleration sensor 206, the screen 208, and the infrared sensor 210. Further, the signal conversion circuit 102 is used to output a first signal according to the pressing state of the power key 204; the infrared enabling circuit 104 is used to receive the first signal, the second signal of the acceleration sensor 206, and the third signal of the screen 208, and output an enabling signal to the infrared sensor 210 according to the first signal, the second signal, and the third signal. Among them, when the first signal indicates that the pressing state of the power button 204 has not changed, the second signal indicates that the electronic device 200 is in a stationary state, and the third signal indicates that the screen 208 is in a screen-off state, the enable signal is at a low level to control the infrared sensor 210 to be turned off. Through the above-mentioned infrared control circuit 100, a hardware circuit is added to control the infrared sensor 210 to be turned off when the pressing state of the power button 204 has not changed, the electronic device 200 is in a stationary state, and the screen 208 is in a screen-off state. In this way, the infrared sensor 210 can be turned off in a scenario where the infrared function is not needed, thereby reducing the power consumption of the infrared sensor 210 and saving power resources.

[0045] According to some embodiments of the present application, optionally, the signal conversion circuit 102 is specifically used to: output a high-level first signal when the pressing state of the power button 204 changes, and output a low-level first signal when the pressing state of the power button 204 does not change.

[0046] Specifically, Figure 1 and Figure 2 As shown, in the infrared control circuit 100 provided in the embodiment of the present application, a signal conversion circuit 102 is added, and the signal conversion circuit 102 is equivalent to a monostable trigger. Every time the user presses or releases the power button 204, the signal conversion circuit 102 will alternately output a first signal of a high level or a low level at point A. For example, when the user presses the power button 204 once, the first signal output by the signal conversion circuit 102 at point A changes from a high level to a low level. When the user releases the power button 204, the first signal output by the signal conversion circuit 102 at point A changes from a low level to a high level.

[0047] Specifically, the control logic of the signal conversion circuit 102 is as follows: if the pressing state of the power key 204 changes, the output of the signal conversion circuit 102 is a high level 1, and if the pressing state of the power key 204 does not change, the output of the signal conversion circuit 102 is a low level 0. In this way, by the level of the first signal output by the signal conversion circuit 102, it can be determined whether the user is performing a key action.

[0048] According to the infrared control circuit 100 of the embodiment of the present application, the signal conversion circuit 102 is specifically used to: output a high-level first signal when the pressing state of the power key 204 changes, and output a low-level first signal when the pressing state of the power key 204 does not change. In this way, it is possible to determine whether the user is performing a key action by the level of the first signal output by the signal conversion circuit 102, thereby facilitating the subsequent determination of whether the application scenario of the electronic device 200 requires the use of the infrared function.

[0049] According to some embodiments of the present application, optionally, Figure 1 As shown, infrared enabling circuit 104 includes a logic OR gate 106 .

[0050] The logic OR gate 106 is connected to the signal conversion circuit 102 , the acceleration sensor 206 , the screen 208 and the infrared sensor 210 .

[0051] Furthermore, if Figure 1 As shown, the infrared control circuit 100 further includes a first resistor 108 and a second resistor 110 .

[0052] The first resistor 108 is connected to both the acceleration sensor 206 and the logic OR gate 106 .

[0053] Furthermore, the second signal includes an interrupt signal of the acceleration sensor 206 , and the interrupt signal is input to the logic OR gate 106 through the first resistor 108 .

[0054] When the electronic device 200 is in motion, the interrupt signal is at a high level, and when the electronic device 200 is in a stationary state, the interrupt signal is at a low level. Thus, the existence state of the electronic device 200 can be determined by the level of the interrupt signal, thereby determining whether the electronic device 200 is in motion or stationary state.

[0055] Furthermore, the second resistor 110 is connected to both the screen 208 and the logic OR gate 106 .

[0056] Further, the third signal includes a power supply signal of the screen 208 .

[0057] In actual application, the power supply signal may be specifically an enable signal of a DDIC (Display Driver Integrated Circuit) or an enable signal of a Panel (panel / control board) power supply 202IC (Integrated Circuit). The power supply signal is converted into a digital signal through the second resistor 110 and input into the logic OR gate 106.

[0058] When the screen 208 is in the on state, the power supply signal is at a high level, and when the screen 208 is in the off state, the power supply signal is at a low level. Thus, the display state of the screen 208 can be determined by the level of the power supply signal, thereby determining whether the screen 208 is in the on state or the off state.

[0059] It is understandable that when the screen 208 is in the bright screen state, it is necessary to turn on the infrared function for occlusion detection, proximity detection, etc., so that when the electronic device 200 is detected to be close to the user's ear during a call, the screen 208 is controlled to perform the action of turning off the screen or reducing the brightness. Furthermore, when the electronic device 200 is in motion, such as when the user picks up the electronic device 200 or puts the electronic device 200 in the pocket and walks, the infrared function needs to be turned on to realize the pocket anti-mistouch function. Furthermore, when the power button 204 jumps, it means that the user needs to start the button function, which means that the user needs to use the electronic device 200. At this time, the electronic device 200 will have certain actions such as turning on and off the screen and shaking, and the infrared function also needs to be turned on.

[0060] Therefore, in the infrared control circuit 100 provided in the embodiment of the present application, when the first signal, the interrupt signal and the power supply signal are all at low levels, that is, when the pressing state of the power button 204 does not change, the electronic device 200 is in a stationary state and the screen 208 is in a screen-off state, that is, when the electronic device 200 is off, stationary and the power button 204 is not touched, and the infrared function is not required, the logic OR gate 106 outputs a low-level enable signal to the infrared sensor 210 to control the infrared sensor 210 to turn off, or control the infrared sensor 210 to reduce the scanning frequency. When there is a high level in the first signal, the interrupt signal and the power supply signal, that is, when the pressing state of the power button 204 changes, or the electronic device 200 is in a moving state, or the screen 208 is in a bright screen state, that is, when the electronic device 200 is bright, moving or the power button 204 fluctuates, and other application scenarios that require infrared functions, the logic OR gate 106 outputs a high-level enable signal to the infrared sensor 210 to control the infrared sensor 210 to turn on, and perform scanning according to the high-frequency scanning frequency. In this way, in an application scenario where the infrared function is not required, the infrared sensor 210 is controlled to be turned off or the scanning frequency of the infrared sensor 210 is reduced, thereby reducing the power consumption of the infrared sensor 210 and saving power resources.

[0061] For example, Figure 3 As shown, when the user turns over the electronic device 200 or raises his wrist while holding the electronic device 200, the acceleration sensor 206 detects that the electronic device 200 is in motion, and inputs a high-level interrupt signal to the logic OR gate 106. At this time, the logic OR gate 106 outputs a high-level enable signal to control the infrared sensor 210 to turn on. Alternatively, the user performs a key operation on the power key 204, and the signal conversion circuit 102 inputs a high-level first signal to the logic OR gate 106 based on the jump of the power key 204. At this time, the logic OR gate 106 outputs a high-level enable signal to control the infrared sensor 210 to turn on. Alternatively, the user performs operations such as clicking on the screen 208, inputting a fingerprint, waking up the screen 208, etc., and the screen 208 is in a bright screen state, and a high-level power supply signal is input to the logic OR gate 106. At this time, the logic OR gate 106 outputs a high-level enable signal to control the infrared sensor 210 to turn on. On the contrary, when the screen 208 is off, the electronic device 200 is stationary, and the power button 204 is not touched, the logic OR gate 106 outputs a low-level enable signal to control the infrared sensor 210 to turn off and reduce the scanning frequency.

[0062] According to the infrared control circuit 100 of the embodiment of the present application, the infrared enabling circuit 104 includes: a logic OR gate 106, which is connected to the signal conversion circuit 102, the acceleration sensor 206, the screen 208 and the infrared sensor 210; the infrared control circuit 100 also includes: a first resistor 108, which is connected to the acceleration sensor 206 and the logic OR gate 106, and the second signal includes an interrupt signal of the acceleration sensor 206. When the electronic device 200 is in motion, the interrupt signal is a high level, and when the electronic device 200 is in a stationary state, the interrupt signal is a low level; a second resistor 110, which is connected to the screen 20 8 is connected to the logic OR gate 106, the third signal includes a power supply signal of the screen 208, when the screen 208 is in the screen-on state, the power supply signal is high level, when the screen 208 is in the screen-off state, the power supply signal is low level; the logic OR gate 106 is used to: when the first signal, the interrupt signal and the power supply signal are all low level, output a low level enable signal to the infrared sensor 210 to control the infrared sensor 210 to turn off; when there is a high level in the first signal, the interrupt signal and the power supply signal, output a high level enable signal to the infrared sensor 210 to control the infrared sensor 210 to turn on. In this way, in the application scenario where the infrared function is not required, the infrared sensor 210 is turned off, the power consumption of the infrared sensor 210 is reduced, and power resources are saved.

[0063] According to some embodiments of the present application, optionally, Figure 2 As shown, infrared enabling circuit 104 includes infrared controller 112 .

[0064] The infrared controller 112 is connected to the signal conversion circuit 102 , the acceleration sensor 206 , the screen 208 and the infrared sensor 210 .

[0065] Further, the second signal includes the first working signal of the acceleration sensor 206. The infrared controller 112 can receive the first working signal of the acceleration sensor 206, and determine whether the electronic device 200 is in a static state or in a moving state according to the change information of the first working signal.

[0066] Further, the third signal includes a second working signal of the screen 208. The infrared controller 112 can receive the second working signal of the screen 208, and determine whether the display state of the screen 208 is the off screen state or the on screen state according to the change information of the second working signal.

[0067] Furthermore, the infrared controller 112 is also used to receive the first signal output by the signal conversion circuit 102 .

[0068] In the infrared control circuit 100 provided in the embodiment of the present application, when the infrared controller 112 determines that the first signal is at a low level, the electronic device 200 is in a stationary state, and the screen 208 is in a screen-off state, the infrared controller 112 determines that the electronic device 200 does not need to use the infrared function, and outputs a low-level enable signal to the infrared sensor 210 to control the infrared sensor 210 to turn off. When the infrared controller 112 determines that the first signal is at a high level, or the electronic device 200 is in a moving state, or the screen 208 is in a bright screen state, the infrared controller 112 determines that the electronic device 200 needs to use the infrared function, and outputs a high-level enable signal to the infrared sensor 210 to control the infrared sensor 210 to turn on. In this way, in an application scenario where the infrared function is not required, the infrared sensor 210 is turned off, the power consumption of the infrared sensor 210 is reduced, and power resources are saved.

[0069] That is, in the infrared control circuit 100 provided in the embodiment of the present application, Figure 4 As shown, the working process of the infrared controller 112 may specifically include the following S302 to S310:

[0070] S302: Determine: the screen is on, if so, execute S308, if not, execute S304.

[0071] S304: Determine: the electronic device is stationary, if so, execute S306, if not, execute S308.

[0072] S306: Determine: the power button has changed, if so, execute S308, if not, execute S310.

[0073] S308: Control the infrared sensor to work in mode 1: high frequency scanning.

[0074] S310: Control the infrared sensor to work in mode 2: off.

[0075] Specifically, in the infrared control circuit 100 provided in the embodiment of the present application, the infrared controller 112 first determines whether the screen 208 is in a bright screen state. When the screen 208 is in a bright screen state, it is necessary to turn on the infrared function for occlusion detection, proximity detection, etc., so that when the electronic device 200 is detected to be close to the user's ear during a call, the screen 208 is controlled to perform the action of turning off the screen or reducing the brightness. At this time, the infrared controller 112 controls the infrared sensor 210 to work in mode one to perform high-frequency scanning. Further, when the screen 208 is in the off-screen state, the infrared controller 112 further determines whether the electronic device 200 is in a stationary state. When the electronic device 200 is in a moving state, such as when the user picks up the electronic device 200 or puts the electronic device 200 in a pocket and walks, the infrared function needs to be turned on to realize the pocket anti-mistouch function. At this time, the infrared controller 112 controls the infrared sensor 210 to work in mode one to perform high-frequency scanning. Furthermore, when the electronic device 200 is in a stationary state, the infrared controller 112 further determines whether the power button 204 has a jump. When the power button 204 has a jump, it means that the user needs to start the key function, that is, it means that the user needs to use the electronic device 200, and the electronic device 200 will have certain screen on and off, shaking and other actions. At this time, in order to ensure the normal infrared function of the electronic device 200, the infrared controller 112 will also control the infrared sensor 210 to work in mode 1 to perform high-frequency scanning. Further, when the power button 204 does not jump, the infrared controller 112 determines that the electronic device 200 currently does not need the infrared function, and controls the infrared sensor 210 to work in mode 2, that is, turn off the infrared sensor 210 to save the power consumption of the infrared sensor 210.

[0076] In this way, by adding hardware circuits and optimizing software processes, in application scenarios where the infrared function is not needed, turning off the infrared sensor 210 or reducing the scanning frequency of the infrared sensor 210 can reduce the power consumption of the infrared sensor 210 and achieve the purpose of reducing the power consumption of infrared devices.

[0077] For example, if the user uses the infrared function for 0.21 hours a day, the infrared control circuit 100 of the embodiment of the present application can control the infrared sensor 210 to be turned off for more than 23 hours. According to the calculation that 1 mA of power is consumed per hour when the infrared sensor 210 is turned on, 23 mAh of power can be saved in a day, thereby saving the power consumption of the infrared sensor 210.

[0078] According to the infrared control circuit 100 of the embodiment of the present application, the infrared enabling circuit 104 includes: an infrared controller 112, which is connected to the signal conversion circuit 102, the acceleration sensor 206, the screen 208 and the infrared sensor 210; wherein the second signal includes the first working signal of the acceleration sensor 206, and the third signal includes the second working signal of the screen 208; the infrared controller 112 is used to: determine the existence state of the electronic device 200 according to the change information of the first working signal, and determine the display state of the screen 208 according to the change information of the second working signal; when the first signal is low level, the electronic device 200 is in a stationary state and the screen 208 is in a screen-off state, output a low-level enabling signal to the infrared sensor 210 to control the infrared sensor 210 to turn off; when the first signal is high level, or the electronic device 200 is in a moving state, or the screen 208 is in a bright screen state, output a high-level enabling signal to the infrared sensor 210 to control the infrared sensor 210 to turn on. In this way, in an application scenario where the infrared function is not required, the infrared sensor 210 is turned off, which reduces the power consumption of the infrared sensor 210 and saves power resources.

[0079] According to some embodiments of the present application, optionally, Figure 1 and Figure 2 As shown, the signal conversion circuit 102 includes a third resistor 114 , a fourth resistor 116 , a first capacitor 118 , a first transistor 120 , a fifth resistor 122 , a sixth resistor 124 , a seventh resistor 126 , a second transistor 128 , a diode 130 , an eighth resistor 132 and a second capacitor 134 .

[0080] A first end of the third resistor 114 is connected to the power source 202 , and a second end of the third resistor 114 is connected to a first end of the first capacitor 118 .

[0081] Furthermore, a first end of the fourth resistor 116 is connected to the power source 202 , and a second end of the fourth resistor 116 is connected to a second end of the first capacitor 118 .

[0082] Furthermore, the first end of the first transistor 120 is connected to the second end of the third resistor 114, the second end of the first transistor 120 is grounded, the control end of the first transistor 120 is connected to the first end of the fifth resistor 122, and the second end of the fifth resistor 122 is grounded.

[0083] Furthermore, the sixth resistor 124 is connected to the first end of the fifth resistor 122 and the infrared enabling circuit 104 .

[0084] Furthermore, a first end of the seventh resistor 126 is connected to the power supply 202 , a second end of the seventh resistor 126 is connected to a first end of the second transistor 128 , a second end of the second transistor 128 is grounded, and a control end of the second transistor 128 is connected to a second end of the fourth resistor 116 .

[0085] Furthermore, an anode of the diode 130 is connected to the second end of the fourth resistor 116 , a cathode of the diode 130 is connected to the first end of the eighth resistor 132 , and a second end of the eighth resistor 132 is grounded.

[0086] Furthermore, the second capacitor 134 is connected to both the power button 204 and the cathode of the diode 130 .

[0087] In the infrared control circuit 100 provided in the embodiment of the present application, a signal conversion circuit 102 is added as a monostable trigger. When the pressing state of the power key 204 changes, the signal conversion circuit 102 outputs a high-level first signal. When the pressing state of the power key 204 does not change, the signal conversion circuit 102 outputs a low-level first signal. In this way, the level of the first signal output by the signal conversion circuit 102 can be used to determine whether the user is performing a key action.

[0088] According to the infrared control circuit 100 of the embodiment of the present application, the signal conversion circuit 102 includes: a third resistor 114, a first end of the third resistor 114 is connected to the power supply 202; a fourth resistor 116, a first end of the fourth resistor 116 is connected to the power supply 202; a first capacitor 118, connected to the second end of the third resistor 114 and the second end of the fourth resistor 116; a first triode 120, a first end of the first triode 120 is connected to the second end of the third resistor 114, and the second end of the first triode 120 is grounded; a fifth resistor 122, a first end of the fifth resistor 122 is connected to the control end of the first triode 120, and the second end of the fifth resistor 122 is grounded; a sixth resistor 124, a first end of the fifth resistor 124 is connected to the control end of the first triode 120, and the second end of the fifth resistor 124 is grounded; The first end of the resistor 122 is connected to the infrared enabling circuit 104; the seventh resistor 126, the first end of the seventh resistor 126 is connected to the power supply 202; the second triode 128, the first end of the second triode 128 is connected to the second end of the seventh resistor 126, the second end of the second triode 128 is grounded, and the control end of the second triode 128 is connected to the second end of the fourth resistor 116; the diode 130, the anode of the diode 130 is connected to the second end of the fourth resistor 116; the eighth resistor 132, the first end of the eighth resistor 132 is connected to the cathode of the diode 130, and the second end of the eighth resistor 132 is grounded; the second capacitor 134 is connected to the power key 204 and the cathode of the diode 130. In this way, the level of the first signal output by the signal conversion circuit 102 can be used to determine whether the user is performing a key action, which is convenient for subsequent determination of whether the application scenario of the electronic device 200 needs to use the infrared function.

[0089] Alternatively, if Figure 7 As shown, the embodiment of the present application also provides an infrared control method, which is applied to an electronic device, wherein the electronic device includes an infrared sensor, a power button, an acceleration sensor, and a screen. The infrared control method may specifically include the following S402 and S404:

[0090] S402: Acquire a first signal from a power button, a second signal from an acceleration sensor, and a third signal from a screen.

[0091] The infrared control method proposed in the embodiment of the present application is executed by an electronic device, which may specifically be a smart electronic device with infrared function, such as a smart phone, a tablet computer, a laptop computer, and a smart watch, and is not specifically limited here.

[0092] The first signal is a high level or a low level, and is used to indicate whether the pressing state of the power key changes. Specifically, when the pressing state of the power key changes, the first signal is a high level, and when the pressing state of the power key does not change, the first signal is a low level.

[0093] Furthermore, the second signal is used to indicate the existence state (such as a stationary state or a moving state) of the electronic device.

[0094] Furthermore, the third signal is used to indicate the display status of the screen (such as the screen-on status or the screen-off status).

[0095] S404: Outputting an enable signal to the infrared sensor according to the first signal, the second signal and the third signal to control the operation of the infrared sensor.

[0096] Specifically, in the infrared control method provided in the embodiment of the present application, a first signal of the power button, a second signal of the acceleration sensor, and a third signal of the screen are obtained, and then the pressing state of the power button is determined to be a jump according to the first signal, the existence state of the electronic device is determined to be a stationary state or a moving state according to the second signal, and the display state of the screen is determined to be a bright screen state or a screen off state according to the third signal. On this basis, based on the determined pressing state of the power button, the existence state of the electronic device, and the display state of the screen, an enable signal is output to the infrared sensor to control the operation of the infrared sensor.

[0097] Among them, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in a screen-off state, the enable signal is at a low level to control the infrared sensor to be turned off. Furthermore, when the first signal indicates that the pressing state of the power button has changed, or the second signal indicates that the electronic device is in a moving state, or the third signal indicates that the screen is in a bright screen state, the enable signal is at a high level to control the infrared sensor to be turned on. In this way, the infrared sensor of the electronic device can be turned off in a scenario where the infrared function is not needed, which reduces the power consumption of the infrared sensor and saves the power resources of the electronic device.

[0098] The above-mentioned infrared control method provided in the embodiment of the present application is applied to an electronic device, and the electronic device includes an infrared sensor, a power button, an acceleration sensor and a screen. The infrared control method includes: obtaining a first signal of the power button, a second signal of the acceleration sensor and a third signal of the screen; outputting an enable signal to the infrared sensor according to the first signal, the second signal and the third signal to control the operation of the infrared sensor; wherein, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state and the third signal indicates that the screen is in a screen-off state, the enable signal is a low level to control the infrared sensor to turn off. Through the above-mentioned infrared control method, when the pressing state of the power button has not changed, the electronic device is in a stationary state and the screen is in a screen-off state, the infrared sensor is controlled to turn off. In this way, the infrared sensor of the electronic device can be turned off in a scenario where the infrared function is not needed, which reduces the power consumption of the infrared sensor and saves the power resources of the electronic device.

[0099] In the embodiment of the present application, the second signal includes an interrupt signal of the acceleration sensor, and the third signal includes a power supply signal of the screen. The above S404 may specifically include the following S404a and S404b:

[0100] S404a: When the first signal, the interrupt signal and the power supply signal are all at low levels, output a low-level enable signal to the infrared sensor to control the infrared sensor to be turned off.

[0101] The interrupt signal is a high level or a low level, and is used to indicate the existence state (such as a stationary state or a moving state) of the electronic device.

[0102] Specifically, when the electronic device is in motion, the interrupt signal is at a high level, and when the electronic device is in a stationary state, the interrupt signal is at a low level. Thus, the existence state of the electronic device can be determined by the level of the interrupt signal, thereby determining whether the electronic device is in motion or stationary state.

[0103] Furthermore, the power supply signal is a high level or a low level, and the power supply signal is used to indicate the display state of the screen (such as a screen-on state or a screen-off state).

[0104] Specifically, when the screen is in the off state, the power supply signal is at a low level. Thus, the display state of the screen can be determined by the level of the power supply signal, thereby determining whether the screen is in the on state or the off state.

[0105] In actual application, the power supply signal may be an enable signal of a DDIC or an enable signal of a panel power IC, which is not specifically limited herein.

[0106] Specifically, in the infrared control method provided in the embodiment of the present application, the above-mentioned second signal includes an interrupt signal of the acceleration sensor, and the third signal includes a power supply signal of the screen. When the first signal, the interrupt signal and the power supply signal are all at low levels, that is, when the pressing state of the power button has not changed, the electronic device is in a stationary state and the screen is in an off state, that is, when the electronic device is off, stationary and the power button is not touched in an application scenario where the infrared function is not required, a low-level enable signal is output to the infrared sensor to control the infrared sensor to turn off, or to control the infrared sensor to reduce the scanning frequency. In this way, in an application scenario where the infrared function is not required, the infrared sensor is controlled to turn off or the scanning frequency of the infrared sensor is reduced, which reduces the power consumption of the infrared sensor and saves power resources.

[0107] S404b: When the first signal, the interrupt signal and the power supply signal are at a high level, output a high level enable signal to the infrared sensor to control the infrared sensor to turn on.

[0108] Specifically, in the infrared control method provided in the embodiment of the present application, when there is a high level in the first signal, the interrupt signal and the power supply signal, that is, when the pressing state of the power button changes, or the electronic device is in motion, or the screen is in a bright screen state, that is, when the electronic device is bright screen, motion or the power button fluctuates, etc., in application scenarios requiring infrared function, a high-level enable signal is output to the infrared sensor to control the infrared sensor to turn on and perform scanning according to the high-frequency scanning frequency. In this way, it is ensured that the electronic device can use the infrared function normally in application scenarios requiring infrared function.

[0109] In the above embodiment provided by the present application, the second signal includes an interrupt signal of the acceleration sensor, and the third signal includes a power supply signal of the screen. When the first signal, the interrupt signal, and the power supply signal are all at low levels, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off; when the first signal, the interrupt signal, and the power supply signal are at high levels, a high-level enable signal is output to the infrared sensor to control the infrared sensor to be turned on. In this way, while ensuring that the electronic device can use the infrared function normally, the power consumption of the infrared sensor is reduced, saving power resources.

[0110] In the embodiment of the present application, the second signal includes the first working signal of the acceleration sensor, the third signal includes the second working signal of the screen, and the above S404 may specifically include the following S404c to S404f:

[0111] S404c: Determine the existence status of the electronic device according to the change information of the first working signal.

[0112] Specifically, in the infrared control method provided in the embodiment of the present application, the second signal includes the first working signal of the acceleration sensor. The electronic device can obtain the first working signal of the acceleration sensor and determine whether the existence state of the electronic device is a stationary state or a moving state based on the change information of the first working signal.

[0113] S404d: Determine the display state of the screen according to the change information of the second working signal.

[0114] Specifically, in the infrared control method provided in the embodiment of the present application, the third signal includes the second working signal of the screen. The electronic device can obtain the second working signal of the screen and determine whether the display state of the screen is the screen-off state or the screen-on state based on the change information of the second working signal.

[0115] S404e: When the first signal is at a low level, the electronic device is in a stationary state, and the screen is in an off state, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off.

[0116] Specifically, in the infrared control method provided in the embodiment of the present application, when the first signal is at a low level, the electronic device is in a stationary state, and the screen is in a screen-off state, it is determined that the electronic device does not need to use the infrared function. At this time, a low-level enable signal is output to the infrared sensor to control the infrared sensor to turn off or reduce the scanning frequency. In this way, in an application scenario where the infrared function is not required, the infrared sensor is controlled to turn off or the scanning frequency of the infrared sensor is reduced, thereby reducing the power consumption of the infrared sensor and saving power resources.

[0117] S404f: When the first signal is at a high level, or the electronic device is in motion, or the screen is in a bright screen state, a high level enable signal is output to the infrared sensor to control the infrared sensor to turn on.

[0118] Specifically, in the infrared control method provided in the embodiment of the present application, when the first signal is at a high level, or the electronic device is in motion, or the screen is in a bright screen state, it is determined that the electronic device needs to use the infrared function. At this time, a high-level enable signal is output to the infrared sensor to control the infrared sensor to turn on and perform scanning at a high-frequency scanning frequency. In this way, it is ensured that the electronic device can use the infrared function normally in an application scenario where the infrared function is required.

[0119] In the above-mentioned embodiment provided by the present application, the second signal includes the first working signal of the acceleration sensor, and the third signal includes the second working signal of the screen. The existence state of the electronic device is determined according to the change information of the first working signal; the display state of the screen is determined according to the change information of the second working signal; when the first signal is at a low level, the electronic device is in a stationary state, and the screen is in a screen-off state, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off; when the first signal is at a high level, or the electronic device is in a moving state, or the screen is in a bright screen state, a high-level enable signal is output to the infrared sensor to control the infrared sensor to be turned on. In this way, while ensuring that the electronic device can use the infrared function normally, the power consumption of the infrared sensor is reduced, saving power resources.

[0120] The infrared control method provided in the embodiment of the present application can be executed by an infrared control device. In the embodiment of the present application, the infrared control device provided in the embodiment of the present application is described by taking the infrared control device executing the above infrared control method as an example.

[0121] like Figure 8 As shown, an embodiment of the present application provides an infrared control device 500, which is applied to an electronic device. The electronic device includes an infrared sensor, a power button, an acceleration sensor and a screen. The infrared control device 500 may specifically include the following acquisition unit 502 and processing unit 504.

[0122] An acquisition unit 502 is used to acquire a first signal from a power button, a second signal from an acceleration sensor, and a third signal from a screen;

[0123] The processing unit 504 is used to output an enable signal to the infrared sensor according to the first signal, the second signal and the third signal, so as to control the operation of the infrared sensor;

[0124] Among them, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in an off state, the enable signal is a low level to control the infrared sensor to turn off.

[0125] The infrared control device 500 provided in the embodiment of the present application is applied to an electronic device, and the electronic device includes an infrared sensor, a power button, an acceleration sensor and a screen. Through the infrared control device 500 provided in the embodiment of the present application, the first signal of the power button, the second signal of the acceleration sensor and the third signal of the screen are obtained; according to the first signal, the second signal and the third signal, an enable signal is output to the infrared sensor to control the operation of the infrared sensor; wherein, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state and the third signal indicates that the screen is in a screen-off state, the enable signal is a low level to control the infrared sensor to turn off. Through the above-mentioned infrared control device 500, when the pressing state of the power button has not changed, the electronic device is in a stationary state and the screen is in a screen-off state, the infrared sensor is controlled to turn off. In this way, the infrared sensor of the electronic device can be turned off in a scenario where the infrared function is not needed, the power consumption of the infrared sensor is reduced, and the power resources of the electronic device are saved.

[0126] In an embodiment of the present application, the second signal includes an interrupt signal of the acceleration sensor, and the third signal includes a power supply signal of the screen. The processing unit 504 is specifically used to: when the first signal, the interrupt signal and the power supply signal are all at low levels, output a low-level enable signal to the infrared sensor to control the infrared sensor to turn off; when there is a high level in the first signal, the interrupt signal and the power supply signal, output a high-level enable signal to the infrared sensor to control the infrared sensor to turn on.

[0127] In the above embodiment provided by the present application, the second signal includes an interrupt signal of the acceleration sensor, and the third signal includes a power supply signal of the screen. When the first signal, the interrupt signal, and the power supply signal are all at low levels, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off; when the first signal, the interrupt signal, and the power supply signal are at high levels, a high-level enable signal is output to the infrared sensor to control the infrared sensor to be turned on. In this way, while ensuring that the electronic device can use the infrared function normally, the power consumption of the infrared sensor is reduced, saving power resources.

[0128] In an embodiment of the present application, the second signal includes a first working signal of the acceleration sensor, and the third signal includes a second working signal of the screen. The processing unit 504 is specifically used to: determine the existence status of the electronic device based on the change information of the first working signal; determine the display status of the screen based on the change information of the second working signal; when the first signal is at a low level, the electronic device is in a stationary state and the screen is in an off state, output a low-level enable signal to the infrared sensor to control the infrared sensor to turn off; when the first signal is at a high level, or the electronic device is in motion, or the screen is in a bright screen state, output a high-level enable signal to the infrared sensor to control the infrared sensor to turn on.

[0129] In the above-mentioned embodiment provided by the present application, the second signal includes the first working signal of the acceleration sensor, and the third signal includes the second working signal of the screen. The existence state of the electronic device is determined according to the change information of the first working signal; the display state of the screen is determined according to the change information of the second working signal; when the first signal is at a low level, the electronic device is in a stationary state, and the screen is in a screen-off state, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off; when the first signal is at a high level, or the electronic device is in a moving state, or the screen is in a bright screen state, a high-level enable signal is output to the infrared sensor to control the infrared sensor to be turned on. In this way, while ensuring that the electronic device can use the infrared function normally, the power consumption of the infrared sensor is reduced, saving power resources.

[0130] The infrared control device 500 in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0131] The infrared control device 500 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0132] The infrared control device 500 provided in the embodiment of the present application can realize Figure 7 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0133] Alternatively, if Figure 6 As shown, an embodiment of the present application further provides an electronic device 200, including a power supply 202, a power button 204, an acceleration sensor 206, a screen 208, an infrared sensor 210 and the infrared control circuit 100 in the above embodiment.

[0134] The power button 204 , the acceleration sensor 206 , the screen 208 and the infrared control circuit 100 are all connected to the power source 202 .

[0135] Furthermore, the infrared control circuit 100 is also connected to the power button 204 , the acceleration sensor 206 , the screen 208 and the infrared sensor 210 .

[0136] The electronic device 200 provided in the embodiment of the present application includes the infrared control circuit 100 in the above embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0137] Alternatively, if Fig. 9 As shown, an embodiment of the present application further provides an electronic device 600, including a processor 602 and a memory 604, wherein the memory 604 stores programs or instructions that can be executed on the processor 602, and when the program or instructions are executed by the processor 602, the various steps of the above-mentioned infrared control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0138] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0139] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0140] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710 and other components.

[0141] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0142] The processor 710 is used to obtain a first signal from a power button, a second signal from an acceleration sensor, and a third signal from a screen.

[0143] The processor 710 is further configured to output an enable signal to the infrared sensor according to the first signal, the second signal and the third signal, so as to control the operation of the infrared sensor.

[0144] Among them, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in an off state, the enable signal is a low level to control the infrared sensor to turn off.

[0145] In an embodiment of the present application, the electronic device includes an infrared sensor, a power button, an accelerometer, and a screen. A first signal of the power button, a second signal of the accelerometer, and a third signal of the screen are obtained; an enable signal is output to the infrared sensor according to the first signal, the second signal, and the third signal to control the operation of the infrared sensor; wherein, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in a screen-off state, the enable signal is a low level to control the infrared sensor to turn off. In an embodiment of the present application, when the pressing state of the power button has not changed, the electronic device is in a stationary state, and the screen is in a screen-off state, the infrared sensor is controlled to turn off. In this way, the infrared sensor of the electronic device can be turned off in a scenario where the infrared function is not needed, thereby reducing the power consumption of the infrared sensor and saving the power resources of the electronic device.

[0146] Optionally, the second signal includes an interrupt signal of the acceleration sensor, and the third signal includes a power supply signal of the screen. The processor 710 is specifically used to: when the first signal, the interrupt signal and the power supply signal are all at low levels, output a low-level enable signal to the infrared sensor to control the infrared sensor to turn off; when there is a high level in the first signal, the interrupt signal and the power supply signal, output a high-level enable signal to the infrared sensor to control the infrared sensor to turn on.

[0147] In the above embodiment provided by the present application, the second signal includes an interrupt signal of the acceleration sensor, and the third signal includes a power supply signal of the screen. When the first signal, the interrupt signal, and the power supply signal are all at low levels, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off; when the first signal, the interrupt signal, and the power supply signal are at high levels, a high-level enable signal is output to the infrared sensor to control the infrared sensor to be turned on. In this way, while ensuring that the electronic device can use the infrared function normally, the power consumption of the infrared sensor is reduced, saving power resources.

[0148] Optionally, the second signal includes a first working signal of the acceleration sensor, and the third signal includes a second working signal of the screen. The processor 710 is specifically used to: determine the existence status of the electronic device based on the change information of the first working signal; determine the display status of the screen based on the change information of the second working signal; when the first signal is at a low level, the electronic device is in a stationary state and the screen is in an off state, output a low-level enable signal to the infrared sensor to control the infrared sensor to turn off; when the first signal is at a high level, or the electronic device is in motion, or the screen is in a bright screen state, output a high-level enable signal to the infrared sensor to control the infrared sensor to turn on.

[0149] In the above-mentioned embodiment provided by the present application, the second signal includes the first working signal of the acceleration sensor, and the third signal includes the second working signal of the screen. The existence state of the electronic device is determined according to the change information of the first working signal; the display state of the screen is determined according to the change information of the second working signal; when the first signal is at a low level, the electronic device is in a stationary state, and the screen is in a screen-off state, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off; when the first signal is at a high level, or the electronic device is in a moving state, or the screen is in a bright screen state, a high-level enable signal is output to the infrared sensor to control the infrared sensor to be turned on. In this way, while ensuring that the electronic device can use the infrared function normally, the power consumption of the infrared sensor is reduced, saving power resources.

[0150] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0151] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0152] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.

[0153] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned infrared control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0154] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0155] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned infrared control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0156] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0157] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the infrared control method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0158] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0160] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An infrared control circuit, characterized in that: Applied to electronic equipment, the electronic equipment includes a power supply, an infrared sensor, and a power button, an acceleration sensor and a screen respectively connected to the power supply, and the infrared control circuit includes: a signal conversion circuit connected to the power supply and the power key, the signal conversion circuit being configured to output a first signal according to a pressing state of the power key; an infrared enabling circuit connected to the signal conversion circuit, the acceleration sensor, the screen and the infrared sensor, the infrared enabling circuit being used to receive the first signal, the second signal of the acceleration sensor and the third signal of the screen, and output an enabling signal to the infrared sensor according to the first signal, the second signal and the third signal; Among them, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in an off state, the enable signal is at a low level to control the infrared sensor to turn off.

2. The infrared control circuit according to claim 1, characterized in that: The signal conversion circuit is specifically used for: When the pressing state of the power key changes, a high-level first signal is output; when the pressing state of the power key does not change, a low-level first signal is output.

3. The infrared control circuit according to claim 1, characterized in that: The infrared enabling circuit comprises: A logic OR gate connected to the signal conversion circuit, the acceleration sensor, the screen and the infrared sensor; The infrared control circuit also includes: a first resistor connected to the acceleration sensor and the logic OR gate, wherein the second signal comprises an interrupt signal of the acceleration sensor, wherein when the electronic device is in motion, the interrupt signal is at a high level, and when the electronic device is in a stationary state, the interrupt signal is at a low level; a second resistor connected to the screen and the logic OR gate, wherein the third signal includes a power supply signal of the screen, wherein when the screen is in a screen-on state, the power supply signal is at a high level, and when the screen is in a screen-off state, the power supply signal is at a low level; The logic OR gate is used to: when the first signal, the interrupt signal and the power supply signal are all at low levels, output a low-level enable signal to the infrared sensor to control the infrared sensor to be turned off; when the first signal, the interrupt signal and the power supply signal are at high levels, output a high-level enable signal to the infrared sensor to control the infrared sensor to be turned on.

4. The infrared control circuit according to claim 1, characterized in that: The infrared enabling circuit comprises: An infrared controller connected to the signal conversion circuit, the acceleration sensor, the screen and the infrared sensor; Wherein, the second signal includes a first working signal of the acceleration sensor, and the third signal includes a second working signal of the screen; The infrared controller is used for: The existence status of the electronic device is determined according to the change information of the first working signal, and the display status of the screen is determined according to the change information of the second working signal; when the first signal is at a low level, the electronic device is in a stationary state and the screen is in an off state, a low-level enable signal is output to the infrared sensor to control the infrared sensor to be turned off; when the first signal is at a high level, or the electronic device is in a moving state, or the screen is in a bright screen state, a high-level enable signal is output to the infrared sensor to control the infrared sensor to be turned on.

5. The infrared control circuit according to any one of claims 1 to 4, characterized in that: The signal conversion circuit comprises: a third resistor, a first end of the third resistor being connected to the power supply; a fourth resistor, a first end of the fourth resistor being connected to the power supply; A first capacitor connected to the second end of the third resistor and the second end of the fourth resistor; A first triode, wherein a first end of the first triode is connected to a second end of the third resistor, and a second end of the first triode is grounded; a fifth resistor, wherein a first end of the fifth resistor is connected to the control end of the first transistor, and a second end of the fifth resistor is grounded; a sixth resistor, connected to the first end of the fifth resistor and the infrared enabling circuit; a seventh resistor, a first end of the seventh resistor being connected to the power supply; a second triode, wherein a first end of the second triode is connected to a second end of the seventh resistor, a second end of the second triode is grounded, and a control end of the second triode is connected to a second end of the fourth resistor; a diode, wherein an anode of the diode is connected to the second end of the fourth resistor; an eighth resistor, a first end of the eighth resistor being connected to the cathode of the diode, and a second end of the eighth resistor being grounded; The second capacitor is connected to both the power button and the cathode of the diode.

6. An infrared control method, characterized in that: Applied to an electronic device, the electronic device includes an infrared sensor, a power button, an acceleration sensor and a screen, and the infrared control method includes: Acquire a first signal from the power button, a second signal from the acceleration sensor, and a third signal from the screen; outputting an enable signal to the infrared sensor according to the first signal, the second signal and the third signal, so as to control the operation of the infrared sensor; Among them, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in an off state, the enable signal is at a low level to control the infrared sensor to turn off.

7. The infrared control method according to claim 6, characterized in that: The second signal includes an interrupt signal of the acceleration sensor, the third signal includes a power supply signal of the screen, and the outputting an enable signal to the infrared sensor according to the first signal, the second signal and the third signal includes: When the first signal, the interrupt signal and the power supply signal are all at low levels, outputting a low-level enable signal to the infrared sensor to control the infrared sensor to be turned off; When the first signal, the interrupt signal and the power supply signal are at a high level, a high level enable signal is output to the infrared sensor to control the infrared sensor to turn on.

8. The infrared control method according to claim 6, characterized in that: The second signal includes a first working signal of the acceleration sensor, the third signal includes a second working signal of the screen, and outputting an enable signal to the infrared sensor according to the first signal, the second signal and the third signal includes: determining the existence status of the electronic device according to the change information of the first working signal; determining a display state of the screen according to change information of the second working signal; When the first signal is at a low level, the electronic device is in a stationary state, and the screen is in a screen-off state, outputting a low-level enable signal to the infrared sensor to control the infrared sensor to be turned off; When the first signal is at a high level, or the electronic device is in motion, or the screen is in a bright screen state, a high level enable signal is output to the infrared sensor to control the infrared sensor to turn on.

9. An infrared control device, characterized in that: Applied to electronic equipment, the electronic equipment includes an infrared sensor, a power button, an acceleration sensor and a screen, and the infrared control device includes: an acquisition unit, configured to acquire a first signal from the power button, a second signal from the acceleration sensor, and a third signal from the screen; a processing unit, configured to output an enable signal to the infrared sensor according to the first signal, the second signal and the third signal, so as to control the operation of the infrared sensor; Among them, when the first signal indicates that the pressing state of the power button has not changed, the second signal indicates that the electronic device is in a stationary state, and the third signal indicates that the screen is in an off state, the enable signal is at a low level to control the infrared sensor to turn off.

10. An electronic device, characterized in that: include: power supply; A power button connected to the power supply; An acceleration sensor connected to the power supply; A screen connected to the power supply; The infrared control circuit according to any one of claims 1 to 5, connected to the power supply, the power button, the acceleration sensor and the screen; The infrared sensor is connected to the infrared control circuit.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the infrared control method as claimed in any one of claims 6 to 8 are implemented.