CN109358774B - Infrared touch screen scanning method, device, equipment and medium - Google Patents
Infrared touch screen scanning method, device, equipment and medium Download PDFInfo
- Publication number
- CN109358774B CN109358774B CN201811363447.XA CN201811363447A CN109358774B CN 109358774 B CN109358774 B CN 109358774B CN 201811363447 A CN201811363447 A CN 201811363447A CN 109358774 B CN109358774 B CN 109358774B
- Authority
- CN
- China
- Prior art keywords
- frame
- infrared light
- light signal
- receiver
- controlling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/042—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optical Communication System (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention discloses an infrared touch screen scanning method, which comprises the steps of controlling a first emitter on a first frame to emit a first infrared light signal, and controlling a receiver on a second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel; when the receiver on the second frame is detected to receive the first infrared light signal, controlling a second emitter of a third frame adjacent to the first frame to emit a second infrared light signal, and controlling a receiver on a fourth frame to receive the second infrared light signal, so that the emitter on the first frame and the emitter on the third frame scan alternately; the alternating scanning in the transverse and longitudinal directions of the infrared touch screen is realized, the time difference of scanning in the transverse and longitudinal directions is reduced, and the problem of asynchronism caused by the fact that scanning in one axis direction is finished firstly and then scanning in the other axis direction is finished is solved.
Description
Technical Field
The invention relates to the technical field of touch screens, in particular to an infrared touch screen scanning method, device, equipment and medium.
Background
The infrared touch screen is composed of infrared transmitting and receiving sensing elements arranged on an outer frame of the touch screen, an infrared detection network is formed on the surface of the screen, an object (such as a finger) for touch operation can change the infrared ray of a contact, and then the coordinate position of touch is obtained through photoelectric conversion processing to realize the response of the touch operation.
As shown in fig. 1, the existing infrared touch frame lamp tubes are distributed as follows, the infrared touch frame has four frames, the emitting lamps of the emitting frame are white, the receiving lamps of the receiving frame are black, and the emitting frame is opposite to the receiving frame. The infrared touch screen technology is that an infrared geminate transistor array is installed around a frame of an infrared touch screen and comprises infrared transmitting tubes and infrared receiving tubes, and the infrared transmitting tubes and the infrared receiving tubes correspond to each other one by one to form an optical network formed by infrared wiring. When the infrared touch screen works, a microprocessing control driving circuit (a shift latch) in the controller is sequentially connected with the infrared transmitting tubes, namely, only one infrared transmitting tube is controlled to transmit infrared light at a certain moment through the time sequence control circuit, meanwhile, the corresponding infrared receiving tube is addressed through the address line and the data line, the corresponding infrared receiving tube is controlled to receive the infrared light signal, the received and sensed luminous flux is amplified and converted into a digital signal through the amplifier and the AD converter, and then the digital signal is sent to the microprocessor through the data line to be processed, so that whether touch occurs or not is judged. When a user touches the screen, infrared light passing through the position in the transverse and vertical directions can be blocked by fingers, the change of optical signals causes the change of electric signals output by the photoelectric detection circuit, blocked infrared rays can be found during microprocessing scanning inspection, the possibility of touch is judged, after all infrared signals of an X axis are scanned, a Y axis is switched to scan, a corresponding infrared transmitting tube and an infrared receiving tube are started, if infrared rays are also found to be blocked on the Y axis again, the touch is found, the positions of infrared pair tubes corresponding to the blocked light rays on the two axes are reported to a host, and the position of a touch point on the screen is judged through calculation. The scan of each frame starts from the first lamp in the X-axis to the last lamp in the X-axis and then starts from the first lamp in the Y-axis to the last lamp in the Y-axis. Any touch object which is opaque to infrared light can block infrared light to realize touch positioning.
In the existing infrared touch technology, infrared signals of an X axis and a Y axis are detected by serial scanning, wherein the scanning mode is that emission lamps are sequentially lightened from the X axis to the Y axis (or from the Y axis to the X axis), the time for serially scanning the whole frame is relatively long, and all light rays blocked by a touch object in the directions of the X axis and the Y axis are detected to position the position of the touch object. When the touch object is stationary or moving slowly, the convergence area of the blocking ray on the X axis intersects with the convergence area of the blocking ray on the Y axis, and substantially intersects at the position of the touch object, so that the positioning can be realized by the intersection of the blocking ray on the X axis and the blocking ray on the Y axis, as shown in fig. 2 below.
The inventor finds that the existing infrared touch screen scanning method has the following defects in the implementation of the embodiment of the invention: as shown in fig. 3, a scanning manner starts from an X axis, scans all infrared signals on the X axis, and then switches to a Y axis direction to scan all infrared signals on the Y axis, the position of the touch object at time t1 is a1, the blocking ray convergence region on the X axis is a1, and the position of the touch object at scanning time when all the blocking rays on the X axis are scanned is a2, that is, the position of the touch object at time t2 is already a2, the blocking ray convergence region on the Y axis is a2, and due to the rapid movement of the touch object, the convergence region a1 of the blocking rays detected on the X axis at time t1 and the convergence region a2 of the blocking rays detected on the Y axis at time t2 cannot intersect at the same position, so that the convergence region of the blocking rays cannot be calculated according to the intersection point of the convergence region of the X axis and the Y axis, and the intersection point of the blocking rays of the convergence region a2 of the convergence region of the blocking rays detected on the Y axis at time t1 cannot intersect at the same position The coordinate position of the object, and thus, the object cannot be located.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, an apparatus, a device and a computer readable storage medium for infrared touch screen scanning, which can solve the problem that a touch object cannot be located when moving fast.
In a first aspect, an embodiment of the present invention provides an infrared touch screen scanning method, including the following steps:
controlling a first emitter on the first frame to emit a first infrared light signal;
controlling a receiver on a second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel;
when the receiver on the second frame is detected to receive the first infrared light signal, a second transmitter of a third frame adjacent to the first frame is controlled to transmit a second infrared light signal;
controlling a receiver on a fourth frame to receive the second infrared light signal so as to realize alternate scanning of the transmitter on the first frame and the transmitter on the third frame; wherein the receiver of the fourth frame corresponds to the transmitter of the third frame.
In a first possible implementation form of the first aspect,
and controlling the transmitter to transmit the infrared light signal, and simultaneously carrying out ADC conversion on the corresponding infrared light signal received by the receiver.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect,
the ADC converting the corresponding infrared light signal received by the receiver while controlling the transmitter to transmit the infrared light signal specifically includes:
performing ADC on the corresponding infrared light signal received by the receiver on the fourth frame at the previous moment while controlling a transmitter on the first frame to transmit the infrared light signal;
and performing ADC (analog-to-digital converter) conversion on the corresponding infrared light signal received by the receiver on the second frame at the last moment while controlling a transmitter on the third frame to transmit the infrared light signal.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect,
the controlling a first emitter on the first bezel to emit the first infrared light signal comprises:
sequentially controlling a first emitter on the first frame to emit the first infrared light signal according to a preset sequence;
the controlling a second emitter of a third bezel adjacent to the first bezel to emit a second infrared light signal comprises:
sequentially controlling a second transmitter on the third frame to transmit the second infrared light signal according to a preset sequence; wherein the third border is adjacent to the first border.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect,
further comprising:
and when detecting that the transmitter on any one of the first frame and the third frame finishes scanning, sequentially controlling the transmitter on the other frame to transmit infrared light signals according to a preset sequence, and simultaneously controlling the corresponding receiver to receive the infrared light signals.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect,
the controlling the receiver on the second bezel to receive the first infrared light signal comprises:
controlling receivers corresponding to the first emitter on the second frame to receive the first infrared light signal, wherein the number of the receivers is greater than or equal to 2;
the controlling the receiver on the fourth bezel to receive the second infrared light signal comprises:
and controlling receivers corresponding to the second transmitter on the fourth frame to receive the second infrared light signal, wherein the number of the receivers is greater than or equal to 2.
In a sixth possible implementation form of the first aspect,
the first frame is a short frame of the infrared touch frame, and the third frame is a long frame of the infrared touch frame.
In a second aspect, the present invention provides an infrared touch screen scanning device, including:
the first emission control module is used for controlling a first emitter on the first frame to emit a first infrared light signal;
the first receiving control module is used for controlling a receiver on the second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel;
the second emission control module is used for detecting that the receiver on the second frame receives the first infrared light signal and controlling a second emitter of a third frame adjacent to the first frame to emit a second infrared light signal;
a second receiving control module, configured to control a receiver on a fourth frame to receive the second infrared light signal, so as to implement alternate scanning between a transmitter on the first frame and a transmitter on the third frame; wherein the receiver of the fourth frame corresponds to the transmitter of the third frame.
In a third aspect, an embodiment of the present invention further provides an infrared touch screen scanning device, which is characterized by including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the infrared touch screen scanning method is implemented.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the infrared touch screen scanning method described above.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides an infrared touch screen scanning method, which comprises the steps of controlling a first emitter on a first frame to emit a first infrared light signal, and controlling a receiver on a second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel; and when detecting that the receiver on the second frame receives the first infrared light signal, controlling a second transmitter of a third frame adjacent to the first frame to transmit a second infrared light signal, and controlling a receiver on a fourth frame to receive the second infrared light signal, wherein the receiver of the fourth frame corresponds to the transmitter of the third frame. The transmitter on the first frame and the transmitter on the third frame scan alternately, the transmitters on the adjacent two frames are controlled to scan and transmit alternately in sequence, and then the corresponding receivers are controlled to receive, so that alternate scanning in the transverse and longitudinal directions of the infrared touch screen is realized, the time difference of scanning in the transverse and longitudinal directions is reduced, and the problem of asynchronism caused by the fact that scanning in one axis direction is completed before scanning in the other axis direction in the prior art is solved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a prior art infrared touch screen infrared tube distribution;
FIG. 2 is a schematic diagram of a prior art infrared touch screen scanning structure when a touch object is not moving fast;
FIG. 3 is a schematic diagram of a prior art infrared touch screen scanning structure when a touch object moves rapidly;
fig. 4 is a schematic flowchart of a scanning method of an infrared touch screen according to an embodiment of the present invention;
fig. 5 is a working schematic diagram of an infrared touch screen scanning method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an infrared touch screen scanning device according to a second embodiment of the present invention;
fig. 7 is a schematic diagram of an infrared touch screen scanning device according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 4, a schematic diagram of a flow method for infrared touch screen scanning according to an embodiment of the present invention is provided.
The embodiment of the invention provides an infrared touch screen scanning method, which comprises the following steps:
s11, controlling a first emitter on the first frame to emit a first infrared light signal;
s12, controlling a receiver on the second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel;
s13, detecting that the receiver on the second frame receives the first infrared light signal, and controlling a second emitter of a third frame adjacent to the first frame to emit a second infrared light signal;
s14, controlling a receiver on a fourth frame to receive the second infrared light signal so as to realize alternate scanning of the transmitter on the first frame and the transmitter on the third frame; wherein the receiver of the fourth frame corresponds to the transmitter of the third frame.
In the embodiment of the present invention, in step S11, a first transmitter on the first frame is controlled to transmit the first infrared light signal, and the corresponding infrared receiving tube is addressed via the address line and the data line, and a receiver on the second frame is controlled to receive the first infrared light signal; accordingly, in step S13, a second transmitter of a third frame adjacent to the first frame is controlled to transmit a second infrared light signal, and a receiver of a fourth frame is controlled to receive the second infrared light signal by addressing the corresponding infrared receiving tube through the address line and the data line.
In the embodiment of the present invention, each time a certain transmitter on a certain frame is controlled to transmit an infrared light signal, for example, a transmitter on the frame a is controlled to transmit an infrared light signal, after the infrared light signal is received, a transmitter on the frame B is controlled to transmit an infrared light signal, after the infrared light signal transmitted by the frame B is received, another transmitter on the frame a is controlled to transmit an infrared light signal, so as to perform an alternate scanning of A, B frames, and at the same time, a receiver corresponding to the transmitter is controlled to receive the infrared light signal, wherein only the corresponding receiver can receive the infrared light signal.
In the embodiment of the present invention, compared with the serial scanning mode in the prior art, a new scanning mode is proposed in the embodiment of the present invention to solve the problem of asynchronism caused by serial scanning in the prior art, and a first transmitter on a first frame is controlled to transmit a first infrared light signal, and a receiver on a second frame is also controlled to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel; detecting that the receiver on the second frame receives the first infrared light signal, controlling a second transmitter of a third frame adjacent to the first frame to transmit a second infrared light signal, when a second transmitter of the third frame is controlled to transmit a second infrared light signal, the receiver of the fourth frame is also controlled to receive the second infrared light signal, wherein, the receiver of the fourth frame corresponds to the transmitter of the third frame, and so on, and then, controlling another first emitter of the first bezel to emit a first infrared light signal upon detecting that the receiver on the fourth bezel receives the second infrared light signal, when another second transmitter of the first frame is controlled to transmit the first infrared light signal, the receiver on the second frame can also be controlled to receive the first infrared light signal transmitted by the another second transmitter. Referring to fig. 5, assuming that the border where the white transmitter is located on the x-axis is a first border, the opposite border where the black receiver is located is a second border; the frame where the white transmitter on the Y axis is located is a third frame, and the frame where the black receiver opposite to the third frame is located is a fourth frame; at a first emitter X controlling said first bezel: after the T1 emits the first infrared light signal, the corresponding receiver X on the second frame is controlled: r1 … X: rm receives the first infrared light signal, wherein m is greater than or equal to 2; detection of receiver X: r1 … X: after receiving the first infrared light signal, Rm controls a second emitter Y on the third frame, and after T1 emits a second infrared light signal, controls a corresponding receiver Y on the fourth frame: r1, … Y: rm receives the second infrared light signal; detection of receiver Y: r1, … Y: and Rm controls another second emitter Y on the first frame to emit a first infrared light signal T2 after receiving the second infrared light signal, and turns on the emitting lamps on the X axis and the Y axis in sequence, so that the X axis and the Y axis scan alternately to complete one-frame complete scanning.
Illustratively, in the embodiment of the present invention, the infrared touch screen has a first frame, a second frame, a third frame and a fourth frame; the infrared signal processing method comprises the steps that a first frame is adjacent to three frames, emitters are uniformly distributed on the first frame, a second frame is adjacent to a fourth frame, receivers are uniformly distributed on the second frame, the emitters of the first frame correspond to the receivers of the second frame, when one emitter on the first frame is controlled to emit an infrared signal, the receiver on the second frame is addressed to conduct the infrared signal through address lines and data lines through microprocessing, the emitter of the third frame corresponds to the receiver of the fourth frame, and the principle is the same as that. The transmitter includes a shift latch, a constant current driving IC, an infrared transmitting tube, and the like, and the receiver includes a shift latch, an infrared receiving tube, an amplifying circuit, a sample-and-hold circuit, and an ADC converting circuit, which are not specifically limited in the present invention. The microprocessor is provided with a group of emission control ends for controlling the emission of the first frame and the reception of the second frame, and is also provided with a group of emission control ends for controlling the emission of the third frame and the reception of the fourth frame.
The working principle of the emitter is as follows: the microprocessor controls the clock and data input ends of the shift latch of the emitter on the first frame through the IO port, when the microprocessor sets the MR pin of the shift latch to high level through the IO port during scanning, the shift latch automatically sets the output pin Q0 to high level, then the clock signal CP is sent, and the shift latch automatically writes the data of Q0 into Q1 and stores the data during the rising period of the clock signal. Before the rising edge of the next clock pulse comes, the data of Q1 is written into Q2 and Q1 is automatically cleared, and the rest is carried out in sequence. The write pulse will shift continuously with the rising edge of the shift clock until the output is shifted out. With this feature of the shift latch, the pulse is shifted to the emitter tube on the rising edge of the shift clock and the emitter tube is lit. The output end of the first shift latch is connected with the input end of the next stage, and the written pulse can be shifted into the next stage, so that the cascade connection of the shift latches can realize the driving of a microprocessor to more emission tubes, and the emission tubes can be lightened one by combining the characteristics.
The working principle of the receiver is as follows: when a transmitting tube in the transmitter is lighted, the microprocessor simultaneously addresses a receiving tube corresponding to the position of the transmitting tube through an address line, the receiver converts the received sensed luminous flux into a current signal, then the current signal is converted into a voltage signal through a circuit, the converted voltage value is kept through an RC circuit, the keeping process is a capacitor charging process, the microprocessor judges whether the receiver receives an infrared light signal or not through detecting the voltage value of a sampling and holding circuit, and then the infrared light signal is amplified and converted into a digital signal through an amplifier and an ADC converter and then transmitted to the microprocessor through a data line for processing. By processing, the transmitting tubes and the receiving tubes can be in one-to-one correspondence, so that the basis is respected for determining the touch position, and the common receiver and the transmitter use the shifting latches of the same model, so that the transmitting tubes and the receiving tubes are in one-to-one correspondence in time sequence when the microprocessor sends scanning models and then addresses the corresponding receiving tubes.
As will be described in the following from the circuit operation process, the microprocessor is configured to control the first frame to transmit and the second frame to receive, control the clock and data input terminals of the shift latch of the first frame transmitter through the IO port, set the MR pin of the shift latch to a high level, according to the operation principle of the shift latch, shift the pulse to a first transmitter a1 on the first frame on the rising edge of the shift clock, light the transmitter a1 to send a first infrared light signal a1, and then address the corresponding infrared receiving tube on the second frame through the address line and the data line to receive the first infrared light signal a 1; when it is detected that the corresponding infrared receiving tube on the second frame receives the first infrared light signal a1, the microprocessor is configured to control two transmitting control ends of the third frame for transmitting and receiving the fourth frame, control a second transmitter B1 on the third frame through the IO port, light the transmitter B1 to send a second infrared light signal B1, address the corresponding infrared receiving tube on the fourth frame through the address line and the data line to receive the second infrared light signal B1, detect that the corresponding infrared receiving tube on the second frame receives the second infrared light signal B1, and control one transmitting control end of the first frame for transmitting and receiving the second frame and control transmitting and receiving of the first frame and the second frame through the IO port, and so on, thereby implementing the alternate scanning in the horizontal and vertical directions of the infrared touch screen.
In the embodiment of the present invention, when no touch is detected, dynamic serial scanning may be performed first, and after it is detected that the infrared shielding light is shielded, the alternating scanning in the horizontal and vertical directions in the embodiment of the present invention may be performed according to the position of the infrared pair tube of the shielded light, which is not specifically limited in the present invention.
In a first possible implementation form of the first aspect,
and controlling the transmitter to transmit the infrared light signal, and simultaneously carrying out ADC conversion on the corresponding infrared light signal received by the receiver.
In the embodiment of the invention, the transmitter is controlled to transmit the infrared light signal, and simultaneously, the corresponding infrared light signal received by the receiver is subjected to ADC conversion, so that the time of the whole scanning period is shortened through time multiplexing, and the scanning frame rate is improved.
It should be noted that, after receiving the infrared light signal, the receiver converts the light signal into a current signal, then converts the current signal into a voltage signal through a circuit, samples the current signal through an RC sample-and-hold circuit, and the microprocessor detects whether the receiver receives the infrared light signal by detecting the voltage converted by the RC sample-and-hold circuit.
Specifically, for example, assuming that a first transmitting tube a1 on a first frame transmits a first infrared light signal, and the microprocessor detects that a receiver on a fourth frame receives a second infrared light signal at the previous time, controlling a first transmitting tube a1 on the first frame to transmit the first infrared light signal and controlling a receiver on the fourth frame to perform ADC conversion on the received second infrared light signal at the previous time are performed simultaneously, because it takes time for the receiver on the second frame to receive the infrared light signal after the first transmitting tube a1 on the first frame transmits the infrared light signal, so that the fourth frame performs ADC conversion on the sampled and held voltage signal when the first frame transmits the infrared light signal.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect,
the ADC converting the corresponding infrared light signal received by the receiver while controlling the transmitter to transmit the infrared light signal specifically includes:
performing ADC on the corresponding infrared light signal received by the receiver on the fourth frame at the previous moment while controlling a transmitter on the first frame to transmit the infrared light signal;
and performing ADC (analog-to-digital converter) conversion on the corresponding infrared light signal received by the receiver on the second frame at the last moment while controlling a transmitter on the third frame to transmit the infrared light signal.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect,
the controlling a first emitter on the first bezel to emit the first infrared light signal comprises:
sequentially controlling a first emitter on the first frame to emit the first infrared light signal according to a preset sequence;
the controlling a second emitter of a third bezel adjacent to the first bezel to emit a second infrared light signal comprises:
sequentially controlling a second transmitter on the third frame to transmit the second infrared light signal according to a preset sequence; wherein the third border is adjacent to the first border.
In the embodiment of the present invention, it is assumed that the preset sequence is a triggering sequence of the first transmitter of the first frame is a1, a2, A3 … Am, and a triggering sequence of the second transmitter of the third frame is B1, B2, B3 … Bn, where m and n are greater than or equal to 4, which is not limited in this invention. After controlling the a1 to emit the first infrared light signal a1, the B1 is controlled to emit the second infrared light signal B1 according to the horizontal and vertical direction alternate scanning, then the a2 first infrared light signal a2 of the first frame is controlled according to the preset sequence, then the B2 is controlled to emit the second infrared light signal B2 according to the horizontal and vertical direction alternate scanning, and so on, so as to realize the complete scanning of one frame.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect,
further comprising:
and when detecting that the transmitter on any one of the first frame and the third frame finishes scanning, sequentially controlling the transmitter on the other frame to transmit infrared light signals according to a preset sequence, and simultaneously controlling the corresponding receiver to receive the infrared light signals.
In the embodiment of the present invention, if the number of the transmitters of the first frame is inconsistent with the number of the transmitters of the second frame, assuming that all the transmitters of the first frame have been scanned, the transmitters of the third frame are controlled to scan in sequence according to the preset sequence.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect,
the controlling the receiver on the second bezel to receive the first infrared light signal comprises:
controlling receivers corresponding to the first emitter on the second frame to receive the first infrared light signal, wherein the number of the receivers is greater than or equal to 2;
the controlling the receiver on the fourth bezel to receive the second infrared light signal comprises:
and controlling receivers corresponding to the second transmitter on the fourth frame to receive the second infrared light signal, wherein the number of the receivers is greater than or equal to 2.
In the embodiment of the invention, the infrared scanning adopts a one-shot multi-receiving mode, namely, one emitter and a plurality of receivers correspondingly receive at the same time.
In a sixth possible implementation form of the first aspect,
the first frame is a short frame of the infrared touch frame, and the third frame is a long frame of the infrared touch frame.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides an infrared touch screen scanning method, which comprises the steps of controlling a first emitter on a first frame to emit a first infrared light signal, and controlling a receiver on a second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel; and when detecting that the receiver on the second frame receives the first infrared light signal, controlling a second transmitter of a third frame adjacent to the first frame to transmit a second infrared light signal, and controlling a receiver on a fourth frame to receive the second infrared light signal, wherein the receiver of the fourth frame corresponds to the transmitter of the third frame. The transmitter on the first frame and the transmitter on the third frame scan alternately, the transmitters on the adjacent two frames are controlled to scan and transmit alternately in sequence, and then the corresponding receivers are controlled to receive, so that alternate scanning in the transverse and longitudinal directions of the infrared touch screen is realized, the time difference of scanning in the transverse and longitudinal directions is reduced, and the problem of asynchronous quick movement caused by the fact that scanning in one axis direction is completed firstly and then scanning in the other axis direction is completed in the prior art is solved.
Example two
Referring to fig. 6, a schematic structural diagram of an infrared touch screen scanning device according to a second embodiment of the present invention is provided.
An infrared touch screen scanning device comprising:
a first emission control module 51 for controlling a first emitter on the first frame to emit a first infrared light signal;
a first receiving control module 52, configured to control a receiver on the second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel;
a second emission control module 53, configured to detect that the receiver on the second frame receives the first infrared light signal, and control a second emitter of a third frame adjacent to the first frame to emit a second infrared light signal;
a second receiving control module 54, configured to control a receiver on a fourth frame to receive the second infrared light signal, so as to implement alternate scanning between the transmitter on the first frame and the transmitter on the third frame; wherein the receiver of the fourth frame corresponds to the transmitter of the third frame.
In a first possible implementation manner of the embodiment of the present invention, the method further includes
And the conversion unit is used for controlling the emitter to emit the infrared light signal and simultaneously carrying out ADC conversion on the corresponding infrared light signal received by the receiver.
In combination with the first possible implementation manner of the embodiment of the present invention, in the second possible implementation manner of the embodiment of the present invention,
the conversion unit specifically includes:
performing ADC on the corresponding infrared light signal received by the receiver on the fourth frame at the previous moment while controlling a transmitter on the first frame to transmit the infrared light signal;
and performing ADC (analog-to-digital converter) conversion on the corresponding infrared light signal received by the receiver on the second frame at the last moment while controlling a transmitter on the third frame to transmit the infrared light signal.
In combination with the first possible implementation manner of the embodiment of the present invention, in a third possible implementation manner of the embodiment of the present invention,
the controlling a first emitter on the first bezel to emit the first infrared light signal comprises:
sequentially controlling a first emitter on the first frame to emit the first infrared light signal according to a preset sequence;
the controlling a second emitter of a third bezel adjacent to the first bezel to emit a second infrared light signal comprises:
sequentially controlling a second transmitter on the third frame to transmit the second infrared light signal according to a preset sequence; wherein the third border is adjacent to the first border.
In combination with the third possible implementation manner of the embodiment of the present invention, in a fourth possible implementation manner of the embodiment of the present invention,
further comprising:
and when detecting that the transmitter on any one of the first frame and the third frame finishes scanning, sequentially controlling the transmitter on the other frame to transmit infrared light signals according to a preset sequence, and simultaneously controlling the corresponding receiver to receive the infrared light signals.
In combination with the fourth possible implementation manner of the embodiment of the present invention, in a fifth possible implementation manner of the embodiment of the present invention,
the controlling the receiver on the second bezel to receive the first infrared light signal comprises:
controlling receivers corresponding to the first emitter on the second frame to receive the first infrared light signal, wherein the number of the receivers is greater than or equal to 2;
the controlling the receiver on the fourth bezel to receive the second infrared light signal comprises:
and controlling receivers corresponding to the second transmitter on the fourth frame to receive the second infrared light signal, wherein the number of the receivers is greater than or equal to 2.
In a sixth possible implementation of an embodiment of the invention,
the first frame is a short frame of the infrared touch frame, and the third frame is a long frame of the infrared touch frame.
The embodiment has the following beneficial effects:
the embodiment of the invention provides an infrared touch screen scanning method, which comprises the steps of controlling a first emitter on a first frame to emit a first infrared light signal, and controlling a receiver on a second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel; and when detecting that the receiver on the second frame receives the first infrared light signal, controlling a second transmitter of a third frame adjacent to the first frame to transmit a second infrared light signal, and controlling a receiver on a fourth frame to receive the second infrared light signal, wherein the receiver of the fourth frame corresponds to the transmitter of the third frame. The transmitter on the first frame and the transmitter on the third frame scan alternately, the transmitters on the adjacent two frames are controlled to scan and transmit alternately in sequence, and then the corresponding receivers are controlled to receive, so that alternate scanning in the transverse and longitudinal directions of the infrared touch screen is realized, the time difference of scanning in the transverse and longitudinal directions is reduced, and the problem of asynchronism caused by the fact that scanning in one axis direction is completed before scanning in the other axis direction in the prior art is solved.
EXAMPLE III
Referring to fig. 7, fig. 7 is a schematic diagram of an infrared touch screen scanning device provided in a third embodiment of the present invention, configured to execute an infrared touch screen scanning method provided in the third embodiment of the present invention, and as shown in fig. 7, the infrared touch screen scanning device includes: at least one processor 11, such as a CPU, at least one network interface 14 or other user interface 13, a memory 15, at least one communication bus 12, the communication bus 12 being used to enable connectivity communications between these components. The user interface 13 may optionally include a USB interface, and other standard interfaces, wired interfaces. The network interface 14 may optionally include a Wi-Fi interface as well as other wireless interfaces. The memory 15 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 15 may optionally comprise at least one memory device located remotely from the aforementioned processor 11.
In some embodiments, memory 15 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
an operating system 151, which contains various system programs for implementing various basic services and for processing hardware-based tasks;
and (5) a procedure 152.
Specifically, the processor 11 is configured to call the program 152 stored in the memory 15 to execute the infrared touch screen scanning method according to the above embodiment.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the infrared touch screen scanning method, and various interfaces and lines are used to connect various parts of the whole infrared touch screen scanning method.
The memory can be used for storing the computer program and/or the module, and the processor can realize various functions of the electronic device for infrared touch screen scanning by running or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the infrared touch screen scanning integrated module can be stored in a computer readable storage medium if it is realized in the form of software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and in a part that is not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are preferred and that acts and simulations are necessarily required in accordance with the invention.
Claims (8)
1. An infrared touch screen scanning method is characterized by comprising the following steps:
controlling a first emitter on the first frame to emit a first infrared light signal;
controlling a receiver on a second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel;
when the receiver on the second frame is detected to receive the first infrared light signal, a second transmitter of a third frame adjacent to the first frame is controlled to transmit a second infrared light signal;
controlling a receiver on a fourth frame to receive the second infrared light signal so as to realize alternate scanning of the transmitter on the first frame and the transmitter on the third frame; wherein the receiver of the fourth frame corresponds to the transmitter of the third frame;
wherein, in controlling a first emitter X of the first bezel: after the T1 emits the first infrared light signal, the corresponding receiver X on the second frame is controlled: r1, …, X: rm receives the first infrared light signal, wherein m is greater than or equal to 2; detection of receiver X: r1, …, X: after receiving the first infrared light signal, Rm controls a second emitter Y on the third frame, and after T1 emits a second infrared light signal, controls a corresponding receiver Y on the fourth frame: r1, …, Y: rm receives the second infrared light signal; detection of receiver Y: r1, …, Y: and Rm controls another second emitter Y on the first frame to emit a first infrared light signal T2 after receiving the second infrared light signal, and turns on the emitting lamps on the X axis and the Y axis in sequence, so that the X axis and the Y axis scan alternately to complete one-frame complete scanning.
2. The infrared touch screen scanning method of claim 1, further comprising:
controlling the transmitter to transmit the infrared light signal, and simultaneously performing ADC conversion on the corresponding infrared light signal received by the receiver;
wherein, the controlling the transmitter to transmit the infrared light signal and simultaneously performing ADC conversion on the corresponding infrared light signal received by the receiver specifically includes:
performing ADC on the corresponding infrared light signal received by the receiver on the fourth frame at the previous moment while controlling a transmitter on the first frame to transmit the infrared light signal;
and performing ADC (analog-to-digital converter) conversion on the corresponding infrared light signal received by the receiver on the second frame at the last moment while controlling a transmitter on the third frame to transmit the infrared light signal.
3. The method of claim 2, wherein controlling a first emitter on the first bezel to emit the first infrared light signal comprises:
sequentially controlling a first emitter on the first frame to emit the first infrared light signal according to a preset sequence;
the controlling a second emitter of a third bezel adjacent to the first bezel to emit a second infrared light signal comprises:
sequentially controlling a second transmitter on the third frame to transmit the second infrared light signal according to a preset sequence; wherein the third border is adjacent to the first border.
4. The infrared touch screen scanning method of claim 3, further comprising:
and when detecting that the transmitter on any one of the first frame and the third frame finishes scanning, sequentially controlling the transmitter on the other frame to transmit infrared light signals according to a preset sequence, and simultaneously controlling the corresponding receiver to receive the infrared light signals.
5. The infrared touch screen scanning method of claim 1,
the first frame is a short frame of the infrared touch frame, and the third frame is a long frame of the infrared touch frame.
6. An infrared touch screen scanning device, comprising:
the first emission control module is used for controlling a first emitter on the first frame to emit a first infrared light signal;
the first receiving control module is used for controlling a receiver on the second frame to receive the first infrared light signal; wherein the receiver of the second bezel corresponds to the transmitter of the first bezel;
the second emission control module is used for detecting that the receiver on the second frame receives the first infrared light signal and controlling a second emitter of a third frame adjacent to the first frame to emit a second infrared light signal;
a second receiving control module, configured to control a receiver on a fourth frame to receive the second infrared light signal, so as to implement alternate scanning between a transmitter on the first frame and a transmitter on the third frame; wherein the receiver of the fourth frame corresponds to the transmitter of the third frame;
wherein, in controlling a first emitter X of the first bezel: after the T1 emits the first infrared light signal, the corresponding receiver X on the second frame is controlled: r1, …, X: rm receives the first infrared light signal, wherein m is greater than or equal to 2; detection of receiver X: r1, …, X: after receiving the first infrared light signal, Rm controls a second emitter Y on the third frame, and after T1 emits a second infrared light signal, controls a corresponding receiver Y on the fourth frame: r1, …, Y: rm receives the second infrared light signal; detection of receiver Y: r1, …, Y: and Rm controls another second emitter Y on the first frame to emit a first infrared light signal T2 after receiving the second infrared light signal, and turns on the emitting lamps on the X axis and the Y axis in sequence, so that the X axis and the Y axis scan alternately to complete one-frame complete scanning.
7. An infrared touch screen scanning device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the infrared touch screen scanning method of any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the infrared touch screen scanning method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811363447.XA CN109358774B (en) | 2018-11-15 | 2018-11-15 | Infrared touch screen scanning method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811363447.XA CN109358774B (en) | 2018-11-15 | 2018-11-15 | Infrared touch screen scanning method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109358774A CN109358774A (en) | 2019-02-19 |
CN109358774B true CN109358774B (en) | 2021-06-22 |
Family
ID=65345356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811363447.XA Active CN109358774B (en) | 2018-11-15 | 2018-11-15 | Infrared touch screen scanning method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109358774B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111596787B (en) * | 2020-04-08 | 2023-06-09 | 深圳市鸿合创新信息技术有限责任公司 | Touch signal acquisition circuit of infrared touch device |
CN116483224A (en) * | 2022-01-14 | 2023-07-25 | 广州众远智慧科技有限公司 | Control method of infrared touch device and infrared touch system |
CN116719439B (en) * | 2022-09-27 | 2024-06-11 | 广州众远智慧科技有限公司 | Infrared signal scanning method and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6429857B1 (en) * | 1999-12-02 | 2002-08-06 | Elo Touchsystems, Inc. | Apparatus and method to improve resolution of infrared touch systems |
CN1325929C (en) * | 2003-11-17 | 2007-07-11 | 中国农业大学 | Infrared positioning system and method |
JP4637927B2 (en) * | 2008-04-01 | 2011-02-23 | Smk株式会社 | Input device scan control method, apparatus and recording medium |
KR20110131141A (en) * | 2011-08-22 | 2011-12-06 | 김용철 | Touchscreen device and scan method thereof |
CN104657000A (en) * | 2013-11-15 | 2015-05-27 | 中强光电股份有限公司 | Optical touch device and touch method thereof |
CN108536337A (en) * | 2018-03-20 | 2018-09-14 | 广州华欣电子科技有限公司 | The method and infrared touch frame of infrared touch frame scanning |
-
2018
- 2018-11-15 CN CN201811363447.XA patent/CN109358774B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109358774A (en) | 2019-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109358774B (en) | Infrared touch screen scanning method, device, equipment and medium | |
CN108874207B (en) | Touch processing device, system and method | |
CN108536337A (en) | The method and infrared touch frame of infrared touch frame scanning | |
US20220043553A1 (en) | Signal driving method, signal driving apparatus, stylus and signal driving system | |
CN112068739A (en) | Infrared touch response method, device and storage medium | |
CN112462984A (en) | Infrared touch scanning method and device and storage medium | |
CN101727246B (en) | Electronic device with infrared touch function and control method thereof | |
US4998014A (en) | Optical coordinate-input system | |
CN106249968B (en) | Scanning method and device | |
CN106383615B (en) | Unilateral infrared touch device, touch identification method and device | |
CN105373262B (en) | A kind of method and device of the identification invalid light path of infrared touch panel | |
CN113115101A (en) | LED display screen, distributed information display system and control method | |
CN110209294B (en) | Mouse control method and system and KVM system | |
CN212624743U (en) | Scanning circuit of infrared screen | |
CN115309288B (en) | Touch screen terminal and method for solving touch screen deadlock | |
CN112394839B (en) | Cursor suspension method of touch display screen and touch device | |
CN107122084B (en) | Method and device for identifying touch operation on infrared touch screen and terminal equipment | |
CN116107450A (en) | Touch point identification method and device of infrared touch screen and infrared touch screen | |
CN114415853A (en) | Touch point position determining method and device and electronic equipment | |
CN115793879A (en) | Scanning control method, system and device for touch display screen and readable storage medium | |
US10261618B2 (en) | Touch driving circuit and touch sensitive display panel | |
US20120075219A1 (en) | Detection method and detecting apparatus for detecting multiple touch points on touch panel | |
CN102857232A (en) | Key detection circuit and key detection method | |
CN210442786U (en) | Infrared touch screen and display device | |
CN201348775Y (en) | Electronic device with infrared touch function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |