Debugging circuit, equipment and system based on Type-C interface

By adopting the debugging circuit of the Type-C interface and anti-reverse plug-in detection function in electronic hardware products, the problems of operation complexity and high maintenance costs caused by inconsistent interface standards are solved, and efficient and convenient debugging and fault location are achieved.

CN119003428APending Publication Date: 2024-11-22KINGSIGNAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411222768.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

During the development, debugging and after-sales maintenance of electronic hardware products, due to the lack of unified debugging and upgrading interface standards, operating complexity increases, maintenance costs increase, and fault location is difficult.

Method used

Design a debugging circuit based on Type-C interface, including a debugging interface module and a communication interface aggregation module, split and aggregate interface signals through the Type-C socket module, and introduce anti-reverse plug detection and reminder functions to ensure correct connection.

Benefits of technology

It reduces the operation complexity and maintenance costs of staff, improves debugging efficiency and convenience, simplifies the debugging process, and reduces connection errors through anti-reverse plug detection function, and improves operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003428A_ABST
    Figure CN119003428A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronic communication, and provides a debugging circuit, equipment and system based on a Type-C interface, the debugging circuit comprises a debugging interface module and a communication interface convergence module; the debugging interface module comprises an interface disconnection module and a first Type-C socket module; the communication interface convergence module comprises a second Type-C socket module; the second Type-C socket module and the first Type-C socket module are connected through a data line; the second Type-C socket module is used for collecting interface signals of one or more communication interface pins and debugging interface pins of one or more chips and transmitting the interface signals to the first Type-C socket module, so that the interface splitting module splits the interface signals and then debugs the chips through a debugging circuit. According to the integrated design, the work complexity of workers in the development and debugging stage or the after-sales maintenance stage is greatly reduced, the anti-reverse insertion detection function and the correct connection reminding function of the Type-C interface are added, and the operation efficiency and convenience of the workers are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic communication technology, and in particular to a debugging circuit, device and system based on a Type-C interface. Background Art

[0002] With the continuous development of intelligent terminal devices and integrated circuit technology, the demand for communication debugging and firmware updates in the development, debugging and after-sales maintenance stages of products is increasing. In traditional hardware design, due to the lack of unified debugging and upgrade interface standards, staff often need to adapt to multiple interfaces of different standards, which not only makes the operation more complicated and increases maintenance costs, but also brings confusion and inconvenience to fault location when adapting to different standards.

[0003] For example, when designing a complex single board, the development board is equipped with modules that need to perform software upgrades, debugging, and communication functions, such as central processing units (CPU), programmable logic devices (FPGA), application specific integrated circuits (ASIC), microcontroller units (MCU) and other functional chips or modules. When multiple modules need to be debugged or software upgraded later, since these interface standards are different, the existing debugging methods need to find the corresponding interface for each lead-out, for example, using an RJ45 socket to lead out a debugging network port, using a pin socket to lead out a low-speed serial port, an IIC (Inter-Integrated Circuit) interface, etc. If the debugger or software upgrader is not familiar with the interface standard, or plugs in the wrong interface, the debugging or upgrade work efficiency will be reduced, and the burden and maintenance cost of the debugging and upgrade operations will be increased. Summary of the invention

[0004] The present invention provides a debugging circuit and device based on the Type-C interface to solve the problem that the debugging and upgrading interfaces of electronic hardware products lack unified planning and management, resulting in increased operation complexity and maintenance costs for staff during the development, debugging and after-sales maintenance stages.

[0005] In order to solve the above technical problems, the present invention provides a debugging circuit based on the Type-C interface, wherein the debugging circuit is used to debug one or more chips, and the debugging circuit includes a debugging interface module and a communication interface aggregation module connected to the debugging interface module;

[0006] The debugging interface module includes an interface branch connection module and a first Type-C socket module; the interface branch connection module is connected to the first Type-C socket module; the interface branch connection module is used to split the multiple interface signals obtained by the first Type-C socket module;

[0007] The communication interface aggregation module includes a second Type-C socket module; the second Type-C socket module and the first Type-C socket module are connected via a data cable; the second Type-C socket module is used to connect to one or more communication interface pins and debugging interface pins of the one or more chips; the second Type-C socket module is used to collect interface signals of the one or more communication interface pins and debugging interface pins of the one or more chips, and transmit the interface signals of the one or more chips to the first Type-C socket module, so that the interface separation module splits the interface signals of the one or more chips obtained by the first Type-C socket module, and then debugs the chip through the debugging circuit.

[0008] Optionally, the communication interface convergence module further includes an anti-reverse insertion detection module and a connection establishment prompt module connected to the anti-reverse insertion detection module;

[0009] The second Type-C socket module includes a pin CC1 corresponding to the fast charging protocol PD in the universal serial bus standard USB; the second Type-C socket module is connected to the anti-reverse insertion detection module through the pin CC1;

[0010] The anti-reverse plug-in detection module determines whether the forward connection is successful by detecting the voltage value of the pin CC1. After the anti-reverse plug-in detection module determines that the forward connection is successful, it sends a forward connection success output signal to the connection establishment prompt module. The connection establishment prompt module sends a prompt signal according to the forward connection success output signal to prompt the staff that the interface is forward connected successfully.

[0011] Optionally, the anti-reverse plug-in detection module detects the voltage value of the pin CC1 and compares it with the reference voltage value Vref to determine whether the forward connection is successful. After the anti-reverse plug-in detection module determines that the forward connection is successful, it sends a forward connection success output signal to the connection prompt module.

[0012] Optionally, the anti-reverse plug-in detection module includes an input communication interface, a first output communication interface, and a second output communication interface, all communication interfaces of the second Type-C socket module are connected one-to-one with all first output communication interfaces of the anti-reverse plug-in detection module in a first connection sequence, and all communication interfaces of the second Type-C socket module are connected one-to-one with all second output communication interfaces of the anti-reverse plug-in detection module in a second connection sequence, the first connection sequence is a forward sequence connection, and the second connection sequence is a reverse sequence connection;

[0013] The second Type-C socket module is connected to one or more communication interface pins and a debugging interface pin of the one or more chips through the input communication interface of the anti-reverse insertion detection module;

[0014] The anti-reverse plug-in detection module determines whether the forward connection is successful by detecting the voltage value of the pin CC1. After the anti-reverse plug-in detection module determines that the forward connection is successful, the second output communication interface is closed; the anti-reverse plug-in detection module determines that the forward connection is not successful, and the first output communication interface is closed.

[0015] Optionally, the connection establishment prompt module includes a signal light prompt circuit, the signal light prompt circuit includes an LED light, and when the forward connection success output signal is a high-level signal, the LED light is lit; the signal light prompt circuit also includes a resistor R1, the positive end of the LED light is connected to the pin end of the anti-reverse insertion detection module that outputs the forward connection success output signal, the negative end of the LED light is connected to one end of the resistor R1, and the other end of the resistor R1 is grounded.

[0016] Optionally, the anti-reverse insertion detection circuit includes a comparator circuit, the comparator circuit includes an operational amplifier, the pin CC1 of the second Type-C socket module is connected to the first pin of the operational amplifier as the in-phase input end of the comparator circuit, and the first pin of the operational amplifier is grounded through a resistor R2 with a resistance value of 5.1K;

[0017] The second pin of the operational amplifier is used as the inverting input terminal of the comparator circuit, the second pin of the operational amplifier is connected to a +5V power supply through a 100K resistor R3, and the second pin of the operational amplifier is grounded through a resistor R4 with a resistance value of 5.1K;

[0018] The third pin of the operational amplifier is connected to a +5V power supply, and the fourth pin of the operational amplifier is grounded; the input voltage of the inverting input terminal of the comparator is the voltage divided by the resistor R4 in the voltage divider circuit composed of the resistor R3 and the resistor R4, and serves as the reference voltage value Vref;

[0019]

[0020] The input voltage at the positive input terminal of the comparator circuit is the input value of the pin CC1 of the second Type-C socket module;

[0021] When the voltage at the positive input terminal of the comparator circuit is higher than the reference voltage value Vref, the fifth pin of the operational amplifier serves as the output terminal of the comparator circuit and outputs a high level signal;

[0022] The LED lamp is a light-emitting diode, and the resistance value of the resistor R1 is 1K; one end of the light-emitting diode is connected to the output end of the comparator circuit, and the other end of the light-emitting diode is grounded through the resistor R1; when the comparator circuit outputs the high-level signal, the light-emitting diode lights up; when the comparator circuit outputs the low-level signal, the light-emitting diode goes out.

[0023] Optionally, the connection establishment prompt module includes a buzzer prompt circuit, and the buzzer prompt circuit includes a buzzer. When the forward connection success output signal is a high level signal,

[0024] The buzzer starts to work and is in a sounding state.

[0025] Optionally, the interface branch connection module includes pin headers and / or sockets and / or flexible flat cable sockets with different spacings.

[0026] In order to solve the above technical problems, the present invention also provides a device, which includes a debugging circuit based on the Type-C interface for implementing any of the above.

[0027] In order to solve the above technical problems, the present invention also provides a system, including one or more chips, and also including a debugging circuit based on the Type-C interface that implements any of the above-mentioned debugging circuits, wherein the debugging circuit is connected to the one or more chips, and the debugging circuit is used to debug the one or more chips.

[0028] The present invention provides a debugging circuit, device and system based on Type-C interface, wherein the debugging circuit includes a debugging interface module and a communication interface convergence module; the debugging interface module includes an interface splitting module and a first Type-C socket module; the communication interface convergence module includes a second Type-C socket module; the second Type-C socket module and the first Type-C socket module are connected via a data line; the second Type-C socket module is used to collect interface signals of one or more communication interface pins and debugging interface pins of one or more chips, and transmit them to the first Type-C socket module, so that after the interface splitting module splits the interface signal, the chip is debugged through the debugging circuit. This integrated design greatly reduces the work complexity of the staff in the development and debugging stage or the after-sales maintenance stage, and the added anti-reverse plug-in detection function and correct connection reminder function of the Type-C interface further improve the operating efficiency and convenience of the staff. The debugging circuit based on the Type-C interface provided by the present invention not only retains the support for the USB 2.0 interface and the charging function, but also gathers the key communication interfaces that need to be led out of the electronic hardware product by cleverly utilizing the other remaining pins of the Type-C interface. This integrated design greatly simplifies the debugging work of the staff. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the description of the invention. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0030] Figure 1 A system architecture diagram of a debugging circuit based on a Type-C interface provided by an embodiment of the present invention;

[0031] Figure 2 A system architecture diagram of another debugging circuit based on the Type-C interface provided by an embodiment of the present invention;

[0032] Figure 3 A pin definition diagram of a first Type-C socket module and a second Type-C socket module provided in an embodiment of the present invention;

[0033] Figure 4 An implementation circuit diagram of an anti-reverse insertion detection module and a connection establishment prompt module provided in an embodiment of the present invention;

[0034] Figure 5 A schematic diagram of an anti-reverse insertion detection principle provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 creative work are within the scope of protection of the present invention.

[0036] The purpose of the embodiment of the present invention is to provide a debugging circuit, device and system based on the Type-C interface. The debugging circuit based on the Type-C interface is used to debug one or more chips. The debugging circuit includes a debugging interface module and a communication interface aggregation module connected to the debugging interface module; the debugging interface module includes an interface branch module and a first Type-C socket module; the interface branch module is connected to the first Type-C socket module; the interface branch module is used to split multiple interface signals obtained by the first Type-C socket module; the communication interface aggregation module includes a second Type-C socket module; the second Type-C socket module is connected to the first Type-C socket module through a data line; the second Type-C socket module is used to connect to one or more communication interface pins and debugging interface pins of one or more chips; the second Type-C socket module is used to collect interface signals of one or more communication interface pins and debugging interface pins of one or more chips, and transmit the interface signals of one or more chips to the first Type-C socket module, so that after the interface branch module splits the interface signals of one or more chips obtained by the first Type-C socket module, the chip is debugged through the debugging circuit.

[0037] This integrated design greatly reduces the work complexity of the staff in the development and debugging stage or the after-sales maintenance stage. The added anti-reverse plug-in detection function and correct connection reminder function of the Type-C interface further improve the operating efficiency and convenience of the staff. The debugging circuit based on the Type-C interface provided by the present invention not only retains the support for the USB 2.0 interface and the charging function, but also gathers the key communication interfaces that need to be led out inside the electronic hardware product by cleverly utilizing the other remaining pins of the Type-C interface. This integrated design greatly simplifies the debugging work of the staff.

[0038] See also Figure 1 , Figure 1A system architecture diagram of a debugging circuit based on a Type-C interface provided in an embodiment of the present invention. In this embodiment, the debugging circuit based on the Type-C interface is used to debug one or more chips provided on a single board 10 of an electronic hardware product. The debugging circuit based on the Type-C interface is mainly composed of two modules: a debugging interface module 100 and a communication interface aggregation module 110 connected to the debugging interface module 100. Among them, the debugging interface module 100 includes an interface branch connection module 101 and a first Type-C socket module 102; the communication interface aggregation module 110 includes a second Type-C socket module 111, an anti-reverse insertion detection module 112 and a connection prompt module 113.

[0039] In other embodiments, the communication interface aggregation module 110 can be integrated on an electronic hardware product board. The electronic hardware product board can be any electronic hardware device, such as: mobile phones, tablet computers, cameras and other home electronic hardware products, modules or development boards in the development and debugging stage. The chips used in the electronic hardware product board are not limited to various processor chips such as central processing units (CPU), graphics processing units (GPU), micro controller units (MCU), field programmable gate arrays (FPGA), etc.

[0040] The chip on the electronic hardware product board is connected to the second Type-C socket module 111 through a communication interface. The communication interface is not limited to serial ports, integrated circuit bus (Inter-Integrated Circuit, IIC) interfaces, Ethernet interfaces and other types, and can be combined and aggregated into different quantities for multiple different types of interfaces.

[0041] In this embodiment, the interface splitting module 101 is connected to the first Type-C socket module 102, and the interface splitting module 101 is used to split multiple interface signals acquired by the first Type-C socket module 102. The interface splitting module 101 includes pins and / or sockets and / or flexible flat cable sockets with different spacings, and is responsible for re-splitting, classifying and organizing various communication interfaces gathered on the pins of the first Type-C socket module 102, and arranging them into connection interfaces that can be connected and debugged externally. The connection interface for external connection and debugging can be a connection method such as pins and / or sockets and / or flexible flat cable (FFC) sockets with different spacings, and provide external connection in a mixed organization of one type or multiple types.

[0042] In this embodiment, the second Type-C socket module 111 is connected to the first Type-C socket module 102 via a data line. The second Type-C socket module 111 is used to connect to one or more communication interface pins and debug interface pins of one or more chips.

[0043] The second Type-C socket module 111 is used to collect interface signals of one or more communication interface pins and debugging interface pins of one or more chips, and transmit the interface signals of one or more chips to the first Type-C socket module 102, so that after the interface connection module 101 splits the interface signals of one or more chips acquired by the first Type-C socket module 102, one or more chips are debugged through the debugging circuit.

[0044] In this embodiment, if Figure 1 As shown, the second Type-C socket module 111 includes a pin CC1 corresponding to the fast charging protocol PD in the universal serial bus standard USB, and the second Type-C socket module 111 is connected to the anti-reverse insertion detection module 112 through the pin CC1.

[0045] In this embodiment, the connection establishment prompting module 113 is connected to the anti-reverse insertion detection module 112 .

[0046] The anti-reverse plug-in detection module 112 determines whether the forward connection is successful by detecting the voltage value of the pin CC1. After the anti-reverse plug-in detection module 112 determines that the forward connection is successful, it sends a forward connection success output signal to the connection establishment prompt module 113. The connection establishment prompt module 113 sends a prompt signal based on the forward connection success output signal to prompt the staff that the interface is forward connected successfully.

[0047] Preferably, the anti-reverse plug-in detection module 112 detects the voltage value of the pin CC1 and determines whether the forward connection is successful after comparing it with the reference voltage value Vref. After the anti-reverse plug-in detection module 112 determines that the forward connection is successful, it sends a forward connection success output signal to the connection prompt module 113.

[0048] Optionally, the connection establishment prompt module 113 includes a signal light prompt circuit, and the signal light prompt circuit includes an LED light. When the output signal of the forward connection success is a high-level signal, the LED light lights up.

[0049] Optionally, the connection reminder module includes a buzzer reminder circuit, and the buzzer reminder circuit includes a buzzer. When the forward connection is successfully output, the signal is a high level signal.

[0050] The buzzer starts to work and is in the sounding state.

[0051] In this embodiment, the anti-reverse plug-in detection module 112 implements the anti-reverse plug-in detection function through a comparator. Specifically, the anti-reverse plug-in detection module 112 is connected to the connection prompt module 113 through an output pin of the comparator.

[0052] The first Type-C socket module 102 and the second Type-C socket module 111 are connected to each other through a Type-C data line. When the first Type-C socket module 102 and the second Type-C socket module 111 are matched and connected according to the same pin name definition, the anti-reverse plug detection module 112 detects that the pin CC1 of the second Type-C socket module 111 is at a high level, which is higher than the comparison voltage Vref (i.e., the reference voltage value Vref) of the comparator inside the anti-reverse plug detection module 112. The output pin of the comparator of the anti-reverse plug detection module 112 outputs a high level, and the high level signal is a forward connection success output signal. When the connection reminder module 113 receives the high level signal output from the output pin of the comparator, it reminds the staff through LED lights, buzzers, etc., and informs them that the connection is successfully established and the plugging direction is correct.

[0053] When the first Type-C socket module 102 and the second Type-C socket module 111 are not connected in a one-to-one matching manner according to the same pin name definition, the anti-reverse insertion detection module 112 detects that the pin CC1 of the second Type-C socket module 111 is at a low level, which is lower than the comparison voltage Vref (i.e., the reference voltage value Vref) of the internal comparator of the anti-reverse insertion detection module 112, and the output pin of the comparator of the anti-reverse insertion detection module 112 outputs a low level. When the connection prompt module 113 receives the low level output from the output pin of the comparator, the LED light cannot be turned on and the buzzer cannot be sounded, thereby informing the staff that the connection failed and the plug-in direction is reversed.

[0054] In the above implementation, the anti-reverse plug-in detection module 112 implements the anti-reverse plug-in detection function through a comparator. The anti-reverse plug-in detection module 112 detects the voltage value of the pin CC1, and determines whether the forward connection is successful after comparing it with the reference voltage value Vref through the comparator. After the anti-reverse plug-in detection module 112 determines that the forward connection is successful, it sends a forward connection success output signal to the connection prompt module 113.

[0055] In other embodiments, optionally, see Figure 2 , Figure 2Another system architecture diagram of a debugging circuit based on a Type-C interface provided for an embodiment of the present invention. The anti-reverse plug detection module 112 includes an input communication interface IN3, a first output communication interface OUT1, and a second output communication interface OUT2. All communication interfaces of the second Type-C socket module 111 are connected one-to-one with all first output communication interfaces OUT1 of the anti-reverse plug detection module 112 in a first connection sequence, and all communication interfaces of the second Type-C socket module 111 are connected one-to-one with all second output communication interfaces OUT2 of the anti-reverse plug detection module 112 in a second connection sequence. The first connection sequence is a forward sequence connection, and the second connection sequence is a reverse sequence connection.

[0056] In this implementation, the second Type-C socket module 111 is connected to one or more communication interface pins and debugging interface pins of one or more chips through the input communication interface IN3 of the anti-reverse insertion detection module 112 .

[0057] The anti-reverse plug-in detection module 112 determines whether the forward connection is successful by detecting the voltage value of the pin CC1. After the anti-reverse plug-in detection module 112 determines that the forward connection is successful, the second output communication interface OUT2 is closed; the anti-reverse plug-in detection module 112 determines that the forward connection is not successful, and the first output communication interface OUT1 is closed.

[0058] Specifically, when the first Type-C socket module 102 and the second Type-C socket module 111 are connected in a one-to-one matching manner according to the same pin name definition, the anti-reverse plug-in detection module 112 detects that the pin CC1 of the second Type-C socket module 111 is at a high level, that is, the anti-reverse plug-in detection module 112 determines that the forward connection is successful and closes the second output communication interface OUT2; when the first Type-C socket module 102 and the second Type-C socket module 111 are not connected in a one-to-one matching manner according to the same pin name definition, the anti-reverse plug-in detection module 112 detects that the pin CC1 of the second Type-C socket module 111 is at a low level, that is, the anti-reverse plug-in detection module 112 determines that the forward connection is not successful and closes the first output communication interface OUT1.

[0059] In this embodiment, relative to the above Figure 1 The main difference of the illustrated implementation is that the second Type-C socket module 111 is connected to the anti-reverse plug detection module 112 through the first output communication interface OUT1 and the second output communication interface OUT2 at the same time, and the anti-reverse plug detection module 112 is connected to the electronic hardware product single board through the input communication interface IN3. Specifically, the anti-reverse plug detection module 112 is connected to one or more communication interface pins and debugging interface pins of one or more chips on the electronic hardware product single board through the input communication interface IN3.

[0060] In this embodiment, when the first Type-C socket module 102 and the second Type-C socket module 111 are connected one-to-one through the Type-C data line according to the same pin name definition, the anti-reverse insertion detection module 112 detects that the pin CC1 of the second Type-C socket module 111 is at a high level. On the one hand, the anti-reverse insertion detection module 112 controls the output pin of the comparator to output a high level, and on the other hand, determines the first output communication interface OUT1 as the signal input end of the second Type-C socket module 111.

[0061] Optionally, in this embodiment, when the connection reminder module 113 receives a high level output from the output pin of the comparator of the anti-reverse insertion detection module 112, it reminds the staff through LED lights, buzzers, etc., informing them that the connection is successfully established and the wiring direction is correct.

[0062] In this embodiment, when the anti-reverse insertion detection module 112 detects that the pin CC1 of the second Type-C socket module 111 is at a low level, on the one hand, the anti-reverse insertion detection module 112 controls the output pin of the comparator to output a low level, and on the other hand, determines the second output communication interface OUT2 as the signal input end of the second Type-C socket module 111.

[0063] Optionally, in this embodiment, when the connection reminder module 113 receives a low level output from the output pin of the comparator of the anti-reverse insertion detection module 112, the LED light cannot be lit and the buzzer cannot sound, thereby informing the staff that the connection failed and the plug-in direction is reversed.

[0064] See also Figure 3 , Figure 3 The pin definition diagram of the first Type-C socket module and the second Type-C socket module provided in the embodiment of the present invention. Figure 3 As shown, when defining the pins, the following method is adopted: the USB 2.0 data interface is reserved through the B6 pin (D+) and the B7 pin (D-);

[0065] The power interface is reserved through 4 VBUS pins, namely A4, A9, B4 and B9, and 4 ground (GND) pins, namely A1, A12, B1 and B12.

[0066] The serial port 1 data interface from the electronic hardware product board is gathered through the A2 pin (TX1) and the A3 pin (RX1);

[0067] The serial port 2 data interface from the electronic hardware product board is gathered through the A8 pin (TX2) and the B8 pin (RX2);

[0068] The Ethernet interface from the electronic hardware product board is gathered through the A10 pin (RX-), A11 pin (RX+), B2 pin (TX+) and B3 pin (TX-);

[0069] Under the premise of retaining the PD communication interface of the second Type-C socket module 111 through the A5 pin (CC1) and the B5 pin (CC2), the A5 pin (CC1) is reused as the input voltage or level detection pin of the anti-reverse insertion detection module.

[0070] See also Figure 4 , Figure 4 The present invention provides an implementation circuit diagram of an anti-reverse insertion detection module and a connection reminder module. Figure 4 As shown, the signal light prompt circuit also includes a resistor R1, and the LED light is a light emitting diode D10. The positive end of the light emitting diode D10 is connected to the pin end (i.e., the output pin of the comparator) of the anti-reverse insertion detection module that outputs the forward connection success output signal, and the negative end of the light emitting diode D10 is connected to one end of the resistor R1, and the other end of the resistor R1 is grounded.

[0071] And, if Figure 4 As shown, the anti-reverse insertion detection module is composed of a comparator circuit, and the comparator circuit includes an operational amplifier U30. The pin CC1 of the second Type-C socket module is connected to the first pin U301 of the operational amplifier U30, as the in-phase input terminal (+IN) of the comparator circuit, and the first pin U301 of the operational amplifier U30 is grounded through a resistor R2 with a resistance value of 5.1K; the second pin U302 of the operational amplifier U30 serves as the reverse input terminal (-IN) of the comparator circuit, and the second pin U302 of the operational amplifier U30 is connected to the +5V power supply through a 100K resistor R3, and the second pin U302 of the operational amplifier U30 is grounded through a resistor R4 with a resistance value of 5.1K; the third pin U303 of the operational amplifier U30 is connected to the +5V power supply, and the fourth pin U304 of the operational amplifier U30 is grounded. The input voltage of the reverse input terminal of the comparator is the voltage divided by the resistor R4 in the voltage divider circuit composed of the resistor R3 and the resistor R4, and is used as the reference voltage value Vref; the reference voltage value Vref is calculated by the following formula:

[0072]

[0073] In this embodiment, the input voltage of the positive input terminal of the comparator circuit is the input value of the pin CC1 of the second Type-C socket module; when the voltage of the positive input terminal of the comparator circuit is higher than the reference voltage value Vref, the fifth pin of the operational amplifier U30 serves as the output terminal of the comparator circuit and outputs a high-level signal; the resistance value of the resistor R1 is 1K; one end of the light-emitting diode is connected to the output terminal of the comparator circuit, and the other end of the light-emitting diode is grounded through the resistor R1. When the comparator circuit outputs a high-level signal, the light-emitting diode lights up; when the comparator circuit outputs a low-level signal, the light-emitting diode goes out.

[0074] See also Figure 5 , Figure 5 A schematic diagram of an anti-reverse insertion detection principle provided by an embodiment of the present invention. Figure 5 As shown, in actual use, in the debugging interface module 100, the pin CC1 of the first Type-C socket module 102 is connected to the +5V power supply through a 20K pull-up resistor Rp; and in the communication interface convergence module 110, the pin CC1 and the pin CC2 of the second Type-C socket module 111 are grounded (GND) through a 5.1K resistor Rd respectively; when the first Type-C socket module 102 and the second Type-C socket module 111 are forwardly connected through the Type-C data line, at this time, the pin CC1 of the first Type-C socket module 102 is connected to the pin CC1 of the second Type-C socket module 111; the voltage of the pin CC1 is taken from the voltage divided by the resistor Rd in the voltage divider circuit composed of the resistor Rp and the resistor Rd, and is used as the positive input terminal voltage V of the comparator. +IN ;

[0075]

[0076] At this time V +IN is greater than Vref, the output end of the comparator outputs a high level, and the light-emitting diode D10 lights up; when the first Type-C socket module 102 and the second Type-C socket module 111 are reversely connected through the Type-C data line, at this time, the pin CC2 of the first Type-C socket module 102 is connected to the pin CC1 of the second Type-C socket module 111; and the pin CC2 of the first Type-C socket module 102 is in a suspended state, and the pin CC1 of the second Type-C socket module 111 is grounded (GND) through a 5.1K resistor Rd, so the pin CC1 of the second Type-C socket module 111 is in a low level state, and then the comparator positive input voltage V +IN If it is less than Vref, the output terminal of the comparator outputs a low level, and the light-emitting diode D10 is turned off.

[0077] An embodiment of the present invention further provides a device, comprising a debugging circuit based on a Type-C interface for implementing any of the above items.

[0078] An embodiment of the present invention also provides a system, including one or more chips, and also including a debugging circuit based on the Type-C interface to implement any of the above items, the debugging circuit is connected to the one or more chips, and the debugging circuit is used to debug the one or more chips.

[0079] The present invention provides a debugging circuit, device and system based on Type-C interface, which not only retains the support for USB2.0 interface and charging function, but also integrates the key test interfaces that need to be led out inside the module by cleverly utilizing other remaining pins of Type-C interface. These interfaces include UART (Universal Asynchronous Receiver / Transmitter) interface, IIC (Inter-Integrated Circuit) interface, SWD (Serial Wire Debug) software upgrade interface, and network interface, etc. This integrated design simplifies the debugging work of the staff and provides a convenient means of fault location and software upgrade for on-site technicians.

[0080] In order to further improve the efficiency and convenience of operation, the present invention also adds the anti-reverse insertion detection and reminder function of the Type-C interface. This function can immediately guide the staff to correctly insert the interface to avoid connection errors, thereby improving work efficiency and reducing operational complexity.

[0081] Therefore, the Type-C interface solution of the present invention not only reduces the complexity of product development and maintenance and reduces costs, but also improves the efficiency and ease of operation through anti-reverse insertion detection and reminder functions, providing an efficient and economical new method for the research and development and maintenance of smart terminals and electronic devices.

[0082] Finally, it should be noted that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the invention.

Claims

1. A debugging circuit based on Type-C interface, characterized in that: The debugging circuit is used to debug one or more chips, and the debugging circuit includes a debugging interface module and a communication interface convergence module connected to the debugging interface module; The debugging interface module includes an interface branch connection module and a first Type-C socket module; the interface branch connection module is connected to the first Type-C socket module; the interface branch connection module is used to split the multiple interface signals obtained by the first Type-C socket module; The communication interface aggregation module includes a second Type-C socket module; the second Type-C socket module and the first Type-C socket module are connected via a data line; The second Type-C socket module is used to connect to one or more communication interface pins and debug interface pins of the one or more chips; The second Type-C socket module is used to collect interface signals of the one or more communication interface pins and debugging interface pins of the one or more chips, and transmit the interface signals of the one or more chips to the first Type-C socket module, so that the interface connection module splits the interface signals of the one or more chips obtained by the first Type-C socket module, and then debugs the chip through the debugging circuit.

2. A debugging circuit based on Type-C interface according to claim 1, characterized in that: The communication interface convergence module also includes an anti-reverse insertion detection module and a connection establishment prompt module connected to the anti-reverse insertion detection module; The second Type-C socket module includes a pin CC1 corresponding to the fast charging protocol PD in the universal serial bus standard USB; The second Type-C socket module is connected to the anti-reverse insertion detection module through the pin CC1; The anti-reverse plug-in detection module determines whether the forward connection is successful by detecting the voltage value of the pin CC1. After the anti-reverse plug-in detection module determines that the forward connection is successful, it sends a forward connection success output signal to the connection establishment prompt module. The connection establishment prompt module sends a prompt signal according to the forward connection success output signal to prompt the staff that the interface is forward connected successfully.

3. The debugging circuit based on Type-C interface according to claim 2, characterized in that: The anti-reverse plug-in detection module detects the voltage value of the pin CC1 and compares it with the reference voltage value Vref to determine whether the forward connection is successful. After the anti-reverse plug-in detection module determines that the forward connection is successful, it sends a forward connection success output signal to the connection prompt module.

4. The debugging circuit based on Type-C interface according to claim 2 or 3, characterized in that: The anti-reverse plug-in detection module includes an input communication interface, a first output communication interface, and a second output communication interface, all communication interfaces of the second Type-C socket module are connected to all first output communication interfaces of the anti-reverse plug-in detection module in a one-to-one correspondence according to a first connection sequence, and all communication interfaces of the second Type-C socket module are connected to all second output communication interfaces of the anti-reverse plug-in detection module in a one-to-one correspondence according to a second connection sequence, the first connection sequence is a forward sequence connection, and the second connection sequence is a reverse sequence connection; The second Type-C socket module is connected to one or more communication interface pins and a debugging interface pin of the one or more chips through the input communication interface of the anti-reverse insertion detection module; The anti-reverse plug-in detection module determines whether the forward connection is successful by detecting the voltage value of the pin CC1. After the anti-reverse plug-in detection module determines that the forward connection is successful, the second output communication interface is closed; The anti-reverse insertion detection module determines that the forward connection is not successful and closes the first output communication interface.

5. The debugging circuit based on Type-C interface according to claim 3, characterized in that: The connection establishment prompt module includes a signal light prompt circuit, and the signal light prompt circuit includes an LED light; When the forward connection success output signal is a high level signal, the LED lamp lights up; The signal light prompt circuit also includes a resistor R1, the positive end of the LED lamp is connected to the pin end of the anti-reverse insertion detection module that outputs a forward connection success output signal, the negative end of the LED lamp is connected to one end of the resistor R1, and the other end of the resistor R1 is grounded.

6. The debugging circuit based on Type-C interface according to claim 5, characterized in that: The anti-reverse insertion detection circuit includes a comparator circuit, and the comparator circuit includes an operational amplifier. The pin CC1 of the second Type-C socket module is connected to the first pin of the operational amplifier as the in-phase input end of the comparator circuit. The first pin of the operational amplifier is grounded through a resistor R2 with a resistance value of 5.1K; The second pin of the operational amplifier is used as the inverting input terminal of the comparator circuit, the second pin of the operational amplifier is connected to a +5V power supply through a 100K resistor R3, and the second pin of the operational amplifier is grounded through a resistor R4 with a resistance value of 5.1K; The third pin of the operational amplifier is connected to a +5V power supply, and the fourth pin of the operational amplifier is grounded; the input voltage of the inverting input terminal of the comparator is the voltage divided by the resistor R4 in the voltage divider circuit composed of the resistor R3 and the resistor R4, and serves as the reference voltage value Vref; The input voltage at the positive input terminal of the comparator circuit is the input value of the pin CC1 of the second Type-C socket module; When the voltage at the positive input terminal of the comparator circuit is higher than the reference voltage value Vref, the fifth pin of the operational amplifier serves as the output terminal of the comparator circuit and outputs a high level signal; The LED lamp is a light-emitting diode, and the resistance value of the resistor R1 is 1K; one end of the light-emitting diode is connected to the output end of the comparator circuit, and the other end of the light-emitting diode is grounded through the resistor R1; when the comparator circuit outputs the high-level signal, the light-emitting diode lights up; when the comparator circuit outputs the low-level signal, the light-emitting diode goes out.

7. The debugging circuit based on Type-C interface according to claim 2, characterized in that: The connection establishment prompt module includes a buzzer prompt circuit, and the buzzer prompt circuit includes a buzzer. When the forward connection success output signal is a high-level signal, the buzzer starts to work and is in a sounding state.

8. The debugging circuit based on Type-C interface according to claim 1, characterized in that: The interface branch connection module includes pin headers and / or sockets and / or flexible flat cable sockets with different spacings.

9. A device, characterized in that: The device includes a debugging circuit based on a Type-C interface implementing any one of claims 1 to 8.

10. A system, characterized in that: The method comprises one or more chips, and also comprises a debugging circuit based on the Type-C interface according to any one of claims 1 to 8, wherein the debugging circuit is connected to the one or more chips, and the debugging circuit is used to debug the one or more chips.