Terminal device, signal processing method and apparatus, storage medium, program product

CN122949666APending Publication Date: 2026-10-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510450968.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2026-10-20

AI Technical Summary

Technical Problem

[0003]然而,当终端设备装配有红外线发射器时,红外线发射器内部会通过红外线发射管产生红外光信号,红外光信号会干扰光线传感电路采集环境光数据,进而导致终端设备无法获得真实的环境光强度

Benefits of technology

[0038]在本公开实施例中,在检测电路对驱动信号进行检测,确定驱动信号驱动红外线发生电路工作时,可以向控制电路发送第一信号。控制电路可以根据第一信号和光线传感电路采集到的环境光数据,确定终端设备所处环境的环境光强度。如此,终端设备在确定环境光强度的过程中,能够根据红外线发生电路工作以及光线传感电路实时采集到的环境光数据,共同确定终端设备所处环境的环境光强度,从而一方面,保证红外线发生电路工作时,也可以实现确定环境光强度;另一方面,在确定红外线发生电路工作时,还能够尽量消除红外线发生电路工作时产生的红外光对环境光数据的影响,增强环境光强度计算的准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0005354360500000011
    Figure HDA0005354360500000011
  • Figure HDA0005354360500000012
    Figure HDA0005354360500000012
  • Figure HDA0005354360500000013
    Figure HDA0005354360500000013
Patent Text Reader

Abstract

This disclosure relates to a terminal device, a signal processing method and apparatus, a storage medium, and a program product. The terminal device includes: an infrared generating circuit, a light sensing circuit, a detection circuit, and a control circuit, wherein the detection circuit is connected to both the infrared generating circuit and the control circuit; the infrared generating circuit is configured to operate under the action of a drive signal; the detection circuit is configured to detect the drive signal and, in response to the operation of the infrared generating circuit, send a first signal to the control circuit; the control circuit is configured to determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and ambient light data collected by the light sensing circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of infrared remote control technology, and in particular to a terminal device, signal processing method and apparatus, storage medium, and program product. Background Technology

[0002] In related technologies, terminal devices can determine the ambient light intensity of the environment in which the terminal device is located by collecting ambient light data from light sensing circuits.

[0003] However, when a terminal device is equipped with an infrared transmitter, the infrared transmitter will generate an infrared light signal through an infrared emitting tube. The infrared light signal will interfere with the light sensing circuit to collect ambient light data, thus causing the terminal device to be unable to obtain the true ambient light intensity. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a terminal device, a signal processing method and apparatus, a storage medium, and a program product.

[0005] According to a first aspect of the present disclosure, a terminal device is provided. The terminal device includes: an infrared generating circuit, a light sensing circuit, a detection circuit, and a control circuit, wherein the detection circuit is connected to both the infrared generating circuit and the control circuit, and the light sensing circuit is disposed adjacent to the infrared generating circuit; the infrared generating circuit is configured to operate under the action of a driving signal; the detection circuit is configured to detect the driving signal and, in response to the operation of the infrared generating circuit, send a first signal to the control circuit; wherein the driving signal after a level transition is used to drive the infrared generating circuit to operate; and the control circuit is configured to determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and ambient light data collected by the light sensing circuit.

[0006] In some embodiments, the light sensing circuit includes: a first light sensing circuit and a second light sensing circuit, wherein the first light sensing circuit is disposed adjacent to an infrared generating circuit; and a control circuit configured to determine the ambient light intensity based on a first signal, and first ambient light data collected by the first light sensing circuit and / or second ambient light data collected by the second light sensing circuit; wherein the first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is operating; and the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is operating.

[0007] In some embodiments, the control circuit is configured to: reduce the weight of the first ambient light data according to the first signal, and determine the ambient light intensity according to the first ambient light data, the second ambient light data, and the weight when the infrared generating circuit is operating.

[0008] In some embodiments, the control circuit is configured to determine the ambient light intensity based on second ambient light data when the infrared generating circuit is operating, according to a first signal.

[0009] In some embodiments, the control circuit includes: a first control circuit; the first control circuit is configured to pause reporting first ambient light data when the infrared generating circuit is operating, based on a first signal.

[0010] In some embodiments, the control circuit includes: a first control circuit; wherein the first control circuit is configured to obtain historical ambient light data corresponding to the first ambient light data according to a first signal, and to report the historical ambient light data when the infrared generating circuit is working, wherein the historical ambient light data is ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

[0011] In some embodiments, the control circuit further includes: a second control circuit; the second control circuit is configured to determine the ambient light intensity based on historical ambient light data and second ambient light data.

[0012] In some embodiments, the terminal device includes: an ambient light sensor, a first light sensing circuit, and a first control circuit located within the ambient light sensor.

[0013] In some embodiments, the control circuit is further configured to send a control signal to the first light sensing circuit according to the first signal, wherein the control signal is used to instruct the first light sensing circuit to suspend the acquisition of ambient light data when the infrared generating circuit is working.

[0014] In some embodiments, the control circuit is further configured to determine the ambient light intensity based on first ambient light data and second ambient light data when the first signal is not received.

[0015] In some embodiments, the drive signal input terminal of the infrared generating circuit and the input pin of the detection circuit are electrically connected; the drive signal input terminal is used to receive the drive signal; the detection circuit is further configured to detect the drive signal through the input pin when the drive signal is input to the control signal input terminal.

[0016] According to a second aspect of the present disclosure, a signal processing method is provided. The signal processing method includes: receiving a first signal, wherein the first signal is used to instruct an infrared light generating circuit to operate; and determining the ambient light intensity of the environment in which a terminal device is located based on the first signal and ambient light data collected by a light sensing circuit.

[0017] In some embodiments, determining the ambient light intensity of the environment in which the terminal device is located based on the first signal and ambient light data collected by the light sensing circuit includes: determining the ambient light intensity based on the first signal, the first ambient light data collected by the first light sensing circuit, and / or the second ambient light data collected by the second light sensing circuit; wherein the first light sensing circuit is disposed adjacent to the infrared generating circuit; the first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is working; and the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is working.

[0018] In some embodiments, determining the ambient light intensity based on a first signal, first ambient light data acquired by a first light sensing circuit, and / or second ambient light data acquired by a second light sensing circuit includes: reducing the weight of the first ambient light data based on the first signal; and determining the ambient light intensity based on the first ambient light data, the second ambient light data, and the weight when the infrared generating circuit is operating.

[0019] In some embodiments, determining the ambient light intensity based on a first signal, and first ambient light data acquired by a first light sensing circuit and / or second ambient light data acquired by a second light sensing circuit includes: determining the ambient light intensity based on the second ambient light data when the infrared generating circuit is operating, based on the first signal.

[0020] In some embodiments, determining the ambient light intensity based on a first signal, first ambient light data collected by a first light sensing circuit, and / or second ambient light data collected by a second light sensing circuit includes: pausing the reporting of the first ambient light data when the infrared generating circuit is operating, based on the first signal.

[0021] In some embodiments, determining the ambient light intensity based on a first signal, first ambient light data collected by a first light sensing circuit, and / or second ambient light data collected by a second light sensing circuit includes: obtaining historical ambient light data corresponding to the first ambient light data based on the first signal, and reporting the historical ambient light data when the infrared generating circuit is working, wherein the historical ambient light data is ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

[0022] In some embodiments, determining the ambient light intensity based on the first signal, and the first ambient light data collected by the first light sensing circuit and / or the second ambient light data collected by the second light sensing circuit, further includes: determining the ambient light intensity based on historical ambient light data and the second ambient light data.

[0023] In some embodiments, the method further includes: sending a control signal to a first light sensing circuit according to a first signal, wherein the control signal is used to instruct the first light sensing circuit to suspend the acquisition of ambient light data when the infrared generating circuit is working.

[0024] In some embodiments, the method further includes: determining the ambient light intensity based on first ambient light data and second ambient light data when no first signal is received.

[0025] According to a third aspect of the present disclosure, a signal processing apparatus is provided. The signal processing apparatus includes: a receiving module configured to receive a first signal, wherein the first signal is used to instruct an infrared generating circuit to operate; and a control module configured to determine the ambient light intensity of the environment in which a terminal device is located based on the first signal and ambient light data collected by a light sensing circuit.

[0026] In some embodiments, the control module is configured to determine the ambient light intensity based on a first signal, and first ambient light data collected by a first light sensing circuit and / or second ambient light data collected by a second light sensing circuit; wherein the first light sensing circuit is disposed adjacent to the infrared generating circuit; the first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is working; and the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is working.

[0027] In some embodiments, the control module is configured to reduce the weight of the first ambient light data according to the first signal; and to determine the ambient light intensity according to the first ambient light data, the second ambient light data, and the weight when the infrared generating circuit is working.

[0028] In some embodiments, the control module is configured to determine the ambient light intensity based on the second ambient light data when the infrared generating circuit is operating, according to the first signal.

[0029] In some embodiments, the control module is configured to pause reporting first ambient light data when the infrared generating circuit is operating, based on a first signal.

[0030] In some embodiments, the control module is configured to obtain historical ambient light data corresponding to the first ambient light data based on the first signal, and to report the historical ambient light data when the infrared generating circuit is working, wherein the historical ambient light data is ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

[0031] In some embodiments, the control module is further configured to determine the ambient light intensity based on historical ambient light data and second ambient light data.

[0032] In some embodiments, the control module is further configured to send a control signal to the first light sensing circuit according to the first signal, wherein the control signal is used to instruct the first light sensing circuit to suspend the acquisition of ambient light data when the infrared generating circuit is working.

[0033] In some embodiments, the control module is further configured to determine the ambient light intensity based on the first ambient light data and the second ambient light data when the first signal is not received.

[0034] According to a fourth aspect of the present disclosure, a terminal device is provided, comprising: a processor; and a memory for storing computer programs or instructions; wherein the processor executes the computer programs or instructions to implement the steps of the method as described in any of the second aspects of the present disclosure.

[0035] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, the storage medium storing a computer program or instructions that, when executed by a processor, implement the steps of the method as described in any of the second aspects of the present disclosure.

[0036] According to a sixth aspect of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of the method described in any two of the first aspects of the present disclosure.

[0037] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0038] In this embodiment, when the detection circuit detects the driving signal and determines that the driving signal drives the infrared light generating circuit to operate, it can send a first signal to the control circuit. The control circuit can determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit. Thus, in determining the ambient light intensity, the terminal device can jointly determine the ambient light intensity of the environment in which the terminal device is located based on the operation of the infrared light generating circuit and the ambient light data collected in real time by the light sensing circuit. This ensures, on the one hand, that the ambient light intensity can be determined even when the infrared light generating circuit is operating; and on the other hand, it minimizes the influence of the infrared light generated by the infrared light generating circuit on the ambient light data when determining that the infrared light generating circuit is operating, thereby enhancing the accuracy of the ambient light intensity calculation.

[0039] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0040] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0041] Figure 1 This is a schematic diagram of the hardware structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 1 .

[0042] Figure 2 This is a schematic diagram of the hardware structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 2 .

[0043] Figure 3 This is a schematic diagram of a partial hardware structure of a terminal device according to an exemplary embodiment of the present disclosure.

[0044] Figure 4 This is a schematic diagram of the circuit structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 1 .

[0045] Figure 5 This is a schematic diagram of an infrared generating circuit according to an exemplary embodiment of the present disclosure.

[0046] Figure 6 This is a schematic diagram of a detection circuit according to an exemplary embodiment of the present disclosure.

[0047] Figure 7 This is a schematic diagram of the circuit structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 2 .

[0048] Figure 8 This is a schematic diagram of the circuit structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 3 .

[0049] Figure 9 This is a flowchart illustrating a signal processing method according to an exemplary embodiment of the present disclosure. Figure 1 .

[0050] Figure 10 This is a flowchart illustrating a signal processing method according to an exemplary embodiment of the present disclosure. Figure 2 .

[0051] Figure 11 This is a schematic diagram of the structure of a signal processing apparatus according to an exemplary embodiment of the present disclosure.

[0052] Figure 12 This is a structural block diagram of a terminal device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.

[0054] Infrared transmitters can be integrated into terminal devices. Figure 1 This is a schematic diagram of the hardware structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 1 .like Figure 1 As shown, taking a smartphone 10 as an example, the infrared transmitter 11 can be located on the top of the smartphone 10. The grip direction and remote control method of the smartphone 10 are similar to those of a traditional TV button remote control. This design allows users to accurately aim at the remotely controlled device, thus ensuring effective transmission of the infrared light signal. However, this design requires opening a hole in the mid-frame of the smartphone 10, which is complex in manufacturing and increases the risk of electrostatic damage to the motherboard.

[0055] To maintain the aesthetics of smartphones and reduce the number of openings on the top frame, one solution is to place the infrared emitter inside the rear camera lens. Figure 2 This is a schematic diagram of the hardware structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 2 . Figure 3 This is a schematic diagram of a partial hardware structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 2 and Figure 3 As shown, taking the smartphone 10 as an example, the infrared emitter 11 can be located on the back of the smartphone 10, covering the same decorative lens 13 as the light sensor 12. Because the infrared emitter 11 and the light sensor 12 are close together, the light sensor 12 receives the infrared light emitted by the infrared emitter 11. This causes the ambient light data detected by the light sensor 12 to fluctuate drastically, resulting in ambient light measurement errors, and consequently, the smartphone 10 cannot obtain the true ambient light intensity. Furthermore, ambient light intensity can serve as reference data for the display brightness of the smartphone 10's screen. On the one hand, when the ambient light intensity obtained by the smartphone 10 is not accurate, the display brightness will not match the environment in which the smartphone 10 is located, affecting the user's experience. On the other hand, when the ambient light intensity obtained by the smartphone 10 fluctuates drastically, the display brightness will also fluctuate, causing the user to perceive a "screen flicker," affecting the user's experience.

[0056] To address the aforementioned technical problems, this disclosure provides a terminal device, a signal processing method and apparatus, a storage medium, and a program product.

[0057] In a first aspect, embodiments of this disclosure provide a terminal device. Figure 4 This is a schematic diagram of the circuit structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 1 .like Figure 4 As shown, the terminal device 40 includes: an infrared generating circuit 41, a light sensing circuit 42, a detection circuit 43, and a control circuit 44, wherein the detection circuit 43 is connected to the infrared generating circuit 41 and the control circuit 44 respectively.

[0058] The infrared generating circuit 41 is configured to operate under the action of a drive signal;

[0059] The detection circuit 43 is configured to detect the drive signal and, in response to the operation of the infrared generating circuit, send a first signal to the control circuit 44.

[0060] The control circuit 44 is configured to determine the ambient light intensity of the environment in which the terminal device 40 is located based on the first signal and the ambient light data collected by the light sensing circuit 42.

[0061] In this embodiment, the infrared generating circuit can generate infrared light to achieve infrared remote control functionality. The terminal device can be applied in infrared remote control scenarios using the aforementioned infrared remote control function. In one embodiment, the infrared generating circuit can start working and generate infrared light after receiving a drive signal. Here, the specific form of the drive signal depends on the design of the infrared generating circuit and the application scenario.

[0062] Understandably, the drive signal controls the infrared light generating circuit to operate and stop operating. When the infrared light generating circuit is operating, it emits infrared light; when it stops operating, it stops emitting infrared light.

[0063] In one embodiment, the driving signal can be a pulse width modulation (PWM) pulse signal. The PWM pulse signal controls the output power by adjusting the pulse width (i.e., duty cycle), thereby controlling the intensity of the infrared light generated by the infrared generating circuit.

[0064] In one embodiment, the driving signal can be a baseband signal.

[0065] For example, Figure 5 This is a schematic diagram of an infrared generating circuit according to an exemplary embodiment of the present disclosure. Figure 5As shown, the infrared generating circuit 41 may include an infrared driving circuit 51 and an infrared emitting diode Q connected to the infrared driving circuit 51. The infrared emitting diode Q may be a light-emitting diode capable of emitting infrared light. The infrared driving circuit 51 is responsible for providing the necessary current and voltage to the infrared emitting diode Q to ensure that it can work normally and emit stable infrared light. A drive signal PWM may be input to the infrared driving circuit 51. The infrared driving circuit 51 can drive the infrared emitting diode Q to generate infrared light according to the received drive signal PWM. Here, the drive signal PWM may be a PWM pulse signal.

[0066] In some embodiments, the detection circuit may be connected to the infrared generating circuit and detect whether a drive signal driving the infrared generating circuit drives the infrared generating circuit to operate. In response to detecting that the infrared generating circuit is operating, the detection circuit may send a first signal to the control circuit. The first signal is used to indicate that the infrared generating circuit is operating.

[0067] Understandably, the detection circuit can detect the drive signal in real time to determine whether the drive signal is activating the infrared light generating circuit. The detection circuit can capture changes in the drive signal (e.g., level transitions, waveform frequency changes), and determine based on these changes that the infrared light generating circuit is about to emit infrared light. Subsequently, the detection circuit can send a first signal to the control circuit, enabling the control circuit to know that the infrared light generating circuit is about to emit infrared light.

[0068] In some embodiments, changes in the driving signal may include changes in parameters such as the waveform shape, waveform amplitude, waveform frequency, and waveform phase of the driving signal. It is understood that the detection circuit in the terminal device can determine that the driving signal has started driving the infrared generating circuit when it detects a preset change in the aforementioned parameters. For example, when the detection circuit detects that the waveform frequency of the driving signal changes from a first value to a second value, the detection circuit can determine that the driving signal has started driving the infrared generating circuit.

[0069] In one embodiment, whether the waveform shape of the drive signal changes can be determined by whether a level transition occurs in the drive signal. It is understood that a level transition in the drive signal includes a transition from a low level to a high level, or a transition from a high level to a low level; both of these can cause a change in the waveform shape of the drive signal.

[0070] In one embodiment, the infrared generating circuit can start working and emit infrared light when the driving signal changes from a low level to a high level; when the driving signal changes from a high level to a low level, the infrared generating circuit can stop working.

[0071] In one embodiment, the transition of the drive signal from low to high includes the case where the drive signal changes from zero to one. That is, when the infrared generating circuit does not receive a drive signal, the drive signal is low by default; when the infrared generating circuit receives a drive signal, the drive signal is high. Thus, when the drive signal transitions from low to high, the infrared generating circuit can start operating and emit infrared light; when the drive signal transitions from high to low, the infrared generating circuit can stop operating.

[0072] In one embodiment, the infrared generating circuit can start working and emit infrared light when the driving signal changes from a high level to a low level; when the driving signal changes from a low level to a high level, the infrared generating circuit can stop working.

[0073] For example, taking a PWM pulse signal as an example, the infrared light generating circuit can receive a high-level PWM pulse signal, at which time the infrared light generating circuit remains in a stopped state. If the PWM pulse signal undergoes a level transition, changing abruptly from a high level to a low level (i.e., the pulse signal generates a falling edge), the PWM pulse signal can drive the infrared light generating circuit to start working and emit infrared light.

[0074] In some embodiments, the control circuit can be connected to the detection circuit. When the control circuit receives the first signal sent by the detection circuit, it can determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit.

[0075] Understandably, when the infrared generating circuit emits infrared light under the action of a driving signal, the infrared light will be received by the light sensing circuit, thus affecting the ambient light data collected by the light sensing circuit. Compared with related technologies, where the control circuit determines the ambient light intensity of the environment in which the terminal device is located based solely on the ambient light data collected by the light sensing circuit, the solution in this embodiment can determine the ambient light intensity by combining ambient light data, knowing that the infrared generating circuit is operating. This allows the terminal device to take preset measures to actively reduce the interference of the infrared generating circuit on the light sensing circuit.

[0076] Here, the preset measures can be set according to actual needs, and this embodiment does not limit them. For example, the terminal device can determine that the infrared generating circuit is operating and generating infrared light of a first intensity based on the first signal; the terminal device can subtract the ambient light data corresponding to the first intensity infrared light from the ambient light data collected by the light sensing circuit to obtain more realistic ambient light data, and thus determine the ambient light intensity based on the more realistic ambient light data. In this way, on the one hand, the terminal device can obtain the ambient light intensity when the infrared generating circuit is operating; on the other hand, the terminal device can effectively control the interference of the infrared generating circuit on the light sensing circuit.

[0077] For example, with Figure 3 Taking the structure shown as an example, when the infrared emitter 11 (including an infrared generating circuit) and the rear light sensor 12 (included in the light sensing circuit 42) are arranged adjacent to each other under the decorative lens 13 of the smartphone 10, the smartphone 10 can be the terminal device 40 in this embodiment. When the user controls the infrared emitter 11 to emit infrared light, the control circuit 44 in the smartphone 10 can determine the ambient light intensity of the environment in which the terminal device 40 is located based on the first signal indicating that the infrared generating circuit is working and the ambient light data collected by the light sensing circuit 42. In this way, the control circuit 44 can at least determine, based on the first signal, that the ambient light data detected by the light sensor 12 is not used as reference data for the display brightness of the screen, thereby effectively preventing the screen from flickering and improving the user experience.

[0078] In this embodiment of the disclosure, during the process of determining the ambient light intensity, the terminal device can jointly determine the ambient light intensity of the environment in which the terminal device is located based on the operation of the infrared generating circuit and the ambient light data collected in real time by the light sensing circuit. This ensures, on the one hand, that the ambient light intensity can be determined even when the infrared generating circuit is working; on the other hand, when determining that the infrared generating circuit is working, the influence of the infrared light generated by the infrared generating circuit on the ambient light data can be minimized, thereby enhancing the accuracy of the ambient light intensity calculation.

[0079] In some embodiments, the drive signal input terminal of the infrared generating circuit and the input pin of the detection circuit are electrically connected; the drive signal input terminal is used to receive the drive signal.

[0080] The detection circuit is also configured to detect the drive signal through the input pin when a drive signal is input to the control signal input terminal.

[0081] In this embodiment, the input terminal of the detection circuit can be connected to the drive signal input terminal of the infrared generating circuit. The input terminal of the detection circuit can be an input pin. The detection circuit can detect the drive signal at the input drive signal input terminal through the input pin, thereby determining whether the infrared generating circuit is working.

[0082] In some embodiments, the detection circuit can be an interface circuit in a microprocessor and microcontroller, such as a GPIO (general purpose input / output) interface. Here, the microprocessor and microcontroller can be a system-on-a-chip (SOC) or a chip implementing a single function. In one embodiment, the input pins of the detection circuit can include pins with specific functions in the microprocessor and microcontroller, such as a SYNC (synchronization clock in) pin.

[0083] In some embodiments, the driving signal can be generated by a driving signal generation circuit, and the input terminal of the detection circuit can be connected to the output terminal of the driving signal generation circuit to detect whether the driving signal output by the driving signal generation circuit drives the infrared light generating circuit to work. In some embodiments, the driving signal generation circuit and the detection circuit can be respectively disposed on different integrated circuits, or they can be disposed on different units of the same integrated circuit.

[0084] For example, Figure 6 This is a schematic diagram of a detection circuit according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the detection circuit can be integrated into the photosensitive chip 60. The photosensitive chip 60 is a sensor chip capable of sensing ambient light intensity and converting light signals into electrical signals. The photosensitive chip 60 has pins VDD, SCL, SDA, SYNC, INT, and GND. The input pin of the detection circuit may include the SYNC pin. Furthermore, the detection circuit can connect to the sensor via the SYNC pin. Figure 5 The drive signal input terminal of the infrared generating circuit shown is connected. After connection, the detection circuit can also detect the drive signal PWM input terminal of the infrared generating circuit through the SYNC pin, thereby determining whether the infrared generating circuit is working.

[0085] In this embodiment of the disclosure, the input pin of the detection circuit is connected to the drive signal input terminal of the infrared light generating circuit to detect the drive signal, which makes the circuit structure simple and easy to implement.

[0086] In some embodiments, the light sensing circuit includes: a first light sensing circuit and a second light sensing circuit, wherein the first light sensing circuit is disposed adjacent to the infrared light generating circuit;

[0087] The control circuit is configured to determine the ambient light intensity based on a first signal, first ambient light data acquired by a first light sensing circuit, and / or second ambient light data acquired by a second light sensing circuit.

[0088] The first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is working; the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is working.

[0089] In this embodiment of the disclosure, there may be multiple light sensing circuits in the terminal device, and these multiple light sensing circuits may be distributed at different locations in the terminal device to obtain ambient light data at multiple different locations, thereby providing more accurate ambient light intensity.

[0090] In some embodiments, the first light sensing circuit in a plurality of light sensing circuits can be as follows: Figure 2 and Figure 3 The light sensing circuit 12 shown is located near the infrared light generating circuit 11. This first light sensing circuit can at least be used to collect ambient light data from the back of the terminal device. The second light sensing circuit, one of the plurality of light sensing circuits, can be located away from the infrared light generating circuit. This second light sensing circuit can at least be used to collect ambient light data from the front of the terminal device. Thus, the first light sensing circuit is affected by the infrared light generating circuit, while the second light sensing circuit is not affected by the infrared light generating circuit.

[0091] In some embodiments, the control circuit can determine that the infrared generating circuit is operating based on a first signal, and obtain first ambient light data collected by the first light sensor and / or second ambient light data collected by the second light sensor when the infrared generating circuit is operating. Subsequently, the control circuit can determine the ambient light intensity based on the first ambient light data and / or the second ambient light data.

[0092] Understandably, when the infrared generating circuit is operating, the first light sensing circuit is affected by the infrared generating circuit, while the second light sensing circuit is not. The control circuit distinguishes between the ambient light data generated by the first and second light sensing circuits and flexibly determines the ambient light intensity using this differentiated data, thus improving the versatility of ambient light intensity calculations. Furthermore, the control circuit can also identify the first ambient light data affected by the infrared generating circuit and then take preset measures to actively reduce the interference of the infrared generating circuit on the first light sensing circuit.

[0093] In some embodiments, the control circuit determines the ambient light intensity based on a first signal and first ambient light data collected by a first light sensing circuit; in some embodiments, the control circuit determines the ambient light intensity based on a first signal and second ambient light data collected by a second light sensing circuit; in some embodiments, the control circuit determines the ambient light intensity based on a first signal and first ambient light data collected by a first light sensing circuit and second ambient light data collected by a second light sensing circuit.

[0094] It is understood that the above methods can all be used by the control circuit to determine the ambient light intensity, and this disclosure does not limit this method. For example, when the control circuit determines the ambient light intensity based on the first signal and the first ambient light data collected by the first light sensing circuit, the control circuit can reduce the first ambient light data to eliminate the error caused by infrared light in the first ambient light data, and then obtain a more accurate ambient light intensity based on the reduced first ambient light data.

[0095] Figure 7 This is a schematic diagram of the circuit structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 2 . Figure 8 This is a schematic diagram of the circuit structure of a terminal device according to an exemplary embodiment of the present disclosure. Figure 3 .like Figures 7 to 8 As shown, the terminal device 40 in this embodiment of the present disclosure may have at least two of the following structures:

[0096] The first structure: corresponding to Figure 7The terminal device 40 may include an infrared generating circuit 41, a light sensing circuit 42, and a system-on-chip (SoC). The detection and control circuits are integrated within the SoC. The SoC has a first interface GPIO1 and a second interface GPIO2. Both GPIO1 and GPIO2 are connected to the infrared generating circuit 41. GPIO1 is included in the driver circuit and is used to transmit the PWM drive signal to the infrared generating circuit 41 when the driver circuit generates the PWM signal, so that the infrared generating circuit 41 operates under the action of the drive signal. When the infrared generating circuit 41 operates, the infrared emitting diode Q emits infrared light. GPIO2 is included in the detection circuit. The detection circuit detects the PWM drive signal through GPIO2 and sends a first signal to the control circuit when a change in the PWM drive signal is detected (e.g., a level transition). After receiving the first signal, the control circuit determines that the infrared generating circuit 41 is operating. The control circuit determines the ambient light intensity based on the first signal, the first ambient light data collected by the first light sensing circuit, and / or the second ambient light data collected by the second light sensing circuit.

[0097] Understandably, when the first interface GPIO1 has no output and the infrared emitter Q is not working, there is no voltage signal on the second interface GPIO2. When the first interface GPIO1 outputs a drive signal PWM to activate the infrared emitter Q, and the infrared emitter Q emits infrared light, the detection circuit in the system-on-a-chip (SoC) detects the drive signal PWM through the second interface GPIO2 and informs the control circuit in the SoC that the infrared emitter Q is emitting light. The control circuit determines the ambient light intensity based on the first signal indicating that the infrared emitter Q is emitting light, the first ambient light data collected by the first light sensor circuit, and / or the second ambient light data collected by the second light sensor circuit. In this way, the ambient light intensity error caused by the infrared emitter Q emitting light can be effectively controlled.

[0098] The second structure: corresponding to Figure 8The terminal device 40 may include an infrared generating circuit 41, a light sensing chip 60, and a system-on-a-chip (SOC). The light sensing circuit, detection circuit, and control circuit are all integrated within the light sensing chip 60 (equivalent to a light sensor). The SOC has a first interface GPIO1, and the light sensing chip 60 has a second interface GPIO2. Both the first interface GPIO1 and the second interface GPIO2 are connected to the infrared generating circuit 41. The first interface GPIO1 is included in the driver circuit and is used to transmit the drive signal PWM to the infrared generating circuit 41 when the driver circuit generates the drive signal PWM, so that the infrared generating circuit 41 operates under the action of the drive signal. When the infrared generating circuit 41 operates, the infrared emitting diode Q emits infrared light. The second interface GPIO2 is included in the detection circuit. The detection circuit is used to detect the drive signal PWM through the second interface GPIO2, and when a change in the drive signal PWM is detected, it sends a first signal to the control circuit. After receiving the first signal, the control circuit determines that the infrared generating circuit 41 is operating. The control circuit determines the ambient light intensity based on the first signal, the first ambient light data collected by the first light sensing circuit, and / or the second ambient light data collected by the second light sensing circuit.

[0099] Understandably, when the first interface GPIO1 outputs the drive signal PWM to activate the infrared emitter Q, and the infrared emitter Q emits infrared light, the detection circuit in the photosensitive chip 60 detects the drive signal PWM through the second interface GPIO2 and informs the control circuit in the photosensitive chip 60 that the infrared emitter Q is emitting light. The control circuit determines the ambient light intensity based on the first signal indicating that the infrared emitter Q is emitting light, the first ambient light data collected by the first light sensor circuit, and / or the second ambient light data collected by the second light sensor circuit. In this way, the ambient light intensity error caused by the infrared emitter Q emitting light can be effectively controlled.

[0100] Understandably, the above hardware design solves the problem of infrared light interference from the infrared light generation circuit interfering with the ambient light sensing circuit, thus improving the user experience.

[0101] In this embodiment of the disclosure, during the process of determining the ambient light intensity, the terminal device can jointly determine the ambient light intensity of the environment in which the terminal device is located based on the operation of the infrared generating circuit and the ambient light data collected in real time by different light sensing circuits. This ensures that the ambient light intensity can be determined even when the infrared generating circuit is working. Furthermore, the terminal device can flexibly determine the ambient light intensity based on the ambient light data collected by different light sensing circuits, thereby further reducing the interference of the infrared generating circuit on the light sensing circuit.

[0102] In some embodiments, the control circuit is configured to:

[0103] Based on the first signal, the weight of the first ambient light data is reduced, and,

[0104] When the infrared generating circuit is working, the ambient light intensity is determined based on the first ambient light data, the second ambient light data, and the weights.

[0105] In this embodiment of the disclosure, when the control circuit receives the first signal, it can reduce the weight of the first ambient light data, and when the infrared generating circuit is working, it can determine the ambient light intensity based on the weight of the first ambient light data, the second ambient light data, and the first ambient light data.

[0106] Here, the weight of the first ambient light data can refer to the proportion of the contribution of the first ambient light data to the ambient light intensity.

[0107] Understandably, both the first and second ambient light data are detected by the light sensing circuits on the terminal device. In normal usage scenarios, the first and second ambient light data can be obtained based on the same ambient light conditions, and their contributions to the ambient light intensity should be equal or similar. For example, the weight of both the first and second ambient light data could be 0.5, and the terminal device could obtain the ambient light intensity by summing and averaging the first and second ambient light data. In this way, the terminal device can integrate data collected by multiple light sensing circuits to obtain a more accurate ambient light intensity. However, when the infrared generating circuit is operating, the first ambient light data collected by the first light sensing circuit near the infrared generating circuit will be affected by infrared light and cannot represent the true ambient light data. In this case, if the terminal device still uses the original weight of the first ambient light data to determine the ambient light intensity, an error will be introduced into the ambient light intensity determination process.

[0108] Understandably, terminal devices can reduce the error caused by the first ambient light data in determining the ambient light intensity by reducing the weight of the first ambient light data, thereby obtaining a more accurate ambient light intensity.

[0109] In some embodiments, the weight of the first ambient light data can be a first value, and the weight after reduction can be a second value. The second value is less than the first value.

[0110] In some embodiments, the second value can be zero.

[0111] Understandably, when the second value is less than the first value, but not zero, the terminal device can reduce the contribution of the first ambient light data to the ambient light intensity, thereby effectively reducing the influence of infrared light on the ambient light intensity. When the second value is zero, the first ambient light data does not participate in the calculation of ambient light intensity at all, thus completely eliminating the influence of infrared light on the ambient light intensity.

[0112] In some embodiments, the first signal can instruct the infrared generating circuit to start operating, and the infrared generating circuit can be considered to be operating within a first preset time period after the control circuit receives the first signal. Thus, after receiving the first signal, the control circuit can determine the ambient light intensity within the first preset time period based on the first ambient light data, the second ambient light data, and weights.

[0113] In some embodiments, the specific value of the first duration depends on the operating characteristics of the infrared generating circuit, the response time of the light sensing circuit, and the system requirements; this disclosure does not impose specific limitations on these aspects. In one example, the first duration may be 50 milliseconds (ms).

[0114] In this embodiment of the disclosure, the control circuit can reduce or even eliminate the influence of infrared light on the ambient light intensity by reducing the weight of the first ambient light data, thereby effectively avoiding the "screen flickering" phenomenon caused by sudden changes in ambient light intensity and improving the user experience.

[0115] In some embodiments, the control circuit is configured to determine the ambient light intensity based on second ambient light data when the infrared generating circuit is operating, according to a first signal.

[0116] In this embodiment of the disclosure, within a first preset time period (equivalent to the operating time of the infrared generating circuit) after receiving the first signal, the control circuit can directly use the second ambient light data to determine the ambient light intensity. In this way, the influence of infrared light on the ambient light intensity can be completely eliminated.

[0117] In one embodiment, the control circuit may be a control circuit located inside the system-on-a-chip.

[0118] For example, the control circuit can be as follows Figure 7 As shown, the detection circuit is integrated within a system-on-a-chip (SoC). Thus, the detection circuit in the SoC detects the PWM waveform of the drive signal via the second interface GPIO2 and informs the control circuit in the SoC that an infrared emitter Q is emitting light. The control circuit can then determine the ambient light intensity based on the second ambient light data when the infrared emission circuit is operating. This avoids using the inaccurate first ambient light data to determine the ambient light intensity, thereby improving the accuracy of ambient light intensity determination.

[0119] In some embodiments, the control circuit includes: a first control circuit;

[0120] The first control circuit is configured to pause the reporting of the first ambient light data when the infrared generating circuit is operating, based on the first signal.

[0121] In this embodiment of the disclosure, when the control circuit includes a first control circuit, the first control circuit may be a control circuit located inside the photosensitive chip.

[0122] For example, the first control circuit can be as follows: Figure 8 As shown, the light sensing circuit and detection circuit are both integrated within the light sensor chip 60. Thus, the detection circuit in the light sensor chip 60 detects the drive signal PWM through the second interface GPIO2 and informs the control circuit (first control circuit) in the light sensor chip 60 that an infrared emitter Q is emitting light. The first control circuit can then pause reporting the first ambient light data collected by the first light sensing circuit in the light sensor chip 60. This prevents the infrared emitter Q from emitting light, thus avoiding incorrect brightness level adjustments to the display screen due to changes in light sensitivity. When the infrared emitter Q stops emitting light, the first control circuit can control the first light sensing circuit to perform normal calculation and reporting of ambient light data.

[0123] In one embodiment, the first control circuit suspends reporting the first ambient light data for a first preset time period after receiving the first signal. In this way, the upper-level control circuit (the control circuit in the upper-level system or processor, such as the control circuit in the system-on-a-chip) cannot receive the first ambient light data within the first preset time period. The upper-level control circuit can then control the use of the second ambient light data to determine the ambient light intensity.

[0124] Understandably, the first preset duration is sufficient for the drive signal to drive the infrared generating circuit to complete the infrared light emission. The first control circuit suspends the reporting of ambient light data within the first preset duration, which can reduce the interference of the infrared generating circuit to the first light sensing circuit, thereby ensuring that the light sensing circuit does not report ambient light data affected by infrared light.

[0125] In some embodiments, the first control circuit may start a timer, the timer being set to pause reporting for a first preset duration. During the timer's operation, the first control circuit will pause receiving and reporting first ambient light data from the first light sensing circuit.

[0126] In some embodiments, the detection circuit and the first control circuit can be integrated together, thereby facilitating the detection circuit to quickly execute the control logic to pause the reporting of ambient light data collected by the light sensing circuit after detecting that the infrared generating circuit is working, thus improving the stability of the system.

[0127] In this embodiment of the disclosure, the control circuit can pause the reporting of ambient light data to reduce the interference of the infrared generating circuit to the light sensing circuit, thereby avoiding erroneous adjustment of the display brightness of the screen.

[0128] In some embodiments, the control circuit includes: a first control circuit;

[0129] The first control circuit is configured to obtain historical ambient light data corresponding to the first ambient light data based on the first signal, and...

[0130] When the infrared light generating circuit is working, it reports historical ambient light data, which is the ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

[0131] In this embodiment of the disclosure, when the control circuit includes a first control circuit, the first control circuit may be a control circuit located inside the photosensitive chip.

[0132] For example, the first control circuit can be as follows: Figure 8 As shown, the light sensing circuit and detection circuit are both integrated within the light sensor chip 60. Thus, the detection circuit in the light sensor chip 60 detects the drive signal PWM through the second interface GPIO2 and informs the control circuit (first control circuit) in the light sensor chip 60 that an infrared emitter Q is emitting light. The first control circuit can then obtain and report historical ambient light data through the first light sensing circuit. This prevents the infrared emitter Q from emitting light, which could cause changes in light sensitivity and lead to incorrect brightness adjustments of the display screen. When the infrared emitter Q stops emitting light, the first control circuit can control the first light sensing circuit to perform normal calculation and reporting of ambient light data.

[0133] In some embodiments, after receiving the first signal, the first control circuit can obtain historical ambient light data corresponding to the first ambient light data, and report the historical ambient light data within a first preset time period after receiving the first signal, that is, report the ambient light data collected by the first light sensing circuit before collecting the first ambient light data. Thus, the upper-level control circuit cannot receive the first ambient light data within the first preset time period, and can determine the ambient light intensity based on the second ambient light data.

[0134] In one embodiment, the historical ambient light data may be the ambient light data at the moment preceding the level transition.

[0135] Understandably, the first preset duration is sufficient for the drive signal to drive the infrared generating circuit to complete the infrared light emission. The first control circuit reports historical ambient light data within the first preset duration, which can reduce the interference of the infrared generating circuit on the first light sensing circuit, thereby ensuring that the light sensing circuit reports ambient light data that is not affected by infrared light.

[0136] In some embodiments, the first control circuit can start a timer, and the timer is set to pause reporting for a first preset duration. During the timer's operation, the first control circuit can obtain ambient light data, i.e., historical ambient light data, from the first light sensing circuit before the driving signal undergoes a level transition. The first control circuit can also report the historical ambient light data to the upper-level control circuit. Here, the first control circuit can achieve the reporting of historical ambient light data through serial communication, parallel communication, or other data transmission methods.

[0137] In this embodiment of the disclosure, the first control circuit can realize the function of reporting historical ambient light data, so as to reduce the interference of the infrared generating circuit to the light sensing circuit, thereby avoiding the erroneous adjustment of the display brightness of the display screen.

[0138] In some embodiments, the control circuit includes: a second control circuit;

[0139] The second control circuit is configured to determine the ambient light intensity based on historical ambient light data and second ambient light data.

[0140] In this embodiment of the disclosure, when the control circuit includes a second control circuit, the second control circuit may be a control circuit located inside a system-on-a-chip.

[0141] For example, the first control circuit can be as follows: Figure 8 As shown, the light sensing circuit and detection circuit are both integrated within the light sensor chip 60. The second control circuit can be integrated into a system-on-a-chip (SoC). Thus, the detection circuit in the light sensor chip 60 detects the drive signal PWM through the second interface GPIO2 and informs the control circuit (first control circuit) in the light sensor chip 60 that an infrared emitter Q is emitting light. The first control circuit can report historical ambient light data collected by the first light sensing circuit. The second control circuit can determine the ambient light intensity based on the historical ambient light data and the second ambient light data. In this way, the first light sensing circuit will not report incorrect ambient light data, improving the accuracy of ambient light intensity calculation.

[0142] In some embodiments, the second control circuit may be a higher-level control circuit than the first control circuit. Thus, when the first control circuit reports historical ambient light data within a first preset time period after receiving the first signal, the second control circuit can determine the ambient light intensity based on the historical ambient light data and the second ambient light data.

[0143] In some embodiments, the terminal device includes: an ambient light sensor, a first light sensing circuit, and a first control circuit located within the ambient light sensor.

[0144] In this embodiment, the first light sensing circuit and the first control circuit can be located within the ambient light sensor near the infrared light generating circuit, facilitating the first control circuit to quickly acquire the first ambient light data collected by the first light sensing circuit. Thus, the first control circuit can, based on a first signal, either not report the first ambient light data or report historical ambient light data, thereby improving the accuracy of the terminal device in determining the ambient light intensity.

[0145] In some embodiments, the detection circuit may also be located within the ambient light sensor, thereby enabling the ambient light sensor to integrate multiple functions and effectively improve the performance of the ambient light sensor.

[0146] In this embodiment of the present disclosure, the ambient light sensor integrates the first light sensing circuit and the first control circuit on-chip, thereby achieving an integrated setting of sensing and control and improving the integration of the ambient light sensor.

[0147] In some embodiments, the control circuit is further configured to send a control signal to the first light sensing circuit according to the first signal, wherein the control signal is used to instruct the first light sensing circuit to suspend the acquisition of ambient light data when the infrared generating circuit is working.

[0148] In this embodiment of the present disclosure, when the infrared light generating circuit is activated by a driving signal, the control circuit can send a control signal to the first light sensing circuit. After receiving the control signal, the first light sensing circuit can pause the acquisition of ambient light data for a first preset duration according to the instruction of the control signal.

[0149] In some embodiments, the first light sensing circuit includes a photosensitive element for sensing ambient light. The first light sensing circuit can pause the acquisition of ambient light data for a first preset time period by turning off the power supply of the photosensitive element, disconnecting the output signal of the photosensitive element, or reducing the power consumption of the photosensitive element.

[0150] In some embodiments, the first light sensing circuit includes a light intensity calculation circuit. The light intensity calculation circuit is connected to a photosensitive element and is used to calculate the light intensity (i.e., lux) based on the output signal of the photosensitive element. The first light sensing circuit can pause the acquisition of ambient light data for a first preset time period by stopping the operation of the light intensity calculation circuit.

[0151] In this embodiment, the first light sensing circuit can pause the acquisition of ambient light data upon receiving a control signal. This effectively reduces energy consumption, minimizes circuit wear and aging, and extends the circuit's lifespan.

[0152] In some embodiments, the control circuit is further configured to determine the ambient light intensity based on first ambient light data and second ambient light data when the first signal is not received.

[0153] In this embodiment of the disclosure, the control circuit can determine the ambient light intensity based on the first ambient light data and the second ambient light data when it does not receive the first signal, i.e., when it determines that the first ambient light data and the second ambient light data are reliable data.

[0154] In some embodiments, the control circuit may determine the ambient light intensity based on the first ambient light data and the second ambient light data if it does not receive the first signal within a second preset time period.

[0155] Understandably, if the control circuit does not receive the first signal within the second preset time period, it can determine that the infrared generating circuit has not emitted infrared light within the second time period, or that the infrared generating circuit has completed emitting infrared light. Based on this, the control circuit can use the first ambient light data collected by the first light sensing circuit and the second ambient light data collected by the second light sensing circuit to calculate the ambient light intensity. At this time, the ambient light data used to calculate the ambient light intensity is more diverse, thereby improving the accuracy of the ambient light intensity calculation.

[0156] In some embodiments, in response to the infrared generating circuit not operating, the detection circuit may send a second signal to the control circuit. The second signal is used to indicate that the drive signal has not changed, that is, the infrared generating circuit is not driven to operate.

[0157] Understandably, the detection circuit can detect the drive signal in real time to determine whether the drive signal is driving the infrared generating circuit to work. When the infrared generating circuit is not working, that is, when the infrared generating circuit does not emit infrared light under the drive signal, the detection circuit can send a second signal to the control circuit so that the control circuit can determine that the infrared generating circuit is not emitting infrared light based on the second signal.

[0158] In some embodiments, when the control circuit receives a second signal sent by the detection circuit and the second signal lasts for a second preset duration, it can determine to use the first ambient light data collected by the first light sensing circuit for calculating the ambient light intensity.

[0159] Understandably, when the infrared generating circuit does not emit infrared light under the action of the driving signal, the ambient light received by the first light sensing circuit does not include infrared light, thus the ambient light data collected by the first light sensing circuit is accurate. Therefore, the control circuit can determine to use the first ambient light data collected by the first light sensing circuit for calculating the ambient light intensity.

[0160] In some embodiments, the second preset duration can be set according to actual needs, and this disclosure does not limit this. In one embodiment, the second preset duration is equal to the first preset duration. In another embodiment, the second preset duration is less than the first preset duration.

[0161] In this embodiment of the disclosure, when the infrared generating circuit is not working, the first ambient light data detected by the first light sensing circuit can be used to determine the ambient light intensity, thereby meeting the user's usage needs.

[0162] Secondly, embodiments of this disclosure provide a signal processing method. Figure 9 This is a flowchart illustrating a signal processing method according to an exemplary embodiment of the present disclosure. Figure 1 .like Figure 9 As shown, the signal processing methods include:

[0163] Step S901: Receive a first signal, wherein the first signal is used to indicate that the infrared generating circuit is working;

[0164] Step S902: Determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit.

[0165] In the embodiments of this disclosure, the signal processing method can be applied to the terminal device as described in any of the embodiments of the first aspect, so that when the terminal device is used in an infrared remote control scenario, it can actively reduce the interference of the infrared generating circuit to the light sensing circuit. The specific structure of the terminal device can be found in the descriptions of one or more of the above embodiments, and will not be repeated here for the sake of brevity.

[0166] Understandably, the first signal in this embodiment can be a signal sent by the detection circuit to the control circuit when it detects that the infrared generating circuit is working. Specifically, the detection circuit can detect the drive signal driving the infrared generating circuit under the control of a drive signal detection command, thereby determining whether the infrared generating circuit is working.

[0167] In some embodiments, the drive signal detection instruction can be a system default instruction, i.e., whether the terminal device determines the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit originates from the system's default operation. In this embodiment, the drive signal detection instruction can also be a user-controlled instruction, i.e., whether the terminal device determines the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit originates from the user's operation. Thus, while enabling the terminal device to actively reduce infrared tube interference, the user experience can be improved.

[0168] Understandably, when a change in the driving signal is detected, it can be determined that the infrared generating circuit is operating and generating infrared light. At this time, the terminal device determines the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit. On the one hand, this ensures that the ambient light intensity can be determined even when the infrared generating circuit is operating; on the other hand, it also minimizes the influence of the infrared light generated by the infrared generating circuit on the ambient light data, thereby enhancing the accuracy of the ambient light intensity calculation.

[0169] In some embodiments, step S902 may include: determining the ambient light intensity based on a first signal, and first ambient light data collected by the first light sensing circuit and / or second ambient light data collected by the second light sensing circuit; wherein the first light sensing circuit is disposed adjacent to the infrared generating circuit; the first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is working; and the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is working.

[0170] In some embodiments, step S902 may include: reducing the weight of the first ambient light data according to the first signal; and determining the ambient light intensity according to the first ambient light data, the second ambient light data, and the weight when the infrared generating circuit is working.

[0171] In some embodiments, step S902 may include: determining the ambient light intensity based on second ambient light data when the infrared generating circuit is operating, according to the first signal.

[0172] In some embodiments, step S902 may include: pausing the reporting of first ambient light data when the infrared generating circuit is operating, based on the first signal.

[0173] In some embodiments, step S902 may include: obtaining historical ambient light data corresponding to the first ambient light data according to the first signal, and reporting the historical ambient light data when the infrared generating circuit is working, wherein the historical ambient light data is ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

[0174] In some embodiments, step S902 may further include: determining the ambient light intensity based on historical ambient light data and second ambient light data.

[0175] In some embodiments, the method further includes: sending a control signal to a first light sensing circuit according to a first signal, wherein the control signal is used to instruct the first light sensing circuit to suspend the acquisition of ambient light data when the infrared generating circuit is working.

[0176] In some embodiments, the method further includes: determining the ambient light intensity based on first ambient light data and second ambient light data when no first signal is received.

[0177] It should be noted that the above signal processing method can be implemented in the terminal device disclosed in the first aspect. For the specific implementation process and steps, please refer to the description in any embodiment of the first aspect. For the sake of brevity, it will not be repeated here.

[0178] Below, in conjunction with Figure 8 The structure shown is used to illustrate the signal processing method in the embodiments of this disclosure with a specific example. Figure 10 This is a flowchart illustrating a signal processing method according to an exemplary embodiment of the present disclosure. Figure 2 .like Figure 10 As shown, signal processing methods may include:

[0179] Step S1001: The signal processing method begins execution.

[0180] In step S1002, the system-on-a-chip (SOC) generates a drive signal PWM.

[0181] Understandably, the drive signal PWM is used to drive the infrared emitting diode Q in the infrared generating circuit 41 to emit light. Here, the drive signal PWM can be a PWM pulse signal. When the user uses the infrared system in the terminal device, the drive signal PWM can be changed into a square wave.

[0182] In step S1003, the detection circuit in the photosensitive chip 60 detects the drive signal PWM through the second interface GPIO2.

[0183] Here, the second interface GPIO2 can be the SYNC pin.

[0184] Step S1004: Determine whether the drive signal PWM has undergone a level transition. If yes, proceed to step S1005; otherwise, return to step S1006.

[0185] Understandably, level transitions can be the rising / falling edges of a square wave generated by a PWM pulse signal.

[0186] Step S1005: Control the light sensing circuit not to report ambient light data within the first time period after the level transition.

[0187] Step S1006: Control the light sensing circuit to report ambient light data.

[0188] In this embodiment of the present disclosure, when the driving signal drives the infrared light generating circuit to emit infrared light, the light sensing circuit is controlled not to report ambient light data, thereby reducing the interference of infrared light on the ambient light collected by the light sensing circuit, thereby reducing the impact of erroneous ambient light data on the display brightness of the screen and improving the user experience.

[0189] Thirdly, embodiments of this disclosure provide a signal processing apparatus. Figure 11 This is a schematic diagram illustrating a signal processing apparatus according to an exemplary embodiment of the present disclosure. Figure 11 As shown, the signal processing device 1100 includes:

[0190] The receiving module 1101 is configured to receive a first signal, wherein the first signal is used to indicate that the infrared generating circuit is working;

[0191] The control module 1102 is configured to determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit.

[0192] In some embodiments, the control module 1102 is configured to determine the ambient light intensity based on a first signal, and first ambient light data collected by the first light sensing circuit and / or second ambient light data collected by the second light sensing circuit; wherein the first light sensing circuit is arranged adjacent to the infrared generating circuit; the first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is working; and the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is working.

[0193] In some embodiments, the control module 1102 is configured to reduce the weight of the first ambient light data according to the first signal; and to determine the ambient light intensity according to the first ambient light data, the second ambient light data, and the weight when the infrared generating circuit is working.

[0194] In some embodiments, the control module 1102 is configured to determine the ambient light intensity based on the second ambient light data when the infrared generating circuit is operating, according to the first signal.

[0195] In some embodiments, the control module 1102 is configured to pause reporting the first ambient light data when the infrared generating circuit is operating, based on the first signal.

[0196] In some embodiments, the control module is configured to obtain historical ambient light data corresponding to the first ambient light data based on the first signal, and to report the historical ambient light data when the infrared generating circuit is working, wherein the historical ambient light data is ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

[0197] In some embodiments, the control module is further configured to determine the ambient light intensity based on historical ambient light data and second ambient light data.

[0198] In some embodiments, the control module 1102 is further configured to send a control signal to the first light sensing circuit according to the first signal, wherein the control signal is used to instruct the first light sensing circuit to suspend the acquisition of ambient light data when the infrared generating circuit is working.

[0199] In some embodiments, the control module 1102 is further configured to determine the ambient light intensity based on the first ambient light data and the second ambient light data when the first signal is not received.

[0200] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0201] Fourthly, embodiments of this disclosure provide a terminal device. Figure 12 This is a structural block diagram of a terminal device according to an exemplary embodiment of the present disclosure. For example, the terminal device 40 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0202] Reference Figure 12 The terminal device 40 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input / output (I / O) interface 1212, sensor component 1214, and communication component 1216.

[0203] Processing component 1202 typically controls the overall operation of terminal device 40, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 1202 may include one or more processors 1220 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1202 may include one or more modules to facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202.

[0204] Memory 1204 is configured to store various types of data to support operation on terminal device 40. Examples of such data include at least one of the following: instructions for any application or method operating on terminal device 40, contact data, phonebook data, messages, pictures, and videos. Memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0205] Power supply component 1006 provides power to various components of terminal device 40. Power supply component 1206 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal device 40.

[0206] Multimedia component 1208 includes a screen that provides an output interface between terminal device 40 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen may be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1208 includes a front-facing camera and / or a rear-facing camera. When terminal device 40 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0207] Audio component 1210 is configured to output and / or input audio signals. For example, audio component 1210 includes a microphone (MIC) configured to receive external audio signals when terminal device 40 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1204 or transmitted via communication component 1216. In some embodiments, audio component 1210 also includes a speaker for outputting audio signals.

[0208] I / O interface 1212 provides an interface between processing component 1202 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0209] Sensor assembly 1214 includes one or more sensors for providing state assessments of various aspects of terminal device 40. For example, sensor assembly 1214 may detect the on / off state of terminal device 40, the relative positioning of components such as the display and keypad of terminal device 40, changes in the position of terminal device 40 or a component of terminal device 40, the presence or absence of user contact with terminal device 40, orientation or acceleration / deceleration of terminal device 40, and temperature changes of terminal device 40. Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1214 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 1014 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.

[0210] Communication component 1216 is configured to facilitate wired or wireless communication between terminal device 40 and other devices. Terminal device 40 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 1216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1216 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.

[0211] In an exemplary embodiment, the terminal device 40 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0212] Fifthly, embodiments of this disclosure also provide a non-transitory computer-readable storage medium including instructions, such as a memory 1204 including executable instructions or a computer program, which can be executed by the processor 1220 of the terminal device 40 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0213] In a sixth aspect, embodiments of this disclosure also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of the method described in any of the second aspects of this disclosure.

[0214] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0215] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A terminal device, characterized in that, include: The system includes an infrared generating circuit, a light sensing circuit, a detection circuit, and a control circuit, wherein the detection circuit is connected to both the infrared generating circuit and the control circuit. The infrared generating circuit is configured to operate under the action of a driving signal; The detection circuit is configured to detect the drive signal and, in response to the operation of the infrared generating circuit, send a first signal to the control circuit. The control circuit is configured to determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit.

2. The terminal device according to claim 1, characterized in that, The light sensing circuit includes: a first light sensing circuit and a second light sensing circuit, wherein the first light sensing circuit is disposed adjacent to the infrared generating circuit; The control circuit is configured to determine the ambient light intensity based on the first signal, and the first ambient light data collected by the first light sensing circuit and / or the second ambient light data collected by the second light sensing circuit. Wherein, the first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is working; the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is working.

3. The terminal device according to claim 2, characterized in that, The control circuit is configured as follows: Based on the first signal, the weight of the first ambient light data is reduced, and, When the infrared generating circuit is working, the ambient light intensity is determined based on the first ambient light data, the second ambient light data, and the weight.

4. The terminal device according to claim 2, characterized in that, The control circuit is configured to determine the ambient light intensity based on the second ambient light data when the infrared generating circuit is operating, according to the first signal.

5. The terminal device according to claim 2, characterized in that, The control circuit includes: a first control circuit; The first control circuit is configured to pause reporting the first ambient light data when the infrared generating circuit is operating, based on the first signal.

6. The terminal device according to claim 2, characterized in that, The control circuit includes: a first control circuit; The first control circuit is configured to obtain historical ambient light data corresponding to the first ambient light data based on the first signal, and... When the infrared generating circuit is working, it reports the historical ambient light data, wherein the historical ambient light data is the ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

7. The terminal device according to claim 6, characterized in that, The control circuit further includes: a second control circuit; The second control circuit is configured to determine the ambient light intensity based on the historical ambient light data and the second ambient light data.

8. The terminal device according to claim 5 or 6, characterized in that, The terminal device includes: an ambient light sensor, wherein the first light sensing circuit and the first control circuit are located within the ambient light sensor.

9. The terminal device according to claim 2, characterized in that, The control circuit is further configured to send a control signal to the first light sensing circuit according to the first signal, wherein the control signal is used to instruct the first light sensing circuit to suspend the acquisition of ambient light data when the infrared generating circuit is working.

10. The terminal device according to claim 2, characterized in that, The control circuit is further configured to determine the ambient light intensity based on the first ambient light data and the second ambient light data when the first signal is not received.

11. The terminal device according to claim 1, characterized in that, The drive signal input terminal of the infrared generating circuit and the input pin of the detection circuit are electrically connected; the drive signal input terminal is used to receive the drive signal. The detection circuit is further configured to detect the drive signal through the input pin when the drive signal is input to the control signal input terminal.

12. A signal processing method, characterized in that, Applied to terminal devices, including: Receive a first signal, wherein the first signal is used to indicate that the infrared generating circuit is working; The ambient light intensity of the environment in which the terminal device is located is determined based on the first signal and the ambient light data collected by the light sensing circuit.

13. The method according to claim 12, characterized in that, The step of determining the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit includes: The ambient light intensity is determined based on the first signal, the first ambient light data collected by the first light sensing circuit, and / or the second ambient light data collected by the second light sensing circuit. The first light sensing circuit and the infrared generating circuit are arranged adjacent to each other; the first ambient light data is the ambient light data collected by the first light sensing circuit when the infrared generating circuit is working; the second ambient light data is the ambient light data collected by the second light sensing circuit when the infrared generating circuit is working.

14. The method according to claim 13, characterized in that, The step of determining the ambient light intensity based on the first signal, and the first ambient light data collected by the first light sensing circuit and / or the second ambient light data collected by the second light sensing circuit, includes: Based on the first signal, reduce the weight of the first ambient light data; When the infrared generating circuit is working, the ambient light intensity is determined based on the first ambient light data, the second ambient light data, and the weight.

15. The method according to claim 13, characterized in that, The step of determining the ambient light intensity based on the first signal, and the first ambient light data collected by the first light sensing circuit and / or the second ambient light data collected by the second light sensing circuit, includes: Based on the first signal, when the infrared generating circuit is operating, the ambient light intensity is determined based on the second ambient light data.

16. The method according to claim 13, characterized in that, The step of determining the ambient light intensity based on the first signal, and the first ambient light data collected by the first light sensing circuit and / or the second ambient light data collected by the second light sensing circuit, includes: Based on the first signal, when the infrared generating circuit is working, the reporting of the first ambient light data is paused.

17. The method according to claim 13, characterized in that, The step of determining the ambient light intensity based on the first signal, and the first ambient light data collected by the first light sensing circuit and / or the second ambient light data collected by the second light sensing circuit, includes: Based on the first signal, obtain the historical ambient light data corresponding to the first ambient light data, and... When the infrared generating circuit is working, it reports the historical ambient light data, wherein the historical ambient light data is the ambient light data collected by the first light sensing circuit before collecting the first ambient light data.

18. The method according to claim 17, characterized in that, The step of determining the ambient light intensity based on the first signal, and the first ambient light data collected by the first light sensing circuit and / or the second ambient light data collected by the second light sensing circuit, further includes: The ambient light intensity is determined based on the historical ambient light data and the second ambient light data.

19. The method according to claim 13, characterized in that, The method further includes: Based on the first signal, a control signal is sent to the first light sensing circuit, wherein the control signal is used to instruct the first light sensing circuit to pause the acquisition of ambient light data when the infrared generating circuit is working.

20. The method according to claim 13, characterized in that, The method further includes: When the first signal is not received, the ambient light intensity is determined based on the first ambient light data and the second ambient light data.

21. A signal processing apparatus, characterized in that, include: A receiving module is configured to receive a first signal, wherein the first signal is used to indicate that the infrared generating circuit is working; The control module is configured to determine the ambient light intensity of the environment in which the terminal device is located based on the first signal and the ambient light data collected by the light sensing circuit.

22. A terminal device, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 12 to 20.

23. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 12 to 20 are implemented.

24. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 12 to 20.