A reporting point delay detection system for touch screen scribing detection
By designing a point delay detection system, using delay detection processing MCU and RS-232 conversion circuit, high-precision measurement of the point delay time of the touch screen is achieved, solving the problem that the 0.1ms level accuracy cannot be met in the prior art, and has good compatibility and low cost.
Patent Information
- Application Number
- CN202211300494.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-24
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-10-24
AI Technical Summary
The prior art cannot realize high-precision measurement of the 0.1ms level touch screen point delay time, and cannot meet customers' detection needs.
A point delay detection system including a TP connector, a level conversion unit, a protocol converter, a USB connector and a host computer is designed. Through delay detection, the MCU and RS-232 conversion circuit is processed, and the timing-related signals of the touch screen are received and processed, and data analysis is combined with the host computer to realize high-precision point delay detection.
It realizes a 0.1ms level point delay detection accuracy, is compatible with existing machines, does not affect the original functions, and is flexible in detection and low in cost.
Smart Images

Figure CN115639922B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of touch screen detection, and particularly to a reporting point delay detection system for touch screen scribing detection. Background Art
[0002] During the design and production process of a touch display screen module, scribing detection needs to be performed on the touch function to confirm whether the screen function is normal. Usually, the scribing detection method is used. The scribing detection method is to use a scribing detection machine to perform the detection. The machine fixes the screen on the platform, and above the platform is an automatic pen tip with the function of moving in the X / Y / Z directions; the screen data output is connected to the test host (PC) through a level and protocol converter. The host controls the pen tip to rise and fall or move in a scribing manner above the specified position of the screen. The test host receives the coordinate reporting point data sent by the screen and compares it with the actual position of the pen tip to judge the correctness or error range of the screen reporting point data, so as to realize the test of the touch function of the screen.
[0003] With the development of technology and the improvement of product functions, the demand for touch screen detection has gradually increased, and the detection requirements have become higher and higher. Currently, customers have put forward a new requirement: it is necessary to detect the response speed or reporting point delay time of the touch screen, that is, it is necessary to detect the time difference from the moment the pen tip falls to the output of the reporting point data, or from the moment the pen tip moves through a specified coordinate point during the scribing stage to the output of the reporting point data of that coordinate point. Customers clearly require that the measurement accuracy of this time difference needs to reach 0.1 ms. However, since the test host is usually a PC system and cannot achieve timing at the 0.1 ms level, a new reporting point delay detection system is needed to achieve high-precision measurement of the reporting point delay time. Summary of the Invention
[0004] In order to solve the above problems, the present invention provides a reporting point delay detection system for touch screen scribing detection.
[0005] The present invention is realized through the following technical solutions:
[0006] A reporting point delay detection system for touch screen scribing detection, comprising a TP connector, a level conversion unit, a protocol converter, a USB connector and a host computer. The TP connector is connected to the level conversion unit, the level conversion unit is connected to the protocol converter, the protocol converter is connected to the host computer through the USB connector. The TP connector and the level conversion unit are responsible for converting the signal level of the touch screen into a general level. The protocol converter converts the IIC or SPI protocol of the touch screen interface into a USB protocol for the host computer, and then is connected to the host computer through the USB connector. The detection system further includes a delay detection processing MCU, an RS-232 conversion circuit, and a programmable power supply. The delay detection processing MCU receives five timing-related signals provided by the level conversion unit, processes them to form a data packet, and then provides it to the host computer through the RS-232 conversion circuit. The programmable power supply can provide a programmable voltage for the touch screen according to the host computer instruction, and the programmable power supply is connected to the level conversion unit. The five timing-related signals are respectively the reporting point interrupt application INTR provided by the touch screen, the IIC bus clock SCL, the SPI bus clock SCK, and the click trigger Trig1 and position trigger Trig2 provided by the machine tool PLC. Among them, the reporting point interrupt application INTR, the click trigger Trig1 and position trigger Trig2 signals provided by the machine tool PLC are connected to the external interrupt trigger pins of the delay detection processing MCU. The SCL and SCK signals are connected to the external counter counting input pins of the delay detection processing MCU.
[0007] The interface between the delay detection processing MCU and the host computer is a UART serial communication interface.
[0008] Compared with the prior art, the beneficial effects of the present invention are:
[0009] The present invention is fully compatible with the existing machine tools, and only needs to add a detection module to the existing machine tools to realize the reporting point delay detection function. This system can meet the detection of the reporting point delay of the pen tip click and the moving reporting point delay, with a delay measurement accuracy of 0.1 ms, and the detection accuracy can meet the requirements of customers. The newly added detection module only listens and counts the message clock sent by the touch screen, does not intervene in the message sending, receiving and parsing, and has no impact on the original functions of the machine tool. The message parsing work is executed by the host computer, which maximally ensures the compatibility and expandability for the touch types. It realizes the programmable management of the touch screen power supply, making it more flexible and convenient to use. The delay detection system is simple and easy to implement, with low cost and is convenient for popularization. Description of the Drawings
[0010] Figure 1 It is a schematic structural diagram of the present invention. Detailed Embodiment
[0011] The present invention will be further described below with reference to the drawings:
[0012] As shown in the accompanying drawings of the specification Figure 1 As shown, a reporting point delay detection system for touch screen line drawing detection, characterized in that: it includes a TP connector, a level conversion unit, a protocol converter, a USB connector and a host computer. The TP connector is connected to the level conversion unit, the level conversion unit is connected to the protocol converter, the protocol converter is connected to the host computer through the USB connector. The TP connector and the level conversion unit are responsible for converting the signal level of the touch screen into a general level. The protocol converter converts the IIC or SPI protocol of the touch screen interface into a USB protocol for the host computer, and then is connected to the host computer through the USB connector. The detection system further includes a delay detection processing MCU, an RS-232 conversion circuit, and a programmable power supply. The delay detection processing MCU receives five timing-related signals provided by the level conversion unit and processes them to form a data packet, and then provides it to the host computer through the RS-232 conversion circuit. The programmable power supply can provide a programmable voltage for the touch screen according to the host computer instruction, and the programmable power supply is connected to the level conversion unit. The five timing-related signals are respectively the reporting point interrupt application INTR provided by the touch screen, the IIC bus clock SCL, the SPI bus clock SCK, and the click trigger Trig1 and position trigger Trig2 provided by the machine tool PLC. Among them, the reporting point interrupt application INTR, the click trigger Trig1 and position trigger Trig2 signals provided by the machine tool PLC are connected to the external interrupt trigger pins of the delay detection processing MCU. The SCL and SCK signals are connected to the external counter counting input pins of the delay detection processing MCU. The interface between the delay detection processing MCU and the host computer is a UART serial communication interface.
[0013] The technology of the present invention includes two key aspects. One is the modification of the machine tool control unit so that it can send out trigger signals for pen tip clicks and pen tip coordinates. The other is the circuit unit that receives trigger and reporting point data signals and realizes delay detection.
[0014] In order to enable the machine tool control unit to send out trigger signals for pen tip clicks and pen tip coordinates, the program of the machine tool control PLC can be modified so that it counts the counting units of the stepping motor drivers in the X / Y / Z three directions. When the count value meets the trigger coordinate value, click trigger and coordinate trigger signals are respectively sent out and provided to the newly added circuit unit.
[0015] The structural schematic diagram of the reporting point delay detection system is as Figure 1 shown:
[0016] Among them, the units in the original circuit block are units in the existing machine conversion circuit: the TP connector and the level conversion unit are responsible for converting the signal level of the touch screen into a general level; the protocol converter converts the IIC or SPI protocol of the touch screen interface into the USB protocol for the host computer; and then it is connected to the host computer through the USB connector.
[0017] In the newly added circuit block diagram, a delay detection processing MCU is added. It receives five timing-related signals provided by the level conversion unit, processes them to form data packets, and then provides them to the host computer through the RS-232 conversion circuit. The five timing-related signals are the reporting point interrupt application INTR provided by the touch screen, the IIC bus clock SCL and the SPI bus clock SCK, and the click trigger Trig1 and the position trigger Trig2 provided by the machine tool PLC.
[0018] The programmable power supply in the newly added circuit block diagram can provide a programmable voltage for the touch screen according to the host computer instruction, replacing the DIP switch voltage setting circuit in the original circuit, and can achieve more convenient software configuration. This is because for different touch screen models, different power supply voltages such as 3.3V / 2.8V / 2.5V / 1.8V may need to be provided. The main function of the level conversion unit in the original circuit is also to uniformly convert the touch screen signal levels under the above different power supply voltages into 3.3V signal levels for subsequent circuit processing.
[0019] To facilitate the capture and processing of relevant signals and the sending and receiving of packets by the delay detection processing MCU, the INTR, Trig1, and Trig2 signals are connected to the external interrupt trigger pins of the MCU; the SCL and SCK signals are connected to the external counter counting input pins of the delay detection processing MCU; the interface between the delay detection processing MCU and the host computer is the UART serial communication interface.
[0020] The implementation principle of the reporting point delay detection function designed in this case is as follows:
[0021] 1. The delay detection processing MCU receives the host computer instruction, appropriately configures the touch screen power supply, and enters the working state;
[0022] 2. The host computer configures the reporting point delay detection mode of the delay detection processing MCU, such as the sequence of the three interrupts INTR, Trig1, and Trig2, the frequency range of SCL or SCK, the internal timer period, etc.;
[0023] 3. The host computer sends an instruction to the delay detection processing MCU to enter the reporting point delay detection process. After receiving the instruction, the delay detection processing MCU waits for the first interrupt signal;
[0024] 4. After the MCU receives the earliest-arriving interrupt signal, it starts the internal timer interrupt and starts the SCL or SCK external counter;
[0025] 5. The MCU responds to each internal timer interrupt, queries the pin status of the three interrupt signals and the count value of the SCL or SCK counter, and stores them in the reporting point timing data buffer in the following format sequence;
[0026]
[0027] 6. After the data stored in the reporting point timing data buffer by the MCU reaches a certain quantity, it is converted into an RS-232 message through the UART and sent to the host computer, and the host computer caches the reporting point timing data;
[0028] 7. After the entire click or scribing action is completed, the host computer analyzes based on the stored reporting point timing data and the reporting point data received through the USB interface to obtain the required reporting point delay parameter.
[0029] In this embodiment, the data packet sent to the host computer through the USB interface is sent by the touch screen main control IC. The formats of data packets of different IC types are different, and the time interval between data packets during the actual scribing process is also uncontrollable. Therefore, the host computer needs to parse according to the driver programs of different ICs to obtain the data packet positions of the click and scribing coordinates, and calculate the number of IIC bus (or SPI bus) clocks TG_CNT corresponding to the target message based on this.
[0030] The reporting point timing data sent to the host computer through RS-232 is a 16-bit data sequence containing three status signals, INTR, Trig1, and Trig2, and the count value of the IIC bus (or SPI bus) clock. The interval between adjacent 16-bit data is determined by the time width of the MCU internal timer interrupt. Each 16-bit data corresponds to a real-time time. The host computer can know the corresponding time T1 of this status by searching for the address of the 16-bit message where the desired INTR, Trig1, and Trig2 statuses are located in the sequence; similarly, by searching for the address of the message where the cumulative clock count value reaches the target message TG_CNT in the sequence, it can also know the corresponding time T2 of the target message. The difference between T1 and T2 is the reporting point delay time to be detected.
[0031] Therefore, the detection accuracy of the reporting point delay time is determined by the timing width of the MCU internal timer interrupt. By setting this timing width to 50 us, a delay detection accuracy of 0.1 ms can be achieved.
[0032] In summary, the above are only the preferred embodiments of the present invention and are not intended to limit the scope of implementation of the present invention. All equivalent changes and modifications made in accordance with the shape, structure, features and spirit described in the scope of the claims of the present invention shall be included within the scope of the claims of the present invention.
Claims
1. A reporting point delay detection system for touch screen scribing detection, characterized in that: It includes a TP connector, a level conversion unit, a protocol converter, a USB connector and a host computer. The TP connector is connected to the level conversion unit, the level conversion unit is connected to the protocol converter, the protocol converter is connected to the host computer through the USB connector. The TP connector and the level conversion unit are responsible for converting the signal level of the touch screen into a general level. The protocol converter converts the IIC or SPI protocol of the touch screen interface into a USB protocol for the host computer, and then is connected to the host computer through the USB connector. The detection system further includes a delay detection and processing MCU, an RS-232 conversion circuit, and a programmable power supply. The delay detection and processing MCU receives five timing-related signals provided by the level conversion unit and processes them to form a data packet, which is then provided to the host computer through the RS-232 conversion circuit. The programmable power supply can provide a programmable voltage for the touch screen according to the host computer instruction, and the programmable power supply is connected to the level conversion unit. The five timing-related signals are respectively the reporting point interrupt application INTR provided by the touch screen, the IIC bus clock SCL, the SPI bus clock SCK, and the click trigger Trig1 and position trigger Trig2 provided by the machine tool PLC. Among them, the reporting point interrupt application INTR, the click trigger Trig1 and the position trigger Trig2 signals provided by the machine tool PLC are connected to the external interrupt trigger pins of the delay detection and processing MCU; the SCL and SCK signals are connected to the external counter counting input pins of the delay detection and processing MCU.
2. The point reporting delay detection system for touch screen scribing detection according to claim 1, characterized in that: The interface between the delay detection and processing MCU and the host computer is a UART serial communication interface.
Citation Information
Patent Citations
Point report delay detection system for touch screen lineation detection
CN218728999U