An iView-TK Touch Debugging System
The iView-TK touch debugging system realizes stable communication between the touch MCU chip and the upper computer through the elink debugger, solves the problems of communication instability and resource occupation in the existing technology, provides flexible communication methods, and improves development efficiency.
Patent Information
- Application Number
- CN202210972469.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-15
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-08-15
AI Technical Summary
In the prior art, the communication of the touch MCU debugging device is unstable, and packet loss is prone to be lost. It also requires a custom data protocol, occupying MCU serial port peripheral resources, and affecting development efficiency.
The iView-TK touch debugging system is adopted, and the eline debugger is used as an intermediary to communicate with the upper computer through the USB interface, and is connected to the touch MCU chip through the IIC protocol to achieve front-end decoupling and support a variety of communication methods, including Uart, IIC, SPI, etc., to avoid occupying the hardware communication module.
It improves communication stability and flexibility, reduces the use of MCU peripheral resources, simplifies the debugging process, supports multiple communication methods, and improves development efficiency and compatibility.
Smart Images

Figure CN115408216B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of touch debugging, and particularly relates to an iView-TK touch debugging system. Background Art
[0002] To adapt to the trend of chip integration in the small household appliance field, many MCU manufacturers have launched touch MCUs, integrating the touch module into the MCU to further integrate the components of small household appliances. To adapt to the debugging and development of such touch MCUs, this touch debugging software is specially developed to facilitate developers to develop touch modules. The prior art requires developers to cooperate with the host computer protocol to develop special firmware so that the MCU can communicate with the host computer through the serial port. A communication protocol is agreed between the host computer and the touch MCU, enabling the host computer to parse the data structure and parse and display the data uploaded by the MCU. However, there are still various problems in various touch debugging on the market.
[0003] For example, a production debugging process improved by an industrial touch screen disclosed in CN109857610A. Although it can realize displaying the internal operation information and internal parameters of the product through the touch screen, the production debugging is very convenient and it is very easy to change the internal parameters. At the same time, by displaying and modifying the internal information and internal parameters of the product through the industrial touch screen, the tooling cost is low, the operation is simple and convenient, and the technical level requirements for production personnel are relatively low, simplifying the debugging process and improving the production efficiency. However, the existing equipment uses the serial port for communication, the communication is unstable, packets are easily lost and the data is prone to errors. Using serial communication, developers need to adapt to the protocol of the host computer. When the host computer protocol is changed, developers need to change it together. It is necessary to occupy the serial port of the MCU and the peripheral resources of the MCU. For this reason, we propose an iView-TK touch debugging system. Summary of the Invention
[0004] The purpose of the present invention is to provide an iView-TK touch debugging system to solve the problems raised in the above background art.
[0005] To achieve the above object, the present invention provides the following technical solution: An iView-TK touch debugging system includes a touch MCU chip, a data processing module is electrically connected to the touch MCU chip, an ilink debugger is electrically connected to the data processing module, and a host computer is electrically connected to the ilink debugger. The touch MCU chip is used to control and adjust the system and is communicatively connected to the ilink debugger through the IIC protocol. The ilink debugger is used to transmit data information. The ilink debugger is used to solve the disadvantages of packet loss, the need for custom data protocols, and the occupation of serial port peripherals that often occur in serial communication. The ilink debugger is electrically connected to the host computer through a USB interface. The host computer is used to control and adjust the touch MCU chip;
[0006] The ilink debugger includes a power supply part and a main control part. The main control part uses a C8051F340 chip. The power supply part includes a power supply module, a voltage regulation module, a main board power supply module, and a chip power supply module. The voltage regulation module is electrically connected to the power supply module. The voltage regulation module includes a level conversion circuit. The level conversion circuit is used to convert the levels of 3.3V and 5V. The level conversion circuit uses a 74LVC1T45 chip. There are several level conversion circuits. The main board power supply module is used to supply power to the circuit board. The chip power supply module is used to supply power to the main control part and the touch MCU chip for operation. The main board power supply module uses a USB plug interface;
[0007] The software part of the ilink debugger is mainly divided into the front-end command parsing process of the host computer and the back-end touch MCU chip data packet parsing process;
[0008] The front-end and back-end processing processes of the ilink debugger are independent of each other. A 1K cache is separately opened as an intermediary for front-end and back-end data interaction. When the front-end finishes processing the command packet of the host computer and parses the command of the host computer, it will put the parameters passed by the host computer into the cache. The back-end will pass the parameters to the touch MCU chip through the IIC protocol after obtaining new touch parameters. Similarly, the back-end will save the parameters into the cache after obtaining the touch parameters of the touch MCU chip, and the front-end will pack and upload the parameters to the host computer after obtaining the command of the host computer to obtain touch parameters.
[0009] Preferably, the power supply module uses the municipal power grid. The voltage regulation module further includes a step-down circuit, a rectification circuit, and a filtering circuit. The step-down circuit is used to convert the high voltage of the municipal power grid into a low voltage. The rectification circuit is used to convert the alternating current of the municipal power grid into direct current. The filtering circuit filters out the alternating voltage in the direct current voltage.
[0010] Preferably, a voltage detection and feedback module is electrically connected to the chip power supply module, the main board power supply module, and the power supply module. The voltage detection and feedback module includes a voltage detection circuit and a feedback circuit. The feedback circuit uses a closed-loop feedback circuit. The voltage detection and feedback module is used to detect the voltage of the system and perform feedback adjustment control through the closed-loop feedback circuit to maintain stable voltage output.
[0011] Preferably, a data processing module is also electrically connected between the ilink debugger and the touch MCU chip. The data processing module includes a data information receiving circuit, a data information gain circuit, a data information filtering circuit, and a data information conversion circuit. The data information receiving circuit is used to receive the data information transmitted by the touch MCU chip and the ilink debugger. The data information gain circuit is used to amplify the data information. The data information filtering circuit is used to filter out the noise in the data information. The data information conversion circuit is used to perform analog-to-digital conversion processing on the data information.
[0012] Preferably, a communication interface is electrically connected to the touch MCU chip, and a communication module is electrically connected to the communication interface. The communication interface includes RS-232 and RS-485. The communication interface is used to electrically connect the communication module. The communication module uses wireless communication and optical fiber communication to communicate with mobile devices.
[0013] Preferably, a touch display screen is electrically connected to the touch MCU chip. The touch display screen is used to display data information and perform touch control adjustment.
[0014] Preferably, a comparison module is electrically connected to the touch MCU chip. The comparison module is used to detect the control signal triggered by the touch display screen and compare the control signal of the touch display screen through the comparison module. The comparison is performed by setting a threshold through the touch MCU chip.
[0015] Preferably, a storage module is electrically connected to the touch MCU chip. The storage module includes a ROM memory, a RAM memory, and a buffer memory. The ROM memory is used to store the system operation program body. The RAM memory is used to store the system operation log. The buffer memory is used to buffer and store data information.
[0016] Preferably, the front-end command parsing process of the host computer has the following method steps:
[0017] S1. The host computer sends an instruction: The host computer used is the iView-TK host computer, and a command packet is sent to the ilink debugger through the iView-TK host computer.
[0018] S2. The ilink debugger waits to receive the command packet: After receiving the command packet, the ilink debugger parses the received command packet through the data processing module.
[0019] S3. The touch MCU chip determines the instruction: The touch MCU chip determines the touch debug command for the command packet parsed by the data processing module.
[0020] S4. The touch parameters are packed and uploaded: If the touch debug command is determined to be yes, after the touch display screen is triggered, the touch MCU chip packs and uploads the cached touch parameters. If the touch debug command is determined to be no, a new command packet will be received.
[0021] Preferably, the back-end touch IIC data packet parsing process of the touch MCU chip has the following method steps:
[0022] S5. The touch MCU chip sends a data packet: After a touch signal occurs on the touch display screen, the touch MCU chip packs the data information and then sends the data packet through the data processing module.
[0023] S6. The ilink debugger waits to receive the command packet: The ilink debugger receives the data packet of the touch MCU chip and then parses it.
[0024] S7. The parsing and determination of the data packet: The ilink debugger parses and processes the received data packet. If the data packet parsing is incorrect, the ilink debugger continues to wait to receive the command packet.
[0025] S8. The data is loaded into the cache and waits to be uploaded: If the data packet parsing is correct, the data is loaded into the cache and then waits to be uploaded.
[0026] Compared with the prior art, the beneficial effects of the present invention are:
[0027] The present invention uses an ilink debugger as an intermediary, enabling the communication between the host computer and the touch MCU chip to be divided into two parts: the front end and the back end. The front end is the communication between the ilink debugger and the host computer, and the back end is the communication between the ilink debugger and the touch MCU chip. The separation of the front and back ends can make the interaction between the host computer and the touch MCU chip more flexible. The interaction between the front end and the host computer can be transmitted using USB with higher communication quality and stability, while the back end can communicate with the touch MCU chip in a more flexible manner. The ilink debugger itself has various ways to communicate externally, such as communicating with external devices through Uart, IIC, SPI, etc., making the interaction with the touch MCU chip diverse and providing more communication methods for debugging the touch module. To minimize the occupation of peripherals, when communicating with the AiP series touch MCU chips, the programming and debugging interface is used to simulate the IIC method to communicate with the ilink debugger, without occupying any hardware communication module, which greatly facilitates the debugging of developers.
[0028] The ilink debugger uses USB HID communication. The USB protocol itself has functions such as timeout retransmission and data verification, which can ensure the accuracy of data transmission. Moreover, hid devices do not require driver installation, have strong compatibility, and are plug-and-play on systems of winxp and above.
[0029] The ilink debugger can communicate with the touch MCU using communication protocols such as Uart, IIC, SPI, etc., making the communication methods more diverse.
[0030] The implementation methods of the front and back ends enable the host computer to focus on communicating with the ilink debugger without having to overly concern about the implementation method of the back-end communication with the touch MCU chip, achieving the decoupling of the front and back ends. When the communication protocol of the host computer needs to be upgraded and improved, only the firmware of the host computer and the ilink debugger needs to be upgraded, without having to change the communication protocol between the touch MCU chip and the ilink debugger. Similarly, when the communication protocol between the back-end touch MCU chip and the ilink debugger needs to be upgraded and improved, only the back-end protocol needs to be updated, without having to change the protocol between the ilink debugger and the host computer. Brief Description of the Drawings
[0031] Figure 1 It is a schematic diagram of the system structure of the present invention;
[0032] Figure 2 It is a schematic diagram of the main component structure of the present invention;
[0033] Figure 3 It is a schematic diagram of the main control part circuit of the present invention;
[0034] Figure 4 It is a schematic diagram of the level conversion circuit of the present invention;
[0035] Figure 5 Schematic diagram of the main board power module circuit of the present invention;
[0036] Figure 6 Schematic diagram of the chip power module circuit of the present invention;
[0037] Figure 7 Schematic diagram of the front - end command parsing process of the host computer of the present invention;
[0038] Figure 8 Schematic diagram of the back - end touch IIC data packet parsing process of the present invention. Detailed implementation manners
[0039] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.
[0040] Please refer to Figures 1-6 , the present invention provides a technical solution: an iView - TK touch debugging system, including a touch MCU chip, a data processing module is electrically connected to the touch MCU chip, an ilink debugger is electrically connected to the data processing module, a host computer is electrically connected to the ilink debugger. The touch MCU chip is used to control and adjust the system and communicate with the ilink debugger through the IIC protocol. The ilink debugger is used to transmit data information. The ilink debugger is used to solve the problems of packet loss, the need to customize data protocols, and the occupation of serial port peripherals that often occur in serial communication. The ilink debugger is electrically connected to the host computer through a USB interface. The host computer is used to control and adjust the touch MCU chip;
[0041] The ilink debugger includes a power supply part and a main control part. The main control part uses a C8051F340 chip. The power supply part includes a power supply module, a voltage regulation module, a main board power supply module, and a chip power supply module. The power supply module is electrically connected to the voltage regulation module. The voltage regulation module includes a level conversion circuit for converting the 3.3V and 5V levels. The level conversion circuit uses a 74LVC1T45 chip and there are several such level conversion circuits. The main board power supply module is used to supply power to the circuit board, and the chip power supply module is used to supply power to the main control part and the touch MCU chip for operation. The main board power supply module uses a USB plug interface;
[0042] The software part of the ilink debugger is mainly divided into the front-end command parsing process of the host computer and the data packet parsing process of the touch MCU chip at the back-end;
[0043] The front-end and back-end processing processes of the ilink debugger are independent of each other. A 1K buffer is separately opened as an intermediary for data interaction between the front-end and back-end. When the front-end finishes processing the command packet of the host computer and parses the command of the host computer, it will put the parameters passed by the host computer into the buffer. The back-end will transfer the new touch parameters to the touch MCU chip through the IIC protocol. Similarly, when the back-end obtains the touch parameters of the touch MCU chip, it will save the parameters into the buffer. When the front-end obtains the command of the host computer to obtain the touch parameters, it will package and upload the parameters to the host computer.
[0044] In order to supply power to the system for operation and keep the voltage stable, in this embodiment, preferably, the power supply module uses the municipal power grid. The voltage regulation module also includes a step-down circuit, a rectifier circuit, and a filter circuit. The step-down circuit is used to convert the high voltage of the municipal power grid into a low voltage. The rectifier circuit is used to convert the alternating current of the municipal power grid into direct current. The filter circuit filters out the alternating voltage in the direct current voltage.
[0045] In order to adjust the voltage and achieve feedback regulation of the voltage, in this embodiment, preferably, a voltage detection and feedback module is electrically connected to the chip power supply module, the main board power supply module, and the power supply module. The voltage detection and feedback module includes a voltage detection circuit and a feedback circuit. The feedback circuit uses a closed-loop feedback circuit. The voltage detection and feedback module is used to detect the voltage of the system and perform feedback regulation control through the closed-loop feedback circuit to maintain a stable output of the voltage.
[0046] In order to process data information and improve the stability and accuracy of data information transmission, in this embodiment, preferably, a data processing module is also electrically connected between the ilink debugger and the touch MCU chip. The data processing module includes a data information receiving circuit, a data information gain circuit, a data information filtering circuit, and a data information conversion circuit. The data information receiving circuit is used to receive the data information transmitted between the touch MCU chip and the ilink debugger. The data information gain circuit is used to amplify the data information. The data information filtering circuit is used to filter out the noise in the data information. The data information conversion circuit is used to perform analog-to-digital conversion processing on the data information.
[0047] In order to enable the system to effectively connect to a mobile device and achieve remote control, in this embodiment, preferably, a communication interface is electrically connected to the touch MCU chip, and a communication module is electrically connected to the communication interface. The communication interface includes RS-232 and RS-485. The communication interface is used to electrically connect to the communication module. The communication module uses wireless communication, optical fiber communication, or Bluetooth communication to communicate with the mobile device.
[0048] In order to display data and facilitate the generation of effective touch signals for the touch MCU chip, in this embodiment, preferably, a touch display screen is electrically connected to the touch MCU chip. The touch display screen is used to display data information and perform touch control adjustment.
[0049] In order to compare and process touch signals, in this embodiment, preferably, a comparison module is electrically connected to the touch MCU chip. The comparison module is used to detect the control signal triggered by the touch display screen and compare the control signal of the touch display screen through the comparison module. The comparison is performed by setting a threshold through the touch MCU chip.
[0050] In order to store the data information of the system, in this embodiment, preferably, a storage module is electrically connected to the touch MCU chip. The storage module includes a ROM memory, a RAM memory, and a buffer memory. The ROM memory is used to store the operating program body of the system. The RAM memory is used to store the operating logs of the system. The buffer memory is used to buffer and store data information.
[0051] In order to parse and process the front-end commands, in this embodiment, preferably, the front-end command parsing process of the host computer has the following method steps:
[0052] S1. The host computer sends an instruction: The host computer used is the iView-TK host computer, and it sends a command packet to the ilink debugger through the iView-TK host computer;
[0053] S2. The ilink debugger waits to receive the command packet: After receiving the command packet, the ilink debugger uses the data processing module to parse the received command packet;
[0054] S3. The touch MCU chip determines the instruction: The touch MCU chip determines the touch debugging command for the command packet parsed by the data processing module;
[0055] S4. Pack and upload the touch parameters: If the touch debugging command is determined to be yes, after the touch display screen is triggered, the touch MCU chip packs and uploads the cached touch parameters. If the touch debugging command is determined to be no, it will receive the command packet again.
[0056] In order to implement the parsing of the data packet at the back end, in this embodiment, preferably, the back-end touch IIC data packet parsing process of the touch MCU chip has the following method steps:
[0057] S5. The touch MCU chip sends the data packet: After a touch signal occurs on the touch display screen, the touch MCU chip packs the data information and then sends the data packet through the data processing module;
[0058] S6. The ilink debugger waits to receive the command packet: The ilink debugger receives the data packet of the touch MCU chip and then parses it;
[0059] S7. Parsing and determination of the data packet: The ilink debugger parses and processes the received data packet. If the data packet parsing is incorrect, the ilink debugger continues to wait to receive the command packet;
[0060] S8. Load the data into the cache and wait for upload: If the data packet parsing is correct, load the data into the cache and then wait for upload.
[0061] Working principle and usage process of the present invention: When in use, the system is powered by a power supply module, a voltage regulation module, a main board power supply module, and a chip power supply module. And the voltage is controlled and regulated through a voltage detection feedback module to maintain stable voltage transmission. Then, the front-end and back-end processing flows of the ilink debugger are independent of each other, and a 1K cache is separately opened as an intermediary for data interaction between the front-end and back-end. When the front-end finishes processing the command packet from the host computer and parses the command of the host computer, it will put the parameters passed by the host computer into the cache. The back-end will transmit the new touch parameters to the touch MCU chip through the IIC protocol. Similarly, when the back-end obtains the touch parameters of the touch MCU chip, it will save the parameters into the cache. When the front-end obtains the command from the host computer to acquire touch parameters, it will package and upload the parameters to the host computer.
[0062] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An iView-TK touch debugging system, including a touch MCU chip, characterized in that: A data processing module is electrically connected to the touch MCU chip. An ilink debugger is electrically connected to the data processing module. A host computer is electrically connected to the ilink debugger. The touch MCU chip is used to control and adjust the system and communicates with the ilink debugger through the IIC protocol. The ilink debugger is used to transmit data information. The ilink debugger is used to solve the problems of packet loss, the need for custom data protocols, and the occupation of serial port peripherals that often occur in serial communication. The ilink debugger is electrically connected to the host computer through a USB interface. The host computer is used to control and adjust the touch MCU chip; The ilink debugger includes a power supply part and a main control part. The main control part uses a C8051F340 chip. The power supply part includes a power supply module, a voltage regulation module, a main board power supply module, and a chip power supply module. The voltage regulation module is electrically connected to the power supply module. The voltage regulation module includes a level conversion circuit. The level conversion circuit is used to convert the levels of 3.3V and 5V. The level conversion circuit uses a 74LVC1T45 chip. There are several level conversion circuits. The main board power supply module is used to supply power to the circuit board. The chip power supply module is used to supply power to the main control part and the touch MCU chip for operation. The main board power supply module uses a USB plug interface; The software part of the ilink debugger is mainly divided into the front-end command parsing process of the host computer and the data packet parsing process of the touch MCU chip at the back-end; The front-end and back-end processing processes of the ilink debugger are independent of each other. A 1K cache is separately opened as an intermediary for front-end and back-end data interaction. When the front-end finishes processing the command packet of the host computer and parses the command of the host computer, it will put the parameters passed by the host computer into the cache. The back-end will pass the new touch parameters to the touch MCU chip through the IIC protocol. Similarly, when the back-end obtains the touch parameters of the touch MCU chip, it will save the parameters into the cache. When the front-end obtains the command of the host computer to obtain touch parameters, it will package and upload the parameters to the host computer.
2. The iView-TK touch debugging system according to claim 1, wherein: The power supply module uses the municipal power grid. The voltage regulation module also includes a step-down circuit, a rectifier circuit, and a filter circuit. The step-down circuit is used to convert the high voltage of the municipal power grid into a low voltage. The rectifier circuit is used to convert the alternating current of the municipal power grid into direct current. The filter circuit filters out the alternating voltage in the direct current voltage.
3. The iView-TK touch debugging system according to claim 2, wherein: A voltage detection and feedback module is electrically connected to the chip power supply module, the main board power supply module, and the power supply module. The voltage detection and feedback module includes a voltage detection circuit and a feedback circuit. The feedback circuit uses a closed-loop feedback circuit. The voltage detection and feedback module is used to detect the voltage of the system and perform feedback regulation and control through the closed-loop feedback circuit to maintain a stable output of the voltage.
4. An iView-TK touch debugging system according to claim 1, characterized in that: A data processing module is also electrically connected between the ilink debugger and the touch MCU chip. The data processing module includes a data information receiving circuit, a data information gain circuit, a data information filtering circuit, and a data information conversion circuit. The data information receiving circuit is used to receive the data information transmitted by the touch MCU chip and the ilink debugger. The data information gain circuit is used to amplify the data information. The data information filtering circuit is used to filter out the noise in the data information. The data information conversion circuit is used to perform analog-to-digital conversion processing on the data information.
5. An iView-TK touch debugging system according to claim 1, characterized in that: A communication interface is electrically connected to the touch MCU chip. A communication module is electrically connected to the communication interface. The communication interface includes RS-232 and RS-485. The communication interface is used to electrically connect to the communication module. The communication module uses wireless communication and optical fiber communication to communicate with mobile devices.
6. An iView-TK touch debugging system according to claim 1, characterized in that: A touch display screen is electrically connected to the touch MCU chip. The touch display screen is used to display data information and perform touch control adjustment.
7. An iView-TK touch debugging system according to claim 6, characterized in that: A comparison module is electrically connected to the touch MCU chip. The comparison module is used to detect the control signal triggered by the touch display screen and compare the control signal of the touch display screen through the comparison module. The comparison is performed by setting a threshold through the touch MCU chip.
8. An iView-TK touch debugging system according to claim 1, characterized in that: A storage module is electrically connected to the touch MCU chip. The storage module includes a ROM memory, a RAM memory, and a buffer memory. The ROM memory is used to store the system operation program body. The RAM memory is used to store the system operation log. The buffer memory is used to buffer and store data information.
9. An iView-TK touch debugging system according to claim 1, characterized in that: The front-end command parsing process of the host computer has the following method steps: S1. The host computer sends an instruction: The host computer uses the iView-TK host computer to send a command packet to the ilink debugger through the iView-TK host computer. S2. The ilink debugger waits to receive the command packet: After receiving the command packet, the ilink debugger parses the received command packet through the data processing module. S3. The touch MCU chip determines the instruction: The touch MCU chip determines the touch debugging command for the command packet parsed by the data processing module. S4. Touch parameter packing and uploading: If the touch debugging command is determined to be yes, after the touch display screen is triggered, the touch MCU chip packs and uploads the cached touch parameters. If the touch debugging command is determined to be no, a new command packet will be received.
10. An iView-TK touch debugging system according to claim 1, characterized in that: The back-end touch IIC data packet parsing process of the touch MCU chip has the following method steps: S5. The touch MCU chip sends a data packet: After a touch signal occurs on the touch display screen, the touch MCU chip packs the data information and then sends the data packet through the data processing module. S6. The ilink debugger waits to receive a command packet: The ilink debugger receives the data packets of the touch MCU chip and then parses them. S7. Parsing and determination of data packets: The ilink debugger parses the received data packets. If the packet parsing is incorrect, the ilink debugger continues to wait to receive a command packet. S8. Loading data into the cache and waiting for upload: If the packet parsing is correct, the data is loaded into the cache and then waits to be uploaded.
Citation Information
Patent Citations
Production debugging process improved through industrial touch screen
CN109857610A
Multichannel video system on basis of 1394b optical bus and data collecting and transmitting method thereof
CN102638677A
Data management system and data management method
CN111104535A