Switching scanning method and device of infrared touch frame and infrared touch equipment

Through the method and device of switching the scanning mode in the infrared touch box, the problem of high hardware and algorithm demand in the prior art is solved, and the coexistence and switching of multiple scanning methods are realized, adapting to different scenario requirements, reducing equipment cost and difficulty , improves the scanning effect.

CN119088248AInactive Publication Date: 2024-12-06GUANGZHOU ZHONGYUAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311398181.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2024-12-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When existing infrared touch boxes implement ultra-high frame rate scanning, the hardware processing capabilities and touch algorithms are demanded, resulting in high equipment costs and limited performance, which increases the difficulty of implementation.

Method used

Provide a switching scanning method and device, by selecting the current scanning mode from a preset set of multiple scanning modes and switching to the target scanning mode when needed, it supports switching between multiple scanning modes to adapt to different scenarios need.

Benefits of technology

Without increasing the hardware cost and the difficulty of touch algorithms, multiple scanning methods of infrared touch frames are realized, fully taking into account hardware performance and algorithm requirements, improving scanning effect, saving equipment costs and signal processing difficulties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088248A_ABST
    Figure CN119088248A_ABST
Patent Text Reader

Abstract

The invention relates to a switching scanning method and device of an infrared touch frame, infrared touch equipment, computer equipment and a computer readable storage medium. The method comprises the following steps: selecting a current scanning mode from a plurality of preset scanning mode sets to scan a lamp tube 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 transmitting lamps and receiving lamps; determining a target scanning mode according to a scanning mode switching command of the infrared touch algorithm; and switching the current scanning mode to the target scanning mode, and obtaining a scanning mode set corresponding to the target scanning mode to scan a lamp tube of the infrared touch frame. According to the technical scheme, under the condition that the hardware cost is not increased and the difficulty of a touch algorithm is not increased, the scanning scheme that multiple scanning modes are switched back and forth is achieved, the requirement of the touch algorithm and the equipment hardware performance are fully considered, and the scanning effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application 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, scanning all the lamps once is defined as one 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 the receiving lamps are scanned. In this scanning method, the scanning order is receiving lamp 1, receiving lamp 2, receiving lamp 3, ... receiving lamp N, which is referred to as full-frame scanning. In order to meet the ultra-high frame rate requirements, if the full-frame scanning mode is used, the hardware processing capability of the infrared touch frame is 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 high requirements to successfully complete the scanning data processing, especially in some special scenarios, due to the large demand for 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, thereby increasing the difficulty of implementing the infrared touch frame scanning solution, affecting the scanning effect, and also leading to higher costs for infrared touch devices. Summary of the invention

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

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

[0007] 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;

[0008] 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;

[0009] Switching the current scanning mode to the target scanning mode, and acquiring a scanning mode set corresponding to the target scanning mode;

[0010] The lamp tubes of the infrared touch frame are scanned according to the acquired scanning pattern set.

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

[0012] 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;

[0013] 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;

[0014] 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;

[0015] The scanning execution module is used to scan the lamp tubes of the infrared touch frame according to the acquired scanning mode set.

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

[0017] The transmitting light and the receiving light are connected to a control module and scan under the control of the control module;

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

[0019] A computer device comprises 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.

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

[0021] The switching scanning method, device, infrared touch device, computer device and computer-readable storage medium of the above-mentioned infrared touch frame; when performing scanning, first select a current scanning mode from a preset multiple scanning mode set 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 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 collecting multiple scanning modes, so that the infrared touch frame can adapt to the 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 considering the touch algorithm requirements and the equipment hardware performance, so that both can play their 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

[0022] Figure 1 is a sample infrared touch box schematic;

[0023] Figure 2 is a flow chart of a switching scanning method of an infrared touch frame according to an embodiment;

[0024] Figure 3 is a flow chart of an exemplary scanning pattern set generation method;

[0025] Figure 4 is a flow chart of an exemplary method for determining a gain value;

[0026] Figure 5 is an exemplary flow chart of a switching scanning method of an infrared touch frame based on switching between full frame scanning and ultra-high frame rate scanning;

[0027] Figure 6 is a schematic structural diagram of a switching scanning device of an infrared touch frame according to an embodiment;

[0028] Figure 7 The diagram is a schematic diagram of a computer device structure. DETAILED DESCRIPTION

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

[0030] For the application scenarios of the switching scanning method of the infrared touch frame of the present application, refer to Figure 1 , Figure 1 : is a schematic diagram of an infrared touch frame of an example. In the infrared touch frame in the figure, a transmitting light array and a receiving light array are arranged 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, and correspondingly, there are 96 transmitting lights on the X-axis and 48 transmitting lights on the Y-axis; when scanning, the scanning mode of the infrared touch frame is relatively single, such as full-frame scanning mode or ultra-high frame rate scanning mode, etc. Since each scanning mode has its own advantages and limitations, taking the full-frame scanning mode as an example, although all receiving signals can be obtained in one frame scan, However, since it needs to scan each receiving light in sequence, one frame of scanning needs to complete the receiving signals of all 144 receiving lights, so the hardware requirements of the infrared touch device are relatively high. For the ultra-high frame rate scanning method, although it can achieve ultra-high frame rate scanning with less change in hardware requirements, it has high requirements for infrared touch algorithm and high requirements for board computing power. In some cases, when the infrared touch algorithm needs more detailed and complete receiving signal information or the receiving signal collected by 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 scanning solution of the infrared touch frame is easily affected by its limitations in application, which limits the scanning performance.

[0031] To this end, the present application provides a switching scanning method for an infrared touch frame. Without increasing the hardware cost and the technical difficulty of the touch algorithm, 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 combining 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 the full-frame scanning mode, and can be switched as needed.

[0032] refer to Figure 2 As shown, Figure 2 The present invention 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:

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

[0034] 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 scanning group information of a scanning mode. The scanning group information includes configuration information of multiple transmitting lamps and receiving lamps. The lamp tube can be scanned using the scanning group information.

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

[0036] 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 grouping serial number of the scanning group and its signal gain, etc.

[0037] 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 scanning is performed using 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 grouping number of the scanning group and its signal gain.

[0038] In one embodiment, as in the above step S11, a scanning mode 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 application provides a scanning mode set generation method, referring to Figure 3 , Figure 3 is a flow chart of an exemplary scanning pattern set generation method, which may include the following steps:

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

[0040] Specifically, the interval scanning adopts a scanning scheme that turns on one transmitting lamp to correspond to multiple receiving lamps to receive simultaneously. The 1 / n interval method is adopted when scanning. Taking the 1 / 4 interval scanning method as an example, the receiving lamp is scanned at intervals of 4 receiving lamps, and the full frame scanning process is divided into 4 subframes. On this basis, a subframe scan is divided into several groups, each group has several receiving lamps, and each group is numbered, and each receiving lamp receives at the same time. For example, there are 96 receiving lamps on the X-axis and 48 receiving lamps on the Y-axis; the subframes are first divided into 1 / 4 intervals, and then the subframes are grouped in groups of 6, and the lamp numbers of each group are discontinuous.

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

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

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

[0044] (1) Assign a group number to 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.

[0045] (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 to correspond to multiple receiving lights receiving simultaneously.

[0046] Exemplarily, the transmitting light can have the same serial number as the receiving light and increase the range in a manner of 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.

[0047] (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.

[0048] Specifically, determine the gain value corresponding to each time the transmitting light and the 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, so 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.

[0049] As an example, 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), refer to Figure 4 , Figure 4 is a flowchart of an exemplary method for determining a gain value, which may include the following steps:

[0050] a. Determine the initial gear of the gain value; wherein the initial gear is a default fixed gain gear.

[0051] b. Start a scan, and each time the transmitting lamp is turned on, obtain the receiving signals of each receiving lamp in the scanning group; specifically, each time the lamp is turned on, a signal received by multiple receiving lamps will be generated.

[0052] c. Determine whether the minimum value of each received signal is less than the set minimum threshold value. If yes, execute step e; otherwise, execute step g;

[0053] d. Determine whether the maximum value of each received signal is greater than the set maximum threshold value? If so, execute step f; otherwise, execute step g;

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

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

[0056] g. Save the gain position used each time the light is turned on in the scanning group; specifically, record the corresponding transmission gain value and receiving gain value used by the lamp.

[0057] The technical solution of the above embodiment determines the transmission gain and the receiving gain of each scan in the scanning mode, so as to generate corresponding scanning group information and add it to the scanning mode set for use when switching in the scanning mode.

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

[0059] Specifically, after generating multiple scan group information, according to 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, and different scan mode sets store different scan modes.

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

[0061] 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 the scan group order according to the scan group information to obtain the corresponding scan mode set.

[0062] 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 method according to the needs to realize scanning mode switching and realize free switching between different scanning modes.

[0063] Step S12: when it is necessary to switch the scanning mode, the scanning mode switching operation is started according to the target scanning mode determined by the switching scanning mode command.

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

[0065] For example, after the infrared touch frame starts scanning, each time a frame of data is scanned, it can trigger a check to see whether the touch algorithm has issued a command to switch the scanning mode. If switching is required, the switching operation is performed. Currently, there are two main forms of infrared touch frame products. One is a driver-driven product, in which the touch algorithm runs on the system board. In this case, 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, in which the touch algorithm runs on the infrared touch frame. In this case, the communication of the command to trigger the switching of the scanning mode can be achieved through a global variable.

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

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

[0068] Exemplarily, the infrared touch frame sets at least two scanning modes, namely, an ultra-high frame rate scanning mode and a full-frame scanning mode; wherein, 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 number; and in the scanning mode set corresponding to the full-frame scanning mode, the scanning group to which the receiving lamp belongs is filled in the order of the lamp tube number of the receiving lamp.

[0069] In practical 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 difficulties, thereby bringing the scanning performance of the infrared touch frame into the best state.

[0070] 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 may be included:

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

[0072] After each scanning subframe is scanned, the command to switch the scanning mode is detected to determine whether the scanning mode needs to be switched; if switching is required, the received signal of the scanning subframe that has been scanned is uploaded to the 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. Preferably, the touch algorithm can be operated in a pointer manner, and the pointer points to the scanning mode set of the target scanning mode, that is, the scanning mode is switched successfully, and a new next frame scan is performed.

[0073] (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:

[0074] Since the full-frame scanning mode scans all receiving lamps in sequence, a frame scan is completed only after all lamps are 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 a new full-frame scan starts, the current scan mode is switched to the ultra-high frame rate scan mode, and then a new scan starts.

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

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

[0077] 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, and the infrared touch frame can be switched according to the order of the scanning mode sets in the scanning sequence when scanning; therefore, each time the scanning mode is switched, it is only necessary to put 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, and the switching time is short, with higher switching efficiency.

[0078] Combining the technical solutions of the above embodiments, it supports switching scanning of multiple scanning modes, such as (full frame mode, ultra-high frame rate mode, and other scanning modes, etc.), and can get the experience of ultra-high frame rate scanning without performance degradation. When implementing the technical solution, it fully takes into account the touch algorithm requirements and the hardware performance of the device, so that both can play their best performance, saving the hardware cost of the infrared touch device and the difficulty of signal processing technology, and improving the scanning effect; and through the scanning mode collection method to store various scanning mode information, and design a scanning sequence method for scanning, when switching, you only need to modify the scanning sequence content, the switching operation is simple, the switching time is short, and the efficiency is higher.

[0079] In order to make the technical solution of the present application more clear, it is described in detail below in conjunction with more embodiments.

[0080] In this embodiment, Figure 1 Taking the infrared touch frame (144 pairs of transmitting lights and receiving lights) shown 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.

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

[0082] Ultra-high frame rate scanning mode: it is to scan by jumping lamps, such as lamp 1, lamp 5, lamp 9...lamp N+4 as a frame. In this scanning mode, the scanning 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 other 3 / 4 infrared light into a full frame, thereby achieving the effect of restoring the received signal information and speeding up the frame rate.

[0083] refer to Figure 5 , Figure 5 This is an exemplary flow chart of a switching scanning method of an infrared touch frame based on switching between full frame scanning and ultra-high frame rate scanning. The switching scanning method of the infrared touch frame of this embodiment includes the following steps:

[0084] Step S21, dividing a 1 / 4 subframe scan into a number of scan groups, and determining the sequence number of each scan group.

[0085] Specifically, the infrared touch frame scans by turning on one transmitting lamp and corresponding to multiple receiving lamps to receive simultaneously. For example, the X-axis has 96 receiving lamps and the Y-axis has 48 receiving lamps. They are grouped in groups of 6, and the lamp numbers of a group are discontinuous. The lamp numbers 1, 5, 9, 13, 17, and 21 are scanning group 1, and the lamp numbers 2, 6, 10, 14, 18, and 22 are scanning group 2. And so on, all the groups of the X and Y axes are divided.

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

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

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

[0089] (1) Determine the transmitting and receiving lights that the scanning group needs to turn on.

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

[0091] For example, if the receiving lamp of the scanning group is scanning group 1, and the lamp tube 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 1 (1-10, but not less than 1), and the maximum serial number is 31 (21+10). In addition, it can also be expanded according to the angle of the lamp tube.

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

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

[0094] The initial position is the default fixed gain position. After the subsequent initialization scan information can be scanned normally, a scan is started. For the infrared signal received by the receiving lamp, 6 infrared signals are received each time the light is turned on. Here, the smallest of the 6 infrared signals is ensured to be no less than the set threshold. If it is less than the set threshold, there is a risk of failure to detect, so the gain position is increased; if the infrared signal strength is too high, that is, the largest infrared signal among the 6 signals is more than 2 times greater than the set threshold, then the gain position is reduced. Through the above technical solution, the gain position of all lamps is determined each time the light is turned on, and recorded and stored.

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

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

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

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

[0099] Since the full frame scan is scanned in the order of the lamp numbers, the scan pattern set needs to be filled in the scan groups in the order of the lamp numbers. The scan group numbers are not continuous, that is, the first 1 / 4 of the X-axis is scan group 1, and the second 1 / 4 of the X-axis is scan group 7. Fill in the order of the lamps. The filling principle is to fill in the scan groups of the X-axis first, and then fill in the scan groups of the Y-axis.

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

[0101] 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 values ​​are 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.

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

[0103] Specifically, when a command for switching scanning mode sent by the touch algorithm is detected, a corresponding switching operation scheme is selected according to the current scanning mode; exemplary, the switching method may include the following:

[0104] (1) Ultra-high frame rate scanning mode is switched to full frame scanning mode:

[0105] 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 the full-frame scan mode and the remaining 1 / 4 scans are discarded.

[0106] (2) Switching from full frame mode to ultra-high frame rate mode:

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

[0108] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed 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 part of the steps or stages in other steps.

[0109] Based on the same inventive concept, the embodiment of the present application also provides an infrared touch frame switching scanning device for implementing the infrared touch frame switching scanning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the switching scanning device for one or more infrared touch frames provided below can refer to the limitations of the switching scanning method for the infrared touch frame above, and will not be repeated here.

[0110] In one embodiment, Figure 6 As shown, Figure 6 The structure diagram of the switching scanning device of the infrared touch frame of an embodiment includes:

[0111] The initial scanning module 11 is 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;

[0112] A switching trigger module 12, 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;

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

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

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

[0116] In one embodiment, the present application 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 the receiving lamps are connected to the control module; the transmitting lamp tubes transmit 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.

[0117] The infrared touch device of this embodiment, when performing scanning, first selects a current scanning mode from a preset plurality of scanning mode sets to scan the lamp tube of the infrared touch frame; and when it is necessary to switch the scanning mode, the current scanning mode is switched to the target scanning mode, and the scanning mode set corresponding to the target scanning mode is obtained and used to scan the lamp tube of the infrared touch frame. Without increasing the hardware cost and the difficulty of the touch algorithm, 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 combining multiple scanning modes, so that the infrared touch frame can adapt to the 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 taking into account the requirements of the touch algorithm and the hardware performance of the device, so that the two can play their respective best performances, saving the hardware cost of the infrared touch device and the difficulty of signal processing technology, and improving the scanning effect. .

[0118] In one embodiment, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor executes the steps of the infrared touch frame switching scanning method of any of the above embodiments. Figure 7 , Figure 7 This is a schematic diagram of an exemplary computer device structure, which may include a processor, a memory, a communication interface, etc. connected through 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, and the wireless manner can be implemented through WIFI, a 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.

[0119] 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 application, and does not constitute a limitation on the controller to which the scheme of the present application is applied. The specific controller may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0120] In one embodiment, the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0121] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed 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 the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can 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 this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not 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.

[0122] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached 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 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 it is necessary to switch to the full-frame scanning mode, the received signal of the scan subframe that has been acquired is uploaded to the touch control 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 to complete the 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.