Device for simulating HY46xx series touch screen chip to send touch signal

By simulating the signal conversion equipment of the HY46xx series touch screen chip, using the main control chip to parse the serial port data and simulate the touch function through the IIC protocol, the problem of low efficiency of manual operation is solved, and the touch screen operation can be controlled by computer instructions, thereby improving the test efficiency and equipment applicability.

CN120653502AActive Publication Date: 2025-09-16DONGHUA UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510719650.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-16
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

In the prior art, it is necessary to manually click or slide at a specific position on the touch screen to test the UI interface function, and a host computer is required to issue control instructions to control multiple production equipment, resulting in low testing efficiency.

Method used

The signal conversion device that simulates the HY46xx series touch screen chip is used, including signal input, processing and output modules. The main control chip is used to receive and analyze serial port data, and the touch function is simulated through the IIC communication protocol to realize computer command control of touch screen operation.

Benefits of technology

It reduces manual repetitive work, improves test efficiency, can simulate multiple touch screen control signals, and expands the application space of signal conversion equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120653502A_ABST
    Figure CN120653502A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of industrial production control and dynamic detection, and discloses a device for simulating an HY46xx series touch screen chip to send a touch signal, which comprises signal conversion equipment, the signal conversion equipment is composed of a signal input module, a signal processing module and a signal output module, the signal conversion equipment is provided with a main control chip, and the main control chip is connected with the HY46xx series touch screen chip. The signal input module receives serial port data sent by a computer or other embedded devices, the serial port data are sent according to a serial port data sending format, and the signal processing module receives the serial port data through the main control chip and analyzes the serial port data. According to the device for simulating the HY46xx series touch screen chip to send the touch signal, an upper computer can be used for sending a serial port command and directly controlling a UI interface, repeated manual clicking and sliding operation on a touch screen are not needed, multiple devices can be controlled at the same time in a long distance, the detection efficiency and the automation degree of testing are improved, and the detection cost is reduced. And the operation intensity is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial production control and dynamic detection, and in particular to a device for simulating a HY46xx series touch screen chip to send a touch signal. Background Art

[0002] A touch screen is a device that detects and locates touches made by a user's finger or a dedicated pen, allowing users to interact with electronic devices by directly touching the screen. The development of touch screen technology has greatly improved the human-computer interaction experience, making operation more intuitive and convenient. During the design of a device's screen display, a user interface (UI) is often designed to facilitate human-computer interaction. This interface clearly displays the device's various functions and status. Users can enable, disable, or switch device functions by tapping corresponding areas on the touch screen. In touch screen design, a control chip typically analyzes and processes user actions such as clicks and swipes, generating information such as the number of touch points, touch coordinates, and touch pressure. This information is then transmitted to the host computer. For UI testers, verifying that the UI implemented on a touch screen complies with the predefined logic often requires tapping or swiping specific locations on the touch screen to test whether the UI switching function is functioning properly. In industrial production environments, a host computer is required to control production equipment, requiring the host computer to issue control commands to select and apply device functions.

[0003] Currently, UI interface testers need to verify whether the UI interface on the touch screen complies with the set logic by clicking or sliding at a specific position on the touch screen to test whether the switching function of the UI interface is normal. In addition, they need to use a host computer to control the production equipment, requiring the host computer to issue control instructions to select and apply the equipment functions. They also need to control multiple identical production equipment at the same time, which requires manual execution of simple and repetitive click and slide operations, resulting in relatively low testing efficiency. Summary of the Invention

[0004] (1) Technical problems solved

[0005] In response to the shortcomings of the existing technology, the present invention provides a device for simulating the transmission of touch signals by HY46xx series touch screen chips, which solves the problem of needing to click or slide at a specific position on the touch screen to test whether the switching function of the UI interface is normal. In addition, it is necessary to use a host computer to control the production equipment, requiring the host computer to issue control instructions to realize the selection and application of equipment functions, and it is also necessary to control multiple identical production equipment at the same time, resulting in the need for manual execution of simple and repetitive click and slide operations, and the problem of relatively low testing efficiency.

[0006] (2) Technical solution

[0007] To achieve the above-mentioned objectives, the present invention provides the following technical solutions: a device for simulating a touch signal sent by a HY46xx series touch screen chip, comprising a signal conversion device, the signal conversion device being composed of a signal input module, a signal processing module, and a signal output module, the signal conversion device being provided with a main control chip;

[0008] The signal input module receives serial port data sent by computers and other embedded devices, and the serial port data is sent according to the serial port data sending format;

[0009] The signal processing module uses the main control chip to receive serial port data and parse it to simulate the data protocol of the touch screen chip;

[0010] The signal output module sends a touch request to the touch screen host and sends the touch data to the touch screen host through the IIC communication protocol to realize the simulated touch function. The signal output module uses a pin header to lead out the signal line to facilitate connection and pairing with the touch screen host.

[0011] Preferably, the signal input module selects CH340N as the USB to serial port chip, and connects the computer end to the signal conversion device using a USB data cable for serial communication. In addition, there is a serial port interface in the signal conversion device that is led out by a pin header, which is convenient for connection with other embedded devices. When in use, a jumper cap is required to select the specific serial port to be used.

[0012] Preferably, the main control chip adopts STM32F103C8T6 chip, and the signal output module uses STM32F103C8T6 to receive and process serial port data and send the processed data to the touch screen host using IIC communication protocol.

[0013] Preferably, when the serial port data is sent according to the serial port data sending format, the number of contacts that need to be sent, the state of each contact, and the horizontal and vertical coordinates of the touch screen where each contact is located are first determined. For the case where there are less than 11 contacts, the horizontal and vertical coordinates of the excess contacts are set to 0, and the mode is selected as Reserved. The data of each contact is stored in an array according to the serial port data sending format, and the serial port is waiting to send the data to the main control chip.

[0014] Preferably, the states of the contacts include Down, Up and Contact, the contact first contact mode is set to Down, the contact continuous contact and sliding mode is set to Contact, and the contact release mode is set to Up.

[0015] Preferably, the main control chip stores the data sent by the serial port in the data receiving area, performs data splicing and contact mode judgment on the data in the receiving area according to the serial port data sending format, records the horizontal and vertical coordinates, contact mode and assigned contact ID of each contact, and stores all contact information in the IIC data sending buffer according to the IIC data communication protocol. In addition, through the SWD program burning interface, other touch screen chip communication protocols are burned to realize the control of the touch screen host equipped with other touch screen chips.

[0016] Preferably, the main control chip receives serial port data sent by a computer or embedded device, and transfers the data to a Bit58 array buffer. In order to judge the accuracy of the serial port data reception, the data from Bit1 to Bit57 in the buffer are accumulated, and the lower eight bits are compared with Bit58. If the two data are the same, the serial port is used to send the character "T" to the computer to indicate that the communication is successful. If the two serial port data do not match, the character "F" is sent to the computer to indicate that the communication has failed and request for recommunication.

[0017] Preferably, the IIC data communication protocol is a synchronous communication protocol, which requires the host to initiate a communication request, the slave to send a response signal, the main control chip pulls down the INT pin to initiate a touch event to the touch screen host, the touch screen host sends an IIC start signal, the slave device address signal and data address signal that need to be responded to, and then enters the data reception waiting state. After receiving and matching the correct slave device address and data offset address, the main control chip sends the data in the IIC data sending buffer. When the touch screen host receives the IIC data, it will execute the required touch task.

[0018] Preferably, the main control chip stores the parsed contact data in a corresponding structure, and organizes the data in the structure into an IIC data sending buffer according to the IIC data transmission protocol provided by the HY46xx series touch screen chip. The main control chip pulls down the INT pin to trigger the host's request for a touch screen event. The host sends the touch screen IIC slave address and data offset address to the main control chip. The main control chip enters the IIC receive interrupt to respond to the address information sent by the host, and sends the data in the IIC data buffer to the host. After the data is sent, the INT pin is pulled high to indicate the end of the touch event.

[0019] (3) Beneficial effects

[0020] Compared with the prior art, the present invention provides a device for simulating the sending of touch signals by a HY46xx series touch screen chip, which has the following beneficial effects:

[0021] 1. The touch point coordinate data is sent to the signal conversion device of the present invention through the serial port of a computer or other embedded device to realize the operation of the touch screen, thereby expanding the application space of the signal conversion device.

[0022] 2. Convert manual clicks or slides on the touch screen into computer command control, reducing manual simple repetitive and continuous labor during the touch screen testing phase.

[0023] 3. For different touch screens that use IIC for communication, you only need to modify the data communication protocol in the signal conversion device to simulate a variety of touch screen control signals. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a diagram of the output pins of the HY46xx series chip in a device for simulating the sending of touch signals by the HY46xx series touch screen chip proposed by the present invention;

[0025] Figure 2 This is a schematic diagram of a printed circuit board of a signal conversion equipment (SCE) in a device for simulating a HY46xx series touch screen chip sending a touch signal, as proposed by the present invention;

[0026] Figure 3 This is a 3D model diagram of the signal conversion equipment (SCE) in the device for simulating the transmission of touch signals by the HY46xx series touch screen chip proposed by the present invention;

[0027] Figure 4a The circuit principle of the signal conversion device (SCE) in the device for simulating the touch signal sent by the HY46xx series touch screen chip proposed by the present invention Figure 1 ;

[0028] Figure 4b The circuit principle of the signal conversion device (SCE) in the device for simulating the touch signal sent by the HY46xx series touch screen chip proposed by the present invention Figure 2 ;

[0029] Figure 5 This is a control flow chart of the signal conversion equipment (SCE) in a device for simulating the sending of touch signals by a HY46xx series touch screen chip proposed by the present invention;

[0030] Figure 6 This is a flow chart of the UI interface of a microwave oven controlled by PC commands in the experimental example of the present invention. DETAILED DESCRIPTION

[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0032] Example: Refer to the attached Figure 1-5 A device simulating a touch signal sent by a HY46xx series touch screen chip, comprising a signal conversion device, the signal conversion device consisting of a signal input module, a signal processing module, and a signal output module, the signal conversion device being provided with a main control chip, the main control chip being an STM32F103C8T6 chip;

[0033] The signal input module receives serial port data sent by a computer or other embedded device. The serial port data is sent according to the serial port data transmission format. The signal input module uses CH340N as the USB to serial port chip. The computer end is connected to the signal conversion device using a USB data cable for serial port communication. In addition, the signal conversion device also has a serial port interface led out by a pin header, which is convenient for connecting to other embedded devices. When in use, a jumper cap needs to be used to select the specific serial port to be used;

[0034] The main control chip stores the data sent by the serial port in the data receiving area, and performs data splicing and contact mode judgment on the data in the receiving area according to the serial port data transmission format, records the horizontal and vertical coordinates, contact mode and assigned contact ID of each contact, and stores the contact information in the IIC data sending buffer according to the IIC data communication protocol. In addition, through the SWD program burning interface, other touch screen chip communication protocols are burned to realize the control of the touch screen host by other touch screen chips. The main control chip receives the serial port data sent by the computer or embedded device, and transfers the data to a Bit58 array buffer. In order to judge the accuracy of the serial port data reception, the data from Bit1 to Bit57 in the buffer are accumulated, and the lower eight bits are compared with Bit58. If the two data are the same, the serial port is used to send the character "T" to the computer to indicate that the communication is successful. If the two serial port data do not match, the character "F" is sent to the computer to indicate that the communication failed and request recommunication.

[0035] The signal conversion device (SCE) uses the STM32F103C8T6 (abbreviated as STM32) as the main control chip. This chip receives serial port signals and parses the serial port data into IIC signals sent by the simulated touch screen. The chip has UART and IIC peripherals, as well as UART and IIC interrupt receive and send functions, which facilitates the timely reception of serial port information sent by computers or embedded devices and uses the IIC peripherals to send simulated touch screen signals. To convert the voltage applicable to the computer serial port into the voltage acceptable by the STM32 main control chip, the signal conversion device (SCE) uses the CH340N chip to achieve compatibility between the two voltages. This allows direct connection to the invention device using a single data cable, enabling direct communication between the computer and the invention device.

[0036] The Signal Conversion Equipment (SCE) defines the following protocols to meet the serial communication requirements of the device, enabling the device to correctly parse the serial port information sent by the computer or embedded device. The device can simultaneously operate on up to 11 touch points of the touch screen controlled by the HY46xx series chip;

[0037] Table 1 Serial port data transmission format

[0038]

[0039]

[0040] The signal processing module uses the main control chip to receive and parse the serial port data, simulating the data protocol of the touch screen chip. The signal output module uses STM32F103C8T6 to receive and process the serial port data and send the processed data to the touch screen host using the IIC communication protocol. When the serial port data is sent according to the serial port data transmission format, the number of contacts to be sent, the state of each contact, and the horizontal and vertical coordinates of the touch screen at each contact are first determined. The states of each contact include Down, Up, and Contact. The first contact mode is set to Down, the continuous contact and sliding mode of the contact is set to Contact, and the mode is set to Up when the contact is released. For the case of less than 11 contacts, the horizontal and vertical coordinates of the redundant contacts are set to 0, and the mode is selected as Reserved. The data of each contact is stored in an array according to the serial port data transmission format, and the serial port is waiting for the data to be sent to the main control chip.

[0041] The signal output module sends a touch request to the touch screen host and sends the touch data to the touch screen host through the IIC communication protocol to realize the simulated touch function. The signal output module uses a pin header to lead out the signal line to facilitate connection and pairing with the touch screen host. The IIC data communication protocol is a synchronous communication protocol. The host needs to initiate a communication request, and the slave sends a response signal. The main control chip pulls down the INT pin to initiate a touch event to the touch screen host. The touch screen host sends an IIC start signal, the slave device address signal and the data address signal that need to be responded to, and then enters the data receiving waiting state. After receiving and matching the correct slave device address and data offset address, the main control chip sends the data in the IIC data sending buffer. When the touch screen host receives the IIC data, it will execute the required touch task;

[0042] Table 2 HY46xx series touch screen chip IIC data communication protocol

[0043]

[0044]

[0045]

[0046]

[0047] The main control chip stores the parsed contact data in the corresponding structure. According to the IIC data transmission protocol given by the HY46xx series touch screen chip, the data in the structure is sorted into the IIC data sending buffer. The main control chip pulls the INT pin low to trigger the host's request for the touch screen event. The host sends the touch screen IIC slave address and data offset address to the main control chip. The main chip enters the IIC receive interrupt to respond to the address information sent by the host, and sends the data in the IIC data buffer to the host. After the data is sent, the INT pin is pulled high to indicate the end of the touch event.

[0048] like Figure 1 The HY46xx series chip output pins are shown. These pins send the touch data processed by the HY46xx series chip to the reader. The reader parses the touch event according to the HY46xx series chip data communication protocol. The INT pin is used to indicate the initiation of a touch event. A touch event occurs when the INT pin generates a falling edge. The RESET pin is used to reset the HY46xx series chip. Before the chip is powered on, pull RESET low for more than 5ms, then power on the chip. After powering on, wait for more than 5ms and pull the RESET pin high. The chip can only be read or written after the RESET pin is pulled high for 1000ms. SCL and SDA are the clock and data lines for IIC communication, respectively. VDD is the chip power pin, and GND is the chip ground pin.

[0049] When in use, the present invention uses the serial port of the computer and the embedded device to send the coordinates of the target point to be clicked or slid as serial port data to the signal conversion device (SCE) of the present invention. The signal conversion device (SCE) processes the serial port data and simulates the control instructions issued by the touch screen chip to realize the operation of the UI interface of the controlled device. The touch point coordinate data is sent to the invented signal conversion device (SCE) through the serial port of the computer or other embedded device to realize the operation of the touch screen, thereby expanding the application space of the signal conversion device (SCE). By converting the manual click or slide action on the touch screen into computer command control, the simple repetitive and continuous manual labor is reduced during the testing phase of the touch screen. Secondly, for different touch screens using IIC for communication, it is only necessary to modify the data communication protocol in the signal conversion device (SCE) to simulate a variety of touch screen control signals.

[0050] Experimental example;

[0051] The signal conversion device (SCE) provided by the present invention is used to control the UI interface of a microwave oven;

[0052] The microwave oven uses the HY4635 chip as the touch screen control chip. The chip monitors the touch screen touch action of the human hand in real time and sends the touch action to the microwave oven main controller using the IIC signal. The main controller parses the IIC signal content and slides or jumps the microwave oven UI interface according to the human hand action on the touch screen. The purpose of this case is to send instructions via the PC to control the UI interface of the microwave oven, thereby realizing various operating functions of the microwave oven.

[0053] In this case, the signal conversion device (SCE) provided by the present invention acts as a communication bridge between the microwave oven and the PC. It converts the serial port instructions sent by the PC into IIC instructions that can be recognized and read by the microwave oven main controller. With the help of this signal conversion device (SCE), it is successfully achieved that the serial port instructions are sent through the PC, and then the click and slide operations are performed at any position on the microwave oven UI interface. The operation process is as follows: Figure 6 As shown, Figure 6 This is a flow chart of the UI interface of a microwave oven controlled by PC commands;

[0054] For the touch point state, if you need to click the touch screen, the touch event in the serial port data is pressed; if you need to slide the touch screen, the touch event in the serial port data is contact, and the touch event is changed to lift at the release point.

[0055] It should be noted that the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or apparatus that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0056] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.

Claims

1. A device for simulating touch signals sent by a HY46xx series touch screen chip, including a signal conversion device, characterized in that: The signal conversion device is composed of a signal input module, a signal processing module and a signal output module, and the signal conversion device is provided with a main control chip; The signal input module receives serial port data sent by a computer or other embedded device, and the serial port data is sent according to a serial port data sending format; The signal processing module uses the main control chip to receive serial port data and parse it to simulate the data protocol of the touch screen chip; The signal output module sends a touch request to the touch screen host and sends the touch data to the touch screen host through the IIC communication protocol to realize the simulated touch function. The signal output module uses a pin header to lead out the signal line to facilitate connection and pairing with the touch screen host.

2. The device for simulating a touch signal sent by a HY46xx series touch screen chip according to claim 1, characterized in that: The signal input module selects CH340N as the USB to serial port chip, and connects the computer end to the signal conversion device using a USB data cable for serial communication. In addition, there is a serial port interface in the signal conversion device that is led out by a pin header, which is convenient for connection with other embedded devices. When in use, a jumper cap needs to be used to select the specific serial port to be used.

3. The device for simulating a touch signal sent by a HY46xx series touch screen chip according to claim 1, characterized in that: The main control chip adopts STM32F103C8T6 chip, and the signal output module uses STM32F103C8T6 to receive and process serial port data and send the processed data to the touch screen host using the IIC communication protocol.

4. The device for simulating a touch signal sent by a HY46xx series touch screen chip according to claim 1, characterized in that: When the serial port data is sent according to the serial port data sending format, the number of contacts to be sent, the state of each contact, and the horizontal and vertical coordinates of the touch screen where each contact is located are first determined. If there are less than 11 contacts, the horizontal and vertical coordinates of the excess contacts are set to 0, the mode is selected as Reserved, and the data of each contact is stored in an array according to the serial port data sending format, waiting for the serial port to send the data to the main control chip.

5. The device for simulating a touch signal sent by a HY46xx series touch screen chip according to claim 4, characterized in that: The states of each contact include Down, Up and Contact. The contact first contact mode is set to Down, the contact continuous contact and sliding mode is set to Contact, and the contact is released mode is set to Up.

6. The device for simulating a HY46xx series touch screen chip sending a touch signal according to claim 1, characterized in that: The main control chip stores the data sent by the serial port in the data receiving area, performs data splicing and contact mode judgment on the data in the receiving area according to the serial port data sending format, records the horizontal and vertical coordinates, contact mode and assigned contact ID of each contact, and stores all contact information in the IIC data sending buffer according to the IIC data communication protocol. In addition, through the SWD program burning interface, other touch screen chip communication protocols are burned to realize the control of the touch screen host equipped with other touch screen chips.

7. The device for simulating a touch signal sent by a HY46xx series touch screen chip according to claim 6, characterized in that: The main control chip receives the serial port data sent by the computer or embedded device, and transfers the data to a Bit58 array buffer. To determine the accuracy of the serial port data reception, the data from Bit1 to Bit57 in the buffer are accumulated, and the lower eight bits are compared with Bit58. If the two data are the same, the serial port sends the character "T" to the computer to indicate that the communication is successful. If the two serial port data do not match, the character "F" is sent to the computer to indicate that the communication failed and request recommunication.

8. The device for simulating a HY46xx series touch screen chip sending a touch signal according to claim 1, characterized in that: The IIC data communication protocol is a synchronous communication protocol. The host needs to initiate a communication request, the slave sends a response signal, the main control chip pulls down the INT pin to initiate a touch event to the touch screen host, the touch screen host sends an IIC start signal, the slave device address signal and data address signal that need to be responded to, and then enters the data reception waiting state. After receiving and matching the correct slave device address and data offset address, the main control chip sends the data in the IIC data sending buffer. When the touch screen host receives the IIC data, it will execute the required touch task.

9. The device for simulating a HY46xx series touch screen chip sending a touch signal according to claim 1, characterized in that: The main control chip stores the parsed contact data in the corresponding structure, and organizes the data in the structure into the IIC data sending buffer according to the IIC data transmission protocol given by the HY46xx series touch screen chip. The main control chip pulls down the INT pin to trigger the host's request for the touch screen event. The host sends the touch screen IIC slave address and data offset address to the main control chip. The main chip enters the IIC receive interrupt to respond to the address information sent by the host, and sends the data in the IIC data buffer to the host. After the data is sent, the INT pin is pulled high to indicate the end of the touch event.

Citation Information

Patent Citations

  • IView-TK touch debugging system

    CN115408216A

  • Thigh touch sensing system and method based on finger control

    CN117666800A

  • Vehicle audio control system

    CN205395983U

  • Method, system, and intelligent terminal for processing touch failure at power-on of touch screen

    US20240211329A1