Terminal device and infrared remote control method

By reusing the TOF module laser in the terminal device to achieve infrared remote control, the cost and space occupation problems caused by integrating infrared transmitters are solved, and a larger remote control range and a better user experience are achieved.

WO2026061145A1PCT designated stage Publication Date: 2026-03-26HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-01
Publication Date
2026-03-26

AI Technical Summary

Technical Problem

When integrating infrared remote control functionality into existing terminal devices, an additional infrared transmitter and its driving circuit must be integrated, resulting in increased costs and space requirements.

Method used

The laser of the TOF module in the terminal device is reused as an infrared remote control signal transmitter. The processor controls the driver chip to drive the laser to emit infrared remote control signals, thereby realizing the infrared remote control function.

Benefits of technology

This avoids the increased costs associated with integrating a dedicated infrared transmitter and its driving circuitry into the terminal device, saves internal space, and improves the infrared remote control range and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025112266_26032026_PF_FP_ABST
    Figure CN2025112266_26032026_PF_FP_ABST
Patent Text Reader

Abstract

A terminal device (100) and an infrared remote control method. The terminal device (100) comprises a processor (110) and a TOF module, wherein the TOF module comprises a driver IC and a laser connected to the driver IC; the processor (110) is configured to transmit a remote control code signal to the driver IC in response to an infrared remote control instruction of a user, the remote control code signal carrying encoded information of a target infrared waveform; and the driver IC is configured to drive the laser on the basis of the remote control code signal, so as to make the laser emit a first infrared remote control signal, the waveform of the first infrared remote control signal being the target infrared waveform, or the first infrared remote control signal using the target infrared waveform as an envelope waveform. Applying the provided terminal device (100) and infrared remote control method can prevent an increase in product costs caused by integrating in the terminal device (100) a dedicated infrared transmitter and a drive circuit thereof, and save valuable space inside the terminal device (100).
Need to check novelty before this filing date? Find Prior Art

Description

Terminal device and infrared remote control method

[0001] The present application claims priority to the Chinese patent application No. 2024113039978, filed on September 18, 2024, and entitled "Terminal device and infrared remote control method", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminal devices, and in particular to a terminal device and an infrared remote control method. BACKGROUND

[0003] In order to make the life of users more convenient, many mobile terminal devices integrate an infrared remote control function for remotely controlling household appliances. The position of a conventional mobile phone remote control transmitter is generally located at the top of the mobile phone, and a top frame opening is provided. Infrared light generated by an infrared LED (light emitting diode) is emitted outward from the opening at the top of the mobile phone via an optical structure member with high infrared transmittance.

[0004] However, in order to realize the infrared remote control function of a mobile terminal device, an additional infrared remote control circuit and an infrared light emitting device need to be integrated in the terminal device, which results in a high cost of the mobile terminal device. SUMMARY

[0005] The purpose of the embodiments of the present application is to provide a terminal device and an infrared remote control method to avoid the increase in product cost caused by the integration of a special infrared transmitter and its driving circuit in the terminal device and to save the valuable space inside the terminal device. The specific technical solutions are as follows.

[0006] In a first aspect, the present application provides a terminal device, comprising a processor and a TOF module; the TOF module comprises a driving chip and a laser connected to the driving chip.

[0007] The processor is configured to send a remote control code signal to the driving chip in response to an infrared remote control instruction of a user; the remote control code signal carries encoding information of a target infrared waveform.

[0008] The driving chip is configured to drive the laser based on the remote control code signal to make the laser emit a first infrared remote control signal; the waveform of the first infrared remote control signal is the target infrared waveform, or the first infrared remote control signal takes the target infrared waveform as an envelope waveform.

[0009] The terminal device provided in the application multiplexes the TOF module to realize the infrared remote control function of the terminal device, thereby avoiding the cost increase caused by integrating a special infrared transmitter and its driving circuit in the terminal device, and helping to save the precious space inside the terminal device. When the scheme provided in the application is specifically implemented, whether the driving chip in the TOF module supports driving the laser to emit light at a low frequency of the general infrared remote control signal, a scheme of driving the laser to emit light in accordance with the performance of the driving chip is selected to realize the infrared remote control function of the terminal device, and the hardware requirement for the TOF module is lower, and the generality of the scheme is stronger.

[0010] In an embodiment of the application, the terminal device further comprises an infrared remote control module, the infrared remote control module comprising a first driving circuit and an infrared transmitter connected to the first driving circuit;

[0011] The processor is further configured to send a remote control code signal to the first driving circuit in response to the infrared remote control instruction of the user;

[0012] The first driving circuit is configured to drive the infrared transmitter based on the remote control code signal to make the infrared transmitter send a second infrared remote control signal; and the infrared remote control range of the terminal device is the union of a first remote control range pointed by the first infrared remote control signal and a second remote control range pointed by the second infrared remote control signal.

[0013] By realizing the infrared remote control function through the rear TOF module and the infrared emission module together, a larger infrared remote control range can be realized without further complicating the hardware architecture of the terminal device, so that the user has less remote control position restriction when actually remotely controlling the remote control object, and the user experience is improved.

[0014] In an embodiment of the application, the terminal device comprises a front TOF module and a rear TOF module, the front TOF module comprising a first driving chip and a first laser connected to the first driving chip, and the rear TOF module comprising a second driving chip and a second laser connected to the second driving chip;

[0015] The processor is specifically configured to send the remote control code signal to one of the first driving chip and the second driving chip in response to the infrared remote control instruction,

[0016] or,

[0017] send one-way remote control code signals to the first driving chip and the second driving chip respectively in response to the infrared remote control instruction.

[0018] In an embodiment of the present application, the rear TOF module further comprises a rear camera; the second driving chip has two working modes, i.e., an infrared remote control mode and a laser ranging mode;

[0019] The processor is further configured to: configure a default working mode of the second driving chip as the infrared remote control mode; switch the working mode of the second driving chip to the laser ranging mode when detecting that the rear camera is started, and switch the working mode of the second driving chip to the infrared remote control mode after detecting that the rear camera is turned off;

[0020] The second driving chip is specifically configured to: in the infrared remote control mode, drive the second laser to emit a first infrared remote control signal in response to a remote control code signal sent by the processor; and in the laser ranging mode, drive the second laser to emit a laser detection signal in response to a detection code signal sent by the processor.

[0021] By taking the infrared remote control mode as the default working mode of the second driving chip, and switching the second driving chip to the laser ranging mode when detecting that the rear camera is started, it is helpful to avoid confusion of the infrared remote control function and the laser ranging function of the rear TOF module, and it is not necessary to configure the working mode of the second driving chip only when an infrared remote control instruction is received, which is helpful to realize fast response of the terminal device to the infrared remote control instruction.

[0022] In an embodiment of the present application, the front TOF module further comprises: a light uniformity sheet located on a light emitting side of the first laser, and a photodiode connected to the first driving chip; the photodiode is used to detect light intensity of reflected light reflected by the light uniformity sheet;

[0023] The processor is configured to: send a detection instruction signal to the first driving chip in response to the infrared remote control instruction, and send the remote control code signal to the first driving chip after receiving a first time length of the infrared remote control instruction;

[0024] The first driving chip is configured to: drive the first laser to emit a detection signal with a preset light intensity in response to the detection instruction signal, and determine whether the light intensity of the reflected light detected by the photodiode for the detection signal is less than a preset threshold; if yes, the first driving chip does not respond to a subsequent received remote control code signal; if no, the first driving chip drives the first laser based on the subsequent received remote control code signal, so that the first laser emits a first infrared remote control signal.

[0025] The processor sends a detection instruction signal to the first drive chip before sending the remote control code signal to the first drive chip, instructing the first drive chip to drive the laser to emit a detection signal of a preset light intensity, so that the first drive chip can determine whether the light uniformity sheet is damaged according to the light intensity of the reflected light detected by the photodiode for the detection signal. If it is determined to be damaged, the first drive chip does not respond to the subsequent received remote control code signal, which can ensure the safety of the human eye.

[0026] In an embodiment of the present application, the first drive chip is further configured to generate coding information for characterizing the external infrared light based on the light signal detected by the photodiode for the external infrared light, and return the coding information to the processor for storage.

[0027] In the case that the coding database in the terminal device does not store the coding information of the infrared remote control waveform required by some new devices for remote control, the coding information of the infrared remote control waveform can be obtained by means of the light intensity detection function of the photodiode to realize infrared remote control learning. Thus, subsequent remote control of the new devices can be realized based on the learned coding information, and the coverage of the infrared remote control function is wider.

[0028] In an embodiment of the present application, the first drive chip is further configured to detect the duration of the high level in the received remote control code signal; when the detected duration is greater than or equal to a preset duration, the first drive chip does not respond to the subsequent received remote control code signal.

[0029] In the process of driving the first laser to emit light by the first drive chip based on the received remote control code signal, if the duration of the high level in the remote control code signal is detected to be greater than or equal to a preset duration, the first drive chip no longer responds to the subsequent received remote control code signal, ensuring that the single longest light emission duration of the first laser is lower than the preset duration, which can ensure the safety of the human eye and the safety of the front TOF module.

[0030] In an embodiment of the present application, when the processor is connected with at least two of the first drive circuit, the first drive chip and the second drive chip in the infrared remote control module through the GPIO signal line, and is configured to send the remote control code signal to the at least two through the GPIO signal line; the interfaces connected with the GPIO signal line of the at least two are configured to be in a high-impedance state.

[0031] When the processor is connected with at least two of the three infrared drive circuits, i.e., the first drive chip, the second drive chip and the first drive circuit, through a set of GPIO signal lines, by configuring each interface connecting each infrared drive circuit with the GPIO signal line as an input high-impedance state, the device of a certain infrared drive circuit can be powered off, damaged or switched to a working mode, which can avoid affecting the normal operation of another infrared drive circuit.

[0032] In an embodiment of the present application, the front TOF module further comprises a TOF sensor, the processor is connected with the TOF sensor through an I2C signal line, and the TOF sensor is connected with the first drive chip through an SPI signal line;

[0033] The processor is further configured to: in response to the start of the front camera, issue first configuration information to the TOF sensor through the I2C signal line;

[0034] The TOF sensor is configured to: forward the first configuration information to the first drive chip, so that the first drive chip enters a laser ranging mode;

[0035] and / or,

[0036] The processor is further configured to: in response to the infrared remote control instruction, issue second configuration information to the TOF sensor through the I2C signal line;

[0037] The TOF sensor is configured to: forward the second configuration information to the first drive chip, so that the first drive chip enters an infrared remote control mode.

[0038] By setting the laser ranging mode and the infrared remote control mode as two working modes of the first drive chip, the infrared remote control function and the laser ranging function of the front TOF module can be ensured to normally operate.

[0039] In an embodiment of the present application, the first drive chip is further configured to: after driving the first laser to complete the sending of the first infrared remote control signal based on the received remote control code signal, enter a sleep mode. By setting the first drive chip to enter the sleep mode after driving the first laser to complete the sending of the first infrared remote control signal, the power consumption of the front TOF module can be saved.

[0040] In an embodiment of the present application, the terminal device further comprises at least one of an acceleration sensor, a proximity light sensor and an ambient light sensor;

[0041] The processor is further configured to: before sending the remote control code signal to the first driving chip, judging whether the front TOF module is blocked based on detection data of at least one of the acceleration sensor, the proximity light sensor and the ambient light sensor; if yes, generating a prompt information, the prompt information is used to remind the user to remove the blockage of the first infrared remote control signal.

[0042] When the front TOF module is blocked, the prompt information is generated to remind the user, which can avoid the situation that the infrared remote control of the remote control object cannot be realized due to the blockage of the front TOF module.

[0043] In an embodiment of the present application, the terminal device further comprises an acceleration sensor;

[0044] The processor is further configured to: if the number of times that the user gives the same infrared remote control instruction within a second time period exceeds a preset number of times, generating a posture guide information combined with the detection data of the acceleration sensor; the posture guide information is used to guide the user to adjust the posture of the terminal device to a target posture, so that the first infrared remote control signal emitted by the first laser is reflected to the remote control object with the human body of the user as a reflecting surface.

[0045] By generating the posture guide information when the number of times that the user gives the same infrared remote control instruction within a second time period exceeds a preset number of times, the user is guided to change the posture of the terminal device so that the first infrared remote control signal emitted by the first laser is reflected to the remote control object with the human body of the user as a reflecting surface, which can avoid the problem that the first infrared remote control signal emitted by the front TOF is difficult to rely on the ceiling reflection to the remote control object in some special scenes such as airport, outdoor, etc.

[0046] In an embodiment of the present application, the driving chip stores a first configuration information field, the first configuration information field is used to indicate the driving current intensity adopted by the driving chip when driving the laser;

[0047] The processor is further configured to: in response to the instruction of the user to increase or decrease the intensity of the infrared remote control signal, modifying the first configuration information field stored in the driving chip.

[0048] By modifying the first configuration information field, the adjustment of the remote control intensity of the infrared remote control signal emitted by the TOF module can be realized, so as to avoid the situation that multiple devices are remotely controlled based on the same infrared remote control instruction, which affects the user experience.

[0049] In a second aspect, the present application provides an infrared remote control method applied to a terminal device, the terminal device comprising a processor and a TOF module, the TOF module comprising a driving chip and a laser connected to the driving chip; the method comprising:

[0050] The processor sends a remote control code signal to the driving chip in response to an infrared remote control instruction of a user, so that the driving chip drives the laser to send a first infrared remote control signal based on the remote control code signal; the remote control code signal carries infrared encoding information used to represent a target infrared waveform, and the waveform of the first infrared remote control signal is the target infrared waveform, or the first infrared remote control signal takes the target infrared waveform as an envelope waveform.

[0051] In an embodiment of the present application, the terminal device further comprises an infrared remote control module, the infrared remote control module comprising a first driving circuit and an infrared emitter connected to the first driving circuit; the method further comprises:

[0052] The processor sends a remote control code signal to the first driving circuit in response to an infrared remote control instruction of a user, so that the first driving circuit drives the infrared emitter to send a second infrared remote control signal based on the remote control code signal.

[0053] In an embodiment of the present application, the terminal device comprises two TOF modules, a front TOF module and a rear TOF module, the front TOF module comprising a first driving chip and a first laser connected to the first driving chip, and the rear TOF module comprising a second driving chip and a second laser connected to the second driving chip; the processor sends a remote control code signal to the driving chip in response to an infrared remote control instruction of a user, comprising:

[0054] The processor sends the remote control code signal to one of the first driving chip and the second driving chip in response to the infrared remote control instruction,

[0055] or,

[0056] The processor sends one-way remote control code signals to the first driving chip and the second driving chip respectively in response to the infrared remote control instruction.

[0057] It can be understood that the infrared remote control method provided in the above second aspect is the method executed by the terminal device of the first aspect, and thus the beneficial effects that can be achieved thereby can refer to the beneficial effects in the corresponding terminal device, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS

[0058] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application. The detailed description of the application refers to the accompanying drawings.

[0059] Fig. 1 is a schematic diagram of a scenario of remote control of a remote control object by a terminal device in the related art;

[0060] Fig. 2 is a schematic diagram of an application scenario of a terminal device according to an embodiment of the present application;

[0061] Fig. 3 is a schematic diagram of a structure of a terminal device according to the present application;

[0062] Fig. 4 is a schematic diagram of a software module architecture of a terminal device according to an embodiment of the present application;

[0063] Fig. 5 is a schematic diagram of a carrier signal and a modulated signal of a first infrared remote control signal according to an embodiment of the present application;

[0064] Fig. 6 is a schematic diagram of implementation of an infrared remote control function based on a TOF module in a terminal device according to an embodiment of the present application;

[0065] Fig. 7 is a test result diagram of an infrared remote control signal according to an embodiment of the present application;

[0066] Fig. 8 is a schematic diagram of a rear TOF module and an infrared remote control range thereof in a terminal device according to an embodiment of the present application;

[0067] Fig. 9 is a schematic diagram of another application scenario of a terminal device according to an embodiment of the present application;

[0068] Fig. 10 is a simplified block diagram of a terminal device implementing an infrared remote control function based on a rear TOF module according to an embodiment of the present application;

[0069] Fig. 11 is a schematic diagram of a working mode switching process of a second driving chip according to an embodiment of the present application;

[0070] Fig. 12 is a simplified block diagram of a terminal device implementing an infrared remote control function based on a rear TOF module and an infrared remote control module according to an embodiment of the present application;

[0071] Fig. 13 is a schematic diagram of implementation of an infrared remote control function based on a TOF module and an infrared remote control module in a terminal device according to an embodiment of the present application;

[0072] Fig. 14 is a schematic diagram of an infrared remote control range when an infrared remote control function is implemented based on a rear TOF module and an infrared remote control module according to an embodiment of the present application;

[0073] Fig. 15 is a simplified block diagram of a terminal device implementing an infrared remote control function based on a front TOF module according to an embodiment of the present application;

[0074] Fig. 16 is a schematic diagram of a front TOF module and an infrared remote control range in a terminal device according to an embodiment of the present application;

[0075] Fig. 17 is a schematic diagram of another application scenario of a terminal device according to an embodiment of the present application;

[0076] Fig. 18 is a timing diagram of a signal line in a terminal device according to an embodiment of the present application;

[0077] Fig. 19 is a simplified block diagram of a terminal device for realizing infrared remote control function based on a front TOF module and an infrared remote control module according to an embodiment of the present application;

[0078] Fig. 20 is a schematic diagram of an infrared remote control range when a front TOF module and an infrared remote control module are used to realize infrared remote control function according to an embodiment of the present application;

[0079] Fig. 21 is a schematic diagram of an infrared remote control range when a front TOF module and a rear TOF module are used to realize infrared remote control function according to an embodiment of the present application;

[0080] Fig. 22 is an application interface diagram of an infrared remote control app according to an embodiment of the present application. DETAILED DESCRIPTION

[0081] To make the objectives, technical solutions, and advantages of the present application clearer, further detailed description will be made to the present application with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art belong to the scope of protection of the present application.

[0082] To facilitate clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms of "first", "second", and the like are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first instruction and the second instruction are used to distinguish different user instructions, and do not limit the order. Those skilled in the art can understand that the terms of "first", "second", and the like do not limit the quantity and execution order, and the terms of "first", "second", and the like do not necessarily mean different.

[0083] It should be noted that in the present application, the words of "exemplarily" or "for example" are used to represent an example, illustration, or description. Any embodiment or design scheme described as "exemplarily" or "for example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. In fact, the words of "exemplarily" or "for example" are used to present the related concepts in a specific way.

[0084] In order to make life more convenient, there are more and more terminal devices integrating infrared remote control function at present, so that users can control external household appliances through the infrared remote control function of the terminal device.

[0085] In the prior art, in order to realize the infrared remote control function of the terminal device, a special infrared emitter needs to be integrated in the terminal device. The infrared emitter is generally arranged on the top of the terminal device, and the top frame of the terminal device is provided with an opening hole. The infrared light generated by the infrared emitter can be emitted outward from the top of the terminal device through the optical member with high infrared transmittance. Thus, as shown in FIG. 1, the user can align the top of the terminal device 100 with the remote control object 200, and control the infrared emitter inside the terminal device 100 to emit infrared light, so that the infrared light propagates from the top of the terminal device 100 to the remote control object 200, to realize the control of the remote control object 200.

[0086] The problem of this scheme is that the integration of the infrared emitter and its driving circuit in the terminal device will increase the preparation cost of the terminal device, and will also occupy the valuable space inside the terminal device, which is not conducive to the miniaturization of the terminal device.

[0087] Therefore, the present application provides a terminal device and an infrared remote control method, which realize the infrared remote control function of the terminal device by multiplexing the TOF (Time Of Flight) module in the terminal device.

[0088] The TOF module is a common module widely applied in various terminal devices, including a transmitting end and a receiving end. The transmitting end includes a laser, a driving chip for driving the laser, and an optical member for controlling the transmitting light beam, etc., and the receiving end includes a camera, a sensor, and other receiving and processing devices. In the application process of the TOF module, the laser beam is generated from the laser of the transmitting end, reflected by the external measurement object, and received by the receiving end, so that the terminal device can calculate the distance between the terminal device and the measurement object according to the time difference or phase difference of the round-trip laser, to realize the laser ranging function.

[0089] Specifically, the central wavelength of the infrared light used by the existing infrared remote control function is 940 nm (nanometer), and the central wavelength of the Vcsel (Vertical-Cavity Surface-Emitting Laser, vertical-cavity surface-emitting laser) laser used by the current TOF module is also 940 nm, and in actual user use, there is almost no scenario of using laser ranging function and infrared remote control function at the same time, so in the terminal device and the infrared remote control method provided in the application, the laser of the TOF module can be used as a laser beam emitter when the camera is working, and the laser of the TOF module can be used as an infrared remote control signal emitter when the camera is not working, so as to avoid the increase of cost caused by integrating a special infrared emitter and its driving circuit in the terminal device, and save the valuable space inside the terminal device.

[0090] FIG. 2 shows a schematic diagram of an application scenario of the application. By applying the terminal device and the infrared remote control method provided in the application, the user can control the driving chip in the TOF module of the terminal device 100 to drive the laser by operating the keys on the application interface of the infrared remote control app (Application, application program) in the terminal device 100, so that the laser emits corresponding infrared remote control signals, and the corresponding control of the remote control object 200 is realized through the infrared remote control signals.

[0091] For example, the terminal device 100 can be a smart phone, a tablet computer, a smart wearable device, or the like. The remote control object 200 can be a television, an air conditioner, a refrigerator, or the like.

[0092] Taking the terminal device 100 as a mobile phone and the remote control object 200 as a television as an example. The user can interact with the power on / off key on the application interface of the infrared remote control app in the mobile phone, control the driving chip in the TOF module to drive the laser, so that the laser emits an infrared remote control signal for indicating the power on of the television, and the television is powered on after receiving the infrared remote control signal. Alternatively, the user can interact with the volume adjustment key on the application interface of the infrared remote control app in the mobile phone, control the driving chip in the TOF module to drive the laser, so that the laser emits an infrared remote control signal for indicating the increase or decrease of the volume, and the television increases or decreases the volume after receiving the infrared remote control signal.

[0093] In summary, based on the similar procedure, the user can control the driving chip in the TOF module of the terminal device 100 to drive the laser based on the infrared remote control app in the terminal device 100, so that the laser emits a corresponding infrared remote control signal, thereby realizing infrared remote control of each function of the remote control object 200. When implementing the infrared remote control function of the terminal device 100 based on this procedure, it is not necessary to integrate a special infrared emitter and its driving circuit on the top of the terminal device, thereby significantly reducing the product cost and saving the valuable space inside the terminal device.

[0094] The hardware architecture of the terminal device provided in the present application will be described below in combination with FIG. 3. As shown in FIG. 3, the terminal device can include a processor 110, an external storage interface 120, an internal storage 121, an antenna 1, an antenna 2, a mobile communication module 130, a wireless communication module 140, an audio module 150, a loudspeaker 150A, a receiver 150B, a microphone 150C, a sensor module 160, a camera 171, a display screen 172, and the like.

[0095] The sensor module 160 can include an acceleration sensor 160A, a proximity light sensor 160B, an ambient light sensor 160C, a TOF sensor 160D, and the like.

[0096] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), and the like. Different processing units can be independent devices or can be integrated in one or more processors.

[0097] The controller can be the nerve center and command center of the terminal device. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of instruction fetching and instruction execution.

[0098] The processor 110 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is reusing. If the processor 110 needs to use the instructions or data again, it can call them directly from the memory. This avoids repeated access and reduces the latency of the processor 110, thus improving the efficiency of the system.

[0099] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0100] It can be understood that the interface connection relationship between the modules shown in the embodiments is only illustrative and does not constitute a limitation on the structure of the terminal device. In other embodiments, the terminal device can also use different interface connection methods or combinations of multiple interface connection methods.

[0101] The antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network.

[0102] The mobile communication module 130 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the terminal device. The mobile communication module 130 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 130 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer the processed signals to the modem processor for demodulation. The mobile communication module 130 can also amplify the signals modulated by the modem processor, and radiate the signals as electromagnetic waves through the antenna 1.

[0103] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 150A, the microphone 150B, etc.), or displays an image or a video through the display screen 172.

[0104] The wireless communication module 140 can provide a solution for wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the terminal device. The wireless communication module 140 can be one or more devices integrated with at least one communication processing module. The wireless communication module 140 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 140 can also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on the signals, and radiate the signals as electromagnetic waves through the antenna 2.

[0105] In some embodiments, the antenna 1 of the terminal device is coupled with the mobile communication module 130, and the antenna 2 is coupled with the wireless communication module 140, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).

[0106] The camera 171 can include 1-N. For example, the electronic device can include 2 front cameras and 4 rear cameras. Among them, the front camera can include a TOF camera module. The TOF camera module includes a transmitting end and a receiving end, the transmitting end can be used to emit light signals (infrared light or laser pulses), and the receiving end can be used for imaging. The transmitting end can be, for example, a Vcsel laser and its driving chip. The receiving end can be, for example, a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor.

[0107] For example, the TOF camera module can continuously send light signals (infrared light or laser pulses) to the measured target through the transmitting end, and receive the light signals returned by the measured target at the receiving end of the TOF camera module. The depth information of the measured target can be obtained according to the phase difference (delay) of the transmitted and received light signals.

[0108] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, files such as music and videos are stored in the external memory card. The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in the embodiments of the present application, the processor 110 can execute the instructions stored in the internal memory 121, and the internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phonebook, etc.), etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), etc.

[0109] The electronic device 100 can realize audio functions through the audio module 150, the speaker 150A, the receiver 150B, the microphone 150C, the application processor, etc. For example, music playing, recording, etc.

[0110] The audio module 150 is used to convert digital audio information into analog audio signals and to convert analog audio inputs into digital audio signals. The audio module 150 can also be used to encode and decode audio signals. The speaker 150A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals. The receiver 150B, also known as a "earpiece", is used to convert audio electrical signals into sound signals. The microphone 150C, also known as a "microphone", "sound transducer", is used to convert sound signals into electrical signals.

[0111] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take the Android system with a layered architecture as an example to exemplarily illustrate the software structure of the terminal device.

[0112] FIG. 4 is a software structure block diagram of an electronic device according to an embodiment of the present application.

[0113] The layered architecture divides software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the system library of the Android runtime, and the kernel layer.

[0114] The application layer can include a series of application packages.

[0115] As shown in FIG. 4, the application package can include an infrared remote control, a camera, and the like.

[0116] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.

[0117] As shown in FIG. 4, the application framework layer can include a window manager, a content provider, a resource manager, a work mode manager, and the like.

[0118] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, and the like.

[0119] The content provider is used to store and obtain data, and make the data accessible to the application. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, phone books, and the like.

[0120] The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.

[0121] The work mode manager is used to manage the work mode of the driving chip in the TOF camera module, so that it works in the laser ranging mode or the infrared remote control mode, and the like.

[0122] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0123] The core library contains two parts: one part is the function function that the java language needs to call, and the other part is the core library of the Android.

[0124] The application program layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application program layer and the application framework layer into binary files. The virtual machine is used to perform the functions of management of object life cycle, stack management, thread management, management of security and exception, and garbage collection.

[0125] The system library can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (for example, OpenGL ES), a two-dimensional graphics engine (for example, SGL), and the like.

[0126] The surface manager is used to manage the display subsystem and provides fusion of 2D and 3D layers for a plurality of application programs.

[0127] The media library supports playback and recording of a plurality of commonly used audio, video formats, and static image files. The media library can support a plurality of audio and video encoding formats, for example, MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, and the like.

[0128] The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, and the like.

[0129] The 2D graphics engine is a drawing engine for 2D drawing.

[0130] The kernel layer is a layer between hardware and software. The kernel layer at least includes display drivers, camera drivers, sensor drivers, and the like.

[0131] The terminal device provided by the application will be described in detail in combination with specific embodiments.

[0132] The terminal device provided by the application includes a processor and a TOF module. The TOF module includes a driving chip and a laser connected to the driving chip.

[0133] The processor is configured to send a remote control code signal to the driving chip in response to an infrared remote control instruction of a user. The remote control code signal carries encoding information of a target infrared waveform.

[0134] The driving chip is configured to drive the laser based on the remote control code signal, so that the laser sends a first infrared remote control signal. The waveform of the first infrared remote control signal is the target infrared waveform, or the first infrared remote control signal takes the target infrared waveform as an envelope waveform.

[0135] The processor specifically refers to a SOC (System on Chip) in the terminal device, can detect the infrared remote control instruction given by the user to the terminal device, and generate a remote control code signal based on the infrared remote control instruction and send it to the driving chip in the TOF module. Specifically, the user can give an infrared remote control instruction based on the human-computer interaction operation between the terminal device, for example, the user can give an infrared remote control instruction by operating the keys on the infrared remote control app application interface of the terminal device, or the user can give an infrared remote control instruction by giving a voice instruction such as "help me turn on the TV".

[0136] The above target infrared waveform can be understood as the waveform required by the infrared light emitted to realize the remote control function indicated by the infrared remote control instruction. Specifically, the terminal device can pre-store a coding database, record the coding information of various types of infrared remote control signals in the coding database, for example, the coding information of the infrared remote control signal for turning on the air conditioner, the coding information of the infrared remote control signal for turning on the TV, the coding information of the infrared remote control signal for adjusting the volume of the TV, etc. When the processor detects the infrared remote control instruction given by the user, it can extract the corresponding coding information from the coding database based on the remote control object and function pointed by the infrared remote control instruction, and generate a corresponding remote control code signal based on the extracted coding information.

[0137] After receiving the remote control code signal sent by the processor, the driving chip can drive the laser to emit an infrared remote control signal according to the coding information carried in the remote control code signal.

[0138] At present, the driving signal that can be emitted by the driving chip in the mainstream TOF module is generally designed based on the laser ranging requirement, and its signal frequency is much higher than the working frequency of general infrared remote control signals, which can reach tens of MHz (megahertz). Therefore, for this part of the driving chip, the basic driving frequency of the laser cannot be adjusted to the 30kHz (kilohertz)-60kHz of the general infrared remote control signal, that is, because the driving frequency of the driving chip in the mainstream TOF module is higher than the infrared remote control requirement, it is not possible to drive the laser to emit infrared light with the target infrared waveform by using this driving chip.

[0139] In view of this feature, the application proposes to use the high-frequency signal of the fixed working laser in the TOF module as the carrier signal, and use the infrared remote control signal with the target infrared waveform as the modulation signal, so as to realize the infrared remote control function based on the TOF module. In combination with FIG. 5, the waveform of the high-frequency signal as the carrier signal, the target infrared waveform of the infrared remote control signal as the modulation signal, and the waveform of the first infrared remote control signal derived based on the carrier signal and the modulation signal are shown. Specifically, the first infrared remote control signal takes the target infrared waveform as the envelope waveform, so the first infrared remote control signal is still a high-frequency signal, but can carry the information of the modulation signal through the envelope waveform.

[0140] In actual application, it is also possible that the driving signal in part of the TOF modules supports directly driving the laser at the original driving frequency indicated by the remote control code signal. In this case, the scheme shown in FIG. 5 is not needed, and the waveform of the first infrared remote control signal emitted by the laser is the target waveform.

[0141] FIG. 6 shows a schematic diagram of realizing the infrared remote control function based on the TOF module in the terminal device. To realize the infrared remote control function, the processor first sends the remote control code signal to the driving chip of the TOF module, which carries the encoding information of the target infrared waveform, and the frequency of the target infrared waveform is generally 30 kHz-60 kHz. After the driving chip receives the remote control code signal, if the driving chip does not support driving the laser at the frequency of 30 kHz-60 kHz, the driving chip specifically drives the laser to emit high-frequency infrared light with the target infrared waveform as the envelope waveform, and if the driving chip supports driving the laser at the frequency of 30 kHz-60 kHz, the driving chip directly drives the laser to emit infrared light with the target infrared waveform.

[0142] For the television, air conditioner and other household appliances as the remote control object, in order to improve the anti-interference performance of these household appliances to external interference signals, the receiving end of the household appliances is generally configured with a low-pass filter structure, so that the above-mentioned technical scheme of driving the laser to emit high-frequency infrared light with the target infrared waveform as the envelope waveform through the driving chip has actual realizability. Specifically, after the remote control object receives the first infrared remote control signal emitted by the terminal device, if the first infrared remote control signal is a high-frequency signal with the target infrared waveform as the envelope waveform, after filtering through the low-pass filter structure, the receiving device inside the remote control object can successfully identify the information of the target infrared waveform carried in the received signal, and perform the control operation indicated by the target infrared waveform, such as power on / off operation, volume adjustment operation, etc., so that the infrared remote control function of the terminal device is realized.

[0143] The application carries out actual test on the scheme of driving the laser to emit high-frequency infrared light with an envelope waveform of a target waveform through the driving chip, as shown in FIG. 7, the waveform marked as “infrared signal” is the waveform of the driving signal adopted by the driving chip, and the waveform marked as “infrared receiving photoelectric signal” is the waveform detected by the photoelectric probe as the receiver to the light signal emitted by the driving chip driving the laser. It is found through test that the infrared remote control function can be realized based on the infrared receiving photoelectric signal.

[0144] The terminal device provided by the application multiplexes the TOF module to realize the infrared remote control function of the terminal device, thereby avoiding the cost increase caused by integrating a special infrared transmitter and its driving circuit in the terminal device, and helping to save the precious space inside the terminal device. When the scheme provided by the application is specifically implemented, whether the driving chip in the TOF module supports driving the laser to emit light at a low frequency of a general infrared remote control signal, a scheme of driving the laser to emit light in accordance with the performance of the driving chip can be selected to realize the infrared remote control function of the terminal device, and the hardware requirement of the TOF module is lower, and the generality of the scheme is stronger.

[0145] It can be understood that in the existing terminal device, two TOF modules, a front TOF module and a rear TOF module, are usually integrated. For the convenience of distinction, the driving chip in the front TOF module and the laser are referred to as the first driving chip and the second laser respectively, and the driving chip in the rear TOF module and the laser are referred to as the second driving chip and the second laser respectively. In actual application, only one of the front TOF module and the rear TOF module can be multiplexed to realize the infrared remote control function, or both the front TOF module and the rear TOF module can be multiplexed to realize the infrared remote control function.

[0146] The scheme of realizing the infrared remote control function based on the rear TOF module is described first.

[0147] In the scheme of realizing the infrared remote control function based on the rear TOF module, the processor is configured to send the second driving chip a remote control code signal in response to an infrared remote control instruction, and the second driving chip is configured to drive the second laser based on the remote control code signal to make the second laser emit a first infrared remote control signal.

[0148] Figure 8 shows the setting position of the second laser in the back TOF module in the terminal device, and the infrared remote control angle that can be covered when the infrared remote control function is realized based on the back TOF module. When the infrared remote control function is realized based on the back TOF module, the user can control the processor to send a remote control code signal to the second driving chip by operating the case on the infrared remote control app application interface, so that the second driving chip drives the second laser to send a first infrared remote control signal according to the emission angle shown in Figure 8, and the remote control object executes corresponding control after receiving the first infrared remote control signal. Thus, when the infrared remote control is performed based on the terminal device provided in the present scheme, the user can hold the terminal device 100 vertically according to the posture shown in Figure 9, so that the back of the terminal device 100 is aligned with the remote control object, so that the first infrared remote control signal emitted by the second laser propagates to the remote control object 200, and the infrared remote control of the remote control object 200 is realized.

[0149] Figure 10 shows a simplified block diagram of a terminal device for realizing an infrared remote control function based on a back TOF module according to an embodiment of the present application. Specifically, the processor, the module driving circuit in the back TOF module, the second laser and the transmission lens structure in the back TOF module, and the filter and the receiving lens structure in the receiving end of the back TOF module are shown.

[0150] In the module driving circuit, the second driving chip (not shown in the figure) is included, and the processor is connected with the module driving circuit through an EN (enable) signal line, an INT (interrupt) signal line, an SDA (Serial Data, serial data) signal line, an SCL (Serial Clock Line, serial clock line) signal line and a GPIO (General Purpose Input Output, general purpose input output) signal line. For the structure shown in Figure 10, the processor can specifically send a remote control code signal to the second driving chip through the GPIO signal line, so that the second driving chip drives the second laser to send an infrared remote control signal based on the remote control code signal. The functions of other signal lines between the processor and the module driving circuit can refer to the contents in the related art.

[0151] Further, in order to avoid the infrared remote control function and the laser ranging function of the rear TOF module from being confused, the second driving chip is provided with two working modes, i.e., an infrared remote control mode and a laser ranging mode. The two working modes can be realized by software. In the infrared remote control mode, the second driving chip only responds to the received remote control code signal and drives the second laser to emit a first infrared remote control signal without responding to the received detection code signal. In the laser ranging mode, the second driving chip only responds to the received detection code signal and drives the second laser to emit a laser detection signal without responding to the received remote control code signal.

[0152] In an embodiment of the present application, the working mode of the second driving chip is set to the infrared remote control mode, and when the rear camera is detected to be started, the second driving chip is switched to the laser ranging mode. In this embodiment, the processor is specifically configured to: configure the default working mode of the second driving chip as the infrared remote control mode; when the rear camera is detected to be started, switch the working mode of the second driving chip to the laser ranging mode, and after the rear camera is detected to be turned off, switch the working mode of the second driving chip to the infrared remote control mode.

[0153] The switching process of the working mode of the second driving chip in the present solution will be described below in combination with FIG. 11. When the terminal device is powered on, the processor writes the initialization configuration information to the rear TOF module firmware, completes the initialization update of the rear TOF module firmware, and configures the second driving chip to the infrared remote control mode. In the process of the second driving chip working in the infrared remote control mode, if the rear camera is not started, the rear TOF module waits for the remote control code signal sent by the processor, and when the infrared remote control signal is detected, the second driving chip drives the second laser to emit a first infrared remote control signal. If the processor detects that the rear camera is started in the process of the second driving chip working in the infrared remote control mode, the processor updates the configuration of the TOF module, so that the second driving chip is switched to the laser ranging mode, so as to assist the rear TOF module to realize the imaging focusing of the rear camera, and after the rear camera is detected to be turned off, the second driving chip is switched to the infrared remote control mode.

[0154] In the present solution, by setting the infrared remote control mode as the default working mode of the second driving chip and switching the second driving chip to the laser ranging mode when the rear camera is detected to be started, it is helpful to avoid the infrared remote control function and the laser ranging function of the rear TOF module from being confused, and it is not necessary to configure the working mode of the second driving chip only when the infrared remote control instruction is received, which is helpful to realize the fast response of the terminal device to the infrared remote control instruction.

[0155] In practical application, the light emitting power of the laser in the rear TOF module is generally low, and the light emitting angle is also small. As shown in FIG. 9, when the terminal device using the rear TOF module to realize the infrared remote control function performs infrared remote control, the holding manner of the terminal device is different from the holding manner of the entity remote controller and the terminal device with the top integrated infrared emitter shown in FIG. 1. Therefore, a guide animation needs to be added in the infrared remote control app to guide the user to perform infrared remote control in the posture shown in FIG. 9, so that the user experience is affected to a certain extent. Therefore, in an embodiment of the present application, the rear TOF module and the traditional top integrated infrared emitter can be used together to realize the infrared remote control function, so as to improve the user experience.

[0156] FIG. 12 shows a simplified block diagram of a terminal device for realizing the infrared remote control function based on the rear TOF module and the infrared remote control module according to an embodiment of the present application. As can be seen, the terminal device further includes a first driving circuit in the infrared remote control module and an infrared emitter connected to the first driving circuit based on the structure shown in FIG. 10. Specifically, the infrared remote control module is the infrared remote control module required to be integrated in the terminal device according to the traditional infrared remote control scheme shown in FIG. 1, which includes the first driving circuit and the infrared emitter connected to the first driving circuit.

[0157] In this embodiment, the processor is further configured to send a remote control code signal to the first driving circuit in response to the infrared remote control instruction of the user, and the first driving circuit is configured to drive the infrared emitter based on the remote control code signal, so that the infrared emitter sends a second infrared remote control signal. The second infrared remote control signal is an infrared light signal with the target infrared waveform described above.

[0158] FIG. 13 shows a schematic diagram of realizing the infrared remote control function based on the TOF module and the infrared remote control module in the terminal device. To realize the infrared remote control function, the processor sends a remote control code signal to the driving chip in the TOF module and the first driving circuit in the infrared remote control module, respectively. The driving chip drives the laser to send a first infrared remote control signal after receiving the remote control code signal, and the first driving circuit drives the infrared emitter to send a second infrared remote control signal after receiving the remote control code signal.

[0159] It can be understood that, in the case of realizing the infrared remote control function based on the rear TOF module and the infrared emission module together, the infrared remote control range of the terminal device is specifically as shown in FIG. 14, which is the union of a first remote control range to which a first infrared remote control signal emitted by the rear TOF module is directed and a second remote control range to which a second infrared remote control signal emitted by the infrared remote control module is directed. It can be seen from FIG. 1 and FIG. 14 that, based on without further complicating the hardware architecture of the terminal device, the scheme can realize a larger infrared remote control range, so that the user has less remote control position restriction when actually remotely controlling the remote control object, and the user experience is improved.

[0160] The scheme of realizing the infrared remote control function based on the front TOF module is described below.

[0161] In the scheme of realizing the infrared remote control function based on the front TOF module, the processor is specifically configured to: in response to the infrared remote control instruction, send a remote control code signal to the first drive chip; and the first drive chip is specifically configured to: drive the first laser based on the remote control code signal, so that the first laser emits a first infrared remote control signal.

[0162] FIG. 15 shows a simplified block diagram of a terminal device for realizing the infrared remote control function based on the front TOF module, which shows the processor, the first drive chip in the front TOF module, and the first laser and the photodiode connected to the first drive chip.

[0163] In the diagram of FIG. 15, the front TOF module further includes a TOF sensor. The processor is connected to the TOF sensor through an I2C (Inter-Integrated Circuit) signal line, and is connected to the first drive chip through a GPIO signal line. The TOF sensor is connected to the first drive chip through a CS (chip select) signal line, an LVDS (Low-Voltage Differential Signaling) signal line, a Gate signal line, and an SPI (Serial Peripheral Interface) signal line. Two ends of the first laser are respectively connected to the first drive chip, and one end of the photodiode is connected to the first drive chip, and the other end is connected to a VDD (power supply end). For the structure shown in FIG. 15, the processor can specifically send a remote control code signal to the first drive chip through the GPIO signal line, so that the first drive chip drives the first laser to emit an infrared remote control signal based on the remote control code signal.

[0164] FIG. 16 shows the setting position of the first laser in the front TOF module in the terminal device, and the infrared remote control angle that can be covered when the front and rear TOF module implements the infrared remote control function. In actual application, the front camera function part of the terminal device generally includes a front TOF module and an image sensor module, and the front TOF module is generally an iTOF (indirect Time Of Flight) module, which is used to realize 3D (three-dimensional) face detection, eye tracking and other functions. The iTOF module is generally composed of a TOF sensor (iTOF Sensor), a laser, a driving chip, and a photo diode (Photo Diode).

[0165] Compared with the rear TOF module, the optical power of the first laser in the front TOF module is generally much higher than that of the second laser used in the rear TOF module, and the first infrared remote control signal emitted by the front TOF module has a higher infrared radiation intensity. Therefore, in actual application, the first infrared remote control signal emitted by the front TOF module can be reflected by the ceiling, wall, floor, or the surface of the human body, clothes, surrounding objects, etc., so that the first infrared remote control signal reaches the remote control object after one or more reflections, so as to realize remote control of the remote control object in a more flexible remote control mode. FIG. 17 shows a possible application scenario of the present application. In this scenario, the user places the terminal device face up on the table, and controls the processor to send a remote control code signal to the first driving chip through a voice instruction "Help me turn on the air conditioner in the living room". After receiving the remote control code signal, the first driving chip drives the first laser to emit a first infrared remote control signal, and the first infrared remote control signal reaches the receiver of the air conditioner after being reflected by the ceiling, thereby realizing the start of the air conditioner. Due to the high power characteristics of the front TOF module, when infrared remote control is performed based on the above-mentioned mode, full-angle remote control of 360° can be basically realized in an indoor environment.

[0166] In an embodiment of the present application, to avoid the situation that the front TOF module is blocked due to the phone screen facing down, so that the infrared remote control signal emitted by the front TOF module cannot reach the remote control object, the processor is further configured to: before sending the remote control code signal to the first driving chip, based on the detection data of at least one of the acceleration sensor, the proximity light sensor and the ambient light sensor, judge whether there is a situation that the front TOF module is blocked; if so, generate a prompt information, and the prompt information is used to remind the user to remove the blockage of the first infrared remote control signal.

[0167] For example, the processor can generate the prompt information when determining, based on the detection data of the acceleration sensor, that the posture of the terminal device is face down, or the processor can determine that the front TOF module is blocked when determining that the light intensity detected by the proximity light sensor or the ambient light sensor is less than a threshold, and generate the prompt information, or the processor can determine whether the front TOF module is blocked by combining the detection structures of two or three of the acceleration sensor, the proximity light sensor, and the ambient light sensor, and generate the prompt information when determining that the front TOF module is blocked.

[0168] Specifically, the processor can distribute the generated prompt information to the voice module of the terminal, and issue a voice reminder through the loudspeaker to remind the user that the infrared remote control function cannot be normally used in the form of voice.

[0169] In addition, in some special scenarios such as airports, outdoors, and the like, there is no ceiling or the ceiling is very high, and if the terminal device is placed with the front face up, the first infrared remote control signal emitted by the front TOF module is difficult to be reflected to the remote control object by the ceiling to realize the infrared remote control function. In an embodiment of the present application, to realize the infrared remote control in these special scenarios, the processor is further configured to: if it is detected that the number of times of giving the same infrared remote control instruction by the user within a second time period exceeds a preset number of times, generate posture guidance information in combination with the detection data of the acceleration sensor; and the posture guidance information is used to guide the user to adjust the posture of the terminal device to a target posture, so that the first infrared remote control signal emitted by the first laser is reflected to the remote control object by the human body of the user as a reflecting surface.

[0170] The second time period can be set according to actual needs. Thus, in the embodiment of the present application, if the user clicks a certain key of the infrared remote control app application interface multiple times within a short time, the processor can recognize that the number of times of giving the same infrared remote control instruction by the user within the second time period has exceeded the preset number of times, and consider that the multiple clicks of the user on the key are caused by the fact that the scenario is not suitable, so that the first infrared remote control signal emitted by the front TOF module cannot be reflected to the remote control object, and thus the posture of the terminal device can be recognized by the acceleration sensor, and the user is guided to hold the mobile phone vertically by the posture guidance information, so that the first infrared remote control signal emitted by the front TOF module can be reflected by the human body of the user as a reflecting surface, and the infrared remote control of the remote control object can be realized by relying on the reflection of the signal by the human body.

[0171] In actual application, in order to the front TOF module, usually also provided with a diffuser, the diffuser is arranged on the light emitting side of the first laser, the light emitted by the first laser is homogenized after the diffuser, in order to obtain greater laser detection range and ensure eye safety. If the diffuser is damaged, the intensity of the light emitted by the first laser will exceed the safety boundary of the human eye, so as to avoid the front TOF module in the case of diffuser damage, infrared remote control signal is emitted, so that the human eye is injured, in an embodiment of the application, the processor is specifically configured to: in response to the infrared remote control instruction, the detection instruction signal is sent to the first driving chip, and after receiving the first time length of the infrared remote control instruction, the remote control code signal is sent to the first driving chip.

[0172] The first driving chip is configured to: in response to the detection instruction signal, drive the first laser to emit a detection signal with a preset light intensity, and determine whether the light intensity of the reflected light detected by the photodiode for the detection signal is less than a preset threshold; if yes, the first driving chip does not respond to the subsequent received remote control code signal; if no, the first driving chip drives the first laser based on the subsequent received remote control code signal, so that the first laser emits a first infrared remote control signal.

[0173] Specifically, the light emitted by the first laser can be reflected when reaching the diffuser, and partially reflected to the photodiode through the diffuser, so that the photodiode can detect the light intensity of the reflected light. Therefore, if the diffuser is damaged, the light intensity of the reflected light detected by the photodiode will be significantly weakened.

[0174] Therefore, in the embodiment of the application, after the processor detects the infrared remote control instruction of the user, the detection instruction signal is first sent to the first driving chip, so that the first driving chip drives the first laser to emit a light signal with a preset light intensity, and the first driving chip judges whether the diffuser is damaged based on the light intensity of the reflected light detected by the photodiode for the light signal with the preset light intensity. Specifically, the preset light intensity can be set according to the actual demand, so as not to cause harm to the human eye, and the preset threshold is set according to the preset light intensity, if the reflected light intensity detected by the photodiode for the light signal with the preset light intensity is less than the threshold, it is considered that the diffuser is damaged, otherwise, it is considered that the diffuser is not damaged.

[0175] The first time length of delaying sending the remote control code signal by the processor can be set in combination with actual requirements, to ensure that the detection of the uniform light sheet integrity based on the photodiode can be successfully completed. In the embodiment of the present application, if the first drive chip determines that the light intensity detected by the photodiode is less than the preset light intensity, it indicates that the uniform light sheet is damaged, and the first drive chip does not respond to the received remote control code signal; if the first drive chip determines that the light intensity detected by the photodiode is not less than the preset light intensity, it indicates that the uniform light sheet is not damaged, and the first drive chip normally drives the first laser to emit the first infrared remote control signal based on the received remote control code signal.

[0176] In an embodiment of the present application, the first drive chip can also be configured to detect the high level duration in the remote control code signal during the process of receiving the remote control code signal sent by the processor; when the detected duration is greater than or equal to the preset duration T, the first drive chip does not respond to the subsequent received remote control code signal.

[0177] Specifically, during the process of sending the remote control code signal by the processor to the first drive chip, the remote control code signal will be constantly switched between high level and low level to control the specific waveform of the light emitted by the first laser driven by the first drive chip. If the high level duration in the remote control code signal is too long, it may cause damage to the human eye by the light emitted by the first laser. Therefore, in the embodiment of the present application, the preset duration T can be set by comprehensively considering the human eye safety and the device heat dissipation of the front TOF module under the designed light power intensity of the first laser, to limit the maximum duration of the high level in the remote control code signal, that is, the single longest light emitting duration of the first laser, that is, the single pulse longest light emitting duration of the infrared remote control signal.

[0178] Therefore, during the process of driving the first laser to emit light by the first drive chip based on the received remote control code signal, if it is detected that the high level duration in the remote control code signal is greater than or equal to the preset duration T, the first drive chip will no longer respond to the subsequent received remote control code signal, to ensure that the single longest light emitting duration of the first laser is less than T, to ensure the safety of the human eye and the device of the front TOF module.

[0179] In actual application, when the infrared remote control function is realized by the front TOF module, different working modes can also be configured for the first drive chip to avoid affecting the normal TOF function of the front TOF. The different timing nodes involved in the working process of the front TOF module will be exemplarily described below in combination with FIG. 15 and FIG. 18. The timing nodes shown in FIG. 18 include the following:

[0180] Timing node a: after the front camera starts, the related power supply of the front TOF module is powered on, and the processor initializes the register of the first driving chip through the TOF sensor, and pulls up the Gate signal.

[0181] Specifically, the processor can pull up the Power signal to power on the related power supply of the front TOF module after detecting the start of the front camera, and send the first configuration information to the TOF sensor through the I2C signal line, and the TOF sensor forwards the first configuration information to the first driving chip through the SPI signal line, so that the first driving chip enters the laser ranging mode.

[0182] Timing node b: the first driving chip drives the first laser to emit a light signal of a preset light intensity, and performs safety detection through a photodiode.

[0183] The safety detection is to judge whether the homogenizing plate is damaged by judging whether the light intensity of the reflected light detected by the photodiode is less than a preset threshold. When the safety detection result indicates that the homogenizing plate is not damaged, the subsequent timing node c can be entered.

[0184] Timing node c: the first driving chip drives the first laser to emit a laser detection signal, and the TOF sensor completes image detection.

[0185] The timing nodes b and c described above are specifically the process of realizing the normal laser ranging function of the front TOF module, which will not be described in detail here.

[0186] Timing node d: after completing the image detection, the related power supply of the front TOF module is powered off, and the first driving chip enters the sleep mode, so as to reduce the power consumption of the front TOF module.

[0187] Timing node e: after the user gives an infrared remote control instruction, the processor configures the first driving chip to exit the sleep mode, the related power supply of the front TOF module is powered on, the Gate signal and the LVDS signal are not enabled, and the first driving chip is switched to the infrared remote control mode.

[0188] Specifically, the Gate signal and the LVDS signal are related signals required to realize the laser ranging function of the front TOF module, so that after detecting that the user gives an infrared remote control instruction, the Gate signal and the LVDS signal do not need to be enabled.

[0189] After detecting that the user gives an infrared remote control instruction, the processor can specifically send the second configuration information to the TOF sensor through the I2C signal line, and the TOF sensor forwards the second configuration information to the first driving chip through the SPI signal line, so that the first driving chip enters the infrared remote control mode.

[0190] Timing node f: the first driving chip drives the first laser to emit a light signal with a preset light intensity, and the light signal is detected by the photodiode.

[0191] Specifically, if the safety detection result indicates that the uniform light sheet is damaged, the first driving chip does not respond to the GPIO signal subsequently; if the safety detection result indicates that the uniform light sheet is not damaged, the first driving chip can drive the first laser to emit light based on the GPIO signal received subsequently.

[0192] Timing node g: after a first time delay (which should ensure that the initialization of the front TOF module and the safety detection based on the photodiode are completed), the processor sends a remote code signal to the first driving chip through the GPIO signal. During the sending of the remote code signal, the first driving chip detects the duration of the high level of the GPIO, and if the duration of the high level is greater than or equal to a preset time T, it indicates that the GPIO is abnormally pulled high, and the first driving chip does not respond to the GPIO signal.

[0193] Timing node h: after the first driving chip drives the first laser to complete the sending of the first infrared remote control signal based on the GPIO signal, the related power supply of the front TOF module is powered off, and the first driving chip enters the sleep mode.

[0194] Specifically, the safety detection results obtained in the timing nodes f and g and the high level detection results of the GPIO signal are stored in a specific register, and the first driving chip can read these detection results and feed them back to the upper layer application, and then enter the sleep mode. By feeding back the safety detection results and the high level detection results of the GPIO signal to the upper layer application, subsequent troubleshooting and repair of related components in the terminal device can be facilitated.

[0195] Timing node i: repeat the action in timing node a.

[0196] Further, in actual applications, for some relatively new or relatively niche devices on the market, the encoding database may not record the encoding information of the infrared remote control waveform required to remotely control these devices, so that the processor cannot generate a remote code signal suitable for these devices. Considering that the photodiode for detecting light intensity is integrated in the front TOF module and has a fast response speed, in some embodiments of the present application, the infrared remote control learning function can be realized based on the photodiode.

[0197] To realize the infrared remote control learning function, the infrared emission position of the entity remote controller of the target device can be first aligned with the photodiode position of the terminal device, and then the keys of the entity remote controller are pressed to make the entity remote controller emit the external infrared light to be learned. The first driving chip generates the encoding information for representing the external infrared light based on the light signal detected by the photodiode for the external infrared light, and returns the encoding information to the processor for storage.

[0198] Specifically, the first driving chip can first feed back the generated encoding information to the TOF sensor through the SPI signal line, and the TOF sensor feeds back the encoding information to the processor for storage through the I2C signal line. Therefore, when the target device needs to be remotely controlled subsequently, the processor can generate a remote control code signal adapted to the target device based on the encoding information learned through the infrared remote control learning function, so that the TOF module can realize remote control of the target device.

[0199] In some embodiments of the present application, the front TOF module and the infrared remote control module in the terminal device can also be used together to realize the infrared remote control function, so as to cover outdoor remote control and other scenes. FIG. 19 is a simplified block diagram of a terminal device for realizing infrared remote control function based on a front TOF module and an infrared remote control module according to an embodiment of the present application. The processor is connected to the first driving chip and the first driving circuit in the infrared remote control module through the GPIO signal line. When the infrared remote control instruction made by the user is detected, the processor can send a remote control code signal to the first driving chip and the first driving circuit through the GPIO signal line. At this time, the infrared remote control range of the terminal device is specifically as shown in FIG. 20, which is the union of the third infrared remote control range to which the first infrared remote control signal emitted by the front TOF module is directed and the second remote control range to which the second infrared remote control signal emitted by the infrared remote control module is directed.

[0200] In some embodiments of the present application, the front TOF module and the rear TOF module in the terminal device can also be used together to realize the infrared remote control function. In this embodiment, the processor is connected to the first driving chip and the second driving chip through the GPIO signal line. When the infrared remote control instruction made by the user is detected, the processor can send a remote control code signal to the first driving chip and the second driving chip through the GPIO signal line. At this time, the infrared remote control range of the terminal device is specifically as shown in FIG. 21, which is the union of the third infrared remote control range to which the first infrared remote control signal emitted by the front TOF module is directed and the first remote control range to which the first infrared remote control signal emitted by the rear TOF module is directed.

[0201] As can be seen from the foregoing description, if the terminal device needs to realize the infrared remote control function through at least two of the front TOF module, the rear TOF module and the infrared remote control module, the processor needs to be connected to at least two of the first driving chip, the second driving chip and the first driving circuit through the same group of GPIO signal lines. In an embodiment of the present application, in order to avoid the influence of the power-off, damage, switching of the mode of the device of a certain infrared driving circuit on the normal operation of another infrared driving circuit, it is necessary to ensure that the interface connected to the GPIO signal line of each infrared driving circuit connected to the processor is configured as an input high-impedance state in any state.

[0202] For example, in the diagram of FIG. 12, the processor is connected to the second driving chip and the first driving circuit through a group of GPIO signal lines, and the interface connected to the GPIO signal line of the second driving chip and the interface adjacent to the GPIO signal line of the first driving circuit need to be configured as an input high-impedance state. In the diagram of FIG. 19, the processor is connected to the first driving chip and the first driving circuit through a group of GPIO signal lines, and the interface connected to the GPIO signal line of the first driving chip and the interface adjacent to the GPIO signal line of the first driving circuit need to be configured as an input high-impedance state.

[0203] In addition, it is found in actual tests that, if the infrared remote control signals for remotely controlling several different devices are the same in a certain environment, when the light intensity of the infrared remote control signal emitted by the laser in the TOF module is too high, the user's one-key operation may remotely control several devices at the same time. For example, if the infrared remote control signal for turning on the air conditioner in the living room is the same as the infrared remote control signal for turning on the air conditioner in the bedroom, when the user opens the application interface in the infrared remote control app shown in FIG. 22 for remotely controlling the air conditioner and clicks the power-on key to remotely control the air conditioner in the living room, if the light intensity of the infrared remote control signal emitted by the laser in the TOF module is too high, the air conditioners in the bedroom and the living room will be turned on at the same time, which brings inconvenience to the user in use.

[0204] In order to avoid this problem, the embodiment of the present application provides an infrared intensity adjustment function through the application APK of the infrared remote control app. When the home appliance device is miscontrolled, the user can adjust the infrared intensity to a higher or lower gear based on the "infrared intensity adjustment" function area in the application interface shown in FIG. 22. After detecting the adjustment operation of the user, the processor will update the configuration information of the TOF module, so that the driving chip can drive the laser to emit the infrared remote control signal with a higher or lower driving current, thereby realizing the adjustment of the intensity of the infrared remote control signal.

[0205] Specifically, a first field for indicating the driving current intensity is stored in the register memory of the driving chip, when the driving chip drives the laser to emit light, the value of the first field is read and the laser is driven to emit light according to the current intensity indicated by the value. Therefore, after detecting the instruction of increasing or decreasing the infrared remote control signal intensity given by the user based on the above adjustment operation, the processor can modify the first configuration information field stored in the driving chip according to the user instruction, that is, the adjustment of the infrared remote control signal intensity can be realized.

[0206] The process of adjusting the infrared remote control signal intensity can be applied to the scheme of realizing the infrared remote control function through the front TOF module, and can also be applied to the scheme of realizing the infrared remote control function through the rear TOF module, and the application is not limited in this regard. Taking the scheme of realizing the infrared remote control function through the front TOF module shown in FIG. 15 as an example, after detecting the instruction of increasing or decreasing the infrared remote control signal intensity given by the user, the processor can first issue the value of the updated first configuration information field to the TOF sensor through the I2C wire, and then transmit the value of the updated first configuration information field to the first driving chip through the SPI wire, so as to realize the adjustment of the infrared remote control signal intensity of the front TOF module.

[0207] Based on the same inventive concept, the application further provides an infrared remote control method applied to a terminal device, the terminal device comprising a processor and a TOF module, the TOF module comprising a driving chip and a laser connected to the driving chip, the method comprising:

[0208] The processor responds to the infrared remote control instruction of the user, and issues a remote control code signal to the driving chip, so that the driving chip drives the laser to emit a first infrared remote control signal based on the remote control code signal; the remote control code signal carries infrared encoding information for representing a target infrared waveform, and the waveform of the first infrared remote control signal is the target infrared waveform, or the first infrared remote control signal takes the target infrared waveform as an envelope waveform.

[0209] The infrared remote control method provided by the application multiplexes the TOF module of the terminal device to realize the infrared remote control function of the terminal device, thereby avoiding the cost increase caused by integrating a special infrared emitter and its driving circuit in the terminal device, and helping to save the valuable space inside the terminal device. When the scheme provided by the application is specifically implemented, whether the driving chip in the TOF module supports driving the laser to emit light at a low frequency of the general infrared remote control signal, a scheme for driving the laser to emit light that is suitable for the performance of the driving chip can be selected to realize the infrared remote control function of the terminal device, and the hardware requirement for the TOF module is lower, and the generality of the scheme is stronger.

[0210] In an embodiment of the present application, the terminal device further comprises an infrared remote control module, the infrared remote control module comprising a first driving circuit and an infrared emitter connected to the first driving circuit; the infrared remote control method further comprises:

[0211] The processor sends a remote control code signal to the first driving circuit in response to the infrared remote control instruction of the user, so that the first driving circuit drives the infrared emitter to send a second infrared remote control signal based on the remote control code signal.

[0212] In an embodiment of the present application, the terminal device comprises two TOF modules, a front TOF module and a rear TOF module, the front TOF module comprising a first driving chip and a first laser connected to the first driving chip, and the rear TOF module comprising a second driving chip and a second laser connected to the second driving chip; the aforementioned processor sends a remote control code signal to the driving chip in response to the infrared remote control instruction of the user, comprising:

[0213] The processor sends a remote control code signal to one of the first driving chip and the second driving chip in response to the infrared remote control instruction,

[0214] or,

[0215] The processor sends a remote control code signal to the first driving chip and the second driving chip respectively in response to the infrared remote control instruction.

[0216] More details about the infrared remote control method are similar to the description of the terminal device embodiments above, please refer to the foregoing.

[0217] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of some embodiments of the present application, rather than limit the technical solutions of some embodiments of the present application. Although some embodiments of the present application are described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of some embodiments of the present application can be modified or replaced equivalently without departing from the spirit and scope of the technical solutions of some embodiments of the present application.

Claims

1. A terminal device, characterized by comprising: The terminal device comprises a processor, a TOF module; the TOF module comprises a driving chip and a laser connected to the driving chip; The processor is configured to send a remote control code signal to the driving chip in response to an infrared remote control instruction of a user; the remote control code signal carries encoding information of a target infrared waveform; The driving chip is configured to drive the laser based on the remote control code signal, so that the laser sends a first infrared remote control signal; the waveform of the first infrared remote control signal is the target infrared waveform, or the first infrared remote control signal takes the target infrared waveform as an envelope waveform.

2. The terminal device according to claim 1, characterized by The terminal device further comprises an infrared remote control module, the infrared remote control module comprises a first driving circuit and an infrared emitter connected to the first driving circuit; The processor is further configured to send a remote control code signal to the first driving circuit in response to an infrared remote control instruction of a user; The first driving circuit is configured to drive the infrared emitter based on the remote control code signal, so that the infrared emitter sends a second infrared remote control signal; the infrared remote control range of the terminal device is the union of a first remote control range pointed by the first infrared remote control signal and a second remote control range pointed by the second infrared remote control signal.

3. The terminal device according to claim 1, characterized by The terminal device comprises a front TOF module and a rear TOF module; the front TOF module comprises a first driving chip and a first laser connected to the first driving chip; the rear TOF module comprises a second driving chip and a second laser connected to the second driving chip; The processor is specifically configured to send the remote control code signal to one of the first driving chip and the second driving chip in response to the infrared remote control instruction, Or, send a remote control code signal to the first driving chip and the second driving chip respectively in response to the infrared remote control instruction.

4. The terminal device according to claim 3, characterized by The rear TOF module further comprises a rear camera; the second driving chip has two working modes of infrared remote control mode and laser ranging mode; The processor is further configured to configure the default working mode of the second driving chip as the infrared remote control mode; when detecting the start of the rear camera, switch the working mode of the second driving chip to the laser ranging mode, and after detecting the shutdown of the rear camera, switch the working mode of the second driving chip to the infrared remote control mode; The second driving chip is specifically configured to drive the second laser to send a first infrared remote control signal in response to the remote control code signal sent by the processor in the infrared remote control mode; drive the second laser to send a laser detection signal in response to a detection code signal sent by the processor in the laser ranging mode.

5. The terminal device according to claim 3, characterized by The front TOF module further comprises a light uniformity sheet located on the light emitting side of the first laser and a photodiode connected to the first driving chip; the photodiode is used to detect the light intensity of reflected light reflected by the light uniformity sheet; The processor is configured to send a detection instruction signal to the first driving chip in response to the infrared remote control instruction, and send the remote control code signal to the first driving chip after a first time length of receiving the infrared remote control instruction; The first driving chip is configured to drive the first laser to send a detection signal of a preset light intensity in response to the detection instruction signal, and determine whether the light intensity of the reflected light detected by the photodiode for the detection signal is less than a preset threshold; if yes, the first driving chip does not respond to the subsequent received remote control code signal; if no, the first driving chip drives the first laser based on the subsequent received remote control code signal to make the first laser send a first infrared remote control signal.

6. The terminal device according to claim 5, characterized by The first driving chip is further configured to generate coding information for characterizing external infrared light based on the light signal detected by the photodiode for the external infrared light, and return the coding information to the processor for storage.

7. The terminal device according to claim 3 or 5, characterized by The first driving chip is further configured to detect the duration of high level in the received remote control code signal; when the detected duration is greater than or equal to a preset duration, the first driving chip does not respond to the subsequent received remote control code signal.

8. The terminal device according to claim 3, characterized by When the processor is connected with at least two of the first driving circuit, the first driving chip and the second driving chip in the infrared remote control module through a GPIO signal line, and is configured to send the remote control code signal to the at least two through the GPIO signal line; the interfaces connected with the GPIO signal line of the at least two are configured to be in input high impedance state.

9. The terminal device according to claim 3 or 5, characterized by The front TOF module further comprises a TOF sensor, the processor is connected with the TOF sensor through an I2C signal line, and the TOF sensor is connected with the first driving chip through an SPI signal line; The processor is further configured to send first configuration information to the TOF sensor through the I2C signal line in response to the start of the front camera; The TOF sensor is configured to forward the first configuration information to the first driving chip to make the first driving chip enter a laser ranging mode; And / or, The processor is further configured to send second configuration information to the TOF sensor through the I2C signal line in response to the infrared remote control instruction; The TOF sensor is configured to forward the second configuration information to the first driving chip to make the first driving chip enter an infrared remote control mode.

10. The terminal device of claim 9, wherein, The first driving chip is further configured to enter a sleep mode after driving the first laser based on the received remote control code signal to complete the sending of the first infrared remote control signal.

11. The terminal device according to claim 3, characterized by The terminal device further comprises at least one of an acceleration sensor, a proximity light sensor and an ambient light sensor; The processor is further configured to: before sending the remote control code signal to the first driving chip, judging whether the front TOF module is blocked based on detection data of at least one of the acceleration sensor, the proximity light sensor and the ambient light sensor; if yes, generating a prompt information, the prompt information is used to remind the user to remove the blockage of the first infrared remote control signal.

12. The terminal device according to claim 3, characterized by The terminal device further comprises an acceleration sensor; The processor is further configured to: if the number of times of giving the same infrared remote control instruction by the user within a second time length exceeds a preset number of times, generating a posture guide information combined with the detection data of the acceleration sensor; the posture guide information is used to guide the user to adjust the posture of the terminal device to a target posture, so that the first infrared remote control signal emitted by the first laser is reflected to the remote control object with the human body of the user as the reflecting surface.

13. The terminal device of claim 1, wherein, The driving chip stores a first configuration information field, and the first configuration information field is used to indicate a driving current intensity adopted by the driving chip when driving the laser; The processor is further configured to: in response to the instruction of the user to increase or decrease the intensity of the infrared remote control signal, modify the first configuration information field stored in the driving chip.

14. An infrared remote control method, characterized by, The method is applied to a terminal device, and the terminal device comprises a processor and a TOF module, the TOF module comprises a driving chip and a laser connected to the driving chip; the method comprises: The processor sends a remote control code signal to the driving chip in response to the infrared remote control instruction of the user, so that the driving chip drives the laser to emit a first infrared remote control signal based on the remote control code signal; the remote control code signal carries infrared code information used to represent a target infrared waveform, and the waveform of the first infrared remote control signal is the target infrared waveform, or the first infrared remote control signal takes the target infrared waveform as an envelope waveform.

15. The method of claim 14, wherein, The terminal device further comprises an infrared remote control module, the infrared remote control module comprises a first driving circuit and an infrared emitter connected to the first driving circuit; the method further comprises: The processor sends a remote control code signal to the first driving circuit in response to the infrared remote control instruction of the user, so that the first driving circuit drives the infrared emitter to emit a second infrared remote control signal based on the remote control code signal.

16. The method according to claim 14 or 15, characterized in that The terminal device comprises two TOF modules, i.e., a front TOF module and a rear TOF module, the front TOF module comprises a first driving chip and a first laser connected to the first driving chip, and the rear TOF module comprises a second driving chip and a second laser connected to the second driving chip; The processor sends a remote control code signal to the driving chip in response to the infrared remote control instruction of the user, comprising: The processor sends the remote control code signal to one of the first driving chip and the second driving chip in response to the infrared remote control instruction, Or, The processor sends a remote control code signal to the first driving chip and the second driving chip respectively in response to the infrared remote control instruction.

Citation Information

Patent Citations

  • Infrared implementation device in electronic equipment and implementation method of infrared implementation device

    CN106408924A

  • Infrared remote control method, terminal and apparatus

    CN108604404A

  • Infrared remote control method and terminal equipment

    CN117334036A

  • Portable telephone set provided with infrared remote control function

    JP2003264612A

  • Remote control device and remote control method

    JP2011239279A