Serial port debugging equipment

By connecting the USB-HUB chip to multiple USB serial chips and debugging interfaces, the problem that existing serial debugging devices can only be debugged on a single device is solved, and simultaneous debugging and power consumption measurement of multiple devices are realized, improving efficiency.

CN223229971UActive Publication Date: 2025-08-15SHANGHAI VISTEON AUTOMOTIVE ELECTRONICS SYST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422254855.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-08-15
Estimated Expiration
2034-09-14

AI Technical Summary

Technical Problem

Existing serial debugging equipment can only debug one device, resulting in frequent wiring and low efficiency, which cannot meet the needs of multi-device debugging.

Method used

Design a serial debugging device, including a USB interface, a USB-HUB chip, multiple USB serial chips, debugging interfaces and power supply modules. Through the USB-HUB chip, multiple USB serial chips are connected to multiple debugging interfaces, realize the simultaneous debugging of multiple devices, and power each component through the power supply module.

Benefits of technology

It realizes the simultaneous debugging of multiple devices, avoids frequent wiring, improves debugging efficiency, and has power consumption measurement functions, simplifying the power consumption measurement process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223229971U_ABST
    Figure CN223229971U_ABST
Patent Text Reader

Abstract

The utility model provides a serial port debugging device aiming at the problem that the existing serial port debugging device can only debug one device and is low in efficiency. Comprising a USB interface used for being connected with a computer, a USB-HUB chip, a plurality of USB serial port chips, a plurality of debugging interfaces used for being connected with a plurality of debugged devices respectively and a power supply module used for supplying power to the USB-HUB chip, the USB serial port chips and the debugging interfaces, the USB interface is connected with the USB-HUB chip, the USB serial port chips are connected with the USB-HUB chip, and the debugging interfaces are connected with the USB-HUB chip. The debugging interfaces are connected with the USB serial port chips in a one-to-one correspondence mode, and the power supply module is connected with the USB interfaces, the USB-HUB chip, the USB serial port chips and the debugging interfaces. According to the utility model, a plurality of devices can be debugged at the same time, frequent wiring is avoided, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of serial port debugging, in particular to a serial port debugging device. Background Art

[0002] With the development of the times, the functional requirements of chips have increased, reliability has improved, and system functions have become increasingly complex. Therefore, system software developers need better debugging equipment. However, the mainstream serial port debugging equipment on the market can only debug one device. When multiple devices need to be debugged, frequent wiring is required, which is inefficient and can no longer meet the needs of today's developers. Utility Model Content

[0003] Based on this, in order to solve the above technical problems, a serial port debugging device is provided.

[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0005] A serial port debugging device, characterized in that it includes a USB interface for connecting to a computer, a USB-HUB chip, multiple USB serial port chips, multiple debugging interfaces for respectively connecting to multiple debugged devices, and a power supply module for powering the USB-HUB chip, the USB serial port chip, and the debugging interfaces, the USB interface being connected to the USB-HUB chip, the multiple USB serial port chips being connected to the USB-HUB chip, the multiple debugging interfaces being connected to the multiple USB serial port chips in a one-to-one correspondence, and the power supply module being connected to the USB interface, the USB-HUB chip, the USB serial port chip, and the debugging interfaces.

[0006] The utility model provides a serial port debugging device, which can debug multiple devices at the same time, avoids frequent wiring, and improves efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 It is a structural diagram of the utility model;

[0008] Figure 2 This is a schematic diagram of the USB-HUB chip of the present utility model;

[0009] Figure 3 This is the principle diagram of the USB serial port chip of the utility model;

[0010] Figure 4 This is a schematic diagram of the debugging interface of the present utility model;

[0011] Figure 5 This is a schematic diagram of the first conversion circuit of the present utility model;

[0012] Figure 6This is a schematic diagram of the second conversion circuit of the present utility model;

[0013] Figure 7 This is a schematic diagram of the power consumption detection circuit of the present utility model. DETAILED DESCRIPTION

[0014] The following will illustrate the implementation of the present utility model in conjunction with the drawings in the specification. It should be noted that the implementation methods involved in this specification are not exhaustive and do not represent the only implementation methods of the present utility model. The following corresponding embodiments are only for the purpose of clearly illustrating the utility model content of the utility model patent and are not intended to limit its implementation methods. For ordinary technicians in this field, different forms of changes and modifications can be made on the basis of the description of this embodiment. All obvious changes or modifications that belong to the technical concept and utility model content of the present utility model are also within the scope of protection of the present utility model.

[0015] like Figure 1 As shown, an embodiment of the present invention provides a serial port debugging device, characterized in that it includes a USB interface 11, a USB-HUB chip 12, four USB serial port chips 13, four debugging interfaces 14 and a power supply module 15.

[0016] The USB interface 11 is used to connect to the computer 2 , and is connected to the USB-HUB chip 12 .

[0017] The four USB serial port chips 13 are connected to the USB-HUB chip 12 .

[0018] like Figure 2 As shown, the USB-HUB chip 12 (GL850G) is powered by VCC-5V and VCC-3.3V, VCC-5V is provided by the USB interface 11, and VCC-3.3V is provided by the power supply module 15.

[0019] The USB-HUB chip 12 realizes 1 USB input and separates 4 USB channels for serial port use: ports 25 and 26 of the USB-HUB chip 12 are connected to the USB interface 11, and ports 27 and 28, ports 2 and 3, ports 8 and 9, and ports 11 and 12 are respectively connected to the corresponding USB serial port chips 13.

[0020] Figure 3 A USB serial port chip 13 (CH340) is shown, and its ports 1 and 2 are connected to ports 9 and 8 of the USB-HUB chip 12 to convert USB into serial port functions.

[0021] The four debugging interfaces 14 are used to access four debugged devices 3 respectively, and are connected to the four USB serial port chips 12 in a one-to-one correspondence.

[0022] The debugging interface 14 adopts a pin header interface. Figure 4 Shown with Figure 3 The debugging interface 14 corresponding to the USB serial port chip shown has ports 3 and 5 connected to ports 7 and 6 of the USB-HUB chip 12 , and ports 4 and 6 connected to the corresponding debugged device 3 .

[0023] like Figure 1 As shown, the power supply module 15 is connected to the USB interface 11, the USB-HUB chip 12, the USB serial port chip 13 and the debug interface 14. It obtains the power supply voltage VCC-5V from the USB interface and converts it into the voltage required for powering the USB-HUB chip 12, the USB serial port chip 13 and the debug interface 14.

[0024] Specifically, the power supply module 15 includes a first conversion circuit, a second conversion circuit and a power consumption detection circuit.

[0025] The first conversion circuit is used to convert the voltage VCC-5V provided by the USB interface into the first voltage VCC-3.3V required by the USB-HUB chip 12 and the USB serial port chip 13 .

[0026] like Figure 5 As shown, the first conversion circuit includes a first voltage regulator U5 (RT9013-33GB), the input end (port 1 VIN) of the first voltage regulator U5 is connected to the 5V voltage provided by the USB interface, and the output end (port 5 VOUT) provides a 3.3V voltage.

[0027] The second conversion circuit is used to convert the voltage VCC-5V provided by the USB interface into a second voltage VCC-OUT required by the debugging interface 14 .

[0028] like Figure 6 As shown, the second conversion circuit includes a second voltage regulator U9 (ME6221) and a programmable resistor U10 (MCP4017T).

[0029] The input end (port 1 VIN) of the second voltage regulator U9 is connected to the 5V voltage provided by the USB interface, and the output end (port 5 VOUT) provides the second voltage VCC-OUT to each debugging interface 14.

[0030] The first resistance end (port A No. 6) of the programmable resistor U10 is connected to the output end (port VOUT No. 5) of the second voltage regulator U9, the second resistance end (port VSS / B No. 2) is grounded, and the tap end (port W No. 5) of the programmable resistor U10 is connected to the feedback end (port FB No. 4) of the second voltage regulator U9. By adjusting the tap end of the programmable resistor U10, the voltage of the FB end of the second voltage regulator U9 can be adjusted, so that the output voltage of the second voltage regulator U9 varies between 1.25V-5V, thereby adapting to different debugged devices 3.

[0031] The power consumption detection circuit is used to detect the power consumption of each debugged device 3, and includes four detection resistors, four amplifiers, two voltage-dividing resistors, a microcontroller and a display screen.

[0032] The four detection resistors correspond to the four debugging interfaces 14 one by one, and the resistance value thereof is 0.01-0.1 ohm. In this embodiment, the resistance value is 0.05 ohm.

[0033] The four detection resistors are connected in series between the corresponding debugging interface 14 and the second regulator U9. The four amplifiers correspond to the four detection resistors one by one. The two ends of the detection resistors are connected to the positive input and negative input of the corresponding amplifiers.

[0034] like Figure 6 As shown, two voltage-dividing resistors (R21 and R22) are connected in series between the output terminal (port 5 VOUT) of the second voltage regulator U9 and the second resistor terminal (port 2 VSS / B) of the programmable resistor U10.

[0035] The microcontroller is connected to the output terminals of the plurality of amplifiers and two voltage-dividing resistors (R21 and R22) through the plurality of ADC terminals.

[0036] The display is connected to the microcontroller.

[0037] Figure 7 A sense resistor R15 is shown, which is connected in series with Figure 4 As shown, between the debugging interface 14 and the second voltage regulator U9, the two ends of the detection resistor R15 are connected to the positive input terminal (port 4 IN+) and the negative input terminal (port 5 IN-) of the amplifier U14 (I NA199A1). The amplifier U14 amplifies (50 times) the voltage across the detection resistor R15, and its output terminal (port 6 OUT) outputs the voltage value to the ADC terminal (ADC_2) of the microcontroller. The microcontroller calculates the current value I based on the obtained voltage value and the resistance value of the detection resistor R15. At the same time, Figure 6 As shown, the ADC terminal (ADC_IN3) of the microcontroller reads the voltage value V between the two voltage-dividing resistors (R21 and R22), and finally, the power consumption P of the corresponding debugging interface 14 is calculated as P=V*I.

[0038] The power consumption data can be displayed on a display screen. Of course, the power consumption data can also be transmitted back to the computer 2 via the USB interface 11, and the computer 2 can display the power consumption data.

[0039] When in use, the USB interface 11 of the serial port debugging device is connected to the computer 2 , and multiple debugged devices 3 are connected to different debugging interfaces 14 . The debugger debugs the multiple debugged devices 3 using the debugging software in the computer 2 .

[0040] As can be seen from the above, the serial port debugging device provided by the embodiment of the present utility model can debug multiple devices at the same time, avoid frequent wiring, and improve efficiency.

[0041] At the same time, the serial port debugging device of this embodiment also has a power consumption measurement function, so that the product operating power consumption can be checked at low cost and conveniently. In the prior art, when there is a need for power consumption measurement, an additional power consumption measurement instrument needs to be connected, which is a cumbersome process and low efficiency.

[0042] Obviously, those skilled in the art should realize that the above embodiments are only used to illustrate the present invention and are not used to limit the present invention. As long as they are within the spirit of the present invention, any changes or modifications to the above embodiments will fall within the scope of the claims of the present invention.

Claims

1. A serial port debugging device, characterized in that: The device comprises a USB interface for connecting to a computer, a USB-HUB chip, multiple USB serial port chips, multiple debugging interfaces for respectively connecting to multiple debugged devices, and a power supply module for supplying power to the USB-HUB chip, the USB serial port chip, and the debugging interfaces. The USB interface is connected to the USB-HUB chip, the multiple USB serial port chips are connected to the USB-HUB chip, the multiple debugging interfaces are connected to the multiple USB serial port chips in a one-to-one correspondence, and the power supply module is connected to the USB interface, the USB-HUB chip, the USB serial port chip, and the debugging interfaces.

2. A serial port debugging device according to claim 1, characterized in that: The power supply module includes a first conversion circuit for converting the voltage VCC-5V provided by the USB interface into a first voltage VCC-3.3V required by the USB-HUB chip and the USB serial port chip, and a second conversion circuit for converting the voltage VCC-5V provided by the USB interface into a second voltage VCC-OUT required by the debugging interface.

3. A serial port debugging device according to claim 2, characterized in that: The first conversion circuit includes a first voltage regulator, the input end of the first voltage regulator is connected to the USB interface, and the output end is connected to the power supply end of the USB-HUB chip and the USB serial port chip.

4. A serial port debugging device according to claim 3, characterized in that: The second conversion circuit includes a second voltage regulator, the input end of the second voltage regulator is connected to the USB interface, and the output end of the second voltage regulator is connected to the debugging interface.

5. A serial port debugging device according to claim 4, characterized in that: The second conversion circuit further includes a programmable resistor, a first resistance end of the programmable resistor is connected to the output end of the second regulator, a second resistance end is grounded, and a tap end of the programmable resistor is connected to the feedback end of the second regulator.

6. The serial port debugging device according to claim 5, characterized in that: The power supply module further includes a power consumption detection circuit for detecting the power consumption of each debugged device.

7. The serial port debugging device according to claim 6, characterized in that: The power consumption detection circuit includes multiple detection resistors corresponding one-to-one to multiple debugging interfaces, multiple amplifiers corresponding one-to-one to the multiple detection resistors, two voltage-dividing resistors, and a microcontroller. The resistance of the multiple detection resistors is 0.01-0.1 ohms, and they are respectively connected in series between the corresponding debugging interfaces and the second voltage regulator. The two ends of the detection resistor are connected to the positive input and negative input ends of the corresponding amplifiers. The two voltage-dividing resistors are connected in series between the output end of the second voltage regulator and the second resistance end of the programmable resistor. The microcontroller is connected to the output ends of the multiple amplifiers and the two voltage-dividing resistors through multiple ADC ends.

8. The serial port debugging device according to claim 7, characterized in that: The power consumption detection circuit further includes a display screen, which is connected to the microcontroller.

9. The serial port debugging device according to claim 1, wherein: The debugging interface is a pin header interface.