Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Python-based serial port debugging method and debugging system

A debugging system and serial port debugging technology, which is applied in the direction of faulty hardware testing methods, faulty computer hardware, instruments, etc., can solve the problems of unintuitive data viewing and low debugging efficiency, and achieve short software development cycle, simple connection, Highly scalable effects

Pending Publication Date: 2021-01-26
四川泛华航空仪表电器有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention aims at the shortcomings of the traditional debugging method in the prior art that cannot 100% simulate the real operation of the product, low debugging efficiency, and unintuitive data viewing, etc., and proposes a serial port debugging method and debugging system based on Python. The interface provides power to the communication protocol conversion module, and then the product to be debugged is connected to the communication protocol conversion module through the communication interface, and the received communication data of the product to be debugged is converted through the communication protocol conversion module, and then sent through the USB interface For the communication protocol conversion module; use Python to write the human-computer interaction interface on the host computer. After the host computer receives the communication data sent by the communication protocol conversion module, it analyzes and visualizes the communication data through the human-computer interaction interface.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Python-based serial port debugging method and debugging system
  • Python-based serial port debugging method and debugging system
  • Python-based serial port debugging method and debugging system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] This embodiment proposes a method for debugging serial ports based on Python, such as figure 1 As shown, the host computer is used to provide power to the communication protocol conversion module through the USB interface, and then the product to be debugged is connected to the communication protocol conversion module through the communication interface, and the received communication data of the product to be debugged is processed by the communication protocol conversion module. conversion, and then send it to the communication protocol conversion module through the USB interface; use Python to write the human-computer interaction interface on the host computer, and when the host computer receives the communication data sent by the communication protocol conversion module, the communication data is analyzed and analyzed through the human-computer interaction interface. Visual display.

[0029] Principle of work: the above-mentioned purpose of the present invention can ...

Embodiment 2

[0031] This embodiment also proposes a debugging system, such as figure 1 , Figure 4 The above-mentioned Python-based serial port debugging method is used to debug the product to be debugged. The debugging system includes a communication protocol conversion module and a host computer connected to each other, and data is transmitted between the communication protocol conversion module and the host computer through a USB interface. Communication connection; the communication protocol conversion module is connected with the product to be debugged. The specific debugging effect is as follows Figure 4 shown.

Embodiment 3

[0033] This embodiment is based on the above-mentioned embodiment 2, in order to better realize the present invention, further, as figure 2 As shown, the communication protocol conversion module includes a single-chip microcomputer chip PL2303HX.

[0034] Other parts of this embodiment are the same as those of Embodiment 2 above, so details are not repeated here.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a Python-based serial port debugging method and debugging system. An upper computer is used for providing a power supply for a communication protocol conversion module through aUSB interface, and then a to-be-debugged product is connected with the communication protocol conversion module through a communication interface; the received communication data of the to-be-debugged product is converted through the communication protocol conversion module and then sent to the communication protocol conversion module through the USB interface; a Python is used for writing a human-computer interaction interface on the upper computer, and after the upper computer receives the communication data sent by the communication protocol conversion module, the communication data are analyzed and visually displayed through the human-computer interaction interface. The system is convenient to use, high in compatibility and high in universality.

Description

technical field [0001] The invention belongs to the technical field of computer debugging, and specifically relates to the shortcomings of traditional debugging methods that cannot 100% simulate the actual operation of products, low debugging efficiency, and unintuitive data viewing. Background technique [0002] With the development of microprocessors and their wide application in various fields, microprocessors are widely used in instrumentation, industrial control, digital home appliances, etc. In order to ensure the reliability of products, the debugging link before delivery is particularly important. Important, the traditional debugging method is to add a Watch Window in the integrated development environment (IDE, Integrated Development Environment) to view the variable value through the JTAG debugging interface, but the original method needs to add breakpoints, and the simulated product cannot be 100% real after suspending the program At the same time, some products h...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/22G06F9/451
CPCG06F11/2205G06F11/2273G06F9/451
Inventor 黎右翼薛双喜周蓉
Owner 四川泛华航空仪表电器有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products