Infrared module, control method of infrared module and electronic equipment

By controlling the refractive index of the lens assembly in the infrared module and generating appropriate optical signals according to the working mode, the spatial influence and optical wave interference problems of TOF laser sensors and infrared remote transmitters during stacking are solved, achieving a higher design thinner and better ranging accuracy.

CN119402576APending Publication Date: 2025-02-07VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411513631.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In a terminal device, when stacking the TOF laser sensor and the infrared remote transmitter, it will affect the stacking space, and the light waves emitted by the two will interfere with each other, affecting the distance measurement accuracy and the correct identification of the remote control signal.

Method used

Design an infrared module, including light emitting components, control circuits and lens components, by controlling the refractive index of the lens components, generate matching optical signals according to the current working mode (range measurement mode or remote control mode), thereby solving the problem of optical wave interference, and Reduce stacking space.

Benefits of technology

By adjusting the refractive index of the lens assembly, it can meet the emission needs in different working modes, solve the problem of light wave interference, and reduce the stacking space and improve the lightness of the design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402576A_ABST
    Figure CN119402576A_ABST
Patent Text Reader

Abstract

The invention discloses an infrared module, a control method of the infrared module and electronic equipment, and belongs to the technical field of circuits. Comprising a light-emitting assembly, a control circuit and a lens assembly. The control circuit is connected with the light-emitting assembly and the lens assembly. The light-emitting assembly and the lens assembly are oppositely arranged; the infrared module comprises a distance measurement mode and a remote control mode, and when the infrared module is in the distance measurement mode, the control circuit is used for controlling the lens assembly to have a first refractive index; when the infrared module is in the remote control mode, the control circuit is used for controlling the lens assembly to have a second refractive index; the first refractive index is greater than the second refractive index; the light-emitting assembly is used for generating a light signal for passing through a lens of the lens assembly. The optical signal matched with the current mode can be generated, and the refractive index of the lens assembly is controlled, so that the emission requirement of the current mode is met, and the problem that light waves emitted by the TOF laser sensor and the infrared remote control emitter interfere with each other can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] On the one hand, terminal devices usually calculate the distance of the measured object through Time of Flight (TOF) laser sensors, so as to quickly and accurately focus based on this distance. On the other hand, with the development and popularization of smart homes, terminal devices are usually equipped with infrared remote control components and software algorithm functions to support infrared remote control of different smart homes.

[0003] In order to meet the laser focus and infrared remote control functions on the terminal device at the same time, the TOF laser sensor and the infrared remote control transmitter are usually stacked and placed in a close position, for example, under the camera decorative ring lens on the back of the terminal device to meet the ultimate appearance requirements.

[0004] Stacking the infrared remote control transmitter next to the TOF laser sensor will affect the stacking space, and the light waves emitted by the TOF laser sensor and the infrared remote control transmitter will interfere with each other. Summary of the invention

[0005] The present application aims to provide an infrared module, a control method, a device and a storage medium for the infrared module, which at least solves one of the problems that stacking an infrared remote control transmitter next to a TOF laser sensor will affect the stacking space, and the light waves emitted by the TOF laser sensor and the infrared remote control transmitter will interfere with each other.

[0006] In order to solve the above technical problems, this application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides an infrared module, comprising: a light emitting component, a control circuit and a lens component; the control circuit is respectively connected to the light emitting component and the lens component; the light emitting component and the lens component are arranged opposite to each other;

[0008] The infrared module includes a distance measurement mode and a remote control mode. When the infrared module is in the distance measurement mode, the control circuit is used to control the lens assembly to have a first refractive index; when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index; the first refractive index is greater than the second refractive index;

[0009] The light emitting assembly is used to generate a light signal for passing through a lens of the lens assembly.

[0010] In a second aspect, an embodiment of the present application provides a method for using an infrared module, which is applied to the infrared module as described in the first aspect, and the method includes:

[0011] When the infrared module is in the distance measurement mode, the lens assembly is controlled to have a first refractive index; when the infrared module is in the remote control mode, the lens assembly is controlled to have a second refractive index; the first refractive index is greater than the second refractive index; the infrared module includes a distance measurement mode and a remote control mode;

[0012] An optical signal is generated for passing through a lens of the lens assembly.

[0013] In a third aspect, the present application discloses 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 method described in the second aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the second aspect.

[0016] In a sixth 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 method described in the second aspect.

[0017] In the embodiment of the present application, when the infrared module is in the ranging mode, the control circuit is used to control the lens assembly to have a first refractive index, and when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index, the first refractive index is greater than the second refractive index, and the light-emitting assembly is used to generate a light signal for passing through the lens of the lens assembly. In the infrared module, based on the current working mode, a light signal matching the current working mode can be generated, and the refractive index of the lens assembly can be controlled to meet the emission requirements in the current working mode, which can solve the problem that the light waves emitted by the TOF laser sensor and the infrared remote control transmitter interfere with each other. In addition, the ranging mode and the remote control mode are integrated in the same infrared module, and the two modes are implemented by the circuit of the same infrared module, so the stacking space can be reduced and the lightness of the design can be increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1is a schematic diagram of a terminal device performing TOF laser focusing provided in an embodiment of the present application;

[0019] Figure 2 This is a schematic diagram of an interface for infrared remote control of a terminal device provided in an embodiment of the present application;

[0020] Figure 3 It is a schematic diagram of the hardware system layout of an infrared remote control system and a TOF laser focus sensor in a related technology provided in an embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of the layout of a TOF laser focus sensor and an infrared remote control transmitter provided in an embodiment of the present application;

[0022] Figure 5 It is an infrared module provided in an embodiment of the present application;

[0023] Figure 6 is a circuit diagram of an infrared module provided in an embodiment of the present application;

[0024] Figure 7 is a schematic diagram of a voltage-controlled current source provided in an embodiment of the present application;

[0025] Figure 8 is a schematic diagram of the relationship between transmission power and current provided in an embodiment of the present application;

[0026] Fig. 9 is a laser focus waveform signal provided in an embodiment of the present application;

[0027] Fig.10 is an infrared remote control waveform signal provided in an embodiment of the present application;

[0028] Fig.11 is a circuit diagram of a control circuit provided in an embodiment of the present application;

[0029] Fig.12 is a schematic diagram of a transmission angle in a ranging mode provided in an embodiment of the present application;

[0030] Fig.13 is a schematic diagram of a launch angle in a remote control mode provided in an embodiment of the present application;

[0031] Fig.14 It is a hardware system block diagram provided by an embodiment of the present application;

[0032] Fig.15 It is a flowchart of a method for controlling an infrared module provided in an embodiment of the present application;

[0033] Fig.16is a flowchart of another method for controlling an infrared module provided in an embodiment of the present application;

[0034] Fig.17 is a block diagram of an electronic device provided in an embodiment of the present application;

[0035] Fig.18 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0037] With the development of imaging technology, the focusing technology of terminal devices with video and photo functions has become increasingly powerful. The traditional phase focus (PDAF) technology performs phase detection on the signal of the object on the photosensitive device, and calculates the current focus offset value by finding the point with the smallest difference in the focus area as the accurate focus point. The offset value is transmitted to the focus motor control and drive circuit through the control signal, and the focus motor is controlled to move to the specified position to achieve accurate focus. The advantage of phase focus is that the focus can be completed with only one calculation, and the speed is fast. The disadvantage is that the focus is slow and inaccurate in low light, dark and other environments. In order to solve the above shortcomings, some terminal devices use additional laser focus devices to provide accurate data for the distance measurement of the object in low light and dark environments, thereby assisting the terminal device camera to focus quickly and accurately.

[0038] The laser focusing device uses the time-of-flight principle. It includes a laser transmitter, a laser receiving sensor, and a time-of-flight converter. Figure 1 , Figure 1 The terminal device 11 and the object 12 to be measured are included. The main process of the terminal device 11 performing TOF laser focusing is as follows: the laser transmitter in the terminal device 11 emits a laser pulse, which is irradiated onto the object 12 to be measured, and after being reflected by the object 12 to be measured, it is received by the laser receiving sensor. The flight time of the laser pulse from emission to return is calculated by the flight time converter, and the distance from the terminal device 11 to the object 12 to be measured is calculated according to the propagation speed of the laser pulse in the air. Then, the terminal device 11 can quickly and accurately focus on the object 12 to be measured through the distance information.

[0039] With the development and popularization of smart homes, people increasingly hope to control smart home devices in a variety of ways to meet the experience in different scenarios. Common control methods for smart homes include touch control, infrared remote control, voice control, network cloud control, etc.

[0040] See also Figure 2 ,In order to realize the control of different smart homes by terminal devices,,e.g. Figure 2 The interface displays the corresponding controls of air purifiers, projectors, fans, light bulbs, set-top boxes and smart boxes. People can control the corresponding smart home based on these controls to enhance people's experience of terminal devices. In the terminal device, infrared remote control components and software algorithm functions are equipped to support the control of smart home through infrared remote control. The infrared remote control system consists of two parts: the transmitter and the receiver. Among them, the transmitter is generally also called a remote control, and the hardware includes a control unit, a semiconductor metal-oxide-semiconductor field-effect transistor (MOS) and an infrared transmitter. The control unit of the transmitter modulates the control command onto the carrier signal and emits infrared light waves through the infrared transmitter. These infrared light waves carry the encoded command information. The receiver is integrated inside the smart home, and the hardware includes an infrared receiver, a filter, an amplifier circuit, a shaping circuit and a decoder. After receiving the infrared light wave, the infrared receiver converts the optical signal into an electrical signal, and then performs filtering, amplification and demodulation. The microcontroller will perform corresponding operations according to the post-stage signal.

[0041] In the related art, in order to simultaneously meet the above-mentioned laser focus and infrared remote control functions, a TOF laser focus sensor and an infrared remote control transmission system are integrated in the terminal device. Figure 3 , Figure 3 It includes a TOF laser focus sensor 31 and an infrared remote control transmitting system 32. The TOF laser focus sensor 31 and the infrared remote control transmitting system 32 are stacked, and when stacked, the TOF laser focus sensor and the infrared remote control transmitter are placed in a close position, that is, below the camera decorative ring lens on the back of the terminal device, to meet the ultimate appearance requirements.

[0042] However, stacking the TOF laser focus sensor and the infrared remote control transmitting system in a close position, on the one hand, due to the certain volume of the infrared remote control transmitting system, stacking it next to the TOF laser sensor will affect the stacking space and the extremely thin and light design. On the other hand, when the TOF laser focus sensor is working, it will emit a 940 nanometer (Nanometer, nm) band light wave, which overlaps with the wavelength of the light wave modulated by the infrared remote control carrier, causing co-frequency interference, affecting the infrared receiver's correct recognition of the carrier, resulting in insensitive remote control, error code recognition and other problems. When the infrared remote control is working, the infrared remote control transmitter will emit a 940nm band modulated light wave, which overlaps with the wavelength of the emitted light wave of the TOF laser focus sensor, causing co-frequency interference, affecting the background noise of the TOF laser focus sensor, data jitter, and affecting the ranging accuracy and the maximum ranging distance.

[0043] In this application, see Figure 4 , Figure 4 It includes a laser and remote control transmitting module 41 and a laser receiving module 42. The laser and remote control transmitting module 41 integrates the TOF laser focus sensor and the infrared remote control transmitter through an integrated circuit (IC). That is to say, the TOF laser focus sensor and the infrared remote control transmitter are designed with the same IC, and the circuits with the same functions are used inside the IC. In addition, a logic drive control circuit is designed to support infrared remote control transmission and TOF laser transmission respectively.

[0044] In the embodiment of the present application, when the infrared module is in the ranging mode, the control circuit is used to control the lens assembly to have a first refractive index, and when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index, the first refractive index is greater than the second refractive index, and the light-emitting assembly is used to generate a light signal for passing through the lens of the lens assembly. In the infrared module, based on the current working mode, a light signal matching the current working mode can be generated, and the refractive index of the lens assembly can be controlled to meet the emission requirements in the current working mode, which can solve the problem that the light waves emitted by the TOF laser sensor and the infrared remote control transmitter interfere with each other. In addition, the ranging mode and the remote control mode are integrated in the same infrared module, and the two modes are implemented by the circuit of the same infrared module, so the stacking space can be reduced and the lightness of the design can be increased.

[0045] See also Figure 5 , Figure 5An infrared module provided by an embodiment of the present application includes: a light-emitting component, a control circuit and a lens component; the control circuit is respectively connected to the light-emitting component and the lens component; the light-emitting component and the lens component are arranged relatively to each other; the infrared module includes a ranging mode and a remote control mode, when the infrared module is in the ranging mode, the control circuit is used to control the lens component to have a first refractive index; when the infrared module is in the remote control mode, the control circuit is used to control the lens component to have a second refractive index; the first refractive index is greater than the second refractive index; the light-emitting component is used to generate an optical signal for passing through the lens of the lens component.

[0046] In the embodiment of the present application, the first refractive index and the second refractive index are used to adjust the emission angle of the lens assembly, so as to meet different requirements in different working modes. For example, when the working mode is the ranging mode, the emission angle of the lens assembly can be adjusted to a narrow beam emission angle to concentrate the energy of the light beam and improve the ranging signal-to-noise ratio; when the working mode is the remote control mode, the emission angle of the lens assembly can be adjusted to a wide beam emission angle to use infrared remote control at a larger angle.

[0047] In the infrared module of the embodiment of the present application, based on the current working mode, an optical signal matching the current working mode can be generated, and the refractive index of the lens assembly can be controlled to meet the emission requirements in the current working mode, which can solve the problem that the light waves emitted by the TOF laser sensor and the infrared remote control transmitter interfere with each other. In addition, the ranging mode and the remote control mode are integrated in the same infrared module, and these two modes are implemented by the circuit of the same infrared module, so the stacking space can be reduced and the lightness of the design can be increased.

[0048] Alternatively, see Figure 6The light-emitting component includes: a driving subcircuit 102 and an optical emitter 104; the input end of the driving subcircuit 102 is connected to the output end of the control circuit 101; the output end of the driving subcircuit 102 is connected to the input end of the optical emitter 103; the control circuit 101 is used to obtain a flag signal indicating the current working mode of the infrared module; the control circuit is also used to send a laser focus signal to the driving subcircuit 102 when it is determined that the current working mode is the ranging mode according to the flag signal; the driving subcircuit 102 is used to control the on-off of the circuit between the driving subcircuit 102 and the optical emitter 103 based on the level signal of the laser focus signal, so as to adjust the current signal between the driving subcircuit 102 and the optical emitter 103 to a first current value, and the first current value is a current value matching the ranging mode; the optical emitter 103 is used to emit a light signal passing through the lens of the lens assembly based on the first current value. In the embodiment of the present application, when the control circuit 101 determines that the current working mode is the ranging mode according to the flag signal, a laser focus signal is sent to the driving sub-circuit 102, so that the driving sub-circuit 102 can adjust the current signal between the driving sub-circuit 102 and the optical transmitter 103 based on the laser focus signal, thereby causing the optical transmitter 103 to emit a light signal matching the ranging mode, thereby solving the interference problem between the laser focus signal and the infrared remote control signal.

[0049] For example, see Figure 6 , when the control circuit 101 determines that the current working mode is the ranging mode according to the flag signal, the laser focus signal is sent to the driving subcircuit 102. The driving subcircuit 102 controls the on-off of the circuit between the driving subcircuit 102 and the optical emitter 103 based on the level signal of the laser focus signal, so as to adjust the current signal between the driving subcircuit 102 and the optical emitter 103 to a first current value. If the circuit between the driving subcircuit 102 and the optical emitter 103 is on, the first current value is a current value matching the ranging mode. If the circuit between the driving subcircuit 102 and the optical emitter 103 is off, the first current value is 0. If the first current value is a current value matching the ranging mode, the optical emitter 103 has current passing through it, and the optical emitter 103 emits a light signal passing through the lens of the lens assembly. If the first current value is 0, the optical emitter 103 has no current passing through it, and the optical emitter 103 stops emitting a light signal passing through the lens of the lens assembly.

[0050] Alternatively, see Figure 6The light-emitting component includes: a driving subcircuit 102 and an optical emitter 103; the input end of the driving subcircuit 102 is connected to the output end of the control circuit 101; the output end of the driving subcircuit 102 is connected to the input end of the optical emitter 103; the control circuit 101 is used to obtain a flag signal for indicating the current working mode of the infrared module; the control circuit 101 is also used to send the infrared remote control signal to the driving subcircuit 102 when it is determined that the current working mode is the remote control mode according to the flag signal; the driving subcircuit 102 is used to control the on-off of the circuit between the driving subcircuit 102 and the optical emitter 103 based on the level signal of the infrared remote control signal, so as to adjust the current signal between the driving subcircuit 102 and the optical emitter 103 to a second current value, and the second current value is a current value matching the remote control mode; the optical emitter 103 is used to emit a light signal passing through the lens of the lens assembly based on the second current value. In the embodiment of the present application, when the control circuit 101 determines that the current working mode is the remote control mode according to the flag signal, the infrared remote control signal is sent to the driving sub-circuit 102, so that the driving sub-circuit 102 can adjust the current signal between the driving sub-circuit 102 and the optical transmitter 103 based on the infrared remote control signal, and then the optical transmitter 103 transmits a light signal matching the remote control mode, which can solve the interference problem between the laser focus signal and the infrared remote control signal.

[0051] For example, see Figure 6 , when the control circuit 101 determines that the current working mode is the remote control mode according to the flag signal, the infrared remote control signal is sent to the driving sub-circuit 102. The driving sub-circuit 102 controls the on-off of the circuit between the driving sub-circuit 102 and the optical transmitter 103 based on the level signal of the infrared remote control signal, so as to adjust the current signal between the driving sub-circuit 102 and the optical transmitter 103 to the second current value. If the circuit between the driving sub-circuit 102 and the optical transmitter 103 is on, the second current value is the current value matching the remote control mode. If the circuit between the driving sub-circuit 102 and the optical transmitter 103 is off, the second current value is 0. If the second current value is the current value matching the remote control mode, the optical transmitter 103 has current passing through it, and the optical transmitter 103 transmits the light signal passing through the lens of the lens assembly. If the first current value is 0, the optical transmitter 103 has no current passing through it, and the optical transmitter 103 stops transmitting the light signal passing through the lens of the lens assembly.

[0052] Alternatively, see Figure 6, the driving sub - circuit 104 includes: a switching MOS transistor M and a current source V1; the infrared module further includes a power supply module C; the gate g of the switching MOS transistor is connected to the output end of the control circuit 101, the drain d of the switching MOS transistor is connected to the power supply module C; the source s of the switching MOS transistor is connected to the input end of the optical transmitter 103, and the output end of the optical transmitter 103 is connected to the current source V1; the switching MOS transistor M is used to conduct the circuit of the current source V1 and the optical transmitter 103 when the level signal is high, so that the optical transmitter 103 emits an optical signal based on the current signal provided by the current source V1; when the level signal is low, the circuit of the current source V1 and the optical transmitter 103 is disconnected, so that the optical transmitter 103 stops emitting an optical signal. In the embodiment of the present application, by setting a switching MOS transistor and a current source in the driving sub - circuit, the optical transmitter can adjust the magnitude of the current of the current source based on the level signal of the switching MOS transistor, control the optical transmitter to emit an optical signal, and the implementation method is relatively simple, which can reduce the complexity of the circuit.

[0053] Taking the switching MOS transistor as an N - type metal - oxide - semiconductor (NMOS, N - Metal - Oxide - Semiconductor) as an example, when VGS < Vth, the NMOS transistor is in the cut - off state, no current flows through the optical transmitter, and the optical transmitter stops emitting light. When VGS > Vth and Vds < VGS - Vth, the NMOS transistor is in the variable resistance region. As long as VGS is large enough, the on - resistance of the NMOS transistor is very small, the NMOS is in the closed - conduction state, current flows through the optical transmitter, and the optical transmitter emits light. Among them, Vth is the turn - on threshold voltage of the NMOS, which is a fixed value for a fixed switching MOS. Vds refers to the potential difference between the drain d and the source s of the NMOS, which is related to the actual circuit working state. VGS refers to the potential difference between the gate g and the source s of the NMOS, which is controlled by the output of the control circuit 101.

[0054] In the embodiment of the present application, the current source is a controlled current source, and the magnitude of the current of the current source can be adjusted to dynamically adjust the emission power of the optical transmitter. See Figure 6 , the magnitude of the current of the current source V1 can be adjusted by setting a power supply chip Z1, so as to adjust the emission power of the optical transmitter 103. See Figure 7 , taking the control of the current source V1 by the voltage u1 as an example, the voltage - controlled current formula is as shown in the following formula:

[0055] I = gV

[0056] Among them, g is the transconductance, which refers to the ratio of the change in the output current to the change in the input voltage. V is the control voltage. From the above formula, it can be seen that the current is proportional to the control voltage. Therefore, the purpose of controlling the current can be achieved by adjusting the control voltage.

[0057] In the embodiment of the present application, the optical transmitter includes a laser transmitter, and the transmission power of the laser transmitter can be adjusted by adjusting the current flowing through the laser transmitter. Figure 8 , Figure 8 The transmission power and current relationship diagram provided by the embodiment of the present application, the transmission power of the laser transmitter and the transmission power ratio f of the laser transmitter at 15mA are positively correlated with the current I flowing through, and the greater the current, the greater the transmission power. The embodiment of the present application can adjust the transmission angle or intensity of the infrared remote control signal by adjusting the transmission power of the laser transmitter, so as to avoid obstacles.

[0058] Alternatively, see Figure 6 The control circuit 101 includes: a NOT gate circuit 1, a first AND gate circuit &, a second AND gate circuit && and an operational amplifier OPA; the two input ends of the first AND gate circuit & are respectively used to receive a flag signal A and a laser focus waveform signal B; one input end of the second AND gate circuit && is used to receive an infrared remote control waveform signal C, and the other input end of the second AND gate circuit && is connected to the output end of the NOT gate circuit 1, and the input end of the NOT gate circuit 1 is used to receive the flag signal A; the output ends of the first AND gate circuit && and the second AND gate circuit && are respectively connected to the input end of the operational amplifier OPA; the control circuit 101 is used to generate a laser focus signal and an infrared remote control signal ; When the two input ends of the first AND gate circuit & respectively receive the flag signal A of the first value and the laser focus waveform signal B, the control circuit 101 determines that the laser generation parameter is the laser focus signal, and amplifies the laser focus signal through the operational amplifier OPA for output; the NOT gate circuit 1 is used to convert the flag signal of the first value to obtain the flag signal of the second value. When the two input ends of the second AND gate circuit && respectively receive the flag signal of the second value and the infrared remote control waveform signal C, the control circuit 101 determines that the laser generation parameter is the infrared remote control signal, and amplifies the infrared remote control signal through the operational amplifier OPA for output.

[0059] In this application, a high level corresponds to a TOF laser ranging sensor working mark, and a low level corresponds to an infrared remote control working mark as an example. The output signal L of the control circuit 101 can be obtained by the logic circuit: The corresponding relationship between the output signal L and the flag signal A, the laser focus waveform signal B and the infrared remote control waveform signal C is shown in Table 1. When the flag signal A takes the first value, that is, A=1, the control circuit 101 outputs the signal L=B and outputs the laser focus signal; when the flag signal A takes the second value, that is, A=0, the control circuit 101 outputs the signal L=C and outputs the infrared remote control signal. The embodiment of the present application implements this function through a logic circuit, and its implementation method is simple and feasible, which can reduce the complexity of the circuit.

[0060] Table 1

[0061]

[0062]

[0063] See also Fig. 9 The laser focus waveform signal contains the number of distance measurements and the single distance measurement cycle information. The single distance measurement cycle is 53.2ns, and the number of distance measurements is 900,000 times.

[0064] See also Fig.10 , the infrared remote control waveform signal includes a preamble, a user code and a key data code. Among them, the preamble is also called a start signal, including a 9 millisecond (Millisecond, ms) high level and a 4.5ms low level. The user code is also called a bit address code, including a low 8-bit user code and a high 8-bit user code. The key data code includes an 8-bit key data code and an 8-bit key data inverse code. Both the user code and the key data code are composed of binary numbers containing 0 and 1. Among them, the logic 1 includes a 560 microsecond (Microsecond, μs) high-level pulse carrier and a 1690μs low level, with a total duration of 2.25ms. The logic 0 includes a 560μs high-level pulse carrier and a 560μs low level, with a total duration of 1.12ms. The 560μs high-level pulse carrier is composed of a 38khz carrier pulse.

[0065] Alternatively, see Fig.11, the lens assembly also includes: a voltage power supply Z2; the voltage power supply Z2 is connected to the control circuit 101; the control circuit 101 is used to obtain a first level signal matching the ranging mode when the current working mode is the ranging mode; the voltage power supply Z2 is used to adjust the current level signal to the first level signal, and adjust the refractive index of the transmitting lens 104 to the first refractive index according to the first level signal; or the control circuit 101 is used to obtain a second level signal matching the remote control mode when the current working mode is the remote control mode; the voltage power supply Z2 is used to adjust the current level signal to the second level signal, and adjust the refractive index of the transmitting lens 104 to the second refractive index according to the second level signal. The voltage power supply of the embodiment of the present application can adjust the refractive index of the lens in the lens assembly to the refractive index matching the current working mode based on the level signal matching the current working mode, which can meet the needs of different working modes.

[0066] In the embodiment of the present application, the lens of the lens assembly is made of a crystal whose refractive index can be electrically changed. That is, under the action of an electric field, the refractive index of the lens of the lens assembly can be changed. Fig.11 The control circuit 101 is connected to the voltage power supply Z2, and the voltage power supply Z2 is connected to the control electrode of the emitting lens 104. By adjusting the output voltage of the voltage power supply Z2, the refractive index of the emitting lens 104 can be adjusted, thereby adjusting the spatial distribution of the light emitted from the laser emitter.

[0067] In the embodiments of the present application, voltages and refractive indices in different working modes are usually pre-stored. For example, the working voltages corresponding to the ranging mode and the remote control mode are pre-stored. The number of pre-stored working voltages in each mode can be 1 or more, and each voltage corresponds to a refractive index. The corresponding relationship between voltage and refractive index is as follows:

[0068] The refractive index n is actually a complex number exists in the form of Among them, the real part n is the dispersion of electromagnetic waves by the medium, the imaginary part nk is the absorption of electromagnetic waves by the medium, and i is the imaginary unit.

[0069] When the electro-induced refractive index crystal is subjected to the action of an external electric field, a linear photoelectric effect will be generated. The secondary photoelectric effect and the carrier effect will obtain a change Δn in the real part n, which will lead to a change in the dispersion ability of electromagnetic waves. The formula of the linear photoelectric effect is as follows:

[0070]

[0071] Among them, r is the photoelectric coefficient, E is the intensity of the electric field, and n0 is the refractive index of the crystal itself.

[0072] The formula for the secondary photoelectric effect is as follows:

[0073]

[0074] Among them, R kerr is the secondary photoelectric coefficient.

[0075] The formula for the carrier effect is as follows:

[0076]

[0077] Where q is the electron charge, ε0 is the vacuum dielectric constant, ΔN e is the electron concentration, ΔN h is the hole concentration, m e is the mass of the electron, m h is the effective mass of the hole, λ is the wavelength of the incident light, and c is the speed of light in vacuum.

[0078] See also Fig.12 , when the current working mode is the ranging mode, a first level signal u1 matching the ranging mode is obtained, and the output voltage of the voltage power supply Z2 is adjusted to u1, so as to adjust the refractive index of the lens of the transmitting lens 104 to n1. At this time, the incident angle is θ1, and the refraction angle is θ2, so that the light wave passing through the lens of the transmitting lens 104 becomes a narrow beam emission angle working mode, the emission energy is more concentrated, and the ranging signal-to-noise ratio is better. In other words, the object OB to be measured can be focused, so as to measure the distance of the object OB to be measured.

[0079] The above refraction angle and refractive index satisfy Snell's law:

[0080]

[0081] Among them, θ1 is the angle of incidence, that is, the angle between the incident light and the normal; θ2 is the angle of refraction, that is, the angle between the refracted light and the normal; n2 is the refractive index of the medium before the incident light to the emitting lens, which is the refractive index of air; n1 is the refractive index of the medium of the emitting lens.

[0082] See also Fig.13 , when the current working mode is the remote control mode, the second level signal u2 matching the remote control mode is obtained, and the output voltage of the voltage power supply Z2 is adjusted to u2, so as to adjust the refractive index of the lens of the transmitting lens 104 to n1. At this time, the incident angle is θ1, and the refraction angle is θ3, so that the light wave passing through the lens of the transmitting lens 104 becomes a wide beam emission angle working mode, and the emission energy is dispersed into a larger spatial angle, so that the infrared remote control control angle is larger. In other words, not only the measured object OB can be controlled, but also other objects can be controlled.

[0083] The above refraction angle and refractive index satisfy Snell's law:

[0084]

[0085] Among them, θ1 is the angle of incidence, that is, the angle between the incident light and the normal; θ3: the angle of refraction, that is, the angle between the refracted light and the normal; n3 is the refractive index of the medium before the incident light to the emitting lens, which is the refractive index of air; n1 is the refractive index of the medium of the emitting lens.

[0086] The embodiment of the present application integrates the infrared remote control with the optical lens of the TOF laser sensor, adds an electrically controlled lens, and switches the refractive index of the lens to change the infrared remote control working mode to a wide beam emission angle working mode, so that the infrared remote control can be used at a larger angle, and changes the TOF laser sensor working mode to a narrow beam emission angle working mode, so that the energy is concentrated and the ranging signal-to-noise ratio is better. The emission angle requirements of both infrared remote control and TOF laser ranging modes are met by one lens, without the need for an external optical lens, and the stacking space limitation problem is optimized.

[0087] Alternatively, see Fig.14 The infrared module also includes: a receiver 105 and a signal amplifying component 106; the output end of the receiver 105 is connected to the input end of the signal amplifying component 106; the receiver 105 is used to receive the reflected signal of the light signal reflected by the reflector if the current working mode is the ranging mode, and collect the laser reflected by the reflector to the receiving optical lens inside the sensor. The signal amplifying component 106 converts the weak light signal received by the receiver 105 into an electrical signal for triggering the function.

[0088] Alternatively, see Fig.14 The infrared module also includes an electrical signal processing component and a processing subcircuit 107. The electrical signal processing component includes: a timer 108, a counter 109, and a memory 110; the input end of the timer 108 is connected to the output end of the signal amplification component 106, and the output end of the timer 108 is connected to the input end of the counter 109; the input end of the memory 110 is connected to the output end of the counter 109; the output end of the memory 110 is connected to the input end of the processing subcircuit 107; the timer 108 is used to calculate the flight time of the optical signal; the start time of the flight time is the time when the optical transmitter 103 starts to emit the optical signal; the end time of the optical signal is the time when the processing subcircuit 107 receives the optical signal; the counter 109 is used to count the flight time falling into the preset time window to obtain the flight time spectrum distribution data within a cycle; the memory 110 is used to store the flight time spectrum distribution data within each cycle sent by the counter 109, and transmit it to the processing subcircuit 107 according to the preset reporting rate; the processing subcircuit 107 is used to calculate the flight time spectrum distribution data to obtain the ranging distance.

[0089] See also Fig.14, the timer 108 processes the flight time of the laser, the start signal of the timer 108 is synchronized with the start signal of the optical transmitter 103, and the stop signal of the timer 108 comes from the trigger electrical signal output by the signal amplification component 106. The two time differences are the flight time after the laser is emitted and the reflection is received. The above-mentioned one emission can obtain a flight time and ranging distance. Since a single data is susceptible to interference, the TOF laser sensor usually emits the laser multiple times in one cycle. Each emission can obtain a ranging distance. By designing a certain number of counters 109, the flight time falling into the corresponding time window is counted respectively, and finally a flight time spectrum distribution data can be obtained in one cycle. The memory 110 stores the spectrum distribution data of each cycle and transmits the data to the processing subcircuit 107 at a certain reporting rate. The processing subcircuit 107 calculates the flight time spectrum distribution data to obtain the ranging distance.

[0090] In the embodiment of the present application, when the infrared module is in the ranging mode, the control circuit is used to control the lens assembly to have a first refractive index, and when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index, the first refractive index is greater than the second refractive index, and the light-emitting assembly is used to generate a light signal for passing through the lens of the lens assembly. In the infrared module, based on the current working mode, a light signal matching the current working mode can be generated, and the refractive index of the lens assembly can be controlled to meet the emission requirements in the current working mode, which can solve the problem that the light waves emitted by the TOF laser sensor and the infrared remote control transmitter interfere with each other. In addition, the ranging mode and the remote control mode are integrated in the same infrared module, and the two modes are implemented by the circuit of the same infrared module, so the stacking space can be reduced and the lightness of the design can be increased.

[0091] See also Fig.14 , an embodiment of the present application provides a hardware system block diagram, the main body of which is a hardware system 100 that integrates a TOF laser ranging sensor and an infrared remote control transmitter, and is composed of a control circuit 101, a driving subcircuit 102, an optical transmitter 103, a transmitting lens 104, a receiver 105, a signal amplification component 106, a processing subcircuit 107, a timer 108, a counter 109, a memory 110, a clock 111, and a power supply module 112.

[0092] The processing subcircuit 107 is responsible for encoding the infrared remote control function into an electrical signal and transmitting it to the control circuit 101; is responsible for converting the laser emission times instruction into an electrical signal and transmitting it to the control circuit 101; is responsible for outputting the instruction of the refractive index or working mode of the transmitting lens to the control circuit 101; and provides the infrared remote control and laser ranging working flag.

[0093] The control circuit 101 is responsible for converting the electrical signal output by the processing subcircuit 107 into a driving signal that actually satisfies the trigger cycle, and distinguishes the "infrared remote control transmission" and the "laser transmission-reception cycle" through flag bit time-division control, thereby realizing mutual exclusion of infrared remote control and laser transmission-reception at the hardware level.

[0094] The driving subcircuit 102 is composed of a current source and a switch MOS, and the current of the current source can be adjusted internally to support dynamic adjustment of the transmitting power of the transmitter. The switch MOS is responsible for realizing the conduction and shutdown of the current source and the optical transmitter 103.

[0095] The optical transmitter 103 is composed of a semiconductor infrared optical transmitter, and emits infrared light with a peak wavelength between 930 and 940 nm.

[0096] The transmitting lens 104 is a transmitting end optical lens composed of a material with an electrically controlled adjustable refractive index. The refractive index of the lens is switched by the control circuit 101. When the infrared remote control is working, it changes to a wide emission angle working mode, which is convenient for using the infrared remote control at a larger angle. When the TOF laser sensor is working, it changes to a narrow beam emission angle working mode to concentrate the energy and improve the ranging signal-to-noise ratio.

[0097] The control circuit 101 receives the refractive index or working mode instruction sent by the processing sub-circuit 107, and converts it into an electrical control signal to control the emitting lens 104 to adjust the refractive index.

[0098] The receiver 105 - memory 110 has been described above and will not be elaborated on here.

[0099] The processing subcircuit 107 is responsible for processing the original spectrum distribution data of TOF laser ranging and calculating and outputting the ranging distance.

[0100] Clock 111 is responsible for the clock source of all hardware modules.

[0101] The power module 112 is responsible for the power supply of all hardware modules.

[0102] In the embodiment of the present application, when the infrared module is in the ranging mode, the control circuit is used to control the lens assembly to have a first refractive index, and when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index, the first refractive index is greater than the second refractive index, and the light-emitting assembly is used to generate a light signal for passing through the lens of the lens assembly. In the infrared module, based on the current working mode, a light signal matching the current working mode can be generated, and the refractive index of the lens assembly can be controlled to meet the emission requirements in the current working mode, which can solve the problem that the light waves emitted by the TOF laser sensor and the infrared remote control transmitter interfere with each other. In addition, the ranging mode and the remote control mode are integrated in the same infrared module, and the two modes are implemented by the circuit of the same infrared module, so the stacking space can be reduced and the lightness of the design can be increased.

[0103] See also Fig.15 , an embodiment of the present application provides a control method of an infrared module, which is applied to the above infrared module, and the method includes:

[0104] Step 101: When the infrared module is in the distance measurement mode, the lens assembly is controlled to have a first refractive index; when the infrared module is in the remote control mode, the lens assembly is controlled to have a second refractive index; the first refractive index is greater than the second refractive index; the infrared module includes a distance measurement mode and a remote control mode;

[0105] Step 102: Generate an optical signal for passing through a lens of the lens assembly.

[0106] With respect to steps 101-102, in the embodiment of the present application, when the infrared module is in the ranging mode, the control circuit is used to control the lens assembly to have a first refractive index, and when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index, the first refractive index is greater than the second refractive index, and the light-emitting assembly is used to generate a light signal for passing through the lens of the lens assembly. In the infrared module, based on the current working mode, a light signal matching the current working mode can be generated, and the refractive index of the lens assembly can be controlled to meet the emission requirements in the current working mode, which can solve the problem that the light waves emitted by the TOF laser sensor and the infrared remote control transmitter interfere with each other. In addition, the ranging mode and the remote control mode are integrated in the same infrared module, and the two modes are implemented by the circuit of the same infrared module, so the stacking space can be reduced and the lightness of the design can be increased.

[0107] Fig.16 is a flowchart of another method for controlling an infrared module provided in an embodiment of the present application, see Fig.16 , the method proposed in this embodiment is further exemplified:

[0108] Step S1, start the program.

[0109] Step S2, power on and initialize.

[0110] Step S3, confirm the working mode. If the working mode is the TOF laser focus mode, jump to step S4. If the working mode is the infrared remote control mode, jump to step S8.

[0111] Step S4, adjusting the transmitting lens to a narrow beam transmitting angle mode.

[0112] Step S5, loading the TOF laser driving waveform.

[0113] Step S6, completing a TOF laser ranging operation.

[0114] Step S7, judging whether to stop working, if stopping working, jumping to step S13. Otherwise, jumping to step S13.

[0115] Step S8, adjusting the transmitting lens to a wide beam transmitting angle mode.

[0116] Step S9, accepting infrared remote control instructions.

[0117] Step S10, loading the infrared remote control driving waveform.

[0118] Step S11, adjusting the appropriate emission current according to the last TOF distance measurement.

[0119] Step S12, complete one infrared remote control operation, and jump to step S7.

[0120] Step S13, end.

[0121] The embodiment of the present application can use the TOF laser sensor to measure the distance information between the transmitter and the receiving device while transmitting the control instruction through the infrared signal, and dynamically adjust the emission intensity of the infrared signal to adapt to different usage environments and distances. In addition, the TOF laser sensor can detect obstacles between the transmitter and the receiving device, and trigger the obstacle avoidance algorithm to automatically adjust the emission angle or intensity of the infrared signal to avoid obstacles. The TOF laser sensor can also identify the positions of multiple devices, realize the coordinated control of multiple smart devices, and improve the convenience of operation.

[0122] The device for executing the image display method in the embodiment of the present application may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices other than a terminal. Exemplarily, the electronic device may 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., and may 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.

[0123] The device for executing the image display method of the electronic device 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.

[0124] The electronic device provided in the embodiment of the present application can achieve Fig.15 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0125] Alternatively, if Fig.17 As shown, an embodiment of the present application also provides an electronic device 200, including a processor 201 and a memory 202, wherein the memory 202 stores programs or instructions that can be executed on the processor 201, and when the program or instructions are executed by the processor 201, the various steps of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

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

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

[0128] The electronic device 1800 includes but is not limited to: a radio frequency unit 1801, a network module 1802, an audio output unit 1803, an input unit 1804, a sensor 1805, a display unit 1806, a user input unit 1807, an interface unit 1808, a memory 1809, and a processor 1810 and other components.

[0129] Those skilled in the art will appreciate that the electronic device 1800 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 1810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.16 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.

[0130] It should be understood that in the embodiment of the present application, the input unit 1804 may include a graphics processor (Graphics Processing Unit, GPU) 18041 and a microphone 18042, and the graphics processor 18041 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 1806 may include a display panel 18061, and the display panel 18061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1807 includes a touch panel 18071 and at least one of other input devices 18072. The touch panel 18071 is also called a touch screen. The touch panel 18071 may include two parts: a touch detection device and a touch controller. Other input devices 18072 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.

[0131] The memory 1809 can be used to store software programs and various data. The memory 1809 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 1809 may include a volatile memory or a non-volatile memory, or the memory 1809 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 1809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0132] The processor 1810 may include one or more processing units; optionally, the processor 1810 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 1810.

[0133] 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 method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0134] In summary, in the embodiment of the present application, when the infrared module is in the ranging mode, the control circuit is used to control the lens assembly to have a first refractive index, and when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index, the first refractive index is greater than the second refractive index, and the light-emitting assembly is used to generate a light signal for passing through the lens of the lens assembly. In the infrared module, based on the current working mode, a light signal matching the current working mode can be generated, and the refractive index of the lens assembly can be controlled to meet the emission requirements in the current working mode, which can solve the problem that the light waves emitted by the TOF laser sensor and the infrared remote control transmitter interfere with each other. In addition, the ranging mode and the remote control mode are integrated in the same infrared module, and the two modes are implemented by the circuit of the same infrared module, so the stacking space can be reduced and the lightness of the design can be increased.

[0135] The processor is the processor in the electronic device described 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.

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

[0137] 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.

[0138] 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 above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0139] 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.

[0140] 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 described in each embodiment of the present application.

[0141] 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 module, characterized in that: include: A light emitting assembly, a control circuit and a lens assembly; the control circuit is connected to the light emitting assembly and the lens assembly respectively, and the light emitting assembly and the lens assembly are arranged opposite to each other; The infrared module includes a distance measurement mode and a remote control mode. When the infrared module is in the distance measurement mode, the control circuit is used to control the lens assembly to have a first refractive index; when the infrared module is in the remote control mode, the control circuit is used to control the lens assembly to have a second refractive index; the first refractive index is greater than the second refractive index; The light emitting assembly is used to generate a light signal for passing through a lens of the lens assembly.

2. The infrared module according to claim 1, characterized in that: The light emitting component comprises: a driving subcircuit and an optical emitter; The input end of the driving subcircuit is connected to the output end of the control circuit; the output end of the driving subcircuit is connected to the input end of the optical transmitter; The control circuit is used to obtain a flag signal indicating the current working mode of the infrared module; The control circuit is also used to send the laser focus signal to the driving subcircuit when it is determined that the current working mode is the ranging mode according to the flag signal; the driving subcircuit is used to control the on-off of the circuit between the driving subcircuit and the optical emitter based on the level signal of the laser focus signal, so as to adjust the current signal between the driving subcircuit and the optical emitter to a first current value, and the first current value is a current value matching the ranging mode; the optical emitter is used to emit a light signal passing through the lens of the lens assembly based on the first current value.

3. The infrared module according to claim 1, characterized in that: The light emitting component comprises: a driving subcircuit and an optical emitter; The input end of the driving subcircuit is connected to the output end of the control circuit; the output end of the driving subcircuit is connected to the input end of the optical transmitter; The control circuit is used to obtain a flag signal indicating the current working mode of the infrared module; The control circuit is also used to send the infrared remote control signal to the driving subcircuit when it is determined that the current working mode is the remote control mode according to the flag signal; the driving subcircuit is used to control the on-off of the circuit between the driving subcircuit and the optical transmitter based on the level signal of the infrared remote control signal, so as to adjust the current signal between the driving subcircuit and the optical transmitter to a second current value, and the second current value is a current value matching the remote control mode; the optical transmitter is used to emit a light signal passing through the lens of the lens assembly based on the second current value.

4. The infrared module according to claim 2 or 3, characterized in that: The driving subcircuit includes: a switch MOS tube and a current source; the infrared module also includes a power supply module; The gate of the switch MOS tube is connected to the output end of the control circuit, and the drain of the switch MOS tube is connected to the power module; the source of the switch MOS tube is connected to the input end of the optical transmitter; The output end of the optical transmitter is connected to the power supply module; The switch MOS tube is used to connect the current source and the circuit of the optical emitter when the level signal is at a high level, so that the optical emitter emits a light signal based on the current signal provided by the current source; and disconnect the current source and the circuit of the optical emitter when the level signal is at a low level, so that the optical emitter stops emitting a light signal.

5. The infrared module according to claims 2 and 3, characterized in that: The control circuit comprises: a NOT gate circuit, a first AND gate circuit, a second AND gate circuit and an operational amplifier; the two input ends of the first AND gate circuit are respectively used to receive a flag signal and a laser focus waveform signal; one input end of the second AND gate circuit is used to receive an infrared remote control waveform signal, the other input end of the second AND gate circuit is connected to the output end of the NOT gate circuit, and the input end of the NOT gate circuit is used to receive the flag signal; the output ends of the first AND gate circuit and the second AND gate circuit are respectively connected to the input end of the operational amplifier; The control circuit is used to generate the laser focus signal and the infrared remote control signal; When the two input ends of the first AND gate circuit receive the flag signal of the first value and the laser focus waveform signal respectively, the control circuit amplifies the laser focus signal through the operational amplifier and outputs it; The NOT gate circuit is used to convert the flag signal of the first value to obtain the flag signal of the second value. When the two input ends of the second AND gate circuit respectively receive the flag signal of the second value and the infrared remote control waveform signal, the control circuit amplifies the infrared remote control signal and outputs it through the operational amplifier.

6. The infrared module according to claim 1, characterized in that: The infrared module also includes: a voltage power supply; The voltage power supply is connected to the control circuit; The control circuit is used for obtaining a first level signal matching the ranging mode when the current working mode is the ranging mode; The voltage power supply is used to adjust the current level signal to the first level signal, and adjust the refractive index of the lens in the lens assembly to the first refractive index according to the first level signal; or The control circuit is used for obtaining a second level signal matching the remote control mode when the current working mode is the remote control mode; The voltage power supply is used to adjust the current level signal to the second level signal, and adjust the refractive index of the lens in the lens assembly to the second refractive index according to the second level signal.

7. The infrared module according to claim 1, characterized in that: The infrared module also includes: a receiver and a signal amplification component; The output end of the receiver is connected to the input end of the signal amplifying component; The receiver is used for receiving a reflected signal of the optical signal reflected by a reflecting object if the current working mode is the ranging mode.

8. The infrared module according to claim 7, characterized in that: The infrared module also includes an electrical signal processing component and a processing subcircuit, and the electrical signal processing component includes: a timer, a counter, and a memory; The input end of the timer is connected to the output end of the receiving module, and the output end of the timer is connected to the input end of the counter; the input end of the memory is connected to the output end of the counter; and the output end of the memory is connected to the input end of the processing module; The timer is used to calculate the flight time of the optical signal; the start time of the flight time is the time when the optical transmitter starts to send the optical signal; the end time of the optical signal is the time when the receiving module receives the optical signal; The counter is used to count the flight duration falling into a preset time window to obtain flight time spectrum distribution data within a cycle; The memory is used to store the flight time spectrum distribution data in each cycle sent by the counter, and transmit it to the processing module according to a preset reporting rate; The processing subcircuit is used to calculate the flight time spectrum distribution data to obtain the ranging distance.

9. A control method for an infrared module, applied to the infrared module according to any one of claims 1 to 8, characterized in that: The method comprises: When the infrared module is in the distance measurement mode, the lens assembly is controlled to have a first refractive index; when the infrared module is in the remote control mode, the lens assembly is controlled to have a second refractive index; the first refractive index is greater than the second refractive index; the infrared module includes a distance measurement mode and a remote control mode; An optical signal is generated for passing through a lens of the lens assembly. 10 . An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the method according to claim 9 is implemented.