US-12625198-B1 - Integrated universal serial bus data cable testing device and testing method
Abstract
An integrated USB data cable testing device includes: a multi-port testing board, integrating at least seven types of USB ports and a Lightning port; a main controller module, including: a main control MCU configured to perform continuity detecting, protocol parsing, and resistance calculation, and a protocol parsing chip connected to the main control MCU via an I 2 C bus; an integrated detection module, including a continuity detecting circuit, an internal resistance testing circuit, an E-marker identification circuit, a charging head detecting circuit, and a pull-up/pull-down resistance detecting circuit, where the continuity detecting circuit is connected to pins of USB output and input ends, and the E-marker identification circuit and the charging head detecting circuit are connected to CC pins of the protocol parsing chip. The testing device and method support continuity detection, internal resistance measurement, cable protocol identification, charger protocol identification, and E-marker chip parsing functions.
Inventors
- Yanjun Lyu
Assignees
- Yanjun Lyu
Dates
- Publication Date
- 20260512
- Application Date
- 20250828
- Priority Date
- 20250702
Claims (10)
- 1 . An integrated universal serial bus (USB) data cable testing device, comprising: a multi-port testing board, integrating at least seven types of USB ports and a Lightning port; a main controller module, comprising: a main control microcontroller unit (MCU), and a protocol parsing chip, wherein the main control MCU is configured to perform continuity detecting, protocol parsing, and resistance calculation, and the protocol parsing chip is connected to the main control MCU via an inter-integrated circuit (I 2 C) bus; an integrated detection module, comprising a continuity detecting circuit, an internal resistance testing circuit, an E-marker identification circuit, a charging head detecting circuit, and a pull-up and pull-down resistance detecting circuit, wherein the continuity detecting circuit is connected to pins of a USB output end and a USB input end, and the E-marker identification circuit and the charging head detecting circuit are connected to configuration channel (CC) pins of the protocol parsing chip; a dual-mode power supply module, comprising: an AAA battery compartment, an external USB type-C power supply port, and a switch for power supply switching, wherein the dual-mode power supply module is configured to support AAA battery power supply and external USB type-C power supply, and the switch for power supply switching is a mechanical switch for power supply switching; and a human-machine interaction module, comprising a liquid crystal display (LCD) screen and a function switching button, wherein the human-machine interaction module is configured to display continuity topology diagrams, internal resistance values, E-marker information, data cable protocol types, charging head protocols, and pull-up and pull-down resistance values.
- 2 . The integrated USB data cable testing device as claimed in claim 1 , wherein the at least seven types of USB ports comprise: a USB type-C port for power supply and programming, two USB type-C cable testing ports, a USB micro B 2.0 port, a USB micro B 3.0 port, and a USB mini 2.0 port, a USB type-A 3.0 port; and wherein the Lightning port is a Lightning testing port.
- 3 . The integrated USB data cable testing device as claimed in claim 1 , wherein the main control MCU is an STC32G12K128 microcontroller, the protocol parsing chip comprises an FUSB302BMPX chip connected to the main control MCU via the I 2 C bus, and the protocol parsing chip is configured to parse CC1 and CC2 signals of a USB type-C cable to read E-marker and charging head protocol data.
- 4 . The integrated USB data cable testing device as claimed in claim 3 , wherein a working process of the continuity detecting circuit comprises: applying a preset level signal via the USB output end, monitoring voltage changes at respective pins of the USB input end, identifying pin combinations with complete signal paths, and generating and outputting cable topology data to the LCD screen.
- 5 . The integrated USB data cable testing device as claimed in claim 1 , wherein the internal resistance testing circuit comprises a metal oxide semiconductor (MOS) transistor and a 5.1 ohms (Ω) reference resistor with an accuracy of ±1% to form a series voltage divider circuit, and a gate of the MOS transistor is controlled by the main controller module.
- 6 . The integrated USB data cable testing device as claimed in claim 5 , wherein a working process of the internal resistance testing circuit comprises: making, by the main controller module, the MOS transistor conduct to activate the MOS transistor to form a series loop with a power supply, the 5.1Ω reference resistor, and a cable voltage bus (VBUS), to thereby allow current to flow sequentially through the MOS transistor, the 5.1Ω reference resistor, and a VBUS path of a cable to be tested; measuring a voltage difference ΔV at a series node; and calculate a cable internal resistance based on Ohm's law as follows: R_cable = ( V_measured × R 14 ) / ( V_source - V_measured ) ; where V_source represents a supply voltage, R 14 represents a resistance value of the 5.1Ω reference resistor, and V_measured represents an actual voltage measured across the 5.1Ω reference resistor.
- 7 . The integrated USB data cable testing device as claimed in claim 6 , wherein a working process of the E-marker identification circuit comprises: sending, by the main control MCU, a detection command to the protocol parsing chip; sending, by the protocol parsing chip, a USB-power delivery (PD) protocol query message through CC1 and CC2 pins; parsing a power supply capability data packet returned by an E-marker chip, and transmitting the power supply capability data packet to the main control MCU for protocol classification via the I 2 C bus; and extracting, by the main control MCU, specification parameters comprising voltage and current, charger protocol identification, a cable type, a cable delay, a cable transmission speed, a cable supplier, a cable version number, and a cable protocol, and generating, by the main control MCU, a visual report.
- 8 . The integrated USB data cable testing device as claimed in claim 1 , wherein the pull-up and pull-down resistance detecting circuit comprises: controlled MOS transistors and fixed-value resistors; and the main controller module is configured to determine presence of a pull-up resistor and a pull-down resistor by switching ground (GND) pin levels of a USB type-A 3.0 port, a USB type-C port and two USB type-C cable testing ports.
- 9 . The integrated USB data cable testing device as claimed in claim 8 , wherein a working process of the pull-up and pull-down resistance detecting circuit comprises: grounding a VBUS of each of the USB type-A 3.0 port, the USB type-C port and the two USB type-C cable testing ports, and setting a GND pin of each of the USB type-A 3.0 port, the USB type-C port and the two USB type-C cable testing ports to a high-impedance state; turning on, by the main controller module, an MOS transistor of the controlled MOS transistors, and applying, by the main controller module, a test voltage V_test on a CC line; and when V_cc<V_source, determining that the pull-up resistor exists and calculating a resistance value of the pull-up resistor; when V_cc≈V_source, pulling down the GND pin followed by re-detecting; when Vcc<V_source, determining that the pull-down resistor exists and calculating a resistance value of the pull-down resistor.
- 10 . A USB data cable testing method based on the integrated USB data cable testing device as claimed in claim 1 , comprising: the continuity detecting, internal resistance testing, E-marker detecting, charging head detecting, and pull-up and pull-down resistance detecting; wherein the continuity detecting comprises the following steps: connecting two ends of a cable to be tested to the USB output end and the USB input end respectively; outputting, by the main controller module, a level signal to the USB input end; and monitoring voltage changes at respective pins of the USB output end, and generating and displaying a topology diagram of internal wire connections of the cable to be tested; wherein the internal resistance testing comprises the following steps: making an MOS transistor of the internal resistance testing circuit conduct; and measuring a voltage across a 5.1Ω reference resistor of the internal resistance testing circuit, and calculating and displaying an internal resistance value of a VBUS path of the cable to be tested; wherein the E-marker detecting and charger protocol identification comprise the following steps: instructing, by the main controller module, a FUSB302BMPX chip as the protocol parsing chip to read CC1 and CC2 signals; parsing a USB-PD message returned by a USB charging head, and extracting and displaying supported charging protocols and charging capability parameters of the USB charger charging head; and parsing a USB-PD message returned by an E-marker chip and the USB-PD message returned by the USB charging head, and extracting and displaying cable power capacity and data transmission capability parameters, voltage, current and power parameters of the USB charging head, and supported protocols of the USB charging head; wherein the charging head detecting comprises the following steps: sending, by the main controller module, a charging head detection command to the FUSB302BMPX chip, communicating, by the FUSB302BMPX chip, with the USB charging head via the CC1 and CC2 signals to obtain charging head information, returning, by the FUSB302BMPX chip, the USB-PD message, extracting and displaying the supported protocols and voltage and current capability parameters of the USB charging head; wherein the pull-up and pull-down resistance detecting comprises the following steps: determining presence and values of a pull-up resistor and a pull-down resistor on a CC line of a USB type-A to USB type-C cable or a USB type-C to USB type-C cable.
Description
TECHNICAL FIELD The disclosure relates to the technical field of electronic testing equipment, and more particularly to an integrated universal serial bus (USB) data cable testing device and a testing method. BACKGROUND Existing USB testing devices typically support only a single function (such as continuity detection or protocol identification) and are unable to comprehensively assess the cable quality (such as internal resistance, E-Marker, pull-up/pull-down resistance, etc.). Users need to switch devices multiple times to complete a comprehensive test. Moreover, traditional testing methods rely on specialized instruments (such as oscilloscopes and multimeters) and complex operating procedures, which are difficult for ordinary users or production line personnel to quickly master, thereby affecting testing efficiency. Most testing devices on the market only support a single port type (such as USB Type-C) and cannot cover mainstream cable types such as USB Type-A, USB Micro B 2.0/3.0, USB Mini B, and Lightning, which limits the testing scenarios. Additionally, the testing devices often rely on fixed power supplies and lack battery power options, making it difficult to meet the testing needs in outdoor or mobile scenarios. Test results are usually displayed as numerical values or simple indicator lights, lacking an intuitive graphical interface (such as a liquid crystal display screen showing cable structure diagrams and protocol details), which increases the cost for the users to interpret the results. SUMMARY In view of the foregoing, the disclosure provides an integrated USB data cable testing device and a testing method that supports continuity detection, internal resistance measurement, cable protocol identification, charger protocol identification, and E-marker chip parsing functions. With a single device, multiple testing functions can be realized, reducing the cost of testing equipment. The integrated USB data cable testing device supports a dual-power supply system for mobile scenarios, allows one-click switching of testing modes, accurately identifies the performance of a USB data cable, and reduces electronic waste. In order to achieve above purposes, the disclosure provides the following technical solutions. Based on the above purposes, in a first aspect, the disclosure provides an integrated USB data cable testing device. The integrated USB data cable testing device includes: a multi-port testing board, a main controller module, an integrated detection module, a dual-mode power supply module, and a human-machine interaction module. The multi-port testing board integrates at least seven types of USB ports and a Lightning port. The main controller module includes: a main control microcontroller unit (MCU), and a protocol parsing chip. The main control MCU is configured to perform continuity detecting, protocol parsing, and resistance calculation, and the protocol parsing chip is connected to the main control MCU via an inter-integrated circuit (I2C) bus. The integrated detection module includes: a continuity detecting circuit, an internal resistance testing circuit, an E-marker identification circuit, a charging head detecting circuit, and a pull-up/pull-down (pull-up and pull-down) resistance detecting circuit. The continuity detecting circuit is connected to pins of a USB output end and a USB input end, and the E-marker identification circuit and the charging head detecting circuit are connected to configuration channel (CC) pins of the protocol parsing chip. The dual-mode power supply module includes: an AAA battery compartment, an external USB type-C power supply port, and a switch for power supply switching. The dual-mode power supply module is configured to support AAA battery power supply and external USB type-C power supply, and the switch for power supply switching is a mechanical switch for power supply switching. The human-machine interaction module includes: a liquid crystal display (LCD) screen and a function switching button. The human-machine interaction module is configured to display continuity topology diagrams, internal resistance values, E-marker information, data cable protocol types, charging head protocols, and pull-up/pull-down resistance values. In an embodiment, the at least seven types of USB ports include: a USB type-C port for power supply and programming, two USB type-C cable testing ports, a USB micro B 2.0 port, a USB micro B 3.0 port, a USB mini 2.0 port, and a USB type-A 3.0 port. The Lightning port is a Lightning testing port. In an embodiment, the main control MCU is an STC32G12K128 microcontroller, the protocol parsing chip comprises an FUSB302BMPX chip connected to the main control MCU via the I2C bus, and the protocol parsing chip is configured to parse CC1/CC2 (CC1 and CC2) signals of a USB type-C cable to read E-marker and charging head protocol data. In an embodiment, a working process of the continuity detecting circuit includes: applying a preset level s