Effective method for externally debugging serial port multiplexing standard USB3.0 interface

By using pin 7 of the USB3.0TypeA connector and electronic switching switch U1 in the USB3.0 interface, the serial port signal is multiplexed, which solves the problem of reserved physical interfaces for electronic device failure analysis, and realizes rapid entry of debugging signals Mode effect.

CN119415463APending Publication Date: 2025-02-11联想长风科技(北京)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411491312.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

Electronic equipment failure analysis requires reserved physical interfaces, occupying the external interface volume of the entire machine, and disassembly of the entire machine may introduce new faults.

Method used

By selecting pin 7 of USB3.0TypeA connector as the characteristic signal, using its level state judgment signal multiplexing switching, using electronic switching switch U1 of bidirectional data transmission, dual-channel input, and single-channel output, switch between different signal sources by switching , realize the multiplexing of serial port signals.

Benefits of technology

Based on the implementation of the original USB function and performance, the USB3.0 TYPEA connector is reused and the debugging cable can quickly enter the debug signal mode without any operation, simplifying the fault analysis process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415463A_ABST
    Figure CN119415463A_ABST
Patent Text Reader

Abstract

The invention discloses an effective method for externally debugging a serial port multiplexing standard USB3.0 interface, and relates to the technical field of electronic communication, and the method comprises the following steps: selecting a pin 7 of a USB3.0 TypeA connector as a characteristic signal, and multiplexing and switching. An electronic change-over switch U1 with two-way data transmission, two-channel input and single-channel output is adopted for switching among different signal sources. A standard USB3.0 signal is accessed to the input channel 1 of the U1, and a debugging serial port signal is accessed to the input channel 2. When a standard USB3.0 cable is not connected, the pin 7 is set to be at a low level through the pull-down resistor R1, the U1 selects the input channel 1, and the USB3.0 function is supported. The technical problem that a reserved physical interface occupies the size of an external interface of a whole machine in the prior art is solved, and the technical effect that the debugging signal mode can be quickly entered without any operation on the basis that the original US function and performance are not influenced is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic communication technology, and in particular to an effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports. Background Art

[0002] Electronic devices are currently pursuing a thin and light design, and external interfaces are often simplified, with only necessary functions. For mobile phones that pursue extreme thinness, the only external interface currently used is OTG, which is used to upgrade and copy data; notebooks and desktop computers also only have USB interfaces reserved for external use. The serial ports used to print machine status information almost never have physical interfaces reserved for external use, which brings great inconvenience to the fault analysis of electronic devices. Once an electronic device fails, the entire machine casing must be disassembled for wiring analysis, which brings great trouble and inconvenience to the fault analysis. In addition, new faults may be introduced after the entire machine is disassembled, such as improper disassembly damaging components and destroying the original appearance of the entire machine.

[0003] In the current related technologies, there is a technical problem that equipment fault debugging requires reserving a physical interface for the outside, and the reserved physical interface occupies the volume of the external interface of the entire machine. Summary of the invention

[0004] The present application provides an effective method for multiplexing a standard USB3.0 interface for an external debugging serial port, by selecting pin 7 of the USB3.0TypeA connector as a characteristic signal, and using its level state to determine the signal multiplexing switch. An electronic switching switch U1 with bidirectional data transmission, dual-channel input, and single-channel output is used to switch between different signal sources. The standard USB3.0 signal is connected to input channel 1 of U1, and the debug serial port signal is connected to input channel 2. When the standard USB3.0 cable is not connected, pin 7 is set to a low level through the pull-down resistor R1, and U1 selects input channel 1 to support the USB3.0 function, thereby achieving the technical effect of multiplexing the USB3.0TYPEA connector without affecting the original USB function and performance, and using the debug cable to quickly enter the debug signal mode without any operation.

[0005] In view of the above problems, the present application provides an effective method for reusing a standard USB 3.0 interface for an external debugging serial port, including:

[0006] Pin 7 of the USB3.0 Type A connector is selected as a characteristic signal, and the level state of pin 7 is used as a judgment condition for signal multiplexing switching; an electronic switching switch U1 with bidirectional data transmission, dual-channel input, and single-channel output is used to switch between different signal sources; a standard USB3.0 signal is connected to input channel 1 of the electronic switching switch U1; a debugging serial port signal is connected to input channel 2 of the electronic switching switch U1; when the output channel of the electronic switching switch U1 is not connected to a standard USB3.0 cable, pin 7 of the USB3.0 Type A connector is at a low level through a pull-down resistor R1, and the electronic switching switch U1 selects input channel 1 to support the USB3.0 function.

[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0008] The present application proposes an effective method for multiplexing a standard USB3.0 interface for an external debugging serial port. First, by selecting pin 7 of the USB3.0TypeA connector as a characteristic signal, its level state is used to determine the signal multiplexing switch. An electronic switching switch U1 with bidirectional data transmission, dual-channel input, and single-channel output is used to switch between different signal sources. The standard USB3.0 signal is connected to input channel 1 of U1, and the debug serial port signal is connected to input channel 2. When the standard USB3.0 cable is not connected, pin 7 is set to a low level through the pull-down resistor R1, and U1 selects input channel 1 to support the USB3.0 function, achieving the technical effect of multiplexing the USB3.0TYPEA connector without affecting the original USB function and performance, and using the debug cable to quickly enter the debug signal mode without any operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A circuit design diagram of an effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports provided in an embodiment of the present application;

[0010] Figure 2 This application discloses a USB 3.0 Type A socket structure diagram for an effective method of multiplexing a standard USB 3.0 interface for external debugging serial ports. DETAILED DESCRIPTION

[0011] The present application provides an effective method for reusing a standard USB 3.0 interface for external debugging serial ports, thereby solving the technical problem in the prior art that a physical interface needs to be reserved for external use for device fault debugging, and the reserved physical interface occupies the volume of the entire device's external interface. The present application achieves the technical effect of reusing a USB 3.0 TYPE A connector without affecting the original USB function and performance, and using a debugging cable to quickly enter the debugging signal mode without any operation.

[0012] Example

[0013] like Figure 1 As shown, the present application provides an effective method for multiplexing a standard USB 3.0 interface for an external debugging serial port, which includes:

[0014] Step S100, select a USB 3.0 Type A connector, such as Figure 2 As shown in FIG. 1 , pin 7 is used as a characteristic signal, and the level state of pin 7 is used as a judgment condition for signal multiplexing switching. Specifically, in the USB3.0 interface multiplexing solution, based on the following Figure 2 As shown in the figure, the pin function distribution of the USB3.0 Type A connector, its pin 7 as the USB3.0 reference ground is important to ensure the integrity of the ultra-high-speed signal and is short-circuited with pin 4 in the external cable. Its level states include grounding, floating, and 5V, corresponding to different cable connection scenarios. By establishing a monitoring circuit to detect the voltage of pin 7 in real time and convert it into a digital signal to transmit to the control logic circuit, the control logic circuit judges based on the level state. When the level is low, the standard USB cable is connected by default, and the electronic switch is controlled to the USB function channel to ensure normal operation. When the level is high, it is identified as a customized debugging cable and switched to the debugging serial port signal channel, so as to realize the use of the level state of pin 7 as a signal multiplexing switching judgment condition, thereby improving the utilization rate and convenience of the device interface.

[0015] In a possible implementation, pin 7 of the USB3.0 Type A connector is selected as a characteristic signal, and the level state of pin 7 is used as a judgment condition for signal multiplexing switching. Step S100 further includes step S110, and pins 1 to 4 of the USB3.0 Type A connector are USB2.0 signals. Specifically, pins 1 to 4 of the USB3.0 Type A connector are defined as USB2.0 signals. In the normal operation of the device, these pins are responsible for data transmission tasks in the USB2.0 mode. For example, when the device is connected to an external device that only supports USB2.0 (such as an old printer, some mobile storage devices, etc.), data will be exchanged through these pins. Pin 1 and pin 3 are the data-(Data-) and data+(Data+) signals of USB2.0 respectively. They are responsible for transmitting the actual data content. According to the USB2.0 communication protocol, data is sent and received in the form of differential signals to ensure the accuracy and stability of data transmission. Pin 2 is ground (GND), which provides a common reference potential for USB2.0 signals to ensure that data signals are transmitted within an appropriate level range to avoid signal interference and errors. Pin 4 is also grounded (GND), and together with pin 2, it builds a stable ground loop, which plays an important role in the electrical performance of the entire USB2.0 signal transmission system, such as reducing electromagnetic interference and ensuring signal integrity. In the solution of multiplexing the USB3.0 interface to realize the debug serial port function, although the main focus is on the switching of USB3.0 signals and debug serial port signals, the normal operation of the USB2.0 signal pins is part of the compatibility and versatility of the entire device. When the device is connected to a USB2.0 device, these pins can ensure that the device can perform low-speed or medium-speed data transmission operations normally without being affected by the debug serial port multiplexing process. At the same time, when monitoring and judging the type of external cable connection, the status of the USB2.0 signal pins (such as the grounding status of pins 2 and pin 4) may also be used as auxiliary information to help the system more accurately identify the type of connected device so as to correctly switch and configure between different working modes (USB2.0 mode, USB3.0 mode or debug serial port mode).

[0016] Step S120, pins 5 to 9 of the USB3.0 Type A connector are USB3.0 signals. Specifically, pins 5 to 9 are USB3.0 signals, which are the key parts to achieve high-speed data transmission, among which pins 5 and 6 are ultra-high-speed receiver (SSRX- and SSRX+) signals, respectively, for receiving high-speed data from external devices. When the device transmits data with an external storage device that supports USB3.0 (such as a high-speed mobile hard disk), the data enters the device through these two pins in the form of high-speed differential signals. Pins 8 and 9 are ultra-high-speed transmitter (SSTX- and SSTX+) signals, which are responsible for transmitting the data inside the device to the external device at high speed. For example, when a large amount of data is written from a computer to an external hard disk, the data is quickly sent out through these pins. Pin 7, as the reference ground of USB3.0, is crucial to ensuring the integrity of the ultra-high-speed signal. During high-speed data transmission, the accuracy and stability of the signal depend on a stable reference potential. Pin 7 provides this key reference point to ensure that the data signal can be transmitted correctly. The signal is transmitted within the level range to reduce signal distortion and errors. In the multiplexing scheme, the functional integrity of these USB3.0 signal pins must be guaranteed, because the USB3.0 interface undertakes the important task of high-speed data transmission in daily use, such as fast file copying, high-definition video transmission, etc. At the same time, pin 7 is used as a characteristic signal to determine the signal multiplexing switch. The change of its level state directly affects the selection of the electronic switch, and then determines whether the device is in USB3.0 function mode or debug serial port function mode. When the level state of pin 7 is normal (such as grounded or suspended and in accordance with the USB3.0 cable connection characteristics), the device can perform USB3.0 function operations normally to ensure smooth high-speed data transmission. Under specific conditions (such as inserting a customized debug cable to connect pin 7 to 5V), the system switches to debug serial port mode according to the change of pin 7 level. At this time, although the USB3.0 function is temporarily switched, in other cases, the original USB3.0 function of these pins is always one of the basic functions that need to be prioritized in the entire scheme design.

[0017] Step S130, the level state of pins 10 and 11 of the USB3.0 Type A connector is grounded GND. Specifically, the level state of pins 10 and 11 of the USB3.0 Type A connector is grounded GND. The two pins mainly play the role of grounding and shielding. In terms of electrical connection, they provide an additional grounding path for the entire connector, enhancing the electrical stability of the device. For example, in an environment with strong electromagnetic interference, multiple grounding paths can better introduce interference current into the earth and reduce the impact on the internal circuit. In terms of signal transmission, grounding helps to shield external electromagnetic interference and protect the integrity of data signals. For USB3.0 signals and USB2.0 signals, stable grounding can reduce noise on the signal line, improve signal quality, and ensure the accuracy of data transmission. At the same time, in the grounding connection of the device casing, pins 10 and 11 may also be involved, further improving the electromagnetic compatibility (EMC) of the device. MC), prevents the device from generating electromagnetic interference to the surrounding environment, and protects the device itself from external electromagnetic interference. In the multiplexing interface solution, although the grounding status of pins 10 and 11 does not directly participate in the judgment process of signal multiplexing switching, they provide a basic guarantee for the stable operation of the entire system. Stable grounding helps to ensure the normal operation of other pins (such as USB2.0 and USB3.0 signal pins). Whether in USB function mode or in debug serial port mode, good grounding can reduce signal interference and improve system reliability. In addition, in the overall design of the device, the correct connection of the grounding pin is an important part of complying with electrical safety standards and electromagnetic compatibility requirements. It is of great significance for the normal use of the device in various complex environments and its compatibility with other devices, and indirectly supports the effective implementation of the multiplexing solution.

[0018] In a possible implementation, pin 7 of the USB3.0 Type A connector is selected as a characteristic signal, and the level state of pin 7 is used as a judgment condition for signal multiplexing switching. Step S100 further includes step S140, and the level state of pin 7 of the USB3.0 Type A connector includes grounding, hanging, and connecting to 5V. Specifically, the level state of pin 7 of the USB3.0 Type A connector includes grounding, hanging, and connecting to 5V, which plays a key role in the scheme. When grounded, it often means that a standard USB3.0 cable is connected or the pull-down resistor is at a low level, and the device is in a normal USB3.0 functional mode, and high-speed data transmission is performed through pins 5 to 9. At this time, pin 7 provides a stable reference potential for ultra-high-speed signals, and the electronic switching switch selects input channel 1 to support USB3.0 functions. When suspended, it usually corresponds to connecting a standard USB2.0 cable. Although it is suspended, the pull-down resistor is at a low level, and the device supports USB2.0 functions. For example, when connecting a printer, data is transmitted through the relevant pins, and the electronic switching switch also selects input channel 1 to ensure compatibility. When connected to 5V, it means that the customized debugging cable is connected, the system switches to the debugging serial port mode, and the electronic switching switch selects input channel 2 to realize the external output of the debugging serial port, which is convenient for technicians to debug, diagnose and update software. The circuit has protection measures to ensure that the debugging function is normal and other functions are not interfered with.

[0019] Step S200, use the electronic switch U1 with bidirectional data transmission, dual-channel input, and single-channel output to switch between different signal sources. Specifically, in the USB3.0 interface multiplexing scheme, the electronic switch U1 with bidirectional data transmission, dual-channel input, and single-channel output undertakes the key task of switching between different signal sources. Initially or when connecting a standard USB3.0 cable, pin 7 is at a low level, and U1 switches to input channel 1. Because the standard USB3.0 signal is connected here, the device normally supports the USB3.0 function and ensures high-speed data transmission. When connecting a standard USB2.0 cable, although pin 7 is suspended, it is still at a low level due to the pull-down resistor. U1 also selects input channel 1, and uses the USB2.0 signal pin associated with the channel to achieve USB2.0 function and compatibility. When connecting a customized debugging cable, pin 7 is connected to 5V and becomes high level, and U1 switches to input channel 2. With the debugging serial port signal connected to the channel, the debugging serial port is output externally, which is convenient for development, debugging and troubleshooting, thereby realizing interface multiplexing, improving flexibility and utilization, and optimizing user experience.

[0020] Step S300, connect the standard USB3.0 signal to the input channel 1 of the electronic switch U1. Specifically, in the USB3.0 interface reuse scheme, the USB3.0 signals of pins 5 to 9 are precisely wired and connected to the U1 input channel 1 pins according to the USB3.0 Type A connector pin definition and the electronic switch U1 interface characteristics during the hardware design phase, and the signal quality is ensured by following the electrical specifications and signal integrity principles. During normal operation, when no specific cable is connected or a standard USB3.0 cable is connected, U1 defaults to selecting input channel 1 to communicate with the output channel, and the external USB3.0 device signal enters through connector pins 5 to 9, passes through the connection line to input channel 1, and is output from the output port to the internal processing unit of the device through the internal buffer and conditioning circuit. When connecting a standard USB2.0 cable, although the USB2.0 signal goes through other pins, the pin 7 level makes U1 still select input channel 1, ensuring the normal circuit related to the USB3.0 signal and the compatibility of the device. This connection design lays the foundation for the successful implementation of the reuse scheme.

[0021] Step S400, connect the debug serial port signal to the input channel 2 of the electronic switch U1. Specifically, in the USB3.0 interface reuse scheme, engineers lay out the circuit according to the device requirements during circuit design, and accurately connect the debug serial port signal to the input channel 2 pin of the electronic switch U1 through the PCB routing, and ensure the signal integrity and avoid interference during wiring. When the device is operating normally but not debugging, although the debug serial port signal is connected to input channel 2, the electronic switch U1 is in waiting because it selects other channels (such as input channel 1 for USB function) according to preset conditions, which does not affect the regular USB function. When debugging the device, insert the customized debug cable to connect the USB3.0 Type A connector pin 7 to 5V and change it to a high level, triggering the electronic switch U1 to switch to input channel 2, and the debug serial port signal is connected from the source end to input channel 2 through the connection line, and then output from the output channel through the internal adapter circuit to the external debugging device to achieve communication, provide interface means for device development and maintenance, etc., and improve interface reuse and device maintainability.

[0022] Step S500, when the output channel of the electronic switching switch U1 is not connected to the standard USB3.0 cable, through the pull-down resistor R1, the pin 7 of the USB3.0TypeA connector is at a low level, and the electronic switching switch U1 selects input channel 1 to support the USB3.0 function. Specifically, in the USB3.0 interface multiplexing scheme, when the standard USB3.0 cable is not connected, the pin 7 of the USB3.0TypeA connector is grounded at a low level through the pull-down resistor R1, and the electronic switching switch U1 continuously monitors this level and selects input channel 1 according to the preset logic, because the standard USB3.0 signal is connected to this channel. When the device interacts with an external USB3.0 device, the data enters input channel 1 through the corresponding pin of the connector, and is output from a single channel after the internal processing circuit ensures the signal quality, and then is routed to the main control chip through the PCB for further processing, realizing USB3.0 functions such as high-speed reading and writing, and charging. When connecting a standard USB2.0 cable, pin 7 is suspended but still at a low level due to the pull-down resistor, and U1 also selects input channel 1 to switch to USB2.0 functional mode for compatibility. When connecting a custom debug cable, pin 7 is connected to 5V to switch U1 to input channel 2 to achieve external output of the debug serial port for debugging and maintenance. The parameters of the pull-down resistor R1 are carefully designed, and the power management system monitors and coordinates to jointly ensure the stable operation of the solution and the adaptive switching of interface functions, thereby improving the versatility of the device.

[0023] In a possible implementation, when the output channel of the electronic switch U1 is not connected to a standard USB3.0 cable, through the pull-down resistor R1, the pin 7 of the USB3.0TypeA connector is at a low level, and the electronic switch U1 selects input channel 1 to support the USB3.0 function. Step S500 further includes step S510, when the output channel of the electronic switch U1 is connected to a standard USB3.0 cable, the pin 7 of the USB3.0TypeA connector is grounded, the level state of the pin 7 is low, and the electronic switch U1 selects input channel 1 to support the USB3.0 function. Specifically, in the USB3.0 interface multiplexing scheme, when the output channel of the electronic switch U1 is connected to a standard USB3.0 cable, the cable makes the pin 7 of the USB3.0TypeA connector grounded at a low level, and the electronic switch U1 detects it and selects input channel 1 according to the preset logic, because the standard USB3.0 signal has been connected to this channel. When the device interacts with an external USB3.0 device, the data is transmitted to the corresponding pin of the connector via the cable, and then enters input channel 1 through the PCB routing. In channel 1, the signal is output from a single channel after circuit optimization such as amplification, filtering, and impedance matching, and then transmitted to the main control chip for decoding, error correction, storage and other processing, thereby achieving high-speed and stable data transmission between the device and the external USB3.0 device, fully supporting USB3.0 functions such as file copying, video playback and data storage, and ensuring automatic switching and multiplexing of interface functions in different connection situations, thereby improving the flexibility and adaptability of the device to meet the diverse needs of users.

[0024] In a possible implementation, when the output channel of the electronic switching switch U1 is connected to a standard USB3.0 cable, pin 7 of the USB3.0TypeA connector is grounded, the level of pin 7 is low, the electronic switching switch U1 selects input channel 1, and supports the USB3.0 function, and step S510 further includes step S511, when the output channel of the electronic switching switch U1 is connected to a standard USB2.0 cable, pin 7 of the USB3.0TypeA connector is suspended, and the level of pin 7 is low through the pull-down resistor R1, the electronic switching switch U1 selects input channel 1, and supports the USB2.0 function. Specifically, in the USB3.0 interface multiplexing scheme, when the output channel of the electronic switching switch U1 is connected to a standard USB2.0 cable, pin 7 of the USB3.0TypeA connector is suspended, but because the pull-down resistor R1 is connected to pin 7 and one end is grounded, the level of pin 7 is pulled down. After the electronic switch U1 detects the low level of pin 7, it selects input channel 1 according to the preset logic. This channel is not only connected to the standard USB3.0 signal, but also connected to the signal transmission path related to the USB2.0 function in a reasonable way. The main data transmission signal of USB2.0 enters input channel 1 through connector pins 1 and 3 through PCB routing. After buffering and level adjustment in channel 1, it is output from a single channel and then transmitted to the USB2.0 control module or related processing unit inside the device. After synchronization, verification, format conversion or storage, data interaction with external USB2.0 devices is realized, and USB2.0 functions such as printing, low-speed data storage and reading are supported. It reflects the flexibility and compatibility of the solution, can automatically switch functions, and improve the versatility and practicality of the equipment to meet diverse scenarios.

[0025] In a possible implementation, when the output channel of the electronic switch U1 is connected to a standard USB2.0 cable, pin 7 of the USB3.0TypeA connector is suspended, and the level of pin 7 is low through the pull-down resistor R1. The electronic switch U1 selects input channel 1 to support the USB2.0 function. Step S511 further includes step S5111. When the output channel of the electronic switch U1 is connected to a debug cable, pin 7 of the USB3.0TypeA connector is connected to 5V, and the level of pin 7 is high. The electronic switch U1 selects input channel 2 to support the external output of the debug serial port. Specifically, in the USB3.0 interface multiplexing scheme, when the output channel of the electronic switch U1 is connected to a debug cable, the debug cable causes pin 7 of the USB3.0TypeA connector to be connected to 5V and become high. After the electronic switch U1 detects it, it selects input channel 2 according to the preset logic. This channel is connected to the debug serial port signal. When debugging the device, the debugging serial port signal is routed from the internal related module through the PCB to the input channel 2, and then processed by the adapter circuit in channel 2 to output from the output channel, matching the impedance, etc., and connected to the external debugging device through the debugging cable. The technicians can use this to analyze and process the signal, such as reading parameters, viewing logs, and debugging at breakpoints, to achieve hardware and software debugging, fault diagnosis, and performance optimization of the device. An independent debugging interface is provided without affecting the conventional USB functions, improving the maintainability and scalability of the device, reflecting the efficiency and flexibility of the solution, and ensuring the smooth progress of the debugging work.

[0026] In a possible implementation, when the output channel of the electronic switching switch U1 is connected to the debugging cable, pin 7 of the USB3.0 Type A connector is connected to 5V, the level state of pin 7 is high, the electronic switching switch U1 selects input channel 2, and supports the external output of the debugging serial port. Step S5111 further includes step S51111, the output channel of the electronic switching switch U1 is connected to pins 8 and 9 of the USB3.0 Type A connector for transmitting the debugging serial port signal, wherein pin 8 corresponds to SSTX+, and pin 9 corresponds to SSTX-. Specifically, in the USB3.0 interface multiplexing scheme, the output channel of the electronic switching switch U1 is carefully connected to pins 8 (SSTX+) and 9 (SSTX-) of the USB3.0 Type A connector during device circuit design. During debugging, such as device development or troubleshooting, the debugging serial port signal is transmitted under system control. The electronic switching switch U1 switches channels according to the level of pin 7. When the customized debugging cable connects pin 7 to 5V, it switches to input channel 2. The debugging serial port signal enters U1 from the source through this channel, and is processed by the internal adaptation circuit (such as amplification and shaping) and then output from the output channel to connector pins 8 and 9. This pair of differential signal transmission lines uses the differential advantage to resist interference and ensures stable and accurate signals. The signal is transmitted to the external debugging equipment through the debugging cable, and the technicians use it to analyze and process it to optimize the equipment hardware and software and troubleshoot. This design reuses the debugging serial port function, uses existing resources, avoids new interface problems, ensures signal quality, improves the maintainability and scalability of the equipment, and meets different needs.

[0027] In a possible implementation, when the output channel of the electronic switching switch U1 is connected to the debugging cable, pin 7 of the USB3.0 Type A connector is connected to 5V, the level state of pin 7 is high, and the electronic switching switch U1 selects input channel 2 to support the external output of the debugging serial port. Step S5111 further includes step S511111, the output channel of the electronic switching switch U1 is connected to pins 5 and 6 of the USB3.0 Type A connector for transmitting the debugging serial port signal, wherein pin 5 corresponds to SSRX+ and pin 6 corresponds to SSRX-. Specifically, in the USB3.0 interface multiplexing scheme, the device circuit design connects the output channel of the electronic switching switch U1 to pins 5 (SSRX+) and 6 (SSRX-) of the USB3.0 Type A connector for transmitting the debugging serial port signal. When entering the debugging state, such as R&D debugging or troubleshooting, the debugging serial port signal is transmitted according to the system process. The electronic switching switch U1 switches according to the level of pin 7. The customized debugging cable switches to input channel 2 when pin 7 is connected to 5V. The signal enters U1 from the source end, and is processed by the internal adapter circuit (such as amplification and conditioning) and then transmitted from the output channel to connector pins 5 and 6. The SSRX+ and SSRX- differential lines use the differential principle to resist interference and accurately transmit signals. The signal is transmitted to the external debugging equipment through the debugging cable, and the technicians use it to analyze and process it to optimize the equipment's software and hardware and troubleshoot. This design and the way to connect pins 8 and 9 together constitute a complete solution, which improves the flexibility and reliability of debugging serial port transmission, reflects the advantages of multiplexing, improves equipment performance and maintainability, and meets diverse needs.

[0028] In summary, the embodiments of the present application have at least the following technical effects:

[0029] The embodiment of the present application selects pin 7 of the USB3.0TypeA connector as the characteristic signal, and uses its level state to determine the signal multiplexing switching. An electronic switching switch U1 with bidirectional data transmission, dual-channel input, and single-channel output is used to switch between different signal sources. The standard USB3.0 signal is connected to input channel 1 of U1, and the debug serial port signal is connected to input channel 2. When the standard USB3.0 cable is not connected, pin 7 is set to a low level through the pull-down resistor R1, and U1 selects input channel 1 to support the USB3.0 function, achieving the technical effect of multiplexing the USB3.0TYPEA connector without affecting the original USB function and performance, and using the debug cable to quickly enter the debug signal mode without any operation.

[0030] This specification and drawings are merely exemplary illustrations of the present application, and various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. These modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, and the present application intends to include these modifications and variations.

Claims

1. An effective method for multiplexing a standard USB3.0 interface for external debugging serial ports, characterized in that: The method comprises: Select pin 7 of the USB3.0 Type A connector as the characteristic signal, and use the level state of pin 7 as the judgment condition for signal multiplexing switching; An electronic switch U1 with bidirectional data transmission, dual-channel input and single-channel output is used to switch between different signal sources; Connect the standard USB3.0 signal to the input channel 1 of the electronic switch U1; Connect the debug serial port signal to the input channel 2 of the electronic switch U1; When the output channel of the electronic switch U1 is not connected to a standard USB 3.0 cable, the pin 7 of the USB 3.0 Type A connector is at a low level through the pull-down resistor R1, and the electronic switch U1 selects input channel 1 to support the USB 3.0 function.

2. An effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports as claimed in claim 1, characterized in that: Selecting pin 7 of the USB 3.0 Type A connector as the characteristic signal, the method comprises: Pins 1 to 4 of the USB 3.0 Type A connector are USB 2.0 signals; Pins 5 to 9 of the USB 3.0 Type A connector are USB 3.0 signals; The level state of pins 10 and 11 of the USB 3.0 Type A connector is ground GND.

3. An effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports as claimed in claim 2, characterized in that: The level states of the pin 7 of the USB 3.0 Type A connector include grounded, suspended, and connected to 5V.

4. An effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports as claimed in claim 3, characterized in that: When the output channel of the electronic switch U1 is connected to a standard USB 3.0 cable, pin 7 of the USB 3.0 Type A connector is grounded, the level state of pin 7 is low, and the electronic switch U1 selects input channel 1 to support USB 3.0 function.

5. An effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports as claimed in claim 4, characterized in that: When the output channel of the electronic switching switch U1 is connected to a standard USB2.0 cable, pin 7 of the USB3.0 TypeA connector is left floating, and through the pull-down resistor R1, the level state of pin 7 is low, and the electronic switching switch U1 selects input channel 1 to support USB2.0 function.

6. An effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports as claimed in claim 5, characterized in that: When the output channel of the electronic switch U1 is connected to the debugging cable, pin 7 of the USB3.0 Type A connector is connected to 5V, the level state of pin 7 is high, and the electronic switch U1 selects input channel 2 to support external output of the debugging serial port.

7. An effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports as claimed in claim 6, characterized in that: The output channel of the electronic switching switch U1 is connected to pins 8 and 9 of the USB3.0 Type A connector for transmitting the debugging serial port signal, wherein pin 8 corresponds to SSTX+ and pin 9 corresponds to SSTX-.

8. An effective method for multiplexing a standard USB 3.0 interface for external debugging serial ports as claimed in claim 6, characterized in that: The output channel of the electronic switch U1 is connected to pins 5 and 6 of the USB3.0 Type A connector for transmitting the debugging serial port signal, wherein pin 5 corresponds to SSRX+ and pin 6 corresponds to SSRX-.