Type-C cable type detection system and method

The Type-C cable type detection system uses an MCU microcontroller to detect the pin level information of the Type-C interface signal and controls LEDs to display the cable function, solving the problem that users cannot identify the function of Type-C cables and realizing intuitive identification of the function.

CN121090937APending Publication Date: 2025-12-09HUNAN GREATWALL INFORMATION FINANCIAL EQUIP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202511068479.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-31
Publication Date
2025-12-09

AI Technical Summary

Technical Problem

Users cannot determine the functions of a Type-C cable from its appearance, leading to unclear functionality.

Method used

A Type-C cable type detection system is adopted, including a first Type-C socket, a second Type-C socket, an MCU microcontroller, and an LED control module. The MCU microcontroller detects the pin level information of the Type-C interface signal to determine the cable function and controls the LED to display the functions supported by the cable.

Benefits of technology

Users can intuitively identify the functions supported by the Type-C cable by observing the on and off states of the LED light, thus solving the problem of unclear cable functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121090937A_ABST
    Figure CN121090937A_ABST
Patent Text Reader

Abstract

The invention relates to a Type-C cable type detection system and method. The system comprises the steps that a pin of a first Type-C socket is grounded; the second Type-C socket is connected with an input pin of the MCU single chip microcomputer; the LED lamp control module is connected with an output control pin of the MCU single-chip microcomputer. After a Type-C cable to be detected is inserted, the MCU single chip microcomputer passes through an input pin; judging whether the Type-C cable to be detected supports a cable function or not according to the pin level information; generating an LED lamp control signal corresponding to the LED lamp according to whether the cable function is supported or not; the LED lamp control signal is sent to an LED lamp control module; and the LED lamp control module controls the corresponding LED lamp to be turned on or turned off according to the LED lamp control signal. A user can visually identify the cable function supported by the Type-C cable through the state of the LED lamp.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of data cable testing, and particularly relates to a Type-C cable type testing system and method. Background Technology

[0002] With users increasingly demanding thinner and lighter designs, most mainstream electronic devices use the Type-C interface for interaction. The application of Type-C is very widespread, and its functions are becoming more diversified, such as integrating charging, data transmission, and video display functions.

[0003] Different Type-C cables integrate different functions. For example, a Type-C cable for a power bank only has a charging function. This makes it impossible for users to determine the functions of a Type-C cable from its appearance. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention provides a Type-C cable type detection system and method.

[0005] The technical solution adopted in this invention is:

[0006] Firstly, a Type-C cable type detection system is provided, including:

[0007] First Type-C socket, second Type-C socket, MCU microcontroller and LED light control module;

[0008] The pins of the first Type-C socket are grounded;

[0009] The second Type-C connector connects to the input pins of the MCU microcontroller;

[0010] The LED light control module connects to the output control pin of the MCU microcontroller;

[0011] When the Type-C cable to be tested is inserted into the first Type-C socket and the second Type-C socket, the MCU microcontroller receives the Type-C interface signal through the input pin; determines the pin level information of all pins based on the Type-C interface signal; determines whether the Type-C cable to be tested supports the cable function based on the pin level information; generates the corresponding LED control signal based on whether the cable function is supported; and sends the LED control signal to the LED control module.

[0012] The LED light control module controls the corresponding LED light to turn on or off based on the LED light control signal.

[0013] Furthermore, the input pins include:

[0014] Ground (GND) pin, power supply (VBUS) pin, charging (CC) pin, data transmission pin, and high-speed data transmission pin;

[0015] The data transmission pins include the D+ pin and the D- pin;

[0016] The high-speed data transmission pins include the TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin.

[0017] Furthermore, based on the pin level information, the cable functions supported by the Type-C cable under test can be determined, including:

[0018] Based on the pin level information, determine whether the pin level of GND pin, VBUS pin, CC pin, D+ pin, D- pin, TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin is high or low.

[0019] If at least one of the GND and VBUS pins is high, then the Type-C cable under test does not support all cable functions.

[0020] If the pin levels of GND and VBUS are both low, then the support for charging function is determined by the pin level of CC, the support for data transmission function is determined by the D+ and D- pins, and the support for video transmission function is determined by the TX1+, TX1-, RX1+, and RX1- pins.

[0021] If the CC pin is at a high level, it is determined that the Type-C cable under test does not support charging.

[0022] If the CC pin is at a low level, it is determined that the Type-C cable under test supports charging.

[0023] If at least one of the D+ and D- pins is high, it is determined that the Type-C cable under test does not support data transmission.

[0024] If both the D+ and D- pins are low, it is determined that the Type-C cable under test supports data transmission.

[0025] If at least one of the TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin is high, then the Type-C cable under test does not support video transmission.

[0026] If the TX1+, TX1-, RX1+, and RX1- pins are all at a low level, then the Type-C cable under test is confirmed to support video transmission.

[0027] Furthermore, the LED light control module includes:

[0028] First MOSFET, second MOSFET, and third MOSFET;

[0029] The gate of the first MOSFET is connected to the P1 pin of the MCU, the drain is connected to the LED1 lamp corresponding to the video transmission function, and the source is grounded.

[0030] The gate of the second MOSFET is connected to the P2 pin of the MCU, the drain is connected to the LED2 lamp with the corresponding data transmission function, and the source is grounded.

[0031] The gate of the third MOSFET is connected to the P3 pin of the MCU, the drain is connected to the LED3 corresponding to the charging function, and the source is grounded.

[0032] Furthermore, based on whether the cable function is supported, corresponding LED control signals are generated for the LED lights, including:

[0033] Based on the fact that the Type-C cable under test supports video transmission, the corresponding LED control signal for LED1 is generated as P1 pin is high level;

[0034] Since the Type-C cable under test does not support video transmission, the corresponding LED control signal for LED1 is generated as P1 pin is low.

[0035] Based on the fact that the Type-C cable under test supports data transmission, the corresponding LED control signal for LED2 is generated as P2 pin is high level;

[0036] Since the Type-C cable under test does not support data transmission, the corresponding LED control signal for LED2 is generated as P2 pin is low.

[0037] Based on the fact that the Type-C cable under test supports charging function, the corresponding LED control signal for LED3 is generated as P3 pin is high level;

[0038] Since the Type-C cable under test does not support charging, the corresponding LED control signal for LED3 is generated as P3 pin is low.

[0039] Furthermore, when the LED control signal is high on pin P1, the first MOSFET is turned on, causing LED1 to light up.

[0040] When the LED control signal is low on pin P1, the first MOSFET is not turned on, causing LED1 to turn off.

[0041] When the LED control signal is high on pin P2, the second MOSFET is turned on, causing LED2 to light up.

[0042] When the LED control signal is low on pin P2, the second MOSFET is not turned on, causing LED2 to turn off.

[0043] When the LED control signal is high on pin P3, the third MOSFET is turned on, causing LED3 to light up.

[0044] When the LED control signal is low on pin P3, the third MOSFET is not turned on, causing LED3 to turn off.

[0045] Furthermore, the MCU microcontroller detects in real time whether the Type-C cable to be tested is inserted, including:

[0046] When the MCU microcontroller determines that the Type-C cable is not inserted, it indicates that all pin levels are high based on the Type-C interface signals received from the input pins.

[0047] When the Type-C cable is not plugged in, the MCU outputs a low level to the P1, P2 and P3 pins.

[0048] Furthermore, the system also includes:

[0049] Main unit power supply module and switch control module;

[0050] The switch control module is connected between the host power supply module and the power interface of the MCU microcontroller;

[0051] When it is necessary to perform cable function testing on the Type-C cable to be tested, the control switch control module is turned on, so that the host power supply module supplies power to the MCU microcontroller, and the MCU microcontroller is initialized.

[0052] Furthermore, the system also includes:

[0053] Type-A socket, the pins of Type-A socket are grounded.

[0054] Secondly, a Type-C cable type detection method is provided, applied to a Type-C cable type detection system. The system includes a first Type-C socket, a second Type-C socket, an MCU microcontroller, and an LED control module. The pins of the first Type-C socket are grounded, the second Type-C socket is connected to the input pins of the MCU microcontroller, and the LED control module is connected to the output control pins of the MCU microcontroller. The Type-C cable type detection method includes:

[0055] When the Type-C cable to be tested is inserted into the first Type-C socket and the second Type-C socket, the MCU microcontroller receives the Type-C interface signal through the input pin.

[0056] The MCU determines the pin level information of all pins based on the Type-C interface signals; and determines whether the Type-C cable to be tested supports the cable function based on the pin level information.

[0057] The MCU microcontroller generates the corresponding LED control signal based on whether the cable function is supported, and sends the LED control signal to the LED control module.

[0058] The LED light control module controls the corresponding LED light to turn on or off based on the LED light control signal.

[0059] The beneficial effects achieved by this invention are as follows:

[0060] The Type-C cable type detection system includes a first Type-C socket, a second Type-C socket, an MCU microcontroller, and an LED control module. The pins of the first Type-C socket are grounded. The second Type-C socket is connected to the input pins of the MCU microcontroller. The LED control module is connected to the output control pins of the MCU microcontroller. When the Type-C cable to be tested is inserted into the first and second Type-C sockets, the MCU microcontroller receives the Type-C interface signal through its input pins. Based on the Type-C interface signal, it determines the pin level information of all pins. Based on the pin level information, it determines whether the Type-C cable supports a specific cable function. Based on whether the cable function is supported, it generates the corresponding LED control signal. The LED control signal is sent to the LED control module. The LED control module controls the corresponding LED to turn on or off based on the LED control signal. By detecting the pins of different functions of the Type-C cable through the MCU microcontroller and driving the corresponding LED to turn on or off based on the detected pin level information, users can intuitively identify the cable functions supported by the Type-C cable through the LED status. Attached Figure Description

[0061] Figure 1 This is a structural diagram of the Type-C cable type detection system of the present invention;

[0062] Figure 2 This is a simplified circuit diagram of the Type-C cable type detection system of the present invention;

[0063] Figure 3 This is a pin diagram of the first Type-C socket of the present invention;

[0064] Figure 4 This is a pin diagram of the second Type-C socket of the present invention;

[0065] Figure 5 This is a flowchart of the Type-C cable type detection method of the present invention. Detailed Implementation

[0066] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.

[0067] like Figure 1 As shown, this embodiment of the invention provides a Type-C cable type detection system, including:

[0068] First Type-C socket 101, second Type-C socket 102, MCU microcontroller 103 and LED control module 104;

[0069] The pins of the first Type-C socket 101 are grounded;

[0070] The second Type-C socket 102 is connected to the input pin of the MCU microcontroller 103;

[0071] LED light control module 104 is connected to the output control pin of MCU microcontroller 103;

[0072] When the Type-C cable to be tested is inserted into the first Type-C socket 101 and the second Type-C socket 102, the MCU microcontroller 103 receives the Type-C interface signal through the input pin; determines the pin level information of all pins based on the Type-C interface signal; determines whether the Type-C cable to be tested supports the cable function based on the pin level information; generates the corresponding LED control signal based on whether the cable function is supported; and sends the LED control signal to the LED control module 104.

[0073] The LED light control module 104 controls the corresponding LED light to turn on or off according to the LED light control signal.

[0074] like Figure 2 The diagram shown is a simplified circuit diagram of a Type-C cable type detection system. Figure 2In this circuit, C1 is a 0.1uF capacitor; R19, R21, and R23 are current-limiting resistors for LED1, LED2, and LED3, respectively, serving to protect the LEDs; Q1, Q2, and Q3 are MOSFETs in the LED control module; SW is a switch that controls the power on / off of the MCU; R20, R22, and R24 are resistors connected between the MOSFETs and the P1, P2, and P3 pins of the MCU, with a typical resistance value of 1K; VBAT is the power supply provided by the host power supply module.

[0075] like Figure 3 and Figure 4 The following are pin diagrams of the first Type-C socket and the second Type-C socket.

[0076] Combination Figures 2-4 As shown, the input pins include:

[0077] Ground (GND) pin, power supply (VBUS) pin, charging (CC) pin, data transmission pin, and high-speed data transmission pin;

[0078] The data transmission pins include the D+ pin and the D- pin;

[0079] The high-speed data transmission pins include TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin;

[0080] Based on the description of the above embodiments, in this embodiment, determining the cable functions supported by the Type-C cable to be tested based on the pin level information includes:

[0081] Based on the pin level information, determine whether the pin level of GND pin, VBUS pin, CC pin, D+ pin, D- pin, TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin is high or low.

[0082] If at least one of the GND and VBUS pins is high, then the Type-C cable under test does not support all cable functions.

[0083] If the pin levels of GND and VBUS are both low, then the support for charging function is determined by the pin level of CC, the support for data transmission function is determined by the D+ and D- pins, and the support for video transmission function is determined by the TX1+, TX1-, RX1+, and RX1- pins.

[0084] If the CC pin is at a high level, it is determined that the Type-C cable under test does not support charging.

[0085] If the CC pin is at a low level, it is determined that the Type-C cable under test supports charging.

[0086] If at least one of the D+ and D- pins is high, it is determined that the Type-C cable under test does not support data transmission.

[0087] If both the D+ and D- pins are low, it is determined that the Type-C cable under test supports data transmission.

[0088] If at least one of the TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin is high, then the Type-C cable under test does not support video transmission.

[0089] If the TX1+, TX1-, RX1+, and RX1- pins are all at a low level, then the Type-C cable under test is confirmed to support video transmission.

[0090] Combination Figure 2 As shown, the LED light control module includes:

[0091] First MOSFET Q1, second MOSFET Q2, and third MOSFET Q3;

[0092] The gate G of the first MOSFET Q1 is connected to the P1 pin of the MCU, the drain D is connected to the LED1 corresponding to the video transmission function, and the source S is grounded.

[0093] The gate G of the second MOSFET Q2 is connected to the P2 pin of the MCU, the drain D is connected to the LED2 lamp with the corresponding data transmission function, and the source S is grounded.

[0094] The gate (G) of the third MOSFET Q3 is connected to the P3 pin of the MCU, the drain (D) is connected to the LED3 corresponding to the charging function, and the source (S) is grounded.

[0095] Based on the description of the above embodiments, after determining whether the cable function can support it, the LED light is controlled to display. The specific process is as follows:

[0096] Based on the fact that the Type-C cable under test supports video transmission, the corresponding LED control signal for LED1 is generated as P1 pin is high level; this drives the first MOSFET Q1 to conduct, causing LED1 to light up.

[0097] Since the Type-C cable under test does not support video transmission, the corresponding LED control signal for LED1 is generated as follows: P1 pin is low; the first MOSFET Q1 is not turned on, thus turning off LED1.

[0098] Based on the fact that the Type-C cable under test supports data transmission, the corresponding LED control signal for LED2 is generated as P2 pin is high level; this drives the second MOSFET Q2 to conduct, causing LED2 to light up.

[0099] Since the Type-C cable under test does not support data transmission, the corresponding LED control signal for LED2 is generated as follows: P2 pin is low; the second MOSFET Q2 is not turned on, thus turning off LED2.

[0100] Based on the fact that the Type-C cable under test supports charging, the corresponding LED control signal for LED3 is generated as P3 pin is high level; this drives the third MOSFET Q3 to conduct, causing LED3 to light up.

[0101] Since the Type-C cable under test does not support charging, the corresponding LED control signal for LED3 is generated as follows: P3 pin is low; the third MOSFET Q3 is not turned on, causing LED3 to turn off.

[0102] Therefore, users can determine the cable functions supported by the Type-C cable by directly observing the lighting and turning off of LED1, LED2, and LED3.

[0103] Based on the above embodiments, before performing functional testing of the Type-C cable, it is also necessary to determine whether the Type-C cable is inserted. Preferably, in some embodiments of the present invention, the MCU microcontroller detects in real time whether the Type-C cable to be tested is inserted, including:

[0104] When the MCU microcontroller determines that the Type-C cable is not inserted, it indicates that all pin levels are high based on the Type-C interface signals received from the input pins.

[0105] When the Type-C cable is not plugged in, the MCU outputs a low level to the P1, P2 and P3 pins.

[0106] In summary Figure 1 and Figure 2 In the embodiments shown, and in some embodiments of the present invention, the system further includes:

[0107] The main unit power supply module VBAT and the switch control module SW;

[0108] The switch control module SW is connected between the host power supply module VBAT and the power interface of the MCU microcontroller;

[0109] When it is necessary to perform cable function testing on the Type-C cable to be tested, the control switch module SW is turned on, so that the host power supply module VBAT supplies power to the MCU microcontroller, and the MCU microcontroller is initialized.

[0110] It should be noted that since Type-C cables can use interfaces other than just Type-C, such as Type-A, to be compatible with different Type-C cables, the following are also included:

[0111] Type-A socket, the pins of Type-A socket are grounded.

[0112] The beneficial effects achieved by the embodiments of the present invention are as follows:

[0113] The Type-C cable type detection system includes a first Type-C socket 101, a second Type-C socket 102, an MCU microcontroller 103, and an LED control module 104. The pins of the first Type-C socket 103 are grounded. The second Type-C socket 102 is connected to the input pins of the MCU microcontroller 103. The LED control module 104 is connected to the output control pins of the MCU microcontroller 103. When the Type-C cable to be tested is inserted into the first Type-C socket 101 or the second Type-C socket 102, the MCU microcontroller 103 receives the Type-C interface signal through its input pins. It determines the pin level information of all pins based on the Type-C interface signal. Based on the pin level information, it determines whether the Type-C cable supports a specific cable function. Based on whether the cable function is supported, it generates an LED control signal for the corresponding LED. The LED control signal is sent to the LED control module 104. The LED control module 104 controls the corresponding LED to turn on or off according to the LED control signal. The different functions of the pins in the Type-C cable are detected by an MCU microcontroller. Based on the detected pin level information, the corresponding LED is driven to turn on or off, so that users can intuitively identify the cable functions supported by the Type-C cable through the LED status.

[0114] Based on the Type-C cable type detection system described in the above embodiments, the following embodiments illustrate the Type-C cable type detection method applied to the Type-C cable type detection system.

[0115] like Figure 5 As shown, this embodiment of the invention provides a method for detecting the type of a Type-C cable, including:

[0116] 501. When the Type-C cable to be tested is inserted into the first Type-C socket and the second Type-C socket, the MCU microcontroller receives the Type-C interface signal through the input pin.

[0117] 502. The MCU microcontroller determines the pin level information of all pins based on the Type-C interface signals; and determines whether the Type-C cable to be tested supports the cable function based on the pin level information.

[0118] The MCU determines the pin level information of all pins based on the Type-C interface signal, and determines whether the pin level of GND pin, VBUS pin, CC pin, D+ pin, D- pin, TX1+ pin, TX1- pin, RX1+ pin and RX1- pin is high or low based on the pin level information;

[0119] If at least one of the GND and VBUS pins is high, then the Type-C cable under test does not support all cable functions.

[0120] If the pin levels of GND and VBUS are both low, then the support for charging function is determined by the pin level of CC, the support for data transmission function is determined by the D+ and D- pins, and the support for video transmission function is determined by the TX1+, TX1-, RX1+, and RX1- pins.

[0121] If the CC pin is at a high level, it is determined that the Type-C cable under test does not support charging.

[0122] If the CC pin is at a low level, it is determined that the Type-C cable under test supports charging.

[0123] If at least one of the D+ and D- pins is high, it is determined that the Type-C cable under test does not support data transmission.

[0124] If both the D+ and D- pins are low, it is determined that the Type-C cable under test supports data transmission.

[0125] If at least one of the TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin is high, then the Type-C cable under test does not support video transmission.

[0126] If the TX1+, TX1-, RX1+, and RX1- pins are all at a low level, then the Type-C cable under test is confirmed to support video transmission.

[0127] 503, the MCU microcontroller generates the corresponding LED control signal for the LED light based on whether the cable function is supported, and sends the LED control signal to the LED light control module;

[0128] Based on the fact that the Type-C cable under test supports video transmission, the corresponding LED control signal for LED1 is generated as P1 pin is high level; this drives the first MOSFET Q1 to conduct, causing LED1 to light up.

[0129] Since the Type-C cable under test does not support video transmission, the corresponding LED control signal for LED1 is generated as follows: P1 pin is low; the first MOSFET Q1 is not turned on, thus turning off LED1.

[0130] Based on the fact that the Type-C cable under test supports data transmission, the corresponding LED control signal for LED2 is generated as P2 pin is high level; this drives the second MOSFET Q2 to conduct, causing LED2 to light up.

[0131] Since the Type-C cable under test does not support data transmission, the corresponding LED control signal for LED2 is generated as follows: P2 pin is low; the second MOSFET Q2 is not turned on, thus turning off LED2.

[0132] Based on the fact that the Type-C cable under test supports charging, the corresponding LED control signal for LED3 is generated as P3 pin is high level; this drives the third MOSFET Q3 to conduct, causing LED3 to light up.

[0133] Since the Type-C cable under test does not support charging, the corresponding LED control signal for LED3 is generated as follows: P3 pin is low; the third MOSFET Q3 is not turned on, causing LED3 to turn off.

[0134] 504, the LED light control module controls the corresponding LED light to turn on or off based on the LED light control signal.

[0135] The beneficial effects achieved by the embodiments of the present invention are as follows:

[0136] The different functions of the pins in the Type-C cable are detected by an MCU microcontroller. Based on the detected pin level information, the corresponding LED is driven to turn on or off, so that users can intuitively identify the cable functions supported by the Type-C cable through the LED status.

[0137] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0139] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0140] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0141] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of the claims of the present invention pending approval.

Claims

1. A Type-C cable type detection system, characterized in that, include: First Type-C socket, second Type-C socket, MCU microcontroller and LED light control module; The pins of the first Type-C socket are grounded; The second Type-C socket is connected to the input pin of the MCU microcontroller; The LED light control module is connected to the output control pin of the MCU microcontroller; When the Type-C cable to be tested is inserted into the first Type-C socket and the second Type-C socket, the MCU microcontroller receives the Type-C interface signal through the input pin; determines the pin level information of all pins based on the Type-C interface signal; determines whether the Type-C cable to be tested supports a certain cable function based on the pin level information; generates the corresponding LED control signal based on whether the cable function is supported; and sends the LED control signal to the LED control module. The LED light control module controls the corresponding LED light to turn on or off based on the LED light control signal.

2. The Type-C cable type detection system according to claim 1, characterized in that, The input pin includes: Ground (GND) pin, power supply (VBUS) pin, charging (CC) pin, data transmission pin, and high-speed data transmission pin; The data transmission pins include D+ pins and D- pins; The high-speed data transmission pins include TX1+ pin, TX1- pin, RX1+ pin, and RX1- pin.

3. The Type-C cable type detection system according to claim 2, characterized in that, The step of determining the cable functions supported by the Type-C cable under test based on the pin level information includes: Based on the pin level information, determine whether the pin level of the GND pin, the VBUS pin, the CC pin, the D+ pin, the D- pin, the TX1+ pin, the TX1- pin, the RX1+ pin, and the RX1- pin is high or low. If at least one of the GND pin and the VBUS pin is at a high level, then it is determined that the Type-C cable under test does not support all cable functions. If the pin levels of the GND pin and the VBUS pin are both low, then the charging function is determined based on the pin level of the CC pin, the data transmission function is determined based on the D+ pin and the D- pin, and the video transmission function is determined based on the TX1+ pin, the TX1- pin, the RX1+ pin, and the RX1- pin. If the pin level of the CC pin is high, it is determined that the Type-C cable under test does not support the charging function. If the pin level of the CC pin is low, it is determined that the Type-C cable to be tested supports the charging function. If at least one of the D+ pin and the D- pin is at a high level, it is determined that the Type-C cable under test does not support data transmission function. If both the D+ pin and the D- pin are at a low level, it is determined that the Type-C cable under test supports data transmission function; If at least one of the TX1+ pin, the TX1- pin, the RX1+ pin, and the RX1- pin is at a high level, then it is determined that the Type-C cable under test does not support video transmission function. If the TX1+ pin, the TX1- pin, the RX1+ pin, and the RX1- pin are all at a low level, then it is determined that the Type-C cable under test supports video transmission function.

4. The Type-C cable type detection system according to claim 3, characterized in that, The LED light control module includes: First MOSFET, second MOSFET, and third MOSFET; The gate of the first MOS transistor is connected to the P1 pin of the MCU microcontroller, the drain is connected to the LED1 lamp corresponding to the video transmission function, and the source is grounded. The gate of the second MOS transistor is connected to the P2 pin of the MCU microcontroller, the drain is connected to the LED2 lamp corresponding to the data transmission function, and the source is grounded; The gate of the third MOS transistor is connected to the P3 pin of the MCU, the drain is connected to the LED3 lamp corresponding to the charging function, and the source is grounded.

5. The Type-C cable type detection system according to claim 4, characterized in that, The step of generating the corresponding LED control signal for the LED light based on whether the cable function is supported includes: Based on the fact that the Type-C cable under test supports the video transmission function, the corresponding LED control signal for LED1 is generated as the P1 pin is high. Since the Type-C cable under test does not support the video transmission function, the corresponding LED control signal for LED1 is generated as the P1 pin is low. Based on the fact that the Type-C cable to be tested supports the data transmission function, the corresponding LED control signal for LED2 is generated as the P2 pin is high. Since the Type-C cable to be tested does not support the data transmission function, the corresponding LED control signal for LED2 is generated as the P2 pin is low. Based on the fact that the Type-C cable to be tested supports the charging function, the corresponding LED control signal for LED3 is generated as the P3 pin is at a high level; Since the Type-C cable to be tested does not support the charging function, the corresponding LED control signal for LED3 is generated as the P3 pin is at a low level.

6. The Type-C cable type detection system according to claim 5, characterized in that, When the LED control signal is a high level on the P1 pin, the first MOS transistor is driven to turn on, causing the LED1 to light up. When the LED control signal is low on the P1 pin, the first MOS transistor is not turned on, thus turning off the LED1 light; When the LED control signal is high at pin P2, the second MOS transistor is turned on, causing the LED2 to light up. When the LED control signal is low on the P2 pin, the second MOSFET is not turned on, thus turning off the LED2 light; When the LED control signal is high at pin P3, the third MOS transistor is turned on, causing the LED3 to light up. When the LED control signal is low on the P3 pin, the third MOSFET is not turned on, causing the LED3 to turn off.

7. The Type-C cable type detection system according to claim 6, characterized in that, The MCU microcontroller detects in real time whether the Type-C cable to be detected is inserted, including: When the MCU microcontroller determines that all pin levels are high based on the Type-C interface signal received from the input pin, it determines that the Type-C cable is not inserted. The MCU microcontroller outputs a low level to the P1 pin, the P2 pin, and the P3 pin when the Type-C cable is not inserted.

8. The Type-C cable type detection system according to any one of claims 1-7, characterized in that, The system also includes: Main unit power supply module and switch control module; The switch control module is connected between the host power supply module and the power interface of the MCU microcontroller; When it is necessary to perform cable function testing on the Type-C cable to be tested, the switch control module is turned on, so that the host power supply module supplies power to the MCU microcontroller, and the MCU microcontroller is initialized.

9. The Type-C cable type detection system according to claim 8, characterized in that, The system also includes: Type-A socket, wherein the pins of the Type-A socket are grounded.

10. A method for detecting the type of a Type-C cable, characterized in that, An application in a Type-C cable type detection system includes a first Type-C socket, a second Type-C socket, an MCU microcontroller, and an LED control module. The first Type-C socket has a pin grounded, the second Type-C socket is connected to an input pin of the MCU microcontroller, and the LED control module is connected to an output control pin of the MCU microcontroller. The Type-C cable type detection method includes: When the Type-C cable to be tested is inserted into the first Type-C socket and the second Type-C socket, the MCU microcontroller receives the Type-C interface signal through the input pin; The MCU microcontroller determines the pin level information of all pins based on the Type-C interface signal; and determines whether the Type-C cable to be tested supports the cable function based on the pin level information. The MCU microcontroller generates an LED control signal for the corresponding LED based on whether the cable function is supported, and sends the LED control signal to the LED control module. The LED light control module controls the corresponding LED light to turn on or off based on the LED light control signal.

Citation Information

Patent Citations

  • Type-C detection method

    CN106681231A

  • Connector component testing circuit and testing method thereof

    CN110261717A

  • Identification system of Type-C interface

    CN110990320A

  • Multi-core cable connectivity performance detection device and detection method thereof

    CN114076870A

  • Signal line connectivity intelligent detection device and detection method

    CN114895214A