Signal gain adjustment method and device of infrared touch frame and computer equipment

By adjusting the group gain of the infrared receivers in the infrared touch frame, the problem of large differences in the output signal strength of the infrared receivers was solved, improving signal uniformity and back-end processing performance.

CN116665428BActive Publication Date: 2026-07-10GUANGZHOU ZHONGYUAN INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU ZHONGYUAN INTELLIGENT TECH CO LTD
Filing Date
2023-05-29
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing infrared touch frames, the output signal strength of the infrared receiver varies greatly, affecting the backend processing performance.

Method used

By grouping the infrared receivers and adjusting the gain according to the transmission timing of different infrared transmitters, the signal strength of each group is kept within a preset range, reducing the signal strength difference between groups.

Benefits of technology

This achieves uniformity in the output signal of the infrared receiver, improves the effect of back-end processing, and facilitates secondary amplification or ADC sampling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116665428B_ABST
    Figure CN116665428B_ABST
Patent Text Reader

Abstract

The application relates to a signal gain adjusting method and device of an infrared touch frame and computer equipment, wherein infrared emitters are controlled to emit infrared signals at a rated emission gain level, and the received signals of each group of infrared receivers within the emission angle of the infrared emitters are separately subjected to gain adjustment, so that the signal intensity values of the adjusted several groups of received signals are all within a first preset range, the intensity difference of the infrared signals output by the infrared receivers of each group is reduced, the intensity of the infrared signals output by the infrared receivers is closer, and secondary amplification or ADC sampling and other treatments of the infrared receiving signals by the rear end are facilitated; in the application, a gain control pin of a controller is connected with a group of infrared receivers, and the controller adjusts the receiving gain of the group of infrared receivers through the gain control pin, so that the gain adjustment of the infrared receivers is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of infrared touch control technology, and in particular to a method, apparatus, computer device, and computer-readable storage medium for adjusting the signal gain of an infrared touch frame. Background Technology

[0002] The infrared touch frame includes multiple infrared transmitters and infrared receivers arranged in a relatively distributed manner. Under the control of the controller, the infrared transmitters are turned on in sequence and emit infrared signals. The corresponding infrared receivers are turned on in sequence and receive infrared signals under the control of the controller. The controller calculates whether a touch operation has occurred based on the changes in the infrared signals received by each infrared receiver.

[0003] When an infrared transmitter is turned on and emits an infrared signal, it adjusts the gain of the transmitted signal. Similarly, when an infrared receiver is turned on and receives an infrared signal, it adjusts the gain of the received signal. Currently, infrared transmitters typically use one gain value to adjust the transmitted signal, while infrared receivers use another gain value to adjust the received signal. Since there are usually multiple received signals, using the same gain value for adjustment can lead to significant differences between the output signals, which is detrimental to backend processing. Summary of the Invention

[0004] Based on this, this application provides a signal gain adjustment method, apparatus, computer device, and computer-readable storage medium for an infrared touch frame, which can adjust the received signal gain of the infrared receiver each time it is turned on, reduce the intensity difference of the output signal of the infrared receiver, make the intensity of the output signal of the infrared receiver more uniform each time it is turned on, and is more conducive to back-end processing.

[0005] In a first aspect, this application provides a method for adjusting the signal gain of an infrared touch frame, comprising the following steps:

[0006] An infrared transmitter is controlled to emit an infrared signal at a rated emission gain level, acquiring received signals from at least two groups of infrared receivers. The infrared receivers within the emission angle of the infrared transmitter are divided into at least two groups, with X adjacent infrared receivers forming one group, where X is the number of receivers in a group. The output of each group of infrared receivers is connected to a gain control pin of a controller. The controller outputs a receive gain signal through the gain control pin to adjust the receive gain of the output signal from that group of infrared receivers, including: the controller outputs a first gain adjustment signal to adjust the receive gain of one group of receivers, and the controller outputs a second gain adjustment signal to adjust the receive gain of the other group of receivers. For the same infrared receiver, when emitted by different infrared transmitters, the group to which the infrared receiver belongs is different, and therefore the gain adjustment signal used by the infrared receiver may not be the same.

[0007] For the received signal of each group of infrared receivers, the controller adjusts the gain according to the receiving gain level corresponding to that group of infrared receivers, so that the signal strength value of the received signal of the adjusted infrared receiver is within the first preset range, thereby reducing the intensity difference of the infrared signal output by each group of infrared receivers and making the intensity of the infrared signal output by the infrared receivers more similar, which facilitates the backend to perform secondary amplification or ADC sampling processing of the infrared received signal.

[0008] Secondly, this application provides a signal gain adjustment device for an infrared touch frame, comprising:

[0009] A signal acquisition module is used to control an infrared transmitter to emit infrared signals at a rated emission gain level and acquire the received signals from at least two groups of infrared receivers. The infrared receivers within the emission angle of the infrared transmitter are divided into at least two groups, with X adjacent infrared receivers forming one group, where X is the number of receivers in a group. The output terminal of each group of infrared receivers is connected to a gain control pin of a controller. The controller outputs a receive gain signal through the gain control pin to adjust the receive gain of the output signal of the group of infrared receivers, including: the controller outputs a first gain adjustment signal to adjust the receive gain of one group of received signals, and the controller outputs a second gain adjustment signal to adjust the receive gain of the other group of received signals. For the same infrared receiver, when emitted by different infrared transmitters, the group to which the infrared receiver belongs is different, and therefore the gain adjustment signal used by the infrared receiver may not be the same.

[0010] The gain adjustment module is used to adjust the received signal of each group of infrared receivers according to the corresponding receiving gain level of the infrared receivers by the controller, so that the signal strength value of the received signal of the infrared receivers after adjustment is within the first preset range, thereby reducing the intensity difference of the infrared signal output by each group of infrared receivers and making the intensity of the infrared signal output by the infrared receivers more similar, which is convenient for the backend to perform secondary amplification or ADC sampling processing of the infrared received signal.

[0011] Thirdly, this application provides a computer device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the infrared touch frame signal gain adjustment method as described in the first aspect above.

[0012] Fourthly, this application provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the infrared touch frame signal gain adjustment method as described in the first aspect above.

[0013] By adopting the above-mentioned technical solution of this application, by controlling the infrared transmitter to emit infrared signals at the rated emission gain level, the gain of the received signals received by each group of infrared receivers within the emission angle of the infrared transmitter is individually adjusted, so that the signal strength values ​​of the adjusted groups of received signals are all within a first preset range, reducing the intensity difference of the infrared signals output by each group of infrared receivers, making the intensity of the infrared signals output by the infrared receivers more similar, which facilitates the backend to perform secondary amplification or ADC sampling of the infrared received signals; in this application, the gain control pin of the controller is connected to a group of infrared receivers, and the controller adjusts the receiving gain of the group of infrared receivers through the gain control pin, making the gain adjustment of the infrared receivers more precise.

[0014] To better understand and implement this application, the technical solution is described in detail below with reference to the accompanying drawings. Attached Figure Description

[0015] Figure 1 This is a schematic diagram illustrating the working principle of an existing infrared touch frame.

[0016] Figure 2 A flowchart illustrating a signal gain adjustment method for an infrared touch frame provided in an embodiment of this application;

[0017] Figure 3 This is a schematic diagram of an infrared receiver group according to an embodiment of this application;

[0018] Figure 4 This is a schematic diagram of an application circuit according to an embodiment of this application;

[0019] Figure 5 This is a schematic diagram of another infrared receiver group according to an embodiment of this application;

[0020] Figure 6 This is a schematic diagram of the structure of a signal gain adjustment device for an infrared touch frame provided in an embodiment of this application;

[0021] Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0022] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present application are shown in the accompanying drawings, not all of them.

[0023] The following specific embodiments are provided to illustrate the technical solution of this application in detail. The working principle of the infrared touch frame is as follows: an infrared transmitter and an infrared receiver form an infrared light matrix. During operation, the infrared transmitter emits an infrared signal, and the infrared receiver receives the infrared signal within the angle covered by the infrared transmitter's emission. Each infrared transmitter and its corresponding infrared receiver are turned on sequentially, scanning and detecting in different directions. When a touch object blocks the infrared signal, the change in the infrared signal causes a change in the electrical signal output by the photoelectric detection circuit connected to the infrared receiver. The position of the touch object is located by processing the electrical signal.

[0024] Currently, most infrared touch frames use a one-to-many scanning method, meaning that for every infrared transmitter activated, multiple infrared receivers simultaneously activate to receive infrared signals, and all receivers use the same signal gain value. For example... Figure 1 As shown, infrared receivers 1-6 are synchronously activated to receive infrared signals emitted by their respective infrared transmitters. The distances and angles from infrared receivers 1-6 to the activated infrared transmitters are different, resulting in different signal strengths. For example, the signal from infrared receiver 4 is stronger than that from infrared receivers 1 and 6. However, infrared receivers 1-6 all use the same signal gain value, which leads to significant differences in the output signals of infrared receivers 1-6, which is not conducive to backend processing.

[0025] To address the aforementioned problems, this application creatively proposes a novel technical solution. Through design changes in hardware architecture and control logic, more precise gain adjustment between individual infrared receivers can be achieved without increasing costs, as detailed below:

[0026] In this application, multiple infrared receivers corresponding to each infrared transmitter are grouped. The grouping of infrared receivers can be based on user presets or determined during pre-scanning. For example, when an infrared transmitter is turned on once, six infrared receivers simultaneously receive the infrared signal emitted by that transmitter. These six infrared receivers are grouped according to the user's grouping requirements, and the gain of each group of infrared receivers is individually adjusted. This ensures that the signal strength values ​​of the adjusted groups of received signals are all within a first preset range, reducing the intensity differences of the infrared signals output by each group of infrared receivers. This makes the intensity of the infrared signals output by the infrared receivers more similar, facilitating secondary amplification or ADC sampling of the infrared received signals in the backend. Secondly, regarding grouping, for the same infrared receiver, the group it belongs to is different when emitting from different infrared transmitters, and therefore the gain adjustment used for that infrared receiver may also be different.

[0027] Please see Figure 2 , Figure 2 A flowchart illustrating a signal gain adjustment method for an infrared touch frame provided in this application embodiment includes the following steps:

[0028] S101: Control the infrared transmitter of the infrared touch frame to emit infrared signals at the rated emission gain level, and obtain the received signals of the at least two sets of infrared receivers; wherein, the infrared receivers within the emission angle of each infrared transmitter are divided into at least two groups, and the output terminal of each group of infrared receivers is connected to a gain control pin of the controller.

[0029] S102: For the received signal of each group of infrared receivers, the controller adjusts the gain according to the receiving gain level corresponding to that group of infrared receivers, so that the signal strength value of the received signal of the adjusted infrared receiver is within a first preset range.

[0030] The signal gain adjustment method for the infrared touch frame of this application controls the infrared transmitter to emit infrared signals at a rated emission gain level, and individually adjusts the gain of the received signals received by each group of infrared receivers within the emission angle of the infrared transmitter, so that the signal strength values ​​of the adjusted groups of received signals are all within a first preset range, reducing the intensity difference of the infrared signals output by each group of infrared receivers, making the intensity of the infrared signals output by the infrared receivers more similar, which facilitates the backend to perform secondary amplification or ADC sampling and other processing on the infrared received signals.

[0031] In this embodiment, "the infrared transmitter transmits infrared signals at its rated transmission gain level" specifically means that the infrared transmitter transmits at its rated maximum power.

[0032] The controller of this application is used to adjust the gain of an infrared receiver. Specifically, the controller may include multiple gain control pins, each corresponding to a group of infrared receivers. The controller outputs a receive gain signal through the gain control pin to adjust the receive gain of the output receive signal of the group of infrared receivers, so that the gain adjustment of the infrared receiver is more precise.

[0033] In step S101, depending on the control logic, it can be that the infrared transmitters of the infrared touch frame are turned on sequentially, and the infrared receivers corresponding to the infrared transmitters are controlled to receive synchronously; or it can be that during the lighting cycle of at least two sets of infrared receivers, all infrared transmitters within the receiving angle of the at least two sets of infrared receivers emit infrared signals in a preset order.

[0034] like Figure 1 As shown in this embodiment, the infrared touch frame includes an infrared transmitter AF and infrared receivers 1-6. The infrared transmitter AF is an infrared transmitter within the receiving angle of the infrared receivers 1-6. The infrared receivers 1-6 are simultaneously activated to receive infrared signals. The infrared signals can be emitted sequentially in the following order: first, control infrared transmitter A to emit infrared signals, then control infrared transmitter B to emit infrared signals, and so on, and finally control infrared transmitter F to emit infrared signals. Alternatively, in another embodiment, the infrared signals can be emitted sequentially in the following order: first, control infrared transmitter F to emit infrared signals, then control infrared transmitter D to emit infrared signals, and so on, and finally control infrared transmitter A to emit infrared signals.

[0035] In one embodiment, the step of acquiring the received signals from the at least two sets of infrared receivers includes:

[0036] When the infrared touch frame is in the target working mode and switches from the first infrared transmitter to the second infrared transmitter for transmission, the gain level of at least two sets of infrared receivers corresponding to the second infrared transmitter is switched to the receiving gain level corresponding to the second infrared transmitter, and the received signal of the at least two sets of infrared receivers is obtained.

[0037] In the target operating mode, multiple infrared receivers simultaneously turn on to receive signals, and multiple infrared transmitters within the receiving angle of the multiple infrared receivers emit infrared signals in a preset order.

[0038] When the infrared transmitters of the infrared touch frame are turned on in sequence, the infrared receivers and grouping methods corresponding to each infrared transmitter can be different. Each time an infrared transmitter is turned on, the receiving gain level of at least two groups of infrared receivers corresponding to that transmitter is switched to the receiving gain level corresponding to that transmitter, and the grouping gain of the corresponding infrared receivers is adjusted. When the next infrared transmitter is turned on, the preset grouping gain adjustment of the infrared receivers corresponding to that infrared transmitter is redefined.

[0039] In one embodiment, controlling the infrared transmitter to emit an infrared signal at a rated emission gain level and acquiring the received signals from the at least two sets of infrared receivers includes:

[0040] The i-th infrared transmitter in the infrared touch frame is controlled to emit an infrared signal at a rated emission gain level, and at least two sets of infrared receivers in the infrared touch frame corresponding to the i-th infrared transmitter are controlled to receive the infrared signal emitted by the i-th infrared transmitter; wherein, the at least two sets of infrared receivers corresponding to the i-th infrared transmitter in the infrared touch frame are different from the at least two sets of infrared receivers corresponding to the j-th infrared transmitter in the infrared touch frame.

[0041] Each infrared transmitter and its corresponding at least two sets of infrared receivers, as well as the gain values ​​corresponding to the at least two sets of infrared receivers, are in a one-to-one correspondence. Different infrared transmitters correspond to different sets of infrared receivers, and different sets of infrared receivers correspond to different gain values. Each set of infrared receivers has a different receiving gain level.

[0042] In one embodiment, controlling the i-th infrared transmitter in the infrared touch frame to emit an infrared signal at a rated emission gain level, and controlling at least two sets of infrared receivers corresponding to the i-th infrared transmitter in the infrared touch frame to receive the infrared signal emitted by the i-th infrared transmitter, includes:

[0043] When the infrared touch frame is in the target working mode, the i-th infrared transmitter in the infrared touch frame is controlled to emit an infrared signal at the rated emission gain level, and at least two sets of infrared receivers corresponding to the i-th infrared transmitter in the infrared touch frame are controlled to receive the infrared signal emitted by the i-th infrared transmitter; wherein, in the target working mode, multiple infrared receivers are simultaneously turned on to receive signals, and multiple infrared transmitters within the receiving angle of multiple infrared receivers emit infrared signals in a preset order.

[0044] Please see Figure 3This is a schematic diagram of an application circuit in one embodiment of this application. The application circuit includes an analog signal input terminal, MOSFETs QD1A, QD1B, QD2A, QD2B, QD3A, and QD3B, resistors R1-R6, and an MCU controller. The analog signal input terminal has six input channels, each representing an infrared signal received by an infrared receiver. Figure 3 In the specific solution, the six analog signals are divided into two groups, and the gain of each group is independently adjusted through two control pins of the MCU controller. The specific circuit is as follows:

[0045] The first terminal of the analog signal input is connected to the first terminal of resistor R1. The second terminal of resistor R1 is connected to the drain of MOSFET QD1A and the first sampling signal input terminal of the MCU controller. The gate of MOSFET QD1A is connected to the first receive gain output terminal of the MCU controller, and the source of MOSFET QD1A is grounded. The second terminal of the analog signal input is connected to the first terminal of resistor R2 and the second sampling signal input terminal of the MCU controller. The second terminal of resistor R2 is connected to the drain of MOSFET QD1B. The gate of MOSFET QD1B is connected to the first receive gain output terminal of the MCU controller. The source of transistor B is grounded; the third terminal of the analog signal input is connected to the first terminal of resistor R3, the second terminal of resistor R3 is connected to the drain of MOSFET QD2A and the third sampling signal input terminal of the MCU controller, the gate of MOSFET QD2A is connected to the first receive gain output terminal of the MCU controller, and the source of MOSFET QD2A is grounded; the fourth terminal of the analog signal input is connected to the first terminal of resistor R4, the second terminal of resistor R4 is connected to the drain of MOSFET QD2B and the fourth sampling signal input terminal of the MCU controller, the gate of MOSFET QD2B is connected to the second receive gain output terminal of the MCU controller, and the source of MOSFET QD2B is grounded. The analog signal input terminal 5 is connected to the first terminal of resistor R5. The second terminal of resistor R5 is connected to the drain of MOSFET QD3B and the fifth sampling signal input terminal of the MCU controller. The gate of MOSFET QD3B is connected to the second receive gain output terminal of the MCU controller. The source of MOSFET QD3B is grounded. The analog signal input terminal 6 is connected to the first terminal of resistor R6. The second terminal of resistor R6 is connected to the drain of MOSFET QD3A and the sixth sampling signal input terminal of the MCU controller. The gate of MOSFET QD3A is connected to the second receive gain output terminal of the MCU controller. The source of MOSFET QD3A is grounded.

[0046] The analog signal input terminal is used to output the received signals AD1-AD6 corresponding to the six infrared receivers. The received signals AD1-AD6 are respectively processed by the corresponding MOSFETs (QD1A, QD1B, QD2A, QD2B, QD3A, QD3B) for receiving gain adjustment before being output to the MCU controller. In this application, the received signals AD1-AD6 are divided into two groups of received signals, where AD1-AD3 is one group of received signals and AD4-AD6 is the other group of received signals. The MCU controller outputs the first gain adjustment signal RAGC1 to the MOSFETs QD1A, QD1B, and QD2A to adjust the receiving gain of the group of received signals AD1-AD3. The MCU controller receives the sampled signals ADC1-ADC3 obtained after adjustment. The MCU controller outputs the second gain adjustment signal RAGC2 to the MOSFETs QD2B, QD3A, and QD3B to adjust the receiving gain of the group of received signals AD4-AD6 to receive the sampled signals ADC4-ADC6 obtained after adjustment. It should be noted that when the analog signal input is switched from the first group of 6 infrared receivers to the second group of 6 infrared receivers, the MCU controller outputs the third gain adjustment signal and the fourth gain adjustment signal respectively for adjustment.

[0047] In different implementations, infrared receivers can be grouped according to their number, location distribution, or signal strength. For example, 100 infrared receivers can be divided into 10 groups of 10, and gain adjustment can be performed on the received signal of each group to improve gain adjustment efficiency. Alternatively, among the infrared receivers corresponding to the infrared transmitter that is currently activated, X adjacent infrared receivers can be selected sequentially as a group; when the number of remaining infrared receivers is less than X, the remaining infrared receivers are grouped together. For details, please refer to [link to relevant documentation]. Figure 4 , Figure 4 An embodiment of this application presents an infrared receiver grouping method, wherein the preset number of grouped infrared receivers X is 3, the number of activated infrared transmitters is 1, and the corresponding number of activated infrared receivers is 7. Then, among the 7 activated infrared receivers, three adjacent infrared receivers are selected sequentially as one group, and the remaining infrared receiver is selected as another group, resulting in a total of three groups. Note that the grouping process is either factory preset or determined during the pre-scanning process; this is merely an exemplary possible grouping method.

[0048] Please see Figure 5 , Figure 5This is a schematic diagram of another infrared receiver grouping method according to an embodiment of this application. In this case, one infrared transmitter is activated, corresponding to seven infrared receivers. These receivers are tubes a, b, c, d, e, f, and g, with corresponding output signal strengths of 25, 60, 95, 100, 94, 57, and 23, respectively. The preset fluctuation percentage Y is 10%. The energy strength of the output signal of tube a, 25, is selected sequentially as the reference value A. It is then determined whether the energy strength of the output signals of the other ungrouped infrared receivers is within [A]. (1-Y), A (1+Y)], that is, [25 0.9, 25 Within the interval of 1.1, the g-tube with an output signal energy intensity of 23 satisfies the condition, so the a-tube and g-tube are grouped together. Then, the next ungrouped b-tube is selected in sequence, and its output signal energy intensity of 60 is used as the reference value A. It can be determined that the f-tube satisfies the condition, so the b-tube and f-tube are grouped together. Similarly, the c-tube, d-tube, and e-tube are grouped together. Therefore, all the infrared emitters activated this time are divided into three groups. Group 1: [a, g], Group 2: [b, f], Group 3: [c, d, e].

[0049] In step S101, the infrared transmitter has several preset transmission gain levels, which are used to amplify the energy of the infrared signal emitted by the infrared transmitter. The higher the transmission gain level, the greater the amplification of the energy of the infrared signal emitted by the infrared transmitter; the lower the transmission gain level, the smaller the amplification of the energy of the infrared signal emitted by the infrared transmitter.

[0050] In this embodiment, when executing step S101, the maximum transmission gain level is used as the rated transmission gain level, and each infrared transmitter of the infrared touch frame is controlled to transmit infrared signals at the maximum transmission gain level, that is, to transmit at the maximum rated power.

[0051] During the scanning process, each infrared transmitter emits infrared signals at its maximum rated power, which can make the energy intensity received by the infrared receivers corresponding to different infrared transmitters as consistent as possible. Therefore, only the receiving gain level needs to be adjusted to achieve a more uniform output signal from the infrared receiver, eliminating the need to repeatedly adjust the transmission gain level of the infrared transmitter and the receiving gain level of the infrared receiver, thus simplifying the adjustment process.

[0052] On the other hand, the greater the intensity of the infrared signal emitted by the infrared transmitter, the less gain the corresponding infrared receiver can receive, which is equivalent to improving the signal-to-noise ratio of the output signal and making the adjustment of the receiver gain level more accurate.

[0053] In another embodiment, when performing step S101, the infrared emitter of the infrared touch frame is divided into several groups, and the infrared emitter in each group is controlled to emit infrared signals at the maximum emission gain level corresponding to that group.

[0054] The grouping method for the infrared emitters includes, but is not limited to: grouping all infrared emitters located on the X-axis into one group, and grouping all infrared emitters located on the Y-axis into another group.

[0055] Since the infrared transmitters located on the X-axis and Y-axis emit in perpendicular directions and are at different distances from their corresponding infrared receivers, in this embodiment, all infrared transmitters located on the X-axis are divided into one group and all infrared transmitters located on the Y-axis are divided into another group. Each group can be set with its own maximum emission gain setting for greater accuracy.

[0056] The grouping method of the infrared emitters can be set according to actual needs and is not limited to the above methods.

[0057] For step S101, when the infrared transmitter turns on to emit an infrared signal, its corresponding infrared receiver also turns on simultaneously to receive the infrared signal. For example... Figure 3 As shown, when infrared transmitter A is turned on to emit infrared signals, its corresponding infrared receivers 1-6 are also turned on to receive infrared signals at the same time.

[0058] For step S102, the preset transmission gain level of each infrared transmitter and the preset reception gain level of at least two sets of infrared receivers corresponding to that infrared transmitter can be determined during the factory self-test scan of the infrared touch frame or during self-test during use. The step of determining the reception gain level includes:

[0059] For the received signal of each group of infrared receivers, at least two preset receiving gain levels are traversed according to a preset level adjustment sequence, and the receiving gain level that meets the first condition is determined as the receiving gain level corresponding to the group of infrared receivers; wherein, the first condition is that the signal strength value of the received signal of the infrared receiver is within the first preset range.

[0060] The self-test scan can be performed by the infrared touch frame in specific application scenarios that are not in normal use, such as the self-test process before the infrared touch frame leaves the factory; or it can be performed by the infrared touch frame in normal use scenarios, such as self-test scan calibration performed before powering on or during the initialization process of powering on, or self-test scan calibration performed in the background during normal use when no touch object is detected, or self-test scan calibration performed when a change in the external environment is detected.

[0061] The self-test scan process typically includes several rounds of scanning. In each round, all infrared transmitters of the infrared touch frame are sequentially activated to emit infrared signals. Each time an infrared transmitter is activated, its corresponding infrared receiver is simultaneously activated to receive the emitted infrared signal. After several rounds of scanning are completed, the self-test scan ends. During the self-test scan, the signal gain of the infrared transmitters and / or receivers is adjusted to ensure the sensitivity of the infrared touch frame.

[0062] The infrared receiver has at least two receiving gain levels. The number of receiving gain levels can be reasonably set according to the required adjustment accuracy. When a higher adjustment accuracy is required, the receiving gain levels can be set to dozens, and each receiving gain level corresponds to a receiving gain value.

[0063] The receive gain setting is used to adjust the gain amplification of the received infrared signal by the infrared receiver. A higher receive gain setting amplifies the infrared signal received by the receiver by a greater factor, while a lower receive gain setting amplifies the infrared signal received by the receiver by a smaller factor. The intensity value of the received signal after adjustment can be obtained by multiplying the received signal intensity by the receive gain value.

[0064] For each group of received signals, the starting receiving gain level of the group of received signals can be determined first according to the maximum signal strength value, minimum signal strength value and average strength value of the group of received signals. The starting receiving gain level is used as the preset receiving gain level of the group. Then the gain of the group of received signals is adjusted so that the signal strength value of the received signal is infinitely close to the first preset range, until the signal strength value of the group of received signals is within the first preset range.

[0065] Alternatively, when the infrared receiver is first turned on, the received signal gain is adjusted according to a default receive gain level. This default receive gain level can be uniformly set to the lowest receive gain level. The default receive gain levels for each group can be the same or different. In this embodiment, for ease of adjustment, the default receive gain levels for all groups are uniformly set to the lowest receive gain level. Specifically, in one embodiment, the default receive gain level can be the lowest receive gain level. The adjustment order can be to sequentially increase the receive gain levels. The step of traversing at least two preset receive gain levels according to the preset adjustment order includes:

[0066] For the received signal of each group of infrared receivers, the receiving gain level of the received signal is increased sequentially according to the preset level adjustment sequence until the signal strength value of the received signal of the group is within the first preset range.

[0067] By gradually adjusting each group of infrared receivers starting from the lowest receiving gain setting, the adjustment of the receiving gain setting can be made more accurate.

[0068] Alternatively, in another embodiment, the step of traversing at least two preset gain levels according to a preset gain adjustment sequence for the received signal of each group of infrared receivers includes:

[0069] For the received signal of each group of infrared receivers, the receiving gain level of the received signal is reduced sequentially according to a preset adjustment order until the signal strength value of the received signal of the group is within the first preset range.

[0070] During each adjustment, the receiver gain of the group of received signals can be gradually adjusted by increasing or decreasing the receiver gain level by one or N levels until the signal strength values ​​of all received signals in the group are within the first preset range. At this point, the receiver gain value corresponding to the current receiver gain level is recorded and used as the receiver gain value for the group. The next time the signal is turned on, a receiver signal with a new energy intensity can be obtained directly using this receiver gain value. Here, N is a natural number.

[0071] In one embodiment, the receiving gain levels corresponding to each group of infrared receivers are distributed according to the bisection principle. The bisection principle involves continuously dividing an interval into two equal parts, decomposing a complex problem into multiple sub-problems, and obtaining the answer to the original problem by solving the sub-problems. In this embodiment, the receiving gain levels of the infrared receivers are distributed according to the bisection principle. By using the bisection method to divide the receiving gain levels into two equal parts, the most suitable receiving gain level is found.

[0072] Specifically, the step of adjusting the gain of each group of infrared receivers according to the corresponding gain level of the infrared receivers by the controller includes:

[0073] The controller determines the receiving gain level of each group of received signals based on the signal strength value of each group of received signals using a binary method and adjusts the gain so that the signal strength value of the received signal of the adjusted infrared receiver is within the first preset range.

[0074] Specifically, if the receiver gain level includes 7 receiver gain levels [1,7], the receiver gain level 4 located in the middle position can be determined according to the order of the receiver gain levels. The infrared receiver gain is adjusted based on the receiver gain level 4 located in the middle position. Then, the receiver gain level [1,3] or [5,7] is determined based on the difference between the signal strength of the received signal and the first preset range. Then, the receiver gain level 2 or 6 located in the middle position is obtained again to adjust the gain of the infrared receiver, thereby determining the final receiver gain level.

[0075] Compared to traditional gain adjustment methods, this application uses a binary method to determine the receiving gain level of each group of received signals, which is faster and can effectively improve the gain adjustment efficiency.

[0076] The step of adjusting the gain of each group of infrared receivers according to the corresponding gain level includes:

[0077] The gain is adjusted according to the receiving gain level corresponding to the infrared receiver in the group, so that the minimum and / or maximum signal strength values ​​of the received signals in the group after adjustment meet the second condition.

[0078] The second condition includes: the minimum signal strength value is greater than the lower limit of the first preset range and / or the maximum signal strength value is less than the upper limit of the first preset range.

[0079] Specifically, the steps of adjusting the gain for each group of received signals according to a preset receive gain level may include:

[0080] Obtain the minimum and maximum signal strength values ​​in each group of received signals;

[0081] The gain is adjusted according to the preset receiving gain level, so that the minimum signal strength value of the adjusted receiving signal is greater than the lower limit of the first preset range, and / or the maximum signal strength value of the adjusted receiving signal is less than the upper limit of the first preset range.

[0082] Adjusting the receiver gain level for each group of infrared receivers is to reduce the difference in output signal strength between groups, making the energy intensity of the output signals after gain adjustment more similar for different groups of infrared receivers, thus facilitating backend processing.

[0083] When the signal strength of the received signals in the same group differs greatly, it may be impossible to simultaneously satisfy the condition that the minimum signal strength value is greater than the lower limit of the first preset range and the maximum signal strength value is less than the upper limit of the first preset range. In this case, the condition that the minimum signal strength value is greater than the lower limit of the first preset range can be prioritized.

[0084] Specifically, the steps for adjusting the gain of each received signal according to a preset gain level include:

[0085] Obtain the minimum and maximum signal strength values ​​in each group of received signals;

[0086] The gain is adjusted according to the preset receiving gain level, so that the minimum signal strength value of the received signal after adjustment is greater than the lower limit of the first preset range.

[0087] In the actual implementation of the signal gain adjustment method for the infrared touch frame of this application, several groups of infrared transmitters of the infrared touch frame can be turned on sequentially in each round of self-test scan to emit infrared signals. Each time the infrared transmitter is turned on, its corresponding infrared receiver is also turned on. When turned on for the first time, each infrared receiver can be set to the same default receiving gain level. The gain of several groups of received signals is amplified by the default receiving gain level. The receiving gain level of several groups of received signals is adjusted according to the signal gain adjustment method for the infrared touch frame of this application until the signal strength value of all groups of received signals is within the first preset range. In the next round of self-test scan, the infrared transmitters of the infrared touch frame are turned on sequentially to emit infrared signals. Each time an infrared transmitter is turned on, its corresponding infrared receiver is also turned on. The received signals of each group are amplified by adjusting the new receiver gain level in the previous scan. The receiver gain level of each group is then adjusted again according to the output signal strength using the signal gain adjustment method of the infrared touch frame of this application. If the adjustment meets the termination condition, such as the number of times the receiver gain level is adjusted reaches the maximum value, the process ends.

[0088] In one embodiment, the signal gain adjustment method for the infrared touch frame may further include the following steps:

[0089] According to the preset transmission gain level sequence, adjust the transmission gain level of the infrared transmitter of each group so that the signal strength values ​​of the received signals of the adjusted groups are within the first preset range.

[0090] Adjusting the transmission gain level of each group's infrared transmitter can be achieved by sequentially decreasing the transmission gain level of each group's infrared transmitter, or by determining the transmission gain level of each group's signal based on the binary division method, thereby adjusting the gain of the infrared transmitter and improving the gain adjustment efficiency of the infrared transmitter.

[0091] In this application, the infrared transmitter is first controlled to emit infrared signals at the maximum transmission gain level. For each group of received signals, the gain is adjusted according to the preset receiving gain level so that the signal strength values ​​of the adjusted groups of received signals are within the first preset range. After the gain adjustment of the infrared receiver is completed, the transmission gain level of the infrared transmitter is adjusted so that while ensuring that the signal strength values ​​of the adjusted groups of received signals are within the first preset range, the energy loss of the infrared transmitter can be reduced, thus saving energy and improving energy efficiency.

[0092] After adjusting the signal gain according to the infrared touch frame signal gain adjustment method of this application, the grouping method of each infrared receiver and the already adjusted receiver gain level can be retained, so that there is no need to adjust repeatedly every time the device is turned on, which is very convenient.

[0093] Please see Figure 6 , Figure 6 A signal gain adjustment device 70 for an infrared touch frame provided in this application embodiment includes:

[0094] The signal acquisition module 701 is used to control the infrared transmitter to emit infrared signals at a rated emission gain level and acquire the received signals of at least two sets of infrared receivers; wherein the infrared receivers within the emission angle of the infrared transmitter are divided into at least two sets, and the output terminal of each set of infrared receivers is connected to a gain control pin of the controller.

[0095] The gain adjustment module 702 is used to adjust the received signal of each group of infrared receivers according to the corresponding gain level of the infrared receivers by the controller, so that the signal strength value of the received signal of the infrared receivers after adjustment is within a first preset range. It should be noted that the signal gain adjustment device for an infrared touch frame provided in the above embodiment is only an example of the above functional module division when executing a signal gain adjustment method for an infrared touch frame. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the signal gain adjustment device for an infrared touch frame and the signal gain adjustment method for an infrared touch frame provided in the above embodiment belong to the same concept, and the implementation process is detailed in the method embodiment, which will not be repeated here.

[0096] Please see Figure 7 , Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of this application. For example... Figure 7 As shown, the computer device 80 may include: a processor 801, a memory 802, and a computer program 803 stored in the memory 802 and executable on the processor 801; when the processor 801 executes the computer program 803, it implements the steps described in the first or second embodiment. The processor 801 may include one or more processing cores. The processor 801 connects to various parts within the computer device 80 using various interfaces and lines, and performs various functions and processes data of the computer device 80 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 802, and by calling data stored in the memory 802. Optionally, the processor 801 may employ Digital Signal Processing (DSP) or Field Programmable Gate Array (FPGA). The processor 801 can be implemented using at least one of the following hardware forms: a Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), and a modem. The processor 801 can integrate one or a combination of several of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip, not integrated into the processor 801. The storage 802 may include Random Access Memory (RAM) or Read-Only Memory (ROM). Only memory). Optionally, the storage device 802 may include a non-transitory computer-readable medium. transitorycomputer (A readable storage medium). Storage 802 can be used to store instructions, programs, code, code sets, or instruction sets. Storage 802 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, storage 802 may also be at least one storage device located remotely from the aforementioned processor 801.

[0097] This application also provides a computer storage medium that can store multiple instructions. These instructions are applicable to being loaded by a processor and executed by the method steps of the above embodiments. For details of the execution process, please refer to the specific description of the above embodiments, which will not be repeated here.

[0098] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0099] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0100] The embodiments described above are merely examples of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these modifications and improvements all fall within the protection scope of this application.

Claims

1. A method for adjusting the signal gain of an infrared touch frame, characterized in that, Includes the following steps: The infrared transmitter of the infrared touch frame emits an infrared signal at a rated emission gain level, acquiring received signals from at least two groups of infrared receivers. The infrared receivers within the emission angle of the infrared transmitter are divided into at least two groups, with X adjacent infrared receivers forming one group, where X is the number of receivers in a group. The output of each group of infrared receivers is connected to a gain control pin of the controller. The controller outputs a receive gain signal through the gain control pin to adjust the receive gain of the received signal output by that group of infrared receivers, including: the controller outputs a first gain adjustment signal to adjust the receive gain of one group of received signals, and the controller outputs a second gain adjustment signal to adjust the receive gain of the other group of received signals. For the same infrared receiver, when emitted by different infrared transmitters, the group to which the infrared receiver belongs is different, and therefore the gain adjustment signal used by the infrared receiver may not be the same. For the received signal of each group of infrared receivers, the controller adjusts the gain according to the receiving gain level corresponding to that group of infrared receivers, so that the signal strength values ​​of the received signals of at least two groups of infrared receivers after adjustment are within a first preset range, thereby reducing the intensity difference of the infrared signals output by each group of infrared receivers and making the intensity of the infrared signals output by the infrared receivers more similar, which facilitates the backend to perform secondary amplification or ADC sampling processing on the infrared received signals.

2. The signal gain adjustment method for an infrared touch frame according to claim 1, characterized in that, The receiving gain level is determined through a self-test scan of the infrared touch frame, and the steps for determining the receiving gain level include: For the received signal of each group of infrared receivers, at least two preset receiving gain levels are traversed according to a preset level adjustment sequence, and the receiving gain level that meets the first condition is determined as the receiving gain level corresponding to the group of infrared receivers; wherein, the first condition is that the signal strength value of the received signal of the infrared receiver is within the first preset range.

3. The signal gain adjustment method for an infrared touch frame according to claim 1, characterized in that, The receiving gain levels corresponding to each group of infrared receivers are distributed according to the dichotomy principle.

4. The signal gain adjustment method for an infrared touch frame according to claim 1, characterized in that, The step of adjusting the gain of each group of infrared receivers according to the corresponding gain level includes: The gain is adjusted according to the receiving gain level corresponding to the infrared receiver in the group, so that the minimum and / or maximum signal strength values ​​of the received signals in the group after adjustment meet the second condition.

5. The signal gain adjustment method for an infrared touch frame according to claim 4, characterized in that, The second condition includes: the minimum signal strength value is greater than the lower limit of the first preset range and / or the maximum signal strength value is less than the upper limit of the first preset range.

6. The signal gain adjustment method for an infrared touch frame according to claim 1, characterized in that, The rated transmit gain level includes the rated maximum transmit power.

7. The signal gain adjustment method for an infrared touch frame according to claim 1, characterized in that, The step of acquiring the received signals from at least two sets of infrared receivers includes: When the infrared touch frame is in the target working mode and switches from the first infrared transmitter to the second infrared transmitter for transmission, the gain level of at least two sets of infrared receivers corresponding to the second infrared transmitter is switched to the receiving gain level corresponding to the second infrared transmitter, and the received signals of the at least two sets of infrared receivers are obtained; wherein, in the target working mode, multiple infrared receivers are simultaneously turned on to receive signals, and multiple infrared transmitters within the receiving angle of multiple infrared receivers transmit infrared signals in a preset order.

8. The signal gain adjustment method for an infrared touch frame according to claim 1, characterized in that, The control of the infrared transmitter to emit infrared signals at a rated transmission gain level and to acquire the received signals from the at least two sets of infrared receivers includes: The i-th infrared transmitter in the infrared touch frame is controlled to emit an infrared signal at a rated emission gain level, and at least two sets of infrared receivers in the infrared touch frame corresponding to the i-th infrared transmitter are controlled to receive the infrared signal emitted by the i-th infrared transmitter; wherein, the at least two sets of infrared receivers corresponding to the i-th infrared transmitter in the infrared touch frame are different from the at least two sets of infrared receivers corresponding to the j-th infrared transmitter in the infrared touch frame.

9. The signal gain adjustment method for an infrared touch frame according to claim 8, characterized in that, The control of the i-th infrared transmitter in the infrared touch frame to emit an infrared signal at a rated emission gain level, and the control of at least two sets of infrared receivers corresponding to the i-th infrared transmitter in the infrared touch frame to receive the infrared signal emitted by the i-th infrared transmitter, includes: When the infrared touch frame is in the target working mode, the i-th infrared transmitter in the infrared touch frame is controlled to emit an infrared signal at the rated emission gain level, and at least two sets of infrared receivers corresponding to the i-th infrared transmitter in the infrared touch frame are controlled to receive the infrared signal emitted by the i-th infrared transmitter; wherein, in the target working mode, multiple infrared receivers are simultaneously turned on to receive signals, and multiple infrared transmitters within the receiving angle of multiple infrared receivers emit infrared signals in a preset order.

10. A signal gain adjustment device for an infrared touch frame, characterized in that, include: The signal acquisition module is used to control the infrared transmitter to emit infrared signals at a rated emission gain level, divide the infrared receivers within the emission angle of the infrared transmitter into at least two groups, with X adjacent infrared receivers forming a group, where X is the number of infrared receivers in a group; acquire the received signals of the at least two groups of infrared receivers; and connect the output terminal of each group of infrared receivers to a gain control pin of the controller. The controller outputs a receive gain signal through the gain control pin to adjust the receive gain of the output receive signal of the group of infrared receivers, including: the controller outputs a first gain adjustment signal to adjust the receive gain of one group of receive signals, and the controller outputs a second gain adjustment signal to adjust the receive gain of another group of receive signals; for the same infrared receiver, when different infrared transmitters emit, the group in which the infrared receiver belongs is different, so the gain adjustment signal used by the infrared receiver may not be the same. The gain adjustment module is used to adjust the received signal of each group of infrared receivers according to the corresponding receiving gain level of the infrared receivers by the controller, so that the signal strength value of the received signal of the infrared receivers after adjustment is within the first preset range, thereby reducing the intensity difference of the infrared signal output by each group of infrared receivers and making the intensity of the infrared signal output by the infrared receivers more similar, which is convenient for the backend to perform secondary amplification or ADC sampling processing of the infrared received signal.

11. A computer device, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method as claimed in any one of claims 1 to 9.

12. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 9.