Scanning switching method and apparatus for infrared touch frame, and infrared touch device

By implementing the method of switching scanning mode in the infrared touch box, the problem of high demand for hardware processing capabilities and touch algorithms in the prior art is solved, and ultra-high frame rate scanning is realized to adapt to different scenarios, reducing equipment costs and improving scanning effect.

WO2025087284A1PCT designated stage expired Publication Date: 2025-05-01GUANGZHOU ZHONGYUAN INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/126768
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-10-25
Filing Date
2024-10-23
Publication Date
2025-05-01

AI Technical Summary

Technical Problem

When existing infrared touch boxes realize ultra-high frame rate scanning, the hardware processing capabilities and touch algorithms are demanded, resulting in high equipment costs and limited scanning effects.

Method used

A switching scanning method for infrared touch boxes is provided, by selecting the current scanning mode from a preset set of multiple scanning modes and switching to the target scanning mode when needed, obtaining the corresponding scanning mode set for scanning. This method supports the coexistence and switching of multiple scanning modes to adapt to the scanning needs of different scenarios.

Benefits of technology

Without increasing hardware costs and increasing the difficulty of touch algorithms, switching of multiple scanning methods of infrared touch boxes is achieved, meeting the scanning needs of different scenarios, improving the scanning effect and reducing equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024126768_01052025_PF_FP_ABST
    Figure CN2024126768_01052025_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to a scanning switching method and apparatus for an infrared touch frame, an infrared touch device, a computer device, and a computer readable storage medium. The method comprises: selecting a current scanning mode from a plurality of preset scanning mode sets to scan light tubes of an infrared touch frame, wherein each scanning mode set stores scanning group information of one scanning mode, and the scanning group information comprises configuration information of a plurality of emitting lights and receiving lights; determining a target scanning mode on the basis of a scanning mode switching command of an infrared touch algorithm; and switching from the current scanning mode to the target scanning mode, and obtaining the scanning mode set corresponding to the target scanning mode so as to scan the light tubes of the infrared touch frame. The technical solution achieves a scanning scheme allowing for switching back and forth between a plurality of scanning modes, without increasing the hardware cost and the touch algorithm difficulty, thereby balancing the touch algorithm requirement and the device hardware performance and improving the scanning effect.
Need to check novelty before this filing date? Find Prior Art

Description

Infrared touch frame switching scanning method, device and infrared touch device Technical Field

[0001] The present disclosure relates to the field of touch frame technology, and in particular to a switching scanning method and apparatus for an infrared touch frame, an infrared touch device, a computer device, and a computer-readable storage medium. Background Art

[0002] In the infrared touch frame, a scan of all lamps is completed once, which is defined as a frame. The conventional scanning method is to turn on the transmitting lamps in sequence and read the light signals of the receiving lamps until all receiving lamps are scanned. In this scanning mode, the scanning order is receiving lamp 1, receiving lamp 2, receiving lamp 3, ... receiving lamp N, which is referred to as full-frame scanning. To meet the requirements of ultra-high frame rates, if the full-frame scanning mode is used, the hardware processing capabilities of the infrared touch frame are required to be high to achieve good redundancy and ensure that the scanning process can proceed smoothly.

[0003] In order to achieve the goal of ultra-high frame rate with relatively low hardware requirements, there is another scanning mode called interval scanning. In this scanning mode, the scanning order is receiving light 1, receiving light 3, receiving light 5, receiving light 7, ... receiving light N; receiving light 2, receiving light 4, receiving light 6, ... receiving light N+1, which is referred to as ultra-high frame rate scanning. If ultra-high frame rate scanning is used, the touch algorithm has higher requirements to successfully complete the scan data processing. In particular, in some special scenarios, due to the high requirements of the touch algorithm and insufficient computing power of the board, the performance of the infrared touch frame is affected.

[0004] In addition, in addition to the two scanning methods mentioned above, there will be more scanning methods, such as ultra-high frame rate scanning; these different scanning methods have different requirements for hardware processing capabilities and touch algorithms in different scenarios, which puts forward higher requirements for the hardware design and touch algorithms of infrared touch devices. This increases the difficulty of implementing the infrared touch frame scanning solution, affects the scanning effect, and also leads to higher costs for infrared touch devices.

[0005] Summary of the Invention

[0006] Based on this, it is necessary to provide a switching scanning method and apparatus for an infrared touch frame, an infrared touch device, a computer device, and a computer-readable storage medium to address one of the above technical problems.

[0007] A switching scanning method for an infrared touch frame, comprising:

[0008] Selecting a current scanning mode from a plurality of preset scanning mode sets to scan the lamps of the infrared touch frame; wherein each scanning mode set stores scanning group information of a scanning mode, and the scanning group information includes configuration information of a plurality of transmitting lamps and receiving lamps;

[0009] When the scanning mode needs to be switched, the scanning mode switching operation is started according to the target scanning mode determined by the switching scanning mode command;

[0010] Switching the current scanning mode to the target scanning mode, and obtaining a scanning mode set corresponding to the target scanning mode;

[0011] The lamps of the infrared touch frame are scanned according to the acquired scanning pattern set.

[0012] A switching scanning device for an infrared touch frame, comprising:

[0013] An initial scanning module, configured to select a current scanning mode from a plurality of preset scanning mode sets to scan the lamps of the infrared touch frame; wherein each scanning mode set stores scanning group information of a scanning mode, wherein the scanning group information includes configuration information of a plurality of transmitting lamps and receiving lamps;

[0014] A switching trigger module is used to start a scanning mode switching operation according to a target scanning mode determined by the switching scanning mode command when the scanning mode needs to be switched;

[0015] A mode switching module, configured to switch the current scanning mode to the target scanning mode and obtain a scanning mode set corresponding to the target scanning mode;

[0016] The scanning execution module is used to scan the lamps of the infrared touch frame according to the acquired scanning pattern set.

[0017] An infrared touch device, comprising: an infrared touch frame and a control module; wherein the infrared touch frame is provided with a transmitting light array and a receiving light array in the X-axis and Y-axis directions;

[0018] The transmitting light and the receiving light are connected to a control module and perform scanning under the control of the control module;

[0019] The control module is configured to execute the steps of the switching scanning method of the infrared touch frame.

[0020] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the switching scanning method of the infrared touch frame when executing the computer program.

[0021] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the switching scanning method of the infrared touch frame.

[0022] The above-mentioned switching scanning method, device, infrared touch device, computer device and computer-readable storage medium for the infrared touch frame; when performing a scan, first select a current scanning mode from a preset set of multiple scanning modes to scan the lamp tube of the infrared touch frame; and when it is necessary to switch the scanning mode, switch the current scanning mode to the target scanning mode, obtain the scanning mode set corresponding to the target scanning mode and use it to scan the lamp tube of the infrared touch frame. This technical solution, without increasing the hardware cost and increasing the difficulty of the touch algorithm, transforms the single scanning mode of the infrared touch frame into a scanning scheme in which multiple different scanning modes coexist and support switching back and forth between the scanning modes by integrating multiple scanning modes, so that the infrared touch frame can adapt to the scanning needs in different scenarios; in particular, it can achieve ultra-high frame rate scanning and on-demand switching on the infrared touch frame in full-frame scanning mode, fully taking into account the touch algorithm requirements and device hardware performance, so that both can play their respective best performance, saving the hardware cost of the infrared touch device and the difficulty of signal processing technology, and improving the scanning effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a schematic diagram of an example infrared touch frame;

[0024] FIG2 is a flow chart of a switching scanning method of an infrared touch frame according to an embodiment;

[0025] FIG3 is a flow chart of an exemplary method for generating a scanning pattern set;

[0026] FIG4 is a flow chart of an exemplary method for determining a gain value;

[0027] FIG5 is a flowchart of an exemplary method for switching scanning of an infrared touch frame based on switching between full-frame scanning and ultra-high frame rate scanning;

[0028] FIG6 is a schematic structural diagram of a switching scanning device of an infrared touch frame according to an embodiment;

[0029] FIG7 is a schematic diagram of an exemplary computer device structure. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not intended to limit the present disclosure.

[0031] For the application scenario of the switching scanning method of the infrared touch frame disclosed in the present invention, refer to Figure 1, which is a schematic diagram of an infrared touch frame. In the infrared touch frame in the figure, a transmitting light array and a receiving light array are provided in the X-axis and Y-axis directions, and the transmitting light array and the receiving light array are connected to the control module; as shown in the figure, there are 96 receiving lights on the X-axis and 48 receiving lights on the Y-axis. Conversely, there are 96 transmitting lights on the X-axis and 48 transmitting lights on the Y-axis; when scanning, the scanning method of the infrared touch frame is relatively simple, such as full-frame scanning method or ultra-high frame rate scanning method, etc. Since each scanning method has its own advantages and limitations, taking the full-frame scanning method as an example, although It is possible to obtain all received signals in one frame scan, but since it needs to scan each receiving light in sequence, one frame scan needs to complete the receiving signals of all 144 receiving lights, so the hardware requirements for the infrared touch device are relatively high. As for the ultra-high frame rate scanning method, although it can achieve ultra-high frame rate scanning with relatively small changes in hardware requirements, it has high requirements for the infrared touch algorithm and the board computing power. In some cases, when the infrared touch algorithm requires more detailed and complete received signal information or the received signal collected by the ultra-high frame rate scanning cannot be processed, the scanning process is easily affected by its limitations, affecting the scanning results. It can be seen that the conventional infrared touch frame scanning solution is easily affected by its limitations in application, which limits the scanning performance.

[0032] To this end, the present disclosure provides a switching scanning method for an infrared touch frame. Without increasing hardware costs and the technical difficulty of touch algorithms, the single scanning mode of the infrared touch frame is transformed into a scanning scheme in which multiple different scanning modes coexist and support switching back and forth between the scanning modes by integrating multiple scanning modes, so that the infrared touch frame can adapt to the scanning requirements in different scenarios; in particular, other scanning modes such as ultra-high frame rate scanning can be implemented on the infrared touch frame in full-frame scanning mode, and can be switched on demand.

[0033] Referring to FIG. 2 , FIG. 2 is a flow chart of a switching scanning method of an infrared touch frame according to an embodiment. The method may include the following steps:

[0034] Step S11 , selecting a current scanning mode from a plurality of preset scanning mode sets to scan the lamps of the infrared touch frame; wherein each scanning mode set stores scanning group information of a scanning mode, and the scanning group information includes configuration information of a plurality of transmitting lamps and receiving lamps.

[0035] In this step, the lamp tube of the infrared touch frame is scanned from a scanning mode set corresponding to multiple pre-set scanning modes as the current scanning mode. For the scanning mode set, it stores the scanning group information of a scanning mode. The scanning group information includes the configuration information of multiple transmitting lamps and receiving lamps. The scanning group information can be used to scan the lamp tube.

[0036] In one embodiment, in the switching scanning method of the infrared touch frame, after the scanning mode is selected, the following steps may be further included:

[0037] The selected current scanning mode is used as the default scanning mode of the infrared touch frame, and a scanning mode set corresponding to the current scanning mode is obtained; the infrared touch frame lamp tubes are scanned according to the configuration information configured in the obtained scanning mode set; wherein the configuration information includes but is not limited to the lamp tube serial numbers of the transmitting lamp and the receiving lamp, the group serial number of the scanning group and its signal gain, etc.

[0038] In the above embodiment, according to the selected scanning mode as the default scanning mode of the infrared touch frame, when the infrared touch frame is turned on for scanning, the configuration information such as the lamp tube number of the transmitting lamp and the receiving lamp configured in the scanning mode set of the default scanning mode, the group number of the scanning group and its signal gain is used for scanning.

[0039] In one embodiment, as in step S11 above, a scanning pattern set corresponding to a plurality of scanning modes is pre-set for selection and switching; therefore, in addition to the full-frame scanning mode of conventional sequential scanning, other interval scanning modes may also be set, such as ultra-high frame rate scanning, ultra-ultra-high frame rate scanning, etc. Accordingly, the present disclosure provides a scanning pattern set generation method. Referring to FIG3 , FIG3 is a flowchart of an example scanning pattern set generation method, which may include the following steps:

[0040] S101 , dividing a scan frame of the infrared touch frame into a plurality of scan groups at set intervals; wherein a scan frame of the infrared touch frame is divided into scan sub-frames corresponding to the number of the intervals.

[0041] Specifically, interval scanning employs a scanning scheme in which one transmitting lamp is activated, corresponding to multiple receiving lamps receiving simultaneously. This scanning method uses a 1 / n interval. For example, using the 1 / 4 interval scanning method, the receiving lamps are scanned at intervals of four, dividing the full-frame scanning process into four subframes. Furthermore, each subframe scan is divided into several groups, each with a number of receiving lamps. Each group is numbered, and all receiving lamps receive simultaneously. For example, the X-axis has 96 receiving lamps and the Y-axis has 48 receiving lamps. The subframes are first divided into 1 / 4 intervals, and then grouped into groups of six, with the lamp numbers in each group being discrete.

[0042] S102, configuring scanning group information of each scanning group; wherein the scanning group information includes: group sequence number, transmitting light for controlling transmission and receiving light for scanning, and signal gain used by the scanning group each time.

[0043] In this step, the scanning group information such as the corresponding group number of each scanning group, the transmitting light for controlling the transmission and the receiving light for scanning, and the signal gain used by the scanning group each time are initialized and set.

[0044] In one embodiment, the above method for configuring scan group information of each scan group may include the following:

[0045] (1) Configure the group number of each scanning group; specifically, assign and set the group number according to the number of the transmitting light and the receiving light of the scanning group.

[0046] (2) Determine the transmitting lights and receiving lights that need to be turned on for each scanning group; wherein each scanning group adopts a scanning scheme in which one transmitting light is turned on and multiple receiving lights are simultaneously received.

[0047] For example, the transmitting light can have the same serial number as the receiving light and the range can be increased by expanding left and right; for example, the transmitting light of the scanning group can be the transmitting light with the corresponding serial number and then fixedly expanded by 10 lights, or it can be expanded according to the angle between the transmitting light and the receiving light.

[0048] (3) Determine the gain value used each time the transmitting light and the receiving light are turned on; wherein the gain value is used to determine the transmission signal strength of the transmitting light and the signal amplification factor of the receiving light.

[0049] Specifically, determine the gain value corresponding to each time the transmitting light and receiving light are turned on. Different gains will affect the transmitted signal strength and the received signal amplification factor. Each time a transmitting light is turned on, multiple receiving lights will be turned on at the same time. Therefore, the transmitting gain and receiving gain are different each time the light is turned on. It is necessary to determine the transmitting gain and receiving gain to distinguish different lamps.

[0050] As an embodiment, for the method of determining the gain value corresponding to each time the transmitting light and the receiving light are turned on in step (3) above, refer to FIG4 , which is an example flow chart of the method for determining the gain value, which may include the following steps:

[0051] a. Determine the initial gain setting; the initial gain setting is a default fixed gain setting.

[0052] b. Start a scan. Each time the transmitting lamp is turned on, the receiving signals of each receiving lamp in the scanning group are obtained. Specifically, each time the light is turned on, a plurality of signals received by the receiving lamps are generated.

[0053] c. Determine whether the minimum value of each received signal is less than the set minimum threshold. If so, proceed to step e; otherwise, proceed to step g.

[0054] d. Determine whether the maximum value of each received signal is greater than a set maximum threshold. If so, proceed to step f; otherwise, proceed to step g.

[0055] e. Adjust the initial gear of the gain value and increase the gain gear until it is not less than the minimum threshold; execute step g.

[0056] f. Adjust the initial gear of the gain value and reduce the gain gear until it is no greater than the maximum threshold; execute step g; generally, the maximum threshold and the minimum threshold are determined according to actual needs.

[0057] g. Save the gain level used each time a light is turned on within the scanning group; specifically, record the corresponding transmit gain value and receive gain value used by the light tube.

[0058] The technical solution of the above embodiment determines the transmission gain and the reception gain of each scan in the scan mode, thereby generating corresponding scan group information and adding it to the scan mode set for use when switching in the scan mode.

[0059] S103: Generate a corresponding scanning mode set according to the scanning group information required by each scanning mode.

[0060] Specifically, after generating multiple scan group information, according to the different scan modes that the infrared touch frame needs to set, the scan group information required by the scan mode is combined into a scan mode set according to the sequence number of the scan group. Different scan mode sets store different scan modes.

[0061] In one embodiment, the process of S103 may include the following:

[0062] Initialize the scan group information required by multiple scan modes respectively; obtain the scan group information required for each scan mode; and fill each scan group into different sets in scan group order according to the scan group information to obtain a corresponding scan mode set.

[0063] The technical solution of the above embodiment configures multiple scanning modes in the infrared touch frame by generating a scanning mode set of interval scanning modes. The infrared touch frame can select the scanning mode set according to needs to realize scanning mode switching and realize free switching between different scanning modes.

[0064] Step S12: When the scanning mode needs to be switched, the scanning mode switching operation is started according to the target scanning mode determined by the switching scanning mode command.

[0065] In this step, during the infrared touch frame scan, corresponding switching conditions can be set, such as the current touch algorithm processing rate, hardware real-time status data, etc. When the switching conditions are met, the infrared touch frame is controlled to switch to the target scanning mode.

[0066] For example, after the infrared touch frame starts scanning, each time a frame of data is scanned, it can be triggered to check whether the touch algorithm has issued a command to switch the scanning mode. If switching is required, the switching operation is performed; since there are currently two main forms of infrared touch frame products, one is a product with a driver, and the touch algorithm runs on the system board. At this time, the communication of the command to trigger the switching of the scanning mode is carried out through a communication command; the other is a driver-free product, and the touch algorithm runs on the infrared touch frame. At this time, the communication of the command to trigger the switching of the scanning mode can be achieved through a global variable.

[0067] Step S13: Switch the current scanning mode to the target scanning mode, and obtain a scanning mode set corresponding to the target scanning mode.

[0068] Specifically, after the target scanning mode is selected, the current scanning mode is switched to the target scanning mode, and based on the scanning mode sets of the scanning modes preset in the above steps, the data of the scanning mode set is searched from the stored scanning mode sets.

[0069] Exemplarily, the infrared touch frame sets at least two scanning modes: ultra-high frame rate scanning mode and full-frame scanning mode; among them, the scanning mode set corresponding to the ultra-high frame rate scanning mode is filled with each scanning group in the order of the scanning group number; the scanning mode set corresponding to the full-frame scanning mode is filled with the scanning group in the order of the lamp tube number of the receiving lamp.

[0070] In actual applications, the full-frame scanning mode can be used as the default scanning mode. When a higher scanning frame rate is required, it can be switched to the ultra-high frame rate scanning mode. When the full-frame scanning mode is to achieve an ultra-high frame rate, there is no need for higher hardware costs and greater technical difficulty, thereby allowing the scanning performance of the infrared touch frame to be brought into optimal condition.

[0071] In one embodiment, taking the switching between the ultra-high frame rate scanning mode and the full frame scanning mode as an example, when the current scanning mode is switched to the target scanning mode in step S13, the following steps may be included:

[0072] (1) If the current scanning mode is ultra-high frame rate scanning mode, it is necessary to switch to full frame scanning mode. The switching method can be as follows:

[0073] After each scanning subframe is scanned, a scan mode switch command is detected to determine whether a scan mode switch is required. If a switch is required, the received signal of the scan subframe acquired by the scan is uploaded to the touch control algorithm. Before the next scan subframe begins scanning, the current scan mode is switched to the full-frame scan mode to perform a new scan. Preferably, the touch control algorithm can operate in a pointer manner, with the pointer pointing to the scan mode set of the target scan mode, indicating that the scan mode switch is successful and a new scan of the next frame is performed.

[0074] (2) If the current scanning mode is full-frame scanning mode, it is necessary to switch to ultra-high frame rate scanning mode. The switching method can be as follows:

[0075] Since full-frame scanning mode scans all receiving lamps sequentially, a frame scan is completed only after all lamps have been scanned. Therefore, the switching method in this case is to continue scanning the current full frame and collect the received infrared signals and upload them to the touch algorithm. Before starting a new full-frame scan, the current scan mode is switched to ultra-high frame rate scanning mode, and then the new scan begins.

[0076] Step S14: Scan the lamps of the infrared touch frame according to the acquired scanning pattern set.

[0077] In this step, based on the preset scanning mode set, each time the scanning mode is switched, it is only necessary to replace the existing scanning mode set with the corresponding scanning set to complete the switch. In the switched scanning mode, each scanning group is scanned, and the corresponding infrared signal value is collected and sent to the touch algorithm of the control module for use.

[0078] As an embodiment, after setting the switching mode set, a scanning mode can be selected as the default scanning mode and assigned to the scanning sequence. The scanning sequence saves the scanning mode set of the current scan. When the infrared touch frame scans, it can be switched according to the order of the scanning mode sets in the scanning sequence; therefore, each time the scanning mode is switched, it is only necessary to place the scanning set of the target scanning mode in the scanning sequence to replace the original scanning mode set to complete the switching process; this switching technical solution stores different scanning modes in the form of scanning mode sets, and the current scanning mode is scanned in the form of a scanning sequence. When switching the scanning mode, it is only necessary to modify the content of the scanning sequence. The switching time is short and the switching efficiency is higher.

[0079] The technical solutions of the above embodiments support switching scans between multiple scanning modes, such as (full frame mode, ultra-high frame rate mode, and other scanning modes, etc.), and can provide an ultra-high frame rate scanning experience without performance degradation. When implementing the technical solution, the touch algorithm requirements and device hardware performance are fully taken into account, so that both can play their best performance, saving the hardware cost of infrared touch devices and the difficulty of signal processing technology, and improving the scanning effect; and various scanning mode information is stored in a scanning mode collection method, and a scanning sequence method is designed for scanning. When switching, only the scanning sequence content needs to be modified, which makes the switching operation simple, the switching time short, and the efficiency higher.

[0080] In order to make the technical solution of the present disclosure clearer, it is described in detail below with reference to more embodiments.

[0081] In this embodiment, taking the infrared touch frame (144 pairs of transmitting lights and receiving lights) shown in Figure 1 as an example, a 1 / 4 interval scanning method is adopted, each scanning group has 6 receiving lights, and two scanning modes are adopted: full frame scanning and ultra-high frame rate scanning.

[0082] Full frame scanning mode: one frame is formed when all lamps are scanned in sequence from lamp 1, lamp 2, lamp N.

[0083] Ultra-high frame rate scanning mode: It scans in a skipped manner, such as lamp 1, lamp 5, lamp 9...lamp N+4 as a frame. In this scanning mode, the frame rate of each frame is 4 times faster than the full-frame scanning. Therefore, the touch algorithm obtains 1 / 4 of the full frame of infrared light each time, and combines it with the other 3 / 4 of the infrared light to form a full frame, thereby achieving the effect of restoring the received signal information and speeding up the frame rate.

[0084] 5 , which is a flowchart of an exemplary method for switching scanning of an infrared touch frame based on switching between full-frame scanning and ultra-high frame rate scanning, the method for switching scanning of an infrared touch frame of this embodiment includes the following steps:

[0085] Step S21 : Divide a 1 / 4 subframe scan into several scan groups, and determine the sequence number of each scan group.

[0086] Specifically, the infrared touch frame uses a scanning scheme where one transmitting lamp is activated, corresponding to multiple receiving lamps simultaneously receiving signals. For example, the X-axis has 96 receiving lamps and the Y-axis has 48 receiving lamps. These lamps are grouped into groups of 6, with the lamp numbers within each group being discrete. Lamp numbers 1, 5, 9, 13, 17, and 21 form scanning group 1, while lamp numbers 2, 6, 10, 14, 18, and 22 form scanning group 2. This continues for all X and Y axis groups.

[0087] When grouping the serial numbers, after dividing the X axis into 1 / 4, the Y axis is divided into 1 / 4, and then the X axis is divided into 1 / 4, the Y axis is divided into 1 / 4, and so on, until the serial numbers of all scan groups are determined.

[0088] Step S22: Initialize the scanning information corresponding to each scanning group.

[0089] Specifically, the scan group information mainly includes the following:

[0090] (1) Determine the transmitting and receiving lights that need to be turned on in the scanning group.

[0091] For the receiving lamps, they are determined when grouping; for the transmitting lamps, they are arranged on the opposite surface of the receiving lamps, so the transmitting lamps have the same serial number as the receiving lamps, and the range is increased by expanding left and right.

[0092] For example, if the receiving lamp of the scanning group is scanning group 1, and the lamp tube serial numbers are 1, 5, 9, 13, 17, and 21, then when a fixed outward expansion method of 10 lamp tubes is adopted, the minimum serial number of the transmitting lamp is serial number 1 (1-10, but not less than 1), and the maximum serial number is 31 (21+10). In addition, the outward expansion can also be performed according to the angle of the lamp tube.

[0093] (2) Determine the gain value corresponding to each time the transmitting light and the receiving light are turned on.

[0094] Since each time a transmitting light is turned on, 6 receiving lights will be turned on at the same time, the transmitting gain and receiving gain of each light are different. When determining the gain gear, you can do as follows:

[0095] The initial setting is the default fixed gain setting. Once the initialization scan information is scanned normally, a scan is initiated. Each time the light is turned on, six infrared signals are received by the receiving lamp. The smallest of the six infrared signals is ensured to be no less than a set threshold. If it is, there is a risk of failure to detect, and the gain setting is increased. If the infrared signal strength is too high, meaning the largest of the six signals is more than twice the set threshold, the gain setting is decreased. Through this technical solution, the gain setting for all lamps is determined and recorded each time the light is turned on.

[0096] Step S23: combine the scanning groups into a scanning pattern set according to the sequence number, and different scanning pattern sets store different scanning patterns.

[0097] (1) For ultra-high frame rate scanning mode set:

[0098] Just fill in the order of the scan group numbers, that is, scan group 1, scan group 2...scan group N; the scan group numbers of the first 1 / 4 are scan groups 1, 2, 3, 4, 5, 6; among them, scan groups 1, 2, 3, 4 are scan groups of the X axis, and 5 and 6 are scan groups of the Y axis.

[0099] (2) For the full-frame scan mode set:

[0100] Since full-frame scanning is performed in the order of lamp numbers, the scan pattern set needs to be filled in the order of the lamp numbers. The scan group numbers are not consecutive, i.e., scan group 1 for the first 1 / 4 of the X-axis and scan group 7 for the second 1 / 4 of the X-axis. Fill in the scan pattern set in the order of lamp numbers. The filling principle is to fill in the X-axis scan group first, then the Y-axis scan group.

[0101] Step S24: After all scan sets are set, a scan mode is selected as a default scan mode and added to the scan sequence.

[0102] Specifically, the scanning sequence saves all the current scanning mode sets. During scanning, each scanning group of the scanning mode set is scanned in the order in the scanning sequence, and the corresponding infrared signal value is collected and sent to the touch algorithm; each time the scanning mode is switched, the corresponding scanning mode set is placed in the scanning sequence to replace the original scanning mode set.

[0103] Step S25 , after the scanning starts, each time a frame is scanned, a switching scanning mode command issued by the touch detection algorithm is executed to perform a switching operation.

[0104] Specifically, when a command to switch the scanning mode issued by the touch algorithm is detected, a corresponding switching operation scheme is selected according to the current scanning mode; exemplary switching methods may include the following:

[0105] (1) Switch from ultra-high frame rate scanning mode to full frame scanning mode:

[0106] Since a complete ultra-high frame rate scan is divided into four 1 / 4 scan frames, it is detected whether the scan mode needs to be switched after each 1 / 4 frame scan is completed; if switching is required, the current 1 / 4 frame scan is completed and the collected infrared signal is uploaded to the touch algorithm; before the next new 1 / 4 frame scan begins, the current scan mode is switched to full-frame scan mode, and the remaining 1 / 4 scans are discarded.

[0107] (2) Switch from full frame mode to ultra-high frame rate mode:

[0108] Complete the current full-frame scan and upload the collected infrared signal to the touch algorithm; before starting a new full-frame scan, switch the current scan mode to the ultra-high frame rate scan mode and start a new scan.

[0109] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0110] Based on the same inventive concept, embodiments of the present disclosure also provide an infrared touch frame switching and scanning device for implementing the aforementioned infrared touch frame switching and scanning method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the embodiments of the infrared touch frame switching and scanning device provided below can be found in the aforementioned limitations of the infrared touch frame switching and scanning method, and will not be further elaborated here.

[0111] In one embodiment, as shown in FIG6 , FIG6 is a schematic structural diagram of a switching scanning device of an infrared touch frame according to an embodiment, including:

[0112] An initial scanning module 11 is configured to select a current scanning mode from a plurality of preset scanning mode sets to scan the lamps of the infrared touch frame; wherein each scanning mode set stores scanning group information of a scanning mode, and the scanning group information includes configuration information of a plurality of transmitting lamps and receiving lamps;

[0113] A switching trigger module 12 is configured to initiate a scanning mode switching operation according to a target scanning mode determined by the switching scanning mode command when the scanning mode needs to be switched;

[0114] A mode switching module 13 is configured to switch the current scanning mode to the target scanning mode and obtain a scanning mode set corresponding to the target scanning mode;

[0115] The scanning execution module 14 is configured to scan the lamps of the infrared touch frame according to the acquired scanning pattern set.

[0116] Each module in the aforementioned infrared touch frame switching scanning device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in hardware form, or can be stored in memory in software form, so that the processor can call and execute the corresponding operations of each module.

[0117] In one embodiment, the present disclosure also provides an infrared touch device, which may include: an infrared touch frame and a control module, wherein the control module may include a controller and related signal processing circuits; the infrared touch frame is provided with an array of transmitting lamps and receiving lamps; the transmitting lamps and receiving lamps are connected to the control module; the transmitting lamp tubes emit infrared rays under the control of the control module; the receiving lamp tubes receive infrared signals; the control module is configured to scan and collect infrared signals, and execute the steps of the switching scanning method of the infrared touch frame of any of the above embodiments.

[0118] When performing a scan, the infrared touch device of this embodiment first selects a current scanning mode from a set of multiple preset scanning modes to scan the infrared touch frame's lamps. When a scan mode switch is required, the current scanning mode is switched to a target scanning mode, and a scanning mode set corresponding to the target scanning mode is obtained and used to scan the infrared touch frame's lamps. Without increasing hardware costs or the difficulty of the touch algorithm, the infrared touch frame's single scanning mode is transformed into a scanning solution in which multiple different scanning modes coexist and support switching back and forth between the scanning modes. This allows the infrared touch frame to adapt to scanning requirements in different scenarios. In particular, ultra-high frame rate scanning and on-demand switching can be achieved on the infrared touch frame in full-frame scanning mode, fully balancing the touch algorithm requirements and the device hardware performance, allowing both to achieve their respective optimal performance, saving the hardware cost of the infrared touch device and the difficulty of signal processing technology, and improving the scanning effect.

[0119] In one embodiment, the present disclosure further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, characterized in that the processor executes the steps of the switching scanning method of the infrared touch frame of any of the above embodiments. Referring to Figure 7, Figure 7 is a schematic diagram of an example computer device structure, which may include a processor, a memory, a communication interface, etc. connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities, the memory includes a non-volatile storage medium and an internal memory, the non-volatile storage medium stores an operating system and a computer program, the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium, and the communication interface can be used to communicate with external devices in a wired or wireless manner. The wireless method can be implemented through WIFI, mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, the steps of the switching scanning method of the infrared touch frame of any of the above embodiments are implemented.

[0120] Those skilled in the art will understand that the structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the controller to which the scheme of the present disclosure is applied. The specific controller may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0121] In one embodiment, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above-mentioned method embodiments when the computer program is executed by a processor.

[0122] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in the present disclosure may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in the present disclosure may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in the present disclosure may be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0123] The above-described embodiments merely represent several implementation methods of the present disclosure. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present disclosure. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present disclosure, all of which fall within the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be determined by the appended claims.

Claims

1. A switching scanning method for an infrared touch frame, characterized in that: include: Selecting a current scanning mode from a plurality of preset scanning mode sets to scan the lamp tubes of the infrared touch frame; wherein each scanning mode set stores scanning group information of a scanning mode, and the scanning group information includes configuration information of a plurality of transmitting lamps and receiving lamps; When it is necessary to switch the scanning mode, starting the scanning mode switching operation according to the target scanning mode determined by the switching scanning mode command; Switching the current scanning mode to the target scanning mode, and acquiring a scanning mode set corresponding to the target scanning mode; The lamp tubes of the infrared touch frame are scanned according to the acquired scanning pattern set.

2. The switching scanning method of the infrared touch frame according to claim 1, characterized in that: Also includes: Using the selected current scanning mode as the default scanning mode of the infrared touch frame, and acquiring a scanning mode set corresponding to the current scanning mode; The infrared touch frame lamp tubes are scanned according to the configuration information configured in the acquired scanning mode set; wherein the configuration information includes: the lamp tube serial numbers of the transmitting lamp and the receiving lamp, the grouping serial number of the scanning group and the signal gain thereof.

3. The switching scanning method of the infrared touch frame according to claim 1, characterized in that: Also includes: Dividing a scan frame of the infrared touch frame into a plurality of scan groups at set intervals; wherein a scan frame of the infrared touch frame is divided into scan subframes corresponding to the number of the intervals; Configure scanning group information of each scanning group; wherein the scanning group information includes: group sequence number, transmitting light for controlling transmission and receiving light for scanning, and signal gain used by the scanning group each time; A corresponding scanning mode set is generated according to the scanning group information required by each scanning mode.

4. The switching scanning method of the infrared touch frame according to claim 3, characterized in that: The configuration of the scanning group information of each scanning group includes: Configure the grouping sequence number of each scan group; Determine the transmitting lights and receiving lights that need to be turned on for each scanning group; wherein each scanning group adopts a scanning scheme in which one transmitting light is turned on and multiple receiving lights are simultaneously received; Determine the gain value used each time the transmitting light and the receiving light are turned on; wherein the gain value is used to determine the transmission signal strength of the transmitting light and the signal amplification factor of the receiving light.

5. The switching scanning method of the infrared touch frame according to claim 4, characterized in that: The step of determining the gain value corresponding to each time the transmitting light and the receiving light are turned on includes: Determine the initial gear position of the gain value; Start a scan, and obtain the receiving signal of each receiving lamp in the scan group every time the transmitting lamp is turned on; If the minimum value among the received signals is less than the set minimum threshold, the initial gear of the gain value is adjusted to increase the gain gear; if the maximum value among the received signals is greater than the set maximum threshold, the initial gear of the gain value is adjusted to decrease the gain gear; Save the gain level used each time the light is turned on in the scan group.

6. The switching scanning method of the infrared touch frame according to claim 4, characterized in that: The generating a corresponding scanning mode set according to the scanning group information required by each scanning mode includes: Initialize the scan group information required by multiple scan modes respectively; Obtain the required scanning group information for each scanning mode; According to the scanning group information, each scanning group is filled into different sets in scanning group order to obtain a corresponding scanning mode set.

7. The switching scanning method of the infrared touch frame according to claim 6, characterized in that: The scanning modes include: ultra-high frame rate scanning mode and full frame scanning mode; In the scanning mode set corresponding to the ultra-high frame rate scanning mode, each scanning group is filled in the order of the scanning group sequence number; The scanning mode set corresponding to the full-frame scanning mode is filled with the scanning group in the order of the lamp tube serial numbers of the receiving lamps.

8. The switching scanning method of the infrared touch frame according to claim 7, characterized in that: The switching of the current scanning mode to the target scanning mode comprises: If the current scanning mode is the ultra-high frame rate scanning mode, after each scanning subframe is scanned, the scanning mode switching command is detected to determine whether the scanning mode needs to be switched; If you need to switch to full-frame scanning mode, the received signals of the acquired scanning subframes will be scanned. Upload to touch algorithm; Before the next scanning subframe starts scanning, the current scanning mode is switched to the full-frame scanning mode to perform a new scan.

9. The switching scanning method of the infrared touch frame according to claim 7, characterized in that: The switching of the current scanning mode to the target scanning mode comprises: If the current scanning mode is the full-frame scanning mode, the scanning mode switching command is detected to determine whether the scanning mode needs to be switched; When it is necessary to switch to the ultra-high frame rate scanning mode, the current scanning frame is scanned in full frame, and the full frame reception signal collected by the scanning is uploaded to the touch algorithm; Before the next full-frame scan starts, the current scan mode is switched to the ultra-high frame rate scan mode to perform a new scan.

10. A switching scanning device for an infrared touch frame, characterized in that: include: An initial scanning module, used to select a current scanning mode from a plurality of preset scanning mode sets to scan the lamp tubes of the infrared touch frame; wherein each scanning mode set stores scanning group information of a scanning mode, and the scanning group information includes configuration information of a plurality of transmitting lamps and receiving lamps; A switching trigger module, used for starting a scanning mode switching operation according to a target scanning mode determined by the switching scanning mode command when the scanning mode needs to be switched; A mode switching module, used to switch the current scanning mode to the target scanning mode, and obtain a scanning mode set corresponding to the target scanning mode; The scanning execution module is used to scan the lamp tubes of the infrared touch frame according to the acquired scanning mode set.

11. An infrared touch device, characterized in that: It includes: an infrared touch frame and a control module; wherein the infrared touch frame is provided with a transmitting light array and a receiving light array in the X-axis and Y-axis directions; The transmitting light and the receiving light are connected to a control module and scan under the control of the control module; The control module is configured to execute the steps of the switching scanning method of the infrared touch frame according to any one of claims 1 to 9.

12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the switching scanning method of the infrared touch frame according to any one of claims 1 to 9 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the switching scanning method of the infrared touch frame according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Self-adapted infrared touch screen and precision control method thereof

    CN104808866A

  • Scanning method and device of infrared touch screen

    CN106055177A

  • Infrared touch scanning method, device and storage medium

    CN112462984A

  • Coordinate position detecting method and display apparatus using the same

    US20010037186A1