Test device and test method

By designing a combination of power supply port module, charging port module, control module and switch module, the problem of insufficient precision of the robotic arm was solved, and the charging compatibility test was automated and efficient.

CN121995126APending Publication Date: 2026-05-08HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-11-01
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing charging compatibility testing solutions suffer from unsuccessful testing due to insufficient precision in the movements of robotic arms or other mechanical equipment.

Method used

A testing device was designed, including a power supply port module, a charging port module, a control module, and a switch module. The control module controls the closing and opening of the switch in the switch module to realize the connection and disconnection of the automated test path between the power supply equipment and the charging equipment.

Benefits of technology

It simplifies and automates charging compatibility testing, improves testing efficiency and effectiveness, and ensures the smooth progress of the testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121995126A_ABST
    Figure CN121995126A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of charging, and discloses a testing device and a testing method. The testing device can comprise a power supply port module, a charging port module, a control module and a switch module. Wherein the switch module is respectively connected with the power supply port module, the charging port module and the control module. Moreover, the power supply port module can comprise a port used for connecting a cable and power supply equipment, the charging port module can comprise a port used for connecting a cable and charging equipment, and the switch module can comprise a switch unit. When the charging compatibility test is carried out, the control module controls the switch units in the switch module to be switched off or switched on, so that the test access can be switched off or switched on, and the charging compatibility test is completed. The whole charging compatibility test process is simpler and more automatic, and the charging compatibility test effect is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of charging technology, and more particularly to a testing device and a testing method. Background Technology

[0002] Electronic devices with rechargeable batteries, also known as charging devices, can be charged by connecting to an external power source. Different models of charging devices and power sources often produce different charging results. Charging compatibility testing is frequently used to verify whether the charging performance of the charging device and power source matches expectations, such as whether they are matched to the maximum charging power.

[0003] Existing charging compatibility testing methods are often unsatisfactory. For example, mechanical charging compatibility testing methods often require the use of robotic arms or other mechanical equipment to physically plug and unplug the charging interfaces and cables of both the charging device and the power supply device. However, the precision of existing robotic arms or other mechanical equipment is insufficient to perform each precise physical plug-and-unplug operation, affecting the smooth progress of charging compatibility testing. Summary of the Invention

[0004] This invention provides a testing apparatus and a testing method.

[0005] The first aspect of this application provides a testing apparatus for use in an electronic device, comprising: a power supply port module, a charging port module, a control module, and a switch module; wherein the control module is connected to the switch module and is used to control the closing and opening of each switch in the switch module; the power supply port module includes a first power supply port, the charging port module includes a first charging port, and the switch module includes a first switch unit, wherein the first power supply port, the first switch unit, and the first charging port are connected sequentially, and the first power supply port is used to connect a first cable, wherein the first cable is used to connect the first power supply port and the power supply port of a first power supply device; the first charging port is used to connect a second cable, wherein the second cable is used to connect the first charging port and the charging port of the first charging device.

[0006] It is understood that the first power supply device can be electrically connected to the first charging device through the first cable, the test device, and the second cable. Furthermore, the control module on the test device can control the switch module to repeatedly turn the test path on and off, making the charging compatibility test process simpler and more automated, allowing the charging compatibility test to be implemented smoothly and achieving good results.

[0007] It is understood that the first power supply port can be any port in the power supply port module used to connect to the power supply device, the first charging port can be any port in the charging port module used to connect to the charging device, and the first switching unit can be any switching unit in the control module that can turn the test path on and off. In some possible implementations, the power supply port module may include multiple ports for connecting to the power supply device, the charging port module may include multiple ports for connecting to the charging device, and the control module may include multiple switching units for turning the test path on and off. In this embodiment, no specific limitation is made. Furthermore, the first power supply device can be any power supply device to be tested in the charging compatibility test, the first charging device can be any charging device to be tested in the charging compatibility test, the first cable can be any cable to be tested in the charging compatibility test, and the second cable can be any cable to be tested in the charging compatibility test. In the charging compatibility test, multiple identical or different power supply devices, charging devices, and cables to be tested can be used for testing. In this embodiment, no specific limitation is made on the number and type of power supply devices, charging devices, and cables to be tested.

[0008] In one possible implementation of the first aspect above, the first switching unit includes a first switch set, and when each switch in the first switch set is in a closed state, a path is formed between the first power supply port, the first switch set, and the first charging port; and when each switch in the first switch set is in an open state, an open circuit is formed between the first power supply port, the first switch set, and the first charging port.

[0009] It is understood that the first switch set can be any switch set in the first switch unit that includes at least one switch. The first switch unit may include at least one switch set. In this embodiment of the application, the number and type of switch sets in the first switch unit are not specifically limited.

[0010] During charging compatibility testing, the control module on the testing device can control the closing or opening of the first switch set to repeatedly connect and disconnect the test path between the first power supply port, the first switch set, and the first charging port, making the charging compatibility testing process simpler and more automated, allowing the charging compatibility test to be implemented smoothly and achieving good results.

[0011] In one possible implementation of the first aspect above, the first end of the first power supply port is connected to the second interface of the first cable, and the second end of the first power supply port is connected to the first end of the first switch set; the first end of the first charging port is connected to the second end of the first switch set, and the second end of the first charging port is connected to the first interface of the second cable; the third end of the first switch set is connected to the control module.

[0012] In one possible implementation of the first aspect above, the first cable and / or the second cable are cables to be tested, and include at least one of the following: the first cable and the second cable are cables to be tested; the first cable is a straight-through cable and the second cable is a cable to be tested; the first cable is a cable to be tested and the second cable is a straight-through cable.

[0013] It is understood that in some possible implementations, both the first cable and the second cable can be the cable under test. During the charging compatibility test, the type and current carrying capacity of the cable under test can be obtained by identification, enabling the charging compatibility test to be carried out smoothly. In this embodiment, the source of the cable under test is not specifically limited.

[0014] In one possible implementation of the first aspect described above, a first cable and a second cable are further included, wherein a first interface of the first cable is used to connect to the power supply port of the power supply device; and a second interface of the second cable is used to connect to the charging port of the charging device.

[0015] It is understood that in the embodiments of this application, the testing device may include a first cable for connecting the power supply device and / or a second cable for connecting the charging device. In some possible implementations, the testing device may not include the first cable for connecting the power supply device and / or the second cable for connecting the charging device. This is not specifically limited in the embodiments of this application.

[0016] It is understandable that the above-mentioned testing device can be set with different cables to be tested and can be directly connected to the power supply equipment and the charging equipment to be tested to perform charging compatibility testing, making the charging compatibility testing process simpler and more automated, and the testing efficiency higher.

[0017] In one possible implementation of the first aspect above, the first cable and the second cable are not cables to be tested, and the first cable and the second cable are straight-through cables, and each switch set included in each switch unit in the switch module includes a VBUS switch.

[0018] In one possible implementation of the first aspect described above, a third cable is further included, which is the cable to be tested. The first switch unit includes a first switch set, a second switch set, and a third switch set. The switch module also includes a second switch unit, which includes a fourth switch set and a fifth switch set. The first terminals of each switch in the first switch set are respectively connected to the second terminals of each switch in the second switch set and the first terminals of each switch in the fourth switch set. The second terminals of each switch in the first switch set are respectively connected to the first terminals of each switch in the third switch set and the second terminals of each switch in the fifth switch set. The third terminals of each switch in the first switch set are connected to the control module. The first terminals of each switch in the second switch set are connected to... The first power supply port is connected to the first power supply port. The second end of each switch in the second switch group is also connected to the first end of each switch in the fourth switch group. The third end of each switch in the second switch group is connected to the control module. The first end of each switch in the third switch group is also connected to the second end of each switch in the fifth switch group. The second end of each switch in the third switch group is connected to the first charging port. The third end of each switch in the third switch group is connected to the control module. The second end of each switch in the fourth switch group is connected to the first interface of the third cable. The third end of each switch in the fourth switch group is connected to the control module. The first end of each switch in the fifth switch group is connected to the second interface of the third cable. The third end of each switch in the fifth switch group is connected to the control module.

[0019] It is understood that in some embodiments, the testing apparatus may include more cables of different or the same type to be tested, such as a third cable. In the embodiments of this application, no specific limitations are made on the type, quantity, current-carrying capacity, etc., of the third cable.

[0020] In one possible implementation of the first aspect described above, when the VBUS switches in the first switch set, the switches in the second switch set, the switches in the third switch set, the switches in the fourth switch set, and the switches in the fifth switch set are all in a closed state, a path is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port, and a path is formed between the VBUS in the first power supply port, the VBUS in the second switch set, the VBUS in the first switch set, the VBUS in the third switch set, and the VBUS in the first charging port; corresponding to at least one of the switches in the first switch set, the switches in the second switch set, and the switches in the third switch set being in a closed state, an open circuit is formed between the first power supply port, the second switch set, the first switch set, the third switch set, and the first charging port; corresponding to at least one of the switches in the second switch set, the switches in the fourth switch set, the switches in the fifth switch set, and the switches in the third switch set being in a closed state, an open circuit is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port.

[0021] The aforementioned testing device can control the on / off state of each switch set to enable at least one test path to be formed between the power supply equipment and the charging equipment. Furthermore, in some possible implementations, the impedance of the test path between the first power supply port, the second switch set, the first switch set, the third switch set, and the first charging port in the testing device can be reduced by shortening the wiring distance of the testing device, widening the wiring in the testing device, or setting up multi-layer wiring in the testing device. This further reduces the impact of the third cable on the impedance of the entire test path, making the impedance of the entire test path closer to the impedance of the path in the user's actual charging scenario, thereby improving the effectiveness of charging compatibility testing.

[0022] In one possible implementation of the first aspect described above, a second power supply port and a second charging port are further included. The first switch unit also includes a sixth switch set and a seventh switch set. The second power supply port is used to connect a fourth cable, wherein the fourth cable is used to connect the second power supply port and the power supply port of the second power supply device. The second charging port is used to connect a fifth cable, wherein the fifth cable is used to connect the second charging port and the charging port of the second charging device. The first end of each switch in the sixth switch set is connected to the second power supply port, and the second end of each switch in the sixth switch set is respectively connected to the first end of each switch in the first switch set, the second end of each switch in the second switch set, and the first end of each switch in the fourth switch set. The third end of each switch in the sixth switch set is connected to the control module. The second end of each switch in the seventh switch set is connected to the second charging port, and the first end of each switch in the seventh switch set is respectively connected to the second end of each switch in the first switch set, the first end of each switch in the third switch set, and the second end of each switch in the fifth switch set. The third end of each switch in the seventh switch set is connected to the control module.

[0023] It is understood that the second power supply port can be any port in the power supply port module used to connect to the power supply device, and the second charging port can be any port in the charging port module used to connect to the charging device. The second power supply device can be any power supply device to be tested in the charging compatibility test, the second charging device can be any charging device to be tested in the charging compatibility test, the fourth cable can be any cable connected to the power supply device, and the fifth cable can be any cable connected to the charging device. In some possible implementations, the power supply port module may include multiple ports for connecting to the power supply device, the charging port module may include multiple ports for connecting to the charging device, and the first switch unit may include multiple switch sets. In this embodiment, no specific limitations are made.

[0024] In one possible implementation of the first aspect above, when the VBUS switches in the first switch set, the switches in the sixth switch set, the switches in the seventh switch set, the switches in the fourth switch set, and the switches in the fifth switch set are all in a closed state, a path is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port, and a path is formed between the VBUS in the second power supply port, the VBUS in the sixth switch set, the VBUS in the first switch set, the VBUS in the seventh switch set, and the VBUS in the second charging port; when at least one of the switches in the first switch set, the switches in the sixth switch set, and the switches in the seventh switch set is in a closed state, an open circuit is formed between the second power supply port, the sixth switch set, the first switch set, the seventh switch set, and the second charging port; when at least one of the switches in the sixth switch set, the switches in the fourth switch set, the switches in the fifth switch set, and the switches in the seventh switch set is in a closed state, an open circuit is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port.

[0025] The aforementioned testing device can perform charging compatibility tests on different power supply equipment, charging equipment, and cables by controlling the closing or opening of each switch set, making the charging compatibility testing process simpler and more automated, and increasing testing efficiency.

[0026] In one possible implementation of the first aspect described above, a sixth cable is also included, which is the cable to be tested. The second switch unit further includes an eighth switch set and a ninth switch set. The first end of each switch in the eighth switch set is connected to the first end of each switch in the fourth switch set, the second end of each switch in the eighth switch set is connected to the first interface of the sixth cable, and the third end of each switch in the eighth switch set is connected to the control module. The first end of each switch in the ninth switch set is connected to the second interface of the sixth cable, the second end of each switch in the ninth switch set is connected to the second end of each switch in the fifth switch set, and the third end of each switch in the ninth switch set is connected to the control module.

[0027] It is understood that in some embodiments, the testing apparatus may include more cables of different or the same type to be tested, as well as a set of switches for connecting the cables to be tested, such as a sixth cable. In the embodiments of this application, there are no specific limitations on the type, quantity, current carrying capacity, etc. of the sixth cable, or on the set of switches for connecting the cables to be tested.

[0028] In one possible implementation of the first aspect described above, the VBUS switches in the first switch set, the switches in the second switch set, the switches in the third switch set, the switches in the eighth switch set, and the switches in the ninth switch set are all in a closed state, forming a path between the first power supply port, the second switch set, the eighth switch set, the sixth cable, the ninth switch set, the third switch set, and the first charging port, and forming a path between the VBUS in the first power supply port, the VBUS in the second switch set, the VBUS in the first switch set, the VBUS in the third switch set, and the VBUS in the first charging port; at least one of the switches in the second switch set, the switches in the eighth switch set, the switches in the ninth switch set, and the switches in the third switch set is in an open state, forming an open circuit between the first power supply port, the second switch set, the eighth switch set, the sixth cable, the ninth switch set, the third switch set, and the first charging port.

[0029] The aforementioned testing device can also perform charging compatibility tests on different power supply equipment, charging equipment, and cables by controlling the closing or opening of each switch set, making the charging compatibility testing process simpler and more automated, and increasing testing efficiency.

[0030] In one possible implementation of the first aspect above, the types of the first interface of the third cable, the second interface of the third cable, the first interface of the sixth cable, and the second interface of the sixth cable include: a Type-A interface or a Type-C interface, and when the type of the first interface of the third cable is the same as the type of the first interface of the sixth cable, the type of the second interface of the third cable is different from the type of the second interface of the sixth cable, and when the type of the second interface of the third cable is the same as the type of the second interface of the sixth cable, the type of the first interface of the third cable is different from the type of the first interface of the sixth cable.

[0031] It is understood that the testing device may include a third cable, a sixth cable, etc., or it may only include ports for connecting the third cable, the sixth cable, etc., or it may include both the third cable, the sixth cable, etc., and ports for connecting the third cable, the sixth cable, etc. In this embodiment, no specific limitation is made. It is understood that the third cable, the sixth cable, and the cable to be tested may be the same or different. For example, the type, interface type, current carrying capacity, etc., of the cable to be tested may be the same or different. In this embodiment, no specific limitation is made.

[0032] In one possible implementation of the first aspect described above, the first cable includes a first interface, a second interface, and a third interface; the first interface and the second interface of the first cable form a first branch cable of the first cable, and the first interface and the third interface of the first cable form a second branch cable of the first cable; the second cable includes a fourth interface, a fifth interface, and a sixth interface; the fourth interface and the fifth interface of the second cable form a first branch cable of the second cable, and the fourth interface and the sixth interface of the second cable form a second branch cable of the second cable; and the first cable and the second cable are straight-through cables; wherein the first interface of the first cable is connected to the power supply port of the first power supply device, the second interface of the first cable is connected to the first power supply port, and the third interface of the first cable is connected to the second power supply port; the fourth interface of the second cable is connected to the charging port of the first charging device, the fifth interface of the second cable is connected to the first charging port, and the sixth interface of the second cable is connected to the second charging port.

[0033] It is understood that in some possible implementations, the cable used to connect the test device and the power supply equipment, such as the first cable, may include more than one branch, and the cable used to connect the test device and the charging device, such as the second cable, may also include more than one branch. In this embodiment, the number of branches in the cable used to connect the test device and the power supply equipment, and the number of branches in the cable used to connect the test device and the charging device, are not specifically limited. In some possible implementations, during charging compatibility testing, by using cables with more branches, the impedance of the entire test path can be further reduced, making the impedance of the entire test path closer to the path impedance in the user's actual charging scenario, thereby improving the effectiveness of the charging compatibility test.

[0034] In one possible implementation of the first aspect described above, the second interface of the first cable includes VBUS, D+, D- pins, and GND; the third interface of the first cable includes VBUS and GND pins; the fifth interface of the second cable includes VBUS, D+, D-, CC1, CC2, and GND pins; and the sixth interface of the second cable includes VBUS and GND pins. Corresponding to the second switch set having all switches in the closed state and the sixth switch set having VBUS and GND switches in the closed state, the first power supply device and the testing device are connected; corresponding to the third switch set having all switches in the closed state and the seventh switch set having VBUS and GND switches in the closed state, the first charging device and the testing device are connected; corresponding to the second switch set and the sixth switch set having all switches in the open state, the first power supply device and the testing device are disconnected; corresponding to the third switch set and the seventh switch set having all switches in the open state, the first charging device and the testing device are disconnected.

[0035] It is understood that in some other embodiments, the pin types of the interfaces of the first cable and the interfaces of the second cable may be other. In the embodiments of this application, the pin types of the interfaces of the first cable and the interfaces of the second cable are not specifically limited.

[0036] It is understandable that by controlling the conduction or disconnection of different wires in different branches of the first and second cables, the charging compatibility test can be carried out smoothly, making the charging compatibility test process simpler and more automated.

[0037] In one possible implementation of the first aspect described above, the testing device further includes a first sampling interface, a second sampling interface, a third sampling interface, a fourth sampling interface, a fifth sampling interface, a sixth sampling interface, a seventh sampling interface, an eighth sampling interface, a ninth sampling interface, and a resistor unit. The first power supply port, the second power supply port, the first charging port, and the second charging port each include a VBUS pin and a GND pin. The first end of the first sampling interface is connected to the VBUS pin of the first power supply port and the first end of the VBUS switch in the second switch group, respectively. The first end of the second sampling interface is connected to the first end of the GND switch in the second switch group and the GND pin of the first power supply port, respectively. The second ends of the first and second sampling interfaces are respectively used to connect to a voltage detection device. The first end of the third sampling interface is connected to the first end of the VBUS switch in the sixth switch group and the VBUS pin of the second power supply port, respectively. The first end of the fourth sampling interface is connected to the GND pin of the second power supply port and the first end of the GND switch in the sixth switch group, respectively. The first end of the third sampling interface... The second end of the second sampling interface and the second end of the fourth sampling interface are respectively used to connect to the voltage detection device; the first end of the fifth sampling interface is respectively connected to the first end of the first resistor in the resistor unit and the second end of the first VBUS switch in the switch unit. The second end of the first resistor in the resistor unit is respectively connected to the first end of the seventh sampling interface, the first end of the third VBUS switch, and the first end of the seventh VBUS switch. The first end of the sixth sampling interface is connected to the first end of the third GND switch. The second ends of the fifth sampling interface and the sixth sampling interface are respectively used to connect to the voltage detection device. The third end of the sixth sampling interface and the second end of the seventh sampling interface are respectively used to connect to the voltage detection device. The first end of the eighth sampling interface is respectively connected to the second end of the seventh VBUS switch and the VBUS pin of the second charging port. The first end of the ninth sampling interface is respectively connected to the second end of the seventh GND switch and the GND pin of the second charging port. The second ends of the eighth sampling interface and the second ends of the ninth sampling interface are respectively used to connect to the voltage detection device.

[0038] It can be understood that the second end of the first sampling interface and the second end of the second sampling interface are also referred to as the two endpoints of sampling point 11, the second end of the third sampling interface and the second end of the fourth sampling interface are also referred to as the two endpoints of sampling point 12, the second end of the fifth sampling interface and the second end of the sixth sampling interface are also referred to as the two endpoints of sampling point 13, the second end of the eighth sampling interface and the second end of the ninth sampling interface are also referred to as the two endpoints of sampling point 14, and the second end of the seventh sampling interface and the third end of the sixth sampling interface are also referred to as the two endpoints of sampling point 15.

[0039] The aforementioned testing device can sample the voltage and current of the first power supply port, the second power supply port, the first charging port, and the second charging port based on each sampling port, making the charging compatibility testing process smoother.

[0040] A second aspect of this application provides a testing method applied to a testing apparatus. The testing apparatus includes a power supply port module, a charging port module, a control module, and a switch module. The control module is connected to the switch module. The power supply port module includes a first power supply port, the charging port module includes a first charging port, and the switch module includes a first switch unit. The first power supply port, the first switch unit, and the first charging port are connected sequentially. The method includes: the control module receiving a first test signal, wherein the first test signal is used to indicate that a path is connected between a first power supply device connected to the first power supply port and a first charging device connected to the first charging port; in response to the first test signal, the control module controls the on / off state of each switch in the first switch unit to make the path between the first power supply device and the first charging device, including the first power supply port, the first switch unit, and the first charging port, connected; the control module receiving a second test signal, wherein the second test signal is used to indicate that the path between the first power supply device connected to the first power supply port and the first charging device connected to the first charging port is disconnected; in response to the second test signal, the control module controls the on / off state of each switch in the first switch unit to make the path between the first power supply device and the first charging device, including the first power supply port, the first switch unit, and the first charging port, disconnected.

[0041] It is understood that the first test signal can be any signal used to indicate the connection between the first power supply device connected to the first power supply port and the first charging device connected to the first charging port. The second test signal can be any signal used to indicate the disconnection between the first power supply device connected to the first power supply port and the first charging device connected to the first charging port. That is, the first test signal and the second test signal can be signals for one or more switching units, signals for one or more switch sets, or signals for one or more switches in a switch set. In the embodiments of this application, the specific content of the first test signal and the second test signal is not specifically limited.

[0042] It is understood that in the above test method, the first power supply device can be electrically connected to the first charging device through the first cable, the test device and the second cable. Furthermore, the test path can be turned on and off multiple times by controlling the switch module, making the charging compatibility test process simpler and more automated, the charging compatibility test can be implemented smoothly and the charging compatibility test results are good.

[0043] It is understood that the first power supply port can be any port in the power supply port module used to connect to the power supply device, the first charging port can be any port in the charging port module used to connect to the charging device, the first switch unit can be any switch unit in the control module that can turn the test path on and off, the first power supply device can be any power supply device to be tested in the charging compatibility test, the first charging device can be any charging device to be tested in the charging compatibility test, the first cable can be any cable to be tested in the charging compatibility test, and the second cable can be any cable to be tested in the charging compatibility test. Further details will not be provided here.

[0044] In one possible implementation of the second aspect above, the first switching unit includes a first switch set, and the control module controls the on / off state of each switch in the first switching unit to enable the connection between the first power supply device and the first charging device, including the first power supply port, the first switching unit, and the first charging port, including: controlling each switch in the first switch set to be in a closed state to form a connection between the first power supply port, the first switch set, and the first charging port; and controlling the on / off state of each switch in the first switching unit to disable the connection between the first power supply device and the first charging device, including the first power supply port, the first switch set, and the first charging port, including: controlling each switch in the first switch set to be in an open state to form an open circuit between the first power supply port, the first switch set, and the first charging port.

[0045] It is understandable that during charging compatibility testing, the control module on the testing device can control the closing or opening of the first switch set to repeatedly connect and disconnect the test path between the first power supply port, the first switch set, and the first charging port, making the charging compatibility testing process simpler and more automated, allowing the charging compatibility test to be implemented smoothly and achieving good results.

[0046] In one possible implementation of the second aspect above, a first power supply port is used to connect a first cable, wherein the first cable is used to connect the first power supply port and the power supply port of a first power supply device; a first charging port is used to connect a second cable, wherein the second cable is used to connect the first charging port and the charging port of a first charging device.

[0047] In one possible implementation of the second aspect above, the first cable and the second cable are not cables to be tested, and the first cable and the second cable are straight-through cables, and each switch set included in each switch unit in the switch module includes a VBUS switch.

[0048] It is understood that in some possible implementations, the first cable and the second cable may be either the cable to be tested or not. In this embodiment, no specific limitation is made, and it will not be elaborated here.

[0049] In one possible implementation of the second aspect described above, the testing device further includes a third cable, which is the cable to be tested. The first switch unit includes a first switch set, a second switch set, and a third switch set. The switch module further includes a second switch unit, which includes a fourth switch set and a fifth switch set. The first terminals of each switch in the first switch set are respectively connected to the second terminals of each switch in the second switch set and the first terminals of each switch in the fourth switch set. The second terminals of each switch in the first switch set are respectively connected to the first terminals of each switch in the third switch set and the second terminals of each switch in the fifth switch set. The third terminals of each switch in the first switch set are connected to the control module. The first terminals of each switch in the second switch set... The first power supply port is connected; the second end of each switch in the second switch group is also connected to the first end of each switch in the fourth switch group; the third end of each switch in the second switch group is connected to the control module; the first end of each switch in the third switch group is also connected to the second end of each switch in the fifth switch group; the second end of each switch in the third switch group is connected to the first charging port; the third end of each switch in the third switch group is connected to the control module; the second end of each switch in the fourth switch group is connected to the first interface of the third cable; the third end of each switch in the fourth switch group is connected to the control module; the first end of each switch in the fifth switch group is connected to the second interface of the third cable; the third end of each switch in the fifth switch group is connected to the control module.

[0050] It is understood that in this embodiment of the application, the type, quantity, current carrying capacity, etc. of the third cable are not specifically limited, and will not be elaborated here.

[0051] In one possible implementation of the second aspect described above, in response to a first test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so that the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, is connected; in response to a second test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so that the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, is disconnected.

[0052] In one possible implementation of the second aspect above, the control module controls the on / off state of each switch in the first switch unit and each switch in the second switch unit, so that the path between the first power supply device and the first charging device, including the first power supply port, the first switch unit, the second switch unit, and the first charging port, is connected. This includes controlling the VBUS switch in the first switch set, each switch in the second switch set, each switch in the third switch set, each switch in the fourth switch set, and each switch in the fifth switch set to be in a closed state, so that a path is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port, and so that a path is formed between the VBUS in the first power supply port, the VBUS in the second switch set, the VBUS in the first switch set, the VBUS in the third switch set, and the VBUS in the first charging port. The control module controls the on / off states of each switch in the first switch unit and each switch in the second switch unit to disconnect the path between the first power supply device and the first charging device, including the first power supply port, the first switch unit, the second switch unit, and the first charging port. This includes: controlling at least one of the switches in the first switch set, the second switch set, and the third switch set to be in an off state, so that an open circuit is formed between the first power supply port, the second switch set, the first switch set, the third switch set, and the first charging port; and controlling at least one of the switches in the second switch set, the fourth switch set, the fifth switch set, and the third switch set to be in an off state, so that an open circuit is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port.

[0053] The above-mentioned testing method can control the on or off of each switch set to form at least one test path between the power supply equipment and the charging equipment. Furthermore, in some possible implementations, the impedance of the test path between the first power supply port, the second switch set, the first switch set, the third switch set, and the first charging port in the testing device can be reduced, thereby further reducing the impact of the third cable on the impedance of the entire test path. This makes the impedance of the entire test path closer to the impedance of the path in the user's actual charging scenario, thus improving the effectiveness of the charging compatibility test.

[0054] In one possible implementation of the second aspect described above, the testing device further includes a second power supply port and a second charging port, and the first switch unit further includes a sixth switch set and a seventh switch set; the second power supply port is used to connect a fourth cable, wherein the fourth cable is used to connect the second power supply port and the power supply port of the second power supply device; the second charging port is used to connect a fifth cable, wherein the fifth cable is used to connect the second charging port and the charging port of the second charging device; the first end of each switch in the sixth switch set is connected to the second power supply port, and the second end of each switch in the sixth switch set is respectively connected to: the first end of each switch in the first switch set, the second end of each switch in the second switch set, and the first end of each switch in the fourth switch set; the third end of each switch in the sixth switch set is connected to the control module; the second end of each switch in the seventh switch set is connected to the second charging port, and the first end of each switch in the seventh switch set is respectively connected to: the second end of each switch in the first switch set, the first end of each switch in the third switch set, and the second end of each switch in the fifth switch set; the third end of each switch in the seventh switch set is connected to the control module.

[0055] It is understood that the second power supply port can be any port in the power supply port module used to connect to the power supply device, the second charging port can be any port in the charging port module used to connect to the charging device, the second power supply device can be any power supply device to be tested in the charging compatibility test, the second charging device can be any charging device to be tested in the charging compatibility test, the fourth cable can be any cable connected to the power supply device, and the fifth cable can be any cable connected to the charging device. Further details will not be provided here.

[0056] In one possible implementation of the second aspect described above, the control module receives a third test signal, wherein the third test signal is used to indicate that the path between the second power supply device connected to the second power supply port and the second charging device connected to the second charging port is connected; in response to the third test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so that the path between the second power supply device and the second charging device, including the second power supply port, the first switching unit, the second switching unit, and the second charging port, is connected; the control module receives a fourth test signal, wherein the fourth test signal is used to indicate that the path between the second power supply device connected to the second power supply port and the second charging device connected to the second charging port is disconnected; in response to the fourth test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so that the path between the second power supply device and the second charging device, including the second power supply port, the first switching unit, the second switching unit, and the second charging port, is disconnected.

[0057] It can be understood that the third test signal can be any signal used to indicate the connection between the second power supply device connected to the second power supply port and the second charging device connected to the second charging port. The fourth test signal can be any signal used to indicate the disconnection between the second power supply device connected to the second power supply port and the second charging device connected to the second charging port. That is, the third and fourth test signals can be signals for one or more switching units, signals for one or more switch sets, or signals for one or more switches in a switch set. In this embodiment, the specific content of the third and fourth test signals is not specifically limited.

[0058] In one possible implementation of the second aspect described above, the control module controls the on / off states of each switch in the first switching unit and each switch in the second switching unit, so that a path is established between the second power supply device and the second charging device, including the first power supply port, the first switching unit, the second switching power supply, and the first charging port. This includes controlling the VBUS switches in the first switch set, the sixth switch set, the seventh switch set, the fourth switch set, and the fifth switch set to be in a closed state, so that a path is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port, and so that the VBUS in the second power supply port, the VBUS in the sixth switch set, the VBUS in the first switch set, the VBUS in the seventh switch set, and the VBUS in the second charging port are connected. A circuit is formed; the control module controls the on / off state of each switch in the first switch unit and each switch in the second switch unit, so that the circuit between the second power supply device and the second charging device, including the first power supply port, the first switch unit, the second switch unit, and the first charging port, is broken, including: controlling at least one of each switch in the first switch set, each switch in the sixth switch set, and each switch in the seventh switch set to be in the off state, so that an open circuit is formed between the second power supply port, the sixth switch set, the first switch set, the seventh switch set, and the second charging port; controlling at least one of each switch in the sixth switch set, each switch in the fourth switch set, each switch in the fifth switch set, and each switch in the seventh switch set to be in the off state, so that an open circuit is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port.

[0059] The above testing method allows for the control of the closing or opening of various switch sets during the charging compatibility test, enabling testing of different power supply devices, charging devices, and cables. This makes the entire charging compatibility test process simpler and more automated, resulting in higher testing efficiency.

[0060] In one possible implementation of the second aspect described above, the testing device further includes a sixth cable, which is the cable to be tested, and the second switch unit further includes an eighth switch set and a ninth switch set. The first end of each switch in the eighth switch set is connected to the first end of each switch in the fourth switch set, the second end of each switch in the eighth switch set is connected to the first interface of the sixth cable, and the third end of each switch in the eighth switch set is connected to the control module. The first end of each switch in the ninth switch set is connected to the second interface of the sixth cable, the second end of each switch in the ninth switch set is connected to the second end of each switch in the fifth switch set, and the third end of each switch in the ninth switch set is connected to the control module.

[0061] It is understood that in the embodiments of this application, no specific limitations are made on the type, quantity, current carrying capacity, etc. of the cables included in the testing device, or on the switch set used to connect the cables.

[0062] In one possible implementation of the second aspect described above, the control module controls the on / off states of each switch in the first switching unit and each switch in the second switching unit, so that a path is established between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port. This includes controlling the VBUS switch in the first switching group, each switch in the second switching group, each switch in the third switching group, each switch in the eighth switching group, and each switch in the ninth switching group to be in a closed state, so that a path is formed between the first power supply port, the second switching group, the eighth switching group, the sixth cable, the ninth switching group, the third switching group, and the first charging port, and so that the VBUS in the first power supply port and the second switch... A path is formed between the centralized VBUS, the first switch centralized VBUS, the third switch centralized VBUS, and the VBUS in the first charging port; the control module controls the on / off state of each switch in the first switch unit and each switch in the second switch unit, so that the path between the first power supply device and the first charging device, including the first power supply port, the first switch unit, the second switch unit, and the first charging port, is disconnected, including: controlling at least one of the switches in the second switch group, the eighth switch group, the ninth switch group, and the third switch group to be in the off state, so that an open circuit is formed between the first power supply port, the second switch group, the eighth switch group, the fourth cable, the ninth switch group, the third switch group, and the first charging port.

[0063] The above testing method can also be used to control the closing or opening of each switch set to create different test paths between different power supply devices, charging devices and cables, making the charging compatibility testing process simpler and more automated, and improving testing efficiency.

[0064] In one possible implementation of the second aspect described above, the first cable includes a first interface, a second interface, and a third interface; the first interface and the second interface of the first cable form a first branch cable of the first cable, and the first interface and the third interface of the first cable form a second branch cable of the first cable; the second cable includes a fourth interface, a fifth interface, and a sixth interface; the fourth interface and the fifth interface of the second cable form a first branch cable of the second cable, and the fourth interface and the sixth interface of the second cable form a second branch cable of the second cable; and the first cable and the second cable are straight-through cables; wherein the first interface of the first cable is connected to the power supply port of the first power supply device, the second interface of the first cable is connected to the first power supply port, and the third interface of the first cable is connected to the second power supply port; the fourth interface of the second cable is connected to the charging port of the first charging device, the fifth interface of the second cable is connected to the first charging port, and the sixth interface of the second cable is connected to the second charging port.

[0065] It is understandable that in some possible implementations, the cables used to connect the test device and the power supply equipment, as well as the cables used to connect the test device and the charging equipment, can include more than one branch. In some possible implementations, by using cables with more branches, the impedance of the entire test path can be further reduced, making the impedance of the entire test path closer to the path impedance in the user's actual charging scenario, thereby improving the effectiveness of charging compatibility testing.

[0066] In one possible implementation of the second aspect described above, the testing device further includes a first sampling interface, a second sampling interface, a third sampling interface, a fourth sampling interface, a fifth sampling interface, a sixth sampling interface, a seventh sampling interface, an eighth sampling interface, a ninth sampling interface, and a resistor unit. The first power supply port, the second power supply port, the first charging port, and the second charging port each include a VBUS pin and a GND pin. The first end of the first sampling interface is connected to the VBUS pin of the first power supply port and the first end of the VBUS switch in the second switch group, respectively. The first end of the second sampling interface is connected to the first end of the GND switch in the second switch group and the GND pin of the first power supply port, respectively. The second ends of the first and second sampling interfaces are respectively used to connect to a voltage detection device. The first end of the third sampling interface is connected to the first end of the VBUS switch in the sixth switch group and the VBUS pin of the second power supply port, respectively. The first end of the fourth sampling interface is connected to the GND pin of the second power supply port and the first end of the GND switch in the sixth switch group, respectively. The first end of the third sampling interface... The second end of the second sampling interface and the second end of the fourth sampling interface are respectively used to connect to the voltage detection device; the first end of the fifth sampling interface is respectively connected to the first end of the first resistor in the resistor unit and the second end of the first VBUS switch in the switch unit. The second end of the first resistor in the resistor unit is respectively connected to the first end of the seventh sampling interface, the first end of the third VBUS switch, and the first end of the seventh VBUS switch. The first end of the sixth sampling interface is connected to the first end of the third GND switch. The second ends of the fifth sampling interface and the sixth sampling interface are respectively used to connect to the voltage detection device. The third end of the sixth sampling interface and the second end of the seventh sampling interface are respectively used to connect to the voltage detection device. The first end of the eighth sampling interface is respectively connected to the second end of the seventh VBUS switch and the VBUS pin of the second charging port. The first end of the ninth sampling interface is respectively connected to the second end of the seventh GND switch and the GND pin of the second charging port. The second ends of the eighth sampling interface and the second ends of the ninth sampling interface are respectively used to connect to the voltage detection device.The test method further includes: the control module receiving a fifth test signal, wherein the fifth test signal is used to indicate the continuity between the first branch cable of the first cable and the first power supply port, and the continuity between the first charging port and the first branch cable of the second cable; in response to the fifth test signal, the control module controls the on / off state of each switch in the first switching unit to make the continuity between the first branch cable of the first cable and the first power supply port, and the continuity between the first charging port and the first branch cable of the second cable, continuous; the control module receiving a sixth test signal, wherein the sixth test signal is used to indicate the disconnection of the continuity between the first branch cable of the first cable and the first power supply port, and the continuity between the first charging port and the first branch cable of the second cable; in response to the sixth test signal, the control module controls the on / off state of each switch in the first switching unit to make the continuity between the first branch cable of the first cable and the first power supply port, and the continuity between the first charging port and the first branch cable of the second cable, continuous. Disconnect; the control module receives a seventh test signal, which indicates that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are connected; in response to the seventh test signal, the control module controls the on / off state of each switch in the first switching unit so that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are connected; the control module receives an eighth test signal, which indicates that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are disconnected; in response to the eighth test signal, the control module controls the on / off state of each switch in the first switching unit so that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are disconnected.

[0067] It is understood that the fifth test signal can be any signal used to indicate a continuity between the first branch cable of the first cable and the first power supply port, and between the first charging port and the first branch cable of the second cable. The sixth test signal can be any signal used to indicate a disconnection between the first branch cable of the first cable and the first power supply port, and between the first charging port and the first branch cable of the second cable. The seventh test signal can be any signal used to indicate a continuity between the second branch cable of the first cable and the second power supply port, and between the second charging port and the second branch cable of the second cable. The eighth test signal can be any signal used to indicate a disconnection between the second branch cable of the first cable and the second power supply port, and between the second charging port and the second branch cable of the second cable. No specific limitations are imposed in this embodiment.

[0068] The above testing method can detect the current and voltage of the first power supply port, the second power supply port, the first charging port, and the second charging port during the charging compatibility test by controlling each switch set in the first switching unit, thus enabling the charging compatibility test to be carried out smoothly. Attached Figure Description

[0069] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the following drawings are only drawings of some embodiments of this application. For those skilled in the art, other drawings that can achieve the same technical solution of this application can be obtained from these drawings without creative effort.

[0070] Figure 1A According to some embodiments of this application, a schematic diagram of a scenario in which a power supply device charges a charging device is shown;

[0071] Figure 1B According to some embodiments of this application, a hardware connection diagram of a testing method is shown;

[0072] Figure 1C According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0073] Figure 1D According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0074] Figure 1E According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0075] Figure 1FAccording to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0076] Figure 2A According to some embodiments of this application, a schematic diagram of the module connection of a testing device is shown;

[0077] Figure 2B According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0078] Figure 2C According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0079] Figure 2D According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0080] Figure 3A According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0081] Figure 3B According to some embodiments of this application, a hardware connection diagram of another testing method is shown;

[0082] Figure 3C A schematic diagram of a testing process is shown according to some embodiments of this application;

[0083] Figure 4A A schematic diagram of a charging cable is shown according to some embodiments of this application;

[0084] Figure 4B According to some embodiments of this application, a schematic diagram of another charging cable is shown;

[0085] Figure 5A According to some embodiments of this application, a schematic diagram of an integrated system structure for charging compatibility testing is shown;

[0086] Figure 5B According to some embodiments of this application, a schematic diagram of the structure of a testing device is shown;

[0087] Figure 6A According to some embodiments of this application, a schematic diagram of a sampling circuit is shown;

[0088] Figure 6B According to some embodiments of this application, another sampling circuit schematic diagram is shown;

[0089] Figure 7 According to some embodiments of this application, another sampling circuit schematic diagram is shown;

[0090] Figure 8 According to some embodiments of this application, a timing diagram of a plugging / unplugging action simulation control is shown. Detailed Implementation

[0091] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0092] The method provided in this application can be applied to any electronic device, including but not limited to mobile stations (MS) and mobile terminals (MT). For example, the electronic device can be a mobile phone, smart TV, wearable device, tablet computer, desktop computer, laptop computer, virtual reality (VR) device, augmented reality (AR) device, terminal in industrial control, terminal in self-driving, terminal in remote medical surgery, terminal in smart grid, terminal in transportation safety, terminal in smart city, terminal in smart home, etc. This application does not limit the specific form of the electronic device.

[0093] It is understood that the power supply equipment in the embodiments of this application can be a charger (including wired chargers, wireless chargers such as dock station chargers), mobile phone, smart TV, wearable device, tablet computer, laptop computer, desktop computer, virtual reality terminal device, augmented reality terminal device, wireless terminal in industrial control, wireless terminal in autonomous driving, wireless terminal in remote surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, power bank, and other devices that can provide power to external devices.

[0094] It is understood that the cable (also known as a charging cable or data cable) in this application embodiment refers to a cable used to connect a charging device and a power supply device. This cable generally includes a first interface for connecting the charging device and a second interface for connecting the power supply device. Furthermore, the first and second interfaces can be Universal Serial Bus (USB) Type-A interfaces (hereinafter referred to as Type-A), Universal Serial Bus (USB) Type-C interfaces (hereinafter referred to as Type-C), etc. Many factors affect the charging power of a charging cable, including the cable's impedance, whether the cable has internal signal lines for fast charging protocol communication, whether the cable has internal pull-up resistors, and whether the cable has internal chips for fast charging protocol identification, all of which may affect the actual charging effect.

[0095] The following description uses a charger as an example for the power supply device 200 and a mobile phone as an example for the charging device 100 to illustrate the embodiments of this application. It is understood that the technical solutions of this application can also be applied to other power supply devices or other charging devices, which will not be elaborated here.

[0096] Figure 1A This illustrates a scenario where a power supply device charges a charging device. For example... Figure 1A As shown, the power supply device 200 and the charging device 100 can be connected via a cable 300. The signal transmission interface 201 of the power supply device 200 is a Type-A interface, and the signal transmission interface 101 of the charging device 100 is a Type-C interface. The signal transmission interfaces 201 and 101 can transmit electrical signals to achieve both power transmission and communication signal transmission.

[0097] Cable 300 includes a first interface 301 and a second interface 302, where the first interface 301 is a Type-A interface and the second interface 302 is a Type-C interface. When the power supply device 200 and the charging device 100 are connected via cable 300, the signal transmission interface 201 of the power supply device 200 is connected to the first interface 301 of the cable 300, and the signal transmission interface 101 of the charging device 100 is connected to the second interface 302 of the cable 300. The power supply device 200 acts as a power source, and the charging device 100 acts as a power sink, enabling the power supply device 200 to supply power to the charging device 100.

[0098] It is understood that both the power supply device 200 and the charging device 100 are equipped with charging and discharging chips. These chips can support various charging protocols. For example, if the charging and discharging chips of both the power supply device 200 and the charging device 100 support the same high-power fast charging protocol, then when the power supply device 200 and the charging device 100 are connected via the cable 300, the power supply device 200 can perform high-power fast charging on the charging device 100.

[0099] Figure 1A In this scenario, the Type-A interface is located on the power supply device 200, and the Type-C interface is located on the charging device 100. For example, signal transmission interface 101 is a Type-C interface, and signal transmission interface 201 is a Type-A interface. The Type-C interfaces are located at both ends of the cable 300, for example, the first interface 301 and the second interface 302 are located at both ends of the cable 300.

[0100] It's understandable that charging devices, charging cables, and power supply equipment are three essential components for completing the charging process. Different models of power supply equipment, charging cables, and charging devices, when combined in different ways, will exhibit varying performance in charging power matching and charging protocol communication, and will require different support strategies within the charging devices themselves. Charging compatibility testing primarily verifies whether the charging effect meets expectations by rotating different combinations of charging devices, charging cables, and power supply equipment. This includes checking whether the maximum charging power of the combination is matched, whether the fast charging protocol that the combination should prioritize support is matched, and whether there are any other software process anomalies.

[0101] For example, in solutions supporting high-power fast charging, fast charging protocols are typically transmitted through the various wires in the USB charging cable, such as the Power Delivery (PD) protocol, the Smart Charge Protocol (SCP), and the Universal Fast Charging Specification (UFCS) protocol. These wires in the USB charging cable can include a positive data port (data+, D+) wire, a negative data port (data-, D-) wire, a first configuration channel port (configuration channel 1, CC1) wire, a second configuration channel port (configuration channel 2, CC2) wire, or other types of wires. During high-power fast charging, the charging device and the power supply device can perform protocol handshakes, power matching, and dynamic adjustment of the power supply to ensure that high-power charging is completed within the corresponding fast charging protocol framework. To ensure the safety of high-power fast charging, charging devices typically perform anti-counterfeiting authentication on the power supply equipment to prevent untrusted / unofficially certified power supply equipment from providing unsafe and unstable power sources. Charging devices also typically identify the type of charging cable to prevent untrusted / unspecified cables from providing current that may exceed their load capacity. In addition, the entire test path, including the loop impedance of the USB power port (VBUS) and the ground port (GND), will be tested to prevent the introduction of large currents that may cause overheating, fire, or other safety issues.

[0102] As described in the background section, current charging compatibility testing is generally mechanical charging compatibility testing. Mechanical charging compatibility testing typically involves physically plugging and unplugging charging interfaces using robotic arms or other mechanical devices. This includes physically plugging and unplugging the charging interface and charging cable of the charging device, as well as the power supply interface and charging cable of the power supply device, to test the charging performance of the power supply device, charging device, and charging cable. For example, if it is necessary to... Figure 1A The power supply device 200, cable 300, and charging device 100 shown are subjected to charging compatibility testing. A robotic arm can be used to connect cable 300 to both the power supply device 200 and the charging device 100, and then the charging effect is tested. During the charging compatibility test, the power supply device 200 and the charging device 100 will successively complete actions such as protocol handshaking, power matching, and dynamic adjustment of power supply. It is understandable that during the charging compatibility test, it is usually necessary to power on and off the power supply device 200 and the charging device 100 multiple times. It may be necessary to use a robotic arm to repeatedly insert and remove cable 300 from the charging interface of the power supply device 200 and the charging interface of the charging device 100, and to repeatedly collect data as needed.

[0103] It is understandable that the precision of the physical movements of existing robotic arms or other mechanical equipment often cannot guarantee that the charging cable can be correctly inserted or removed from the charging interface of the charging device and the power interface of the power supply device every time. Furthermore, repeated physical insertion and removal may accelerate the aging of various interface plugs, thus affecting the smooth implementation of charging compatibility testing.

[0104] Therefore, this application provides a testing device that can provide a test path for charging devices and power supply devices. By controlling the conduction and disconnection of the test path, the charging devices and power supply devices can be powered on and off without plugging and unplugging the cables connecting the power supply devices and charging devices, thereby completing the charging compatibility test.

[0105] Specifically, for example, such as Figure 1B As shown, in some embodiments, the testing device 410 may include a control module (not shown), a switch set 4115A (also referred to as a first switch set), at least one port for connecting a power supply device, such as port 411A (also referred to as a first power supply port), at least one port for connecting a charging device, such as port 412A (also referred to as a first charging port), and wires. The switch set 4115A is connected to both port 411A and port 412A, and the control module is connected to the switch set 4115A. Port 411A can be connected to power supply device 200A (also referred to as a first power supply device) via cable 310A (also referred to as a first cable); port 412A can be connected to charging device 100A (also referred to as a first charging device) via cable 320A (also referred to as a second cable). During charging compatibility testing, the power supply device 200A can be connected to the test device 410 via cable 310A, and the charging device 100A can be connected to the test device 410 via cable 320A. This establishes a test path between the power supply device 200A, cable 310A, port 411A, switch set 4115A, port 412A, cable 320A, and charging device 100A. The power supply device 200A is the power supply device under test, the charging device 100A is the charging device under test, and cable 310A and / or cable 320A are the cables under test.

[0106] By sending control signals to the control module, such as sending control signals (e.g., first test signal, second test signal, etc.) through a computer connected to the test device 410, the control module can control the switch set 4115A to open or close, thereby opening or closing the test path and completing the charging compatibility test.

[0107] It is understood that in some embodiments, the signal used to indicate the connection between the first power supply device connected to the first power supply port and the first charging device connected to the first charging port can be a first test signal. That is, for example, the signal used to indicate the connection between the power supply device 200A connected to port 411A and the charging device 100A connected to port 412A is a first test signal. The control module can respond to the received first test signal by controlling the on / off state of each switch (such as switch set 4115A) in the first switching unit, so that the connection between the first power supply device (such as power supply device 200A) and the first charging device (such as charging device 100A), including the first power supply port (such as port 411A), the first switching unit (such as the switching unit including switch set 4115A), and the first charging port (such as port 412A), is established. Furthermore, the signal used to indicate the disconnection between the first power supply device connected to the first power supply port and the first charging device connected to the first charging port can be a second test signal. For example, the signal used to indicate the disconnection of the path between the power supply device 200A connected to port 411A and the charging device 100A connected to port 412A is a second test signal. The control module can respond to the received second test signal by controlling the on / off state of each switch (e.g., switch set 4115A) in the first switching unit, thereby disconnecting the path between the first power supply device (e.g., power supply device 200A) and the first charging device (e.g., charging device 100A), including the first power supply port (e.g., port 411A), the first switching unit (e.g., the switching unit including switch set 4115A), and the first charging port (e.g., port 412A).

[0108] Understandably, as an example, Figure 1B Ports 411A and 412A are both Type-C interfaces. In some embodiments, ports 411A and 412A may also be other types of interfaces. In this application embodiment, the type and number of ports in the testing device, and the type and number of cables used to connect the power supply device and the charging device, are not specifically limited. In some possible implementations, the testing device may include cables for connecting the power supply device and the charging device, such as testing device 410 including cable 310A and cable 320A; in other possible implementations, the testing device may not include cables for connecting the power supply device and the charging device, such as cable 310A and cable 320A not being included in testing device 410. In this application embodiment, no specific limitation is made.

[0109] In some embodiments, cables connecting power supply equipment and testing devices, such as cable 310A connecting power supply equipment 200A and testing device 410, and / or cables connecting charging equipment and testing devices, such as cable 320A connecting charging equipment 100A and testing device 410, can be straight-through cables. Straight-through cables do not contain complex electronic components, ensuring direct signal transmission without adding or modifying the signal. Furthermore, the types of the two interfaces of the straight-through cable can be customized, such as Type-C interfaces. For example, if cable 320A connecting charging equipment 100A and testing device 410 is configured as a straight-through cable and is not the cable under test, then cable 310A connecting power supply equipment 200A and testing device 410 is the cable under test. The charging device 100A can identify the type and current-carrying capacity of the cable 310A based on the received signal from the cable 310A connecting the power supply device 200A and the testing device 410. For example, it can determine that the cable 310A is a Type-C to Type-C cable, meaning both its interfaces are Type-C, and its current-carrying capacity is 5A. This avoids the charging device 100A receiving signals from both the cable 310A and the cable 320A simultaneously, which would prevent it from correctly identifying the source of the two signals and thus failing to accurately determine their types and current-carrying capacities. This improves the accuracy and efficiency of the charging compatibility test. Furthermore, by reducing the impedance of the cable 310A and / or the cable 320A (which are configured as straight-through cables), the impedance of the entire test path can be made closer to the impedance in the user's actual charging scenario, further enhancing the effectiveness of the charging compatibility test. Understandably, an ideal straight-through cable will not have any additional impact on the charging device's identification of the cable type. However, it is important to note that before starting the charging compatibility test, the maximum current of the entire test process needs to be estimated to ensure that the current carrying capacity of the straight-through cable is not lower than the maximum test current.

[0110] In some embodiments, such as Figure 1CAs shown, compared to the testing device 410, the testing device 430 may further include a cable 380A (also known as a third cable), a switch set 4313A (also known as a fourth switch set), a switch set 4211A (also known as a second switch set), a switch set 4314A (also known as a fifth switch set), and a switch set 4212A (also known as a third switch set). The first end of switch set 4313A is connected to the second end of switch set 4211A and the first end of switch set 4115A, respectively. The second end of switch set 4313A is connected to the first interface (e.g., a Type-C interface) of cable 380A, the second interface (e.g., a Type-C interface) of cable 380A is connected to the first end of switch set 4314A, and the second end of switch set 4314A is connected to the first end of switch set 4212A and the second end of switch set 4115A, respectively. A control module (not shown in the figure) is connected to switch sets 4313A, 4211A, 4314A, and 4212A, respectively. Furthermore, the cable 310A connecting the power supply device 200A and the test device 430, and the cable 320A connecting the charging device 100A and the test device 430, can both be straight-through cables. Cables 310A and 320A are not the cables under test. In some possible implementations, the impedance of the two straight-through cables can be reduced in various ways, in which case the cable under test can be cable 380A. It is understood that in some embodiments, the test device may not include cables, but only ports for connecting cables. For example, the test device 430 may only include two ports for connecting cable 380A. When cable 380A is needed, it can be connected through these two ports. This application embodiment does not impose specific limitations.

[0111] It is understood that the switch module in this application embodiment may include various identical or different switch units, such as a first switch unit (not shown in the figure), a second switch unit (not shown in the figure), etc. The first switch unit may include various identical or different switch sets, such as a first switch set, a second switch set, a third switch set, a sixth switch set, a seventh switch set, etc., and the control module can control the closing or opening of each switch set in the first switch unit, thereby forming a test path between each power supply port, the first switch unit, and each charging port. The second switch unit may include various identical or different switch sets, such as a fourth switch set, a fifth switch set, an eighth switch set, a ninth switch set, etc., and the control module can control the closing or opening of each switch set in the first and second switch units, thereby forming a test path between each power supply port, the switch sets in the first switch unit, the switch sets in the second switch unit, the third cable (or other similar cables, such as the sixth cable), and each charging port.

[0112] It is understood that the control module can respond to the first test signal and control the on / off state of each switch in the first switching unit and each switch in the second switching unit, so as to make the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, conductive; and the control module can respond to the second test signal and control the on / off state of each switch in the first switching unit and each switch in the second switching unit, so as to make the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, disconnected. For example, by sending control signals (such as the first test signal, the second test signal, etc.) to the control module, such as by sending control signals to the control module through a computer communicatively connected to the test device 430, the control module can control the disconnection or connection of switch sets 4313A, 4314A, 4211A, 4212A, and 4115A respectively. When switch sets 4313A, 4314A, 4211A, and 4212A are all on, and the VBUS switch in switch set 4115A is on while the other switches are off, cable 380A is connected to the test path. A test path can be formed between power supply device 200A, cable 310A, port 411A, switch set 4211A, switch set 4313A, cable 380A, switch set 4314A, switch set 4212A, port 412A, cable 320A, and charging device 100A. Furthermore, the VBUS / GND wires between power supply device 200A, cable 310A, port 411A, switch set 4211A, switch set 4115A, switch set 4212A, port 412A, cable 320A, and charging device 100A can carry a direct current. In some possible implementations, the impedance of the test path between port 411A, switch set 4211A, switch set 4115A, switch set 4212A, and port 412A can be reduced by shortening the wiring distance of the test device 430, widening the wiring in the test device 430, or setting multiple layers of wiring in the test device. In this way, the current on the VBUS conductor of the test path from the power supply device 200A to the charging device 100A can be mainly transmitted through the VBUS conductor of the test path including port 411A, switch set 4211A, switch set 4115A, switch set 4212A, and port 412A, rather than mainly through the VBUS conductor of the test path including cable 380A. This further reduces the impact of the impedance of cable 380A on the impedance of the test path, making the impedance of the entire test path closer to the path impedance in the user's actual charging scenario, thus improving the effectiveness of charging compatibility testing.

[0113] It is understood that the type of each switch set in each switch unit in the embodiments of this application can be selected according to specific needs, and each switch set can include various different switches, such as VBUS switch, D+ switch, D- switch, CC1 switch, CC2 switch, etc. In the embodiments of this application, no specific limitation is made on the type of each switch set in each switch unit or the type of various different switches in each switch set.

[0114] In some embodiments, the testing apparatus may also be configured with multiple ports for connecting power supply equipment, and / or multiple ports for connecting charging equipment, and / or multiple cables to be tested, as needed. For example, Figure 1D As shown, compared to test device 430, test device 450 also includes port 411B (also known as the second power supply port), port 412B (also known as the second charging port), switch set 4211B (also known as the sixth switch set), and switch set 4212B (also known as the seventh switch set). The power supply interface of power supply device 200B (also known as the second power supply device) is connected to the first interface of cable 310B (also known as the fourth cable), the second interface of cable 310B is connected to port 411B (also known as the second power supply port), the first end of switch set 4211B is connected to port 411B, and the second end of switch set 4211B is connected to the first end of switch set 4115A, the first end of switch set 4313A, and the second end of switch set 4211A, respectively. The charging interface of the charging device 100B (also known as the second charging device) is connected to the second interface of cable 320B. The first interface of cable 320B (also known as the fifth cable) is connected to port 412B. The second end of switch set 4212B is connected to port 412B. The first end of switch set 4212B is connected to the second end of switch set 4115A, the second end of switch set 4314A, and the first end of switch set 4212A, respectively. The control module (not shown in the figure) is also connected to switch set 4211B and switch set 4212B, respectively.

[0115] It is understood that in some embodiments, the signal used to indicate the connection between the second power supply device connected to the second power supply port and the second charging device connected to the second charging port can be a third test signal. That is, for example, the signal used to indicate the connection between the power supply device 200B connected to port 411B and the charging device 100B connected to port 412B is a third test signal. The control module can respond to the received third test signal to control the on / off state of each switch in the first switching unit (such as switch set 4115A, switch set 4211B, switch set 4212B, etc.) and each switch in the second switching unit (such as switch set 4313A, switch set 4314A, etc.), so as to enable the connection between the second power supply device (such as power supply device 200B) and the second charging device (such as charging device 100B), including the second power supply port (such as port 411B), the first switching unit (such as the switching unit including switch set 4115A, switch set 4211B, switch set 4212B), each switch in the second switching unit (such as switch set 4313A, switch set 4314A, etc.), and the second charging port (such as port 412B). Furthermore, the signal used to indicate the connection between the second power supply device disconnected from the second power supply port and the second charging device connected to the second charging port can be a fourth test signal. That is, for example, the signal used to indicate the connection between the power supply device 200B connected to port 411B and the charging device 100B connected to port 412B is the fourth test signal. In response to the received fourth test signal, the control module can control the on / off states of each switch in the first switching unit (such as switch sets 4115A, 4211B, and 4212B) and each switch in the second switching unit (such as switch sets 4313A and 4314A), so that the connection between the second power supply device (such as power supply device 200B) and the second charging device (such as charging device 100B), including the second power supply port (such as port 411B), the first switching unit (such as the switching unit including switch sets 4115A, 4211B, and 4212B), each switch in the second switching unit (such as switch sets 4313A and 4314A), and the second charging port (such as port 412A), is disconnected.

[0116] By sending control signals (such as the first test signal, the second test signal, the third test signal, the fourth test signal, etc.) to the control module, such as by sending control signals to the control module through a computer that is communicatively connected to the test device 450, the control module can control the opening or closing of switch sets 4313A, 4314A, 4211A, 4212A, 4211B, 4212B, and 4115A respectively.

[0117] For example, power supply device 200B can be connected to test device 450 by closing switch set 4211B, and charging device 100B can be connected to test device 450 by closing switch set 4212B, and so on. In this embodiment, no specific limitations are made on the number of power supply devices, the number of charging devices, the number of ports in the test device used to connect to power supply devices, the number of ports in the test device used to connect to charging devices, the number of cables under test, the number of switch sets in the test device used to control the cables under test, the number of switch sets in the test device used to connect to the power supply device side, and the number of switch sets in the test device used to connect to the charging device side.

[0118] For example, in some possible implementations, the cable under test may also include multiple cables with the same and / or different interface types, each of which can be controlled to connect or disconnect from the test path via a different set of switches. Figure 1EAs shown, compared to test device 450, test device 460 also includes cable 380B (also known as the sixth cable), switch set 4313B (also known as the eighth switch set), and switch set 4314B (also known as the ninth switch set). The first interface of cable 380B (e.g., a Type-A interface) is connected to the second end of switch set 4313B. The first end of switch set 4313B is connected to the second ends of switch sets 4211A, 4211B, 4115A, and 4313A, respectively. The second interface of cable 380B (e.g., a Type-C interface) is connected to the first end of switch set 4314B. The second end of switch set 4314B is connected to the first ends of switch sets 4212A, 4212B, 4314A, and 4115A, respectively. A control module (not shown in the figure) is also connected to switch sets 4313B and 4314B, respectively. By sending control signals (such as the first test signal, the second test signal, the third test signal, the fourth test signal, etc.) to the control module, such as through a computer communicatively connected to the test device 460, the control module can control the switch sets 4313B and 4314B to be turned on or off, thereby connecting or disconnecting cable 380B from the test path. It is understood that each test path, including different cables under test, can be controlled to be turned on or off through the control module and different switch sets. In this embodiment, the interface type of the cable under test is not specifically limited. It is understood that in some embodiments, the test device may not include cables, but only ports for connecting cables. For example, the test device 460 may only include two ports for connecting cable 380B. When cable 380B is needed, it can be connected through these two ports. The test device may include multiple ports for connecting cables, or multiple identical or different cables; this is not specifically limited in this embodiment.

[0119] In this way, the testing equipment can be used to perform charging compatibility tests on multiple different power supply devices, multiple different cables, and multiple different charging devices, thus improving the efficiency of charging compatibility testing.

[0120] In some embodiments, such as Figure 1FAs shown, the cable connecting the power supply equipment and the testing device, such as cable 4000A, can be divided into at least two branches, with the VBUS / GND wires in cable 4000A also divided into at least two branches. Similarly, the cable connecting the charging equipment and the testing device, such as cable 4200A, can be divided into at least two branches, with the VBUS / GND wires in cable 4200A also divided into at least two branches. In some possible implementations, cables 4000A and 4200A can be straight-through cables. In this case, by controlling the on and off of each switch set through a control unit (not shown in the figure), all or some branches of cable 4000A and cable 4200A can be connected to the test path. This allows the current on VBUS / GND in the test path to flow separately, forming a parallel connection, further reducing the impedance of the entire test path. The impedance of the test path then becomes closer to the impedance of the path in the user's actual charging scenario, improving the effectiveness of charging compatibility testing.

[0121] It is understood that in this embodiment, by sending control signals (such as a first test signal, a second test signal, a third test signal, a fourth test signal, etc.) to the control module, the control module can control the closing or opening of each switch in each switch set in the test device, thereby controlling the closing or opening of each test path. In some possible implementations, the source of the control signal can be a computer communicatively connected to the control module, software inside the control module, or other control devices outside the control module. In this embodiment, the source of the control signal is not specifically limited.

[0122] Thus, the above-described testing method, through the testing device, simplifies and automates the charging compatibility testing process after the power supply equipment and charging equipment are electrically connected, while also reducing costs. Furthermore, by adjusting the impedance of each part of the entire test path, the additional impedance introduced by the test equipment or cables entering the test path can be reduced. This makes the test scenario closer to the user's actual charging scenario, resolving issues such as the charging equipment being unable to reach maximum charging power or the inability to obtain the maximum charging power of the power supply and charging equipment combination due to additional impedance introduced by the test equipment or cables, thereby improving the effectiveness of charging compatibility testing.

[0123] The following is combined with Figures 2A to 8 The test methods described in the embodiments of this application are explained in detail.

[0124] First, based on Figure 2A This application describes a testing apparatus according to an embodiment. For example... Figure 2AAs shown, the testing device may include: a power supply port module, a charging port module, a control module, and a switch module. The first end of the switch module is connected to the power supply port module, the second end of the switch module is connected to the charging port module, and the third end of the switch module is connected to the control module. Furthermore, the power supply port module may include at least one port for connecting cables and power supply equipment, such as a first power supply port (not shown in the figure). The charging port module may include at least one port for connecting cables and charging equipment, such as a first charging port (not shown in the figure). The switch module may include at least one switch unit (not shown in the figure). The first power supply port, the first switch unit, and the first charging port can be connected sequentially (not shown in the figure). The first power supply port is used to connect a first cable (not shown in the figure), and the first cable is used to connect the first power supply port and the power supply port of the power supply equipment. The first charging port is used to connect a second cable (not shown in the figure), and the second cable is used to connect the first charging port and the charging port of the charging equipment.

[0125] During charging compatibility testing, control signals are sent to the control module, for example, via a computer connected to the testing device. This causes the control module to open or close the switch module, thus opening or closing the test path and completing the charging compatibility test. By repeatedly opening and closing the test path using the control module and switch module on the testing device, the charging compatibility testing process becomes simpler and more automated, ensuring smooth implementation and good results.

[0126] As an example, such as Figure 2B As shown, during the charging compatibility test, the power supply device (such as the first power supply device or the second power supply device) can be connected to the first interface of the cable 310. The second interface of the cable 310 (such as the first cable) is connected to the first end of the testing device. The second end of the testing device is connected to the first interface of the cable 320 (such as the second cable). The second interface of the cable 320 is connected to the charging device (such as the first charging device or the second charging device). The first end of the testing device can be any port used to connect the cable and the power supply device, and the second end of the testing device can be any port used to connect the cable and the charging device. In this embodiment, the type of port of the testing device is not specifically limited.

[0127] In some embodiments, the testing apparatus includes a control module capable of controlling the connection or disconnection of the test path. Specifically, such as... Figure 1BAs shown, during charging compatibility testing, when the control module (not shown in the figure) receives a conduction signal (such as the first test signal) sent by a computer, the control module can control each switch in the switch set 4115A to conduct. When the circuit in the test device 410 is in the conducting state, the test device 410 can provide a conducting circuit for the power supply device 200A and the charging device 100A, so that a conducting test path is formed between the power supply device 200A, cable 310A, test device 410, cable 320A, and charging device 100A. When the control module receives a disconnection signal (such as the second test signal) from the switch set 4115A, the control module can control each switch in the switch set 4115A to disconnect. When the circuit in the test device 410 is in the disconnected state, the test path between the power supply device 200A, cable 310A, test device 410, cable 320A, and charging device 100A is disconnected.

[0128] It is understood that switch set 4115A can be any electronic component capable of turning the circuit on or off, such as a relay, a metal-oxide-semiconductor field-effect transistor (MOSFET), an opto-MOSFET relay, or a series or parallel combination of switches. It is understood that if a MOSFET is used, two MOSFETs can be connected in series to achieve bidirectional conduction / cutoff of the circuit. If a relay is used, a single relay can be used as a switch, or two or more relays can be connected in parallel to increase current carrying capacity and reduce the impedance of the test device 410. In this embodiment, the specific type of each switch set, such as switch set 4115A, is not specifically limited.

[0129] It is understandable that during the charging compatibility test, the control module in the test device 410 can continuously control the on or off of each switch in the switch set 4115A in the test path as needed. It can also set the on or off timing of each switch in the switch set 4115A as needed, or control the on or off of a single switch individually, so that the circuit of the test device is connected or disconnected. This makes the charging compatibility test process simpler and more automated, and the charging compatibility test effect is better.

[0130] It is understandable that the number of power supply equipment, charging equipment, and cables can be increased as needed, and the conduction and disconnection of each test path can be controlled through control modules and more switch sets. For example... Figure 2CAs shown, compared to test device 410, test device 420A may further include switch sets 4211A, 4212A, 4211B, 4212B, ports 411B and 412B. It is understood that switch sets 4211A, 4212A, 4211B, and 4212B can be any electronic component capable of turning the circuit on or off, and ports 411B and 412B can be of any type. In this embodiment, the specific types of each switch set, such as switch sets 4211A, 4212A, 4211B, and 4212B, and the types of each port, such as ports 411B and 412B, are not specifically limited. It is understood that the number of switch sets and ports can be increased or decreased according to specific testing needs, which will not be elaborated here.

[0131] The power supply interface of power supply device 200B connects to the first interface of cable 310B, and the second interface of cable 310B connects to port 411B. The charging interface of charging device 100B connects to the second interface of cable 320B, and the first interface of cable 320B connects to port 412B. The first terminal of each switch in switch set 4211B is connected to port 411B, and the second terminal of each switch in switch set 4211B is connected to the first terminal of each switch in switch set 4115A and the second terminal of each switch in switch set 4211A, respectively. The second terminal of each switch in switch set 4115A and the first terminal of each switch in switch set 4212A are connected to the first terminal of each switch in switch set 4212B, and the second terminal of each switch in switch set 4212B is connected to port 412B. A control module (not shown in the figure) is connected to switch sets 4211A, 4212A, 4211B, 4212B, and 4115A, respectively.

[0132] During charging compatibility testing, power supply device 200A and cable 310A can be electrically connected to test device 420A through the conduction of switch set 4211A; power supply device 200B and cable 310B can be electrically connected to test device 420A through the conduction of switch set 4211B; charging device 100A and cable 320A can be electrically connected to test device 420A through the conduction of switch set 4212A; and charging device 100B and cable 320B can be electrically connected to test device 420A through the conduction of switch set 4212B.

[0133] It's understandable that in actual charging compatibility testing, only one power supply device should be activated at a time to avoid conflicts in the fast charging process caused by multiple power supply devices being connected simultaneously. The charging device can choose to activate one or multiple devices simultaneously based on actual testing needs. For example, when simulating a scenario where one power supply device charges two charging devices simultaneously via a 1-to-2 cable, both charging devices can be activated at the same time.

[0134] Thus, each time different power supply equipment, charging equipment, cables connecting the power supply equipment and the testing device, or cables connecting the charging equipment and the testing device are replaced, the control module can control the conduction or disconnection of each corresponding switch set as needed, thereby realizing charging compatibility testing of various different power supply equipment, charging equipment, and cables. In this embodiment, the number of power supply equipment, charging equipment, cables, and switch sets is not specifically limited.

[0135] In some embodiments, it can also be achieved through Figure 2D The test setup shown involves switching between various power supply devices, charging devices, and cables to conduct charging compatibility tests. For example... Figure 2D As shown, compared to test device 410, test device 420B may further include switch set 4115B, port 411B, and port 412B. It is understood that switch set 4115B can be any electronic component capable of turning the circuit on or off, and ports 411B and 412B can be of any type. In this embodiment, the specific form of switch set 4115B and the types of ports 411B and 412B are not specifically limited. It is understood that the number of switches and ports can be increased or decreased according to specific testing needs, which will not be elaborated here.

[0136] The power supply interface of power supply device 200B connects to the first interface of cable 310B, and the second interface of cable 310B connects to port 411B. The charging interface of charging device 100B connects to the second interface of cable 320B, and the first interface of cable 320B connects to port 412B. The first terminal of each switch in switch set 4115B connects to port 411B, and the second terminal of each switch in switch set 4115B connects to port 412B. The control module connects to switch sets 4115A and 4115B respectively.

[0137] During charging compatibility testing, the control module can enable the test path between power supply device 200A, cable 310A, port 411A, switch set 4115A, port 412A, cable 320A, and charging device 100A by controlling the conduction of switch set 4115A; conversely, the control module can disable the test path between power supply device 200A, cable 310A, port 411A, switch set 4115A, port 412A, cable 320A, and charging device 100A by controlling the deactivation of switch set 4115A. The test path can be disconnected; the control module can make the test path between power supply device 200B, cable 310B, port 411B, switch set 4115B, port 412B, cable 320B and charging device 100B conductive by controlling the conduction of switch set 4115B; the control module can make the test path between power supply device 200B, cable 310B, port 411B, switch set 4115B, port 412B, cable 320B and charging device 100B disconnected by controlling the deactivation of switch set 4115B.

[0138] Understandably, if it is necessary to switch between numerous power supply devices, charging devices, and cables during the charging compatibility test, the aforementioned methods can be used... Figure 1D , Figure 1E The test equipment shown was used for the test, which will not be described in detail here.

[0139] Thus, each time different power supply equipment, charging equipment, cables connecting the power supply equipment and the testing device, or cables connecting the charging equipment and the testing device are replaced, the control module can control the switching set in the test board 420B to turn on or off as needed, thereby realizing charging compatibility testing of various different power supply equipment, charging equipment, and cables. In this embodiment, the number of power supply equipment, charging equipment, cables, and switching sets is not specifically limited.

[0140] In the above testing method, a testing device equipped with a control module and various switch sets can be used to repeatedly connect and disconnect the test paths between the power supply equipment and the charging equipment. This simplifies and automates the charging compatibility testing process, resulting in better testing performance. Furthermore, compared to robotic arms or other mechanical equipment, the testing device is less expensive and occupies less space. Using this device for charging compatibility testing does not increase the wear and tear on the charging interface of the charging equipment, the power supply interface of the power supply equipment, or the charging cable, leading to better overall stability in the charging compatibility test.

[0141] It is understandable that in some embodiments, after the power supply device and the charging device are connected to the test device via cables, the cables connecting the power supply device and the test device, and the cables connecting the charging device and the test device, are all connected in series to the test path. The charging device may not be able to distinguish the signal source received from the two cables, or there may be electrical signal conflict when both cables are connected to the test path simultaneously. Therefore, the charging device may not be able to distinguish the type and current-carrying capacity of the two cables, leading to errors in the charging compatibility test process. Furthermore, the test path between the power supply device and the charging device includes the test device and two cables, each with its own impedance. This may cause the impedance of the test path to be too high, triggering the internal safety mechanism of the charging device, preventing the charging device from reaching maximum charging power. Consequently, the maximum charging power of the power supply device and the charging device combined cannot be obtained during the charging compatibility test, affecting the effectiveness of the charging compatibility test.

[0142] Therefore, in some embodiments, a cable connecting the power supply equipment and the testing device, such as cable 310A, or a cable connecting the charging equipment and the testing device, such as cable 320A, can be provided as a straight-through cable. It can be understood that a straight-through cable, also known as a direct-connect cable, is a simple cable that directly connects two devices. Straight-through cables do not perform any signal conversion or enhancement, and do not contain complex electronic components, such as control chips or pull-up / pull-down resistors. This ensures direct signal transmission without deleting, adding, or modifying signals, and without introducing any coupling between two or more signals.

[0143] Understandably, an ideal straight-through cable will not have any additional impact on the charging device's identification of the cable type. However, it is important to note that before the test begins, the maximum current of the entire test process needs to be estimated to ensure that the current carrying capacity of the straight-through cable is not lower than the maximum test current.

[0144] It is understood that the power supply ports of the power supply equipment, such as the port of the power supply equipment 200A connecting cable 310A, mainly include two types: Type-C and Type-A. Similarly, the charging ports of the charging equipment, such as the port of the charging equipment 100A connecting cable 320A, are mainly Type-C. Since Type-C ports have more signal lines than Type-A ports, and Type-C ports are compatible with the functions of Type-A ports, in some embodiments, the cable connecting the charging equipment and the testing device can be a straight-through cable. In this case, the cable to be tested is the cable connecting the power supply equipment and the testing device, such as cable 310A. For example, if cable 320A is known to be a straight-through cable, then charging device 100A can determine the type of cable 310A based on signals received from cable 310A, such as signals uploaded by the control chip of cable 310A, or the resistance value at the pull-up resistor of the CC line of cable 310A. For example, it can determine that the type of cable 310A is a Type-C to Type-C cable, meaning that both interfaces of cable 310A are Type-C interfaces, and the current carrying capacity of cable 310A is 5A. It is understood that the method by which charging device 100A identifies cables other than straight-through cables can be adjusted based on specific needs. In this embodiment, the method for identification by charging device 100A is not specifically limited.

[0145] In some embodiments, the impedance of the cable introduced into the test path can be reduced in several ways. For example, the impedance of the cable 320A (straight-through cable) can be reduced by increasing the number of VBUS and GND wires in the cable 320A (straight-through cable), increasing the wire diameter of the VBUS and GND wires, or shortening the length of the second cable 340. This reduces the impedance of the cable 320A (straight-through cable) and prevents the safety mechanism inside the charging device 100A from being triggered due to excessive impedance in the test path between the power supply device 200A and the charging device 100A. This would prevent the charging device 100A from reaching maximum charging power, thus affecting the charging compatibility test results. In this embodiment, the method for reducing the impedance of the cable introduced into the test path is not specifically limited.

[0146] The method described above, which uses straight-through cables to connect the power supply equipment and the testing device, or the charging equipment and the testing device, helps the charging device more accurately identify the type and current-carrying capacity of the cables connecting them, thus improving the accuracy and efficiency of charging compatibility testing. Furthermore, by reducing the impedance of the straight-through cables, the method further approximates the actual charging scenarios of users, enhancing the effectiveness of charging compatibility testing.

[0147] It's understandable that during charging compatibility testing, if the cable connecting the charging device and the test setup is a straight-through cable, and the same set of power supply and charging equipment is used with different cables under test, it's necessary to constantly change the cables, resulting in low testing efficiency. Furthermore, even if the impedance of the straight-through cable is reduced, if the impedance of the cable under test is significantly higher than that of the test setup, the impedance of the entire test path may exceed the safe range of the charging device's maximum allowed charging power.

[0148] Therefore, another testing method according to an embodiment of this application is described below. Compared to the testing device 410, the testing device also includes a set of cables and switches that can be further expanded, such as... Figure 3A The cable 380A shown, the switch set 4313A and the switch set 4314A connected to the cable 380A, and as shown Figure 3B The diagram shows cable 380A, switch sets 4313A and 4314A connected to cable 380A, cable 380B, and switch sets 4313B and 4314B connected to cable 380B. It is understood that switch sets 4313A, 4314A, 4313B, and 4314B can be any electronic component capable of turning the circuit on or off. In this embodiment, the specific type of each switch set is not specifically limited. It is also understood that in some embodiments, the test device may not include cables, but only the ports connecting to the cables. For example, the test device 440 may not include cable 380A, but only the connection ports connecting to cable 380A. Cable 380A can be connected to the test device 440 through the connection ports. In this embodiment, there is no specific limitation on whether the test device includes only cables, only the ports connecting to the cables, or both cables and the ports connecting to the cables. It is understandable that the number of switch sets, cables, and ports can be increased or decreased according to specific testing needs, which will not be elaborated here.

[0149] like Figure 3AAs shown, the first terminal of each switch in switch set 4313A is connected to the first terminal of each switch in switch set 411A and switch set 4115A, respectively. The second terminal of each switch in switch set 4313A is connected to the first interface (e.g., Type-C interface) of cable 380A. The second interface (e.g., Type-C interface) of cable 380A is connected to the first terminal of each switch in switch set 4314A. The second terminal of each switch in switch set 4314A is connected to the second terminal of each switch in switch set 412A and switch set 4115A, respectively. A control module (not shown in the figure) is also connected to switch sets 4313A and 4314A. When the control module receives control signals (e.g., first test signal, second test signal, etc.) sent by a computer, it can control the on / off state of switch sets 4313A and 4314A to control the connection or disconnection of cable 380A to the test path. Furthermore, the cable 310A connecting the power supply device 200A and the test device 440, and / or the cable 320A connecting the charging device 100A and the test device 440, can be a straight-through cable. In some possible implementations, the impedance of the two straight-through cables can be reduced in various ways, in which case the cable under test can be cable 380A. During charging compatibility testing, control signals can be sent to the control module, such as by sending control signals (e.g., first test signal, second test signal, etc.) to the control module via a computer connected to the test device 440. This allows the control module to control the switching sets 4313A, 4314A, and 4115A to open or close, thereby opening or closing the path between port 411A and port 412A.

[0150] When switch sets 4313A and 4314A are turned on, and the VBUS switch in switch set 4115A is turned on while other switches are turned off, cable 380A is connected to the test path. A test path can be formed between power supply device 200A, cable 310A, port 411A, switch set 4313A, cable 380A, switch set 4314A, port 412A, cable 320A, and charging device 100A. Furthermore, the VBUS / GND wires between power supply device 200A, cable 310A, port 411A, switch set 4115A, port 412A, cable 320A, and charging device 100A carry direct current. In some possible implementations, the impedance of the original test path in the test device 440 can be reduced by shortening the wiring distance, widening the wiring in the test device 440, or setting up multi-layer wiring in the test device. This reduces the impedance of the test path between port 411A, switch set 4115A, and port 412A. In this way, the current on the VBUS conductor of the test path from the power supply device 200A to the charging device 100A can be mainly transmitted through the VBUS conductor of the test path including port 411A, switch set 4115A, and port 412A, rather than mainly through the VBUS conductor of the test path including cable 380A. This further reduces the impact of the impedance of cable 380A on the impedance of the test path, making the impedance of the entire test path closer to the impedance of the path in the user's actual charging scenario, thus improving the effectiveness of charging compatibility testing.

[0151] It is understandable that, compared to test apparatus 440, the test apparatus may include more switch sets, such as... Figure 1C The testing device 430 includes switch set 4211A and switch set 4212A. By controlling the switching on and off of switch set 4211A through the control module, the power supply device 200A can be continuously connected to or disconnected from the test path. By controlling the switching on and off of switch set 4212A through the control module, the charging device 100A can be continuously connected to or disconnected from the test path. Further details are omitted here.

[0152] It is understandable that in some possible implementations, cable 380A may also include multiple cables with the same and / or different interface types, each of which can be controlled to connect or disconnect from the test path via a different set of switches. For example... Figure 3B As shown, compared to test device 440, test device 470 also includes cable 380B, switch set 4313B, and switch set 4314B. It is understood that switch set 4313B and switch set 4314B can be any electronic component capable of turning the circuit on or off. In this embodiment, the specific type of switch set 4313B and switch set 4314B is not specifically limited.

[0153] The first end of cable 380B (e.g., a Type-A interface) connects to the second end of each switch in switch set 4313B. The first end of each switch in switch set 4313B connects to the first end of each switch in switch set 4115A, the first end of each switch in switch set 4313A, and port 411A, respectively. The second end of cable 380B (e.g., a Type-C interface) connects to the first end of each switch in switch set 4314B. The second end of each switch in switch set 4314B connects to the second end of each switch in switch set 4115A, the second end of each switch in switch set 4314A, and port 412A, respectively. The control module (not shown in the figure) is also connected to switch sets 4313B and 4314B, respectively. By sending control signals to the control module, such as through a computer communicatively connected to the test device 470 (e.g., a first test signal, a second test signal, etc.), the control module can control switch sets 4313B and 4314B to be turned on or off, thereby connecting or disconnecting cable 380B from the test path. It is understood that each test path, including different cables under test, can be controlled to be turned on or off via the control module and different switch sets; this will not be elaborated further here. It is also understood that in some embodiments, the test device may not include cables, but only the ports for connecting cables. For example, the test device 470 may not include cables 380A and 380B, but only the connection ports for cables 380A and 380B. Cable 380A can be connected to the test device 470 via the connection port, and cable 380B can be connected to the test device 470 via the connection port. In this application embodiment, there is no specific limitation on whether the test device includes only cables, only the ports for connecting cables, or both cables and the ports for connecting cables.

[0154] It is understandable that if there are many power supply devices, and / or charging devices, and / or cables under test, the testing setup can include more switch sets, such as... Figure 1D , 1EThe switch sets 4211A and 4211B shown can each be connected to a control module. The control module controls the on / off state of each switch set, thereby selecting different power supply devices, charging devices, and cables under test for charging compatibility testing. Further details are omitted here. In this embodiment, the following are not specifically limited: the interface type of the cable under test (e.g., cable 380A), the number of cables under test, the number of switch sets connected to the cables under test, the number of switch sets controlling the connection or disconnection of the power supply device to the test path (e.g., switch set 4211A), the number of switch sets controlling the connection or disconnection of the charging device to the test path (e.g., switch set 4212A), the number of power supply devices, and the number of charging devices. Furthermore, similar to switch set 4115A, any switch set in this embodiment can be any electronic component that can make the circuit on or off. The specific form of these switch sets is not specifically limited in this embodiment.

[0155] In this way, the testing equipment can be used to perform charging compatibility tests on multiple different power supply devices, cables, and multiple different charging devices, thus improving the efficiency of charging compatibility testing.

[0156] As an example, Table 1 shows Figure 1E The states of different switch sets in the testing device 460 and the conduction state of the test path in the testing device 460. Among them, "√" indicates that the corresponding switch is closed, "×" indicates that the corresponding switch is open, and "-" indicates that the corresponding switch can be either closed or open.

[0157] Table 1:

[0158]

[0159] In some possible implementations, both cable 310A and cable 320A can be configured as straight-through cables. Similarly, the impedance of cable 310A and cable 320A can be reduced in various ways, such as by increasing the number of VBUS and GND wires in cable 310A and cable 320A, increasing the wire diameter of VBUS and GND wires, or shortening the length of the first cable 310A and the second cable 320A. Figure 1E The cable to be tested is either cable 380A or cable 380B.

[0160] In some possible implementations, the impedance of test paths in test device 460, such as those including port 411A, switch set 4211A, switch set 4115A, switch set 4212A, and port 412A, can be reduced by shortening the trace distance of test device 460, widening the traces in test device 460, or setting multiple layers of traces in test device 460. Alternatively, the impedance of test paths including port 411B, switch set 4211B, switch set 4115A, switch set 421A, and port 412A can be reduced. Alternatively, the impedance of test paths including port 411A, switch set 4211A, switch set 4115A, switch set 4212B, and port 412B can be reduced. Thus, the current in the VBUS conductor of the test path from power supply device 200A to charging device 100A can be mainly transmitted through the VBUS conductor of the test path including port 411A, switch set 4211A, switch set 4115A, switch set 4212A, and port 412A; the current in the VBUS conductor of the test path from power supply device 200A to charging device 100B can be mainly transmitted through the VBUS conductor of the test path including port 411A, switch set 4211A, switch set 4115A, switch set 4212B, and port 412B; and the current in the VBUS conductor of the test path from power supply device 200B to charging device 100A can be mainly transmitted through the VBUS conductor of the test path including port 411B, The current transmitted through the VBUS conductors of the test path in switch sets 4211B, 4115A, 421A, and port 412A, from the power supply device 200B to the charging device 100B, can primarily be transmitted through the VBUS conductors of the test path including port 411B, switch sets 4211B, 4115A, 4212B, and port 412B, rather than primarily through the VBUS conductors of the test path including the cable under test, such as cable 380A. This further reduces the impact of the impedance of the cable under test on the impedance of the test path and avoids the impedance of the cable under test, such as cable 380A or cable 380B, being directly connected in series with the entire test path. Therefore, regardless of the type of cable under test connected, it will not have a significant impact on the impedance of the entire charging path.

[0161] It is understood that, in some embodiments, in order to make the charging compatibility test scenario more consistent with the user's real charging scenario, the interface type of the first port of the external cable connected to the test path should be consistent with the output port type of the power supply equipment currently connected to the test path.

[0162] For example, if the interface type of the power supply device currently connected to the test path is Type-A, then the first port type of the external cable currently connected to the test path should also be Type-A (such as the pin type of switch set 4313B); if the interface type of the power supply device currently connected to the test path is Type-C, then the first port type of the external cable currently connected to the test path should also be Type-C (such as the pin type of switch set 4313A).

[0163] As shown in Table 1, when the working mode of the test device 460 is the straight-through mode, neither cable 380A nor cable 380B is connected to the test path.

[0164] When the power supply equipment side port switches, such as the VBUS switch, D+ switch, D- switch, CC1 switch, CC2 switch, and GND switch in the 4211A switch set on the 200A side of the power supply equipment, are in the closed state, all the wires of the cable 310A are in the conductive state. For example, the VBUS, D+, D-, CC1, CC2, and GND wires of the cable 310A are all in the conductive state.

[0165] The control switches at the first port of the external cable, such as switch sets 4313A and 4313B, are both in the off state. The control switches at the second port of the external cable, such as switch sets 4314A and 4314B, are also in the off state.

[0166] When the direct-acting control switches, such as the VBUS, D+, D-, CC1, and CC2 switches in switch set 4115A, are in the closed state, all the wires connected to switch set 4115A in test device 460 are in the conductive state, such as the VBUS, D+, D-, CC1, CC2, and GND wires.

[0167] The port switches on the charging device side, such as the VBUS switch, D+ switch, D- switch, CC1 switch, CC2 switch, and GND switch in switch set 4212A, are in the closed state. That is, all the wires of cable 320A are in the conductive state. For example, the VBUS, D+, D-, CC1, CC2, and GND wires of cable 320A connected to switch set 4212A are all in the conductive state.

[0168] It is understood that in pass-through mode, a test cable simulation circuit can be added to the test device 460, such as adding a CC pull-up resistor, to simulate the type of the test cable and improve the charging compatibility test effect. It is also understood that in pass-through mode, cable 310A (pass-through cable) can be replaced with the test cable or the cable to be tested for cable type identification. In this embodiment, no specific limitation is made.

[0169] In some embodiments, the first interface of cable 310A is a Type-A interface, the second interface of cable 310A is a Type-C interface, and the second interface of cable 310A is connected to port 411A. As shown in Table 1, when the operating mode of test device 460 is switching mode (Type-A to Type-C), cable 380B is connected to the test path. The first interface of cable 380B is connected to the second end of switch set 4313B, and the first interface of cable 380B is a Type-A interface. The second interface of cable 380B is connected to the first end of switch set 4314B, and the second interface of cable 380B is a Type-C interface. On the power supply side, such as the VBUS switch, D+ switch, D- switch, and GND switch in switch set 4211A on the power supply device 200A side, the VBUS, D+, D-, and GND wires in cable 310A are all in a conductive state. The CC2 and CC2 wires can be conductive or disconnected. The first port control switch of the external cable, such as the VBUS switch, D+ switch, D- switch, and GND switch in switch set 4313B, is in the closed state, making the VBUS, D+, D-, and GND wires connected to switch set 4313B conductive. The second port control switch of the external cable, such as the VBUS switch, D+ switch, D- switch, GND switch, CC1 switch, and CC2 switch in switch set 4314B, is in the closed state, making the VBUS wire, D+ wire, D- wire, CC1 wire, CC2 wire, and GND wire connected to switch set 4314B conductive. A direct-through control switch, such as the switch set 4115A, where all switches except the VBUS switch are in the open state, meaning the VBUS switch is conductive. The port switches on the charging device side, such as the VBUS switch, D+ switch, D- switch, GND switch, CC1 switch, and CC2 switch in switch set 4212A, are in the closed state, so that the VBUS wire, D+ wire, D- wire, CC1 wire, CC2 wire, and GND wire connected to switch set 4212A are all in the conductive state.

[0170] In some embodiments, the first interface of cable 310A is a Type-C interface, the second interface of cable 310A is a Type-C interface, and the second interface of cable 310A is connected to port 411A.

[0171] As shown in Table 1, when the operating mode of the test device 460 is the switching mode (Type-C to Type-C), the cable 380A is connected to the test path. In some embodiments, the first interface of the cable 380A is connected to the second end of the switch set 4313A, and the first interface of the cable 380A is a Type-C interface. The second interface of the cable 380A is connected to the first end of the switch set 4314A, and the second interface of the cable 380A is a Type-C interface.

[0172] On the power supply equipment side port switch, such as the VBUS switch, D+ switch, D- switch, GND switch, CC1 switch, and CC2 switch in the power supply equipment 200A side switch set 4211A, the VBUS wire, D+ wire, D- wire, CC1 wire, CC2 wire, and GND wire connected to the switch set 4211A are all in the conducting state.

[0173] The external cable first port control switch, such as the VBUS switch, D+ switch, D- switch, GND switch, CC1 switch, and CC2 switch in switch set 4313A, is in the closed state, so that the VBUS wire, D+ wire, D- wire, CC1 wire, CC2 wire, and GND wire connected to switch set 4313A are all in the conductive state.

[0174] The external cable second port control switch, such as the VBUS switch, D+ switch, D- switch, GND switch, CC1 switch, and CC2 switch in switch set 4314A, is in the closed state, so that the VBUS, D+, D-, CC1, CC2 and GND wires connected to switch set 4314A are all in the conductive state.

[0175] Direct-through control switches, such as those in switch set 4115A except for the VBUS switch, are in the open state, meaning the VBUS switch is in the on state. Charging device side port switches, such as those in switch set 4212A including the VBUS switch, D+ switch, D- switch, GND switch, CC1 switch, and CC2 switch, are in the closed state, ensuring that the VBUS wire, D+ wire, D- wire, CC1 wire, CC2 wire, and GND wire connected to switch set 4212A are all in the on state.

[0176] It is understood that, in order to make the charging compatibility test scenario more consistent with the user's actual charging scenario, the interface type of the first port of the external cable connected to the test path should be consistent with the output port type of the power supply device currently connected to the test path. In other embodiments, there may be other matching schemes for the interface type of the first port of the external cable and the output port type of the power supply device connected to the test path; in this embodiment, no specific limitation is made.

[0177] It is understood that the number and interface type of switch sets 4313A, 4313B, 4314A, and 4314B can be adjusted according to actual testing needs. For example, if there are many types of cables to be tested, more switch sets 4313A, 4313B, 4314A, and 4314B can be set. The interface type is not limited to USB Type-A and USB Type-C; other types of interfaces are also applicable to the method of this application embodiment, such as Lightning and Thunderbolt interfaces. Furthermore, the type and number of ports in the testing device 460, as well as the type and number of cables to be tested, can be adjusted according to the needs of charging compatibility testing.

[0178] By selecting the power supply equipment, charging equipment, and cable under test for the test path through the control module and switch set on the test device 460, the automated switching of charging cables can be better realized. Furthermore, the various switch sets, cables, and ports in the test device 460 can better reduce the volume and number of interfaces occupied by charging compatibility testing, and also save on the cost of repeatedly purchasing power supply equipment, charging equipment, and charging cables.

[0179] Figure 3C A procedure for charging compatibility testing is shown.

[0180] like Figure 3C As shown, the charging compatibility testing process may include:

[0181] S310, powered on by default, all switch sets were in the off state during charging compatibility testing.

[0182] It is understandable that before the charging compatibility test begins, that is, before the test device 460 is powered on, all switches on the test device 460 are in the off state, for example... Figure 1E Switch sets 4211A, 4313A, 4314A, 4115A, and 4212A are in the off state.

[0183] S320, cable type initialization, select the cable to be tested through the "External Cable First Port Control Switch" and "External Cable Second Port Control Switch".

[0184] It is understandable that, referring to a similar control switch set scheme shown in Table 1, the corresponding switch set and the cable under test can be selected for conduction during charging compatibility testing.

[0185] S330, power supply equipment inserted, "power supply equipment side control switch" switch set turned on.

[0186] It is understandable that, referring to a similar control switch set scheme shown in Table 1, the corresponding power supply equipment can be selected for conduction during charging compatibility testing.

[0187] S340, charging device inserted, "charging device side control switch" switch set turned on.

[0188] It is understandable that, referring to a similar control switch set scheme shown in Table 1, the corresponding charging device can be selected to be turned on during the charging compatibility test.

[0189] It is understood that in some embodiments, the power supply device may be connected to the test path before the charging device, and in other embodiments, the charging device may be connected to the test path before the power supply device. The specific connection order of the power supply device and the charging device can be adjusted according to the test requirements, and no specific limitation is made in the embodiments of this application.

[0190] It is understood that the above example only represents a typical process of using this method. Without affecting the test results, the process order can be adjusted or refined according to the actual situation.

[0191] To further reduce the impedance of the test path, the following is based on Figure 4A , Figure 4B and Figure 1F Another testing method according to the embodiments of this application is introduced.

[0192] As an example, such as Figure 4A As shown, the cable 4000A (also referred to as the first cable) connecting the power supply device 200A and the test device 460 includes three interfaces, and the cable 4000A is a straight-through cable. In some embodiments, the first interface 401 is a Type-A interface (also referred to as the first interface of the first cable), and the second interface 402 (also referred to as the second interface of the first cable) and the third interface 403 (also referred to as the third interface of the first cable) are Type-C interfaces. Furthermore, the pins in the first interface 401 are Type-A interface pins, such as VBUS, D+, D-, and GND wire pins. The pins in the second interface 402 are Type-C interface pins, such as VBUS, D+, D-, and GND wire pins. In some embodiments, the pins in the third interface 403 may only include VBUS and GND wire pins.

[0193] It is understood that the VBUS / GND conductor path can include the path of the branch from the first interface 401 to the second interface 402, and the path of the branch from the first interface 401 to the third interface 403. When both branches are connected to the test path, a parallel connection is formed, which greatly reduces the impedance in the test path. For example, the impedance of the 4000A cable, the interface contact impedance of the 4000A cable, the partial wiring impedance in the test device 460, the switch collection impedance and soldering impedance in the test device 460 can all be reduced.

[0194] In some embodiments, the pins in the third interface 403 may also include VBUS, GND, D+, and D- wire pins. (See reference) Figure 1F The on / off state of each signal of the second interface 402 can be achieved by the corresponding switch set 4211A, and the on / off state of each signal of the third interface 403 can be achieved by the corresponding switch set 4211B.

[0195] During charging compatibility testing, both the D+ and D- wires in the second interface 402 are conductive, while neither the D+ nor D- wires in the third interface 403 are conductive. Alternatively, during charging compatibility testing, neither the D+ nor D- wires in the second interface 402 are conductive, while both the D+ and D- wires in the third interface 403 are conductive. Or, during charging compatibility testing, the D+ wire in the second interface 402 is conductive, the D- wire in the second interface 402 is not conductive, the D+ wire in the third interface 403 is not conductive, and the D- wire in the third interface 403 is conductive, etc.

[0196] In summary, the D+ wires in the second interface 402 and the third interface 403 can be simultaneously conductive, or only one wire can be conductive. Similarly, the D- wires in the second interface 402 and the third interface 403 can be simultaneously conductive, or only one wire can be conductive. It is understood that the conductivity of the D+ and D- wires in the second interface 402 and the third interface 403 can be adjusted based on specific scenarios and needs; however, this embodiment does not impose specific limitations.

[0197] As an example, such as Figure 4BAs shown, the cable 4200A (also referred to as the second cable) connecting the charging device 100A and the testing device 460 includes three interfaces, and the cable 4200A is a straight-through cable. In some embodiments, the first interface 421 (also referred to as the fourth interface of the second cable) is a Type-C interface, and the second interface 422 (also referred to as the fifth interface of the second cable) and the third interface 423 (also referred to as the sixth interface of the second cable) are Type-C interfaces. Furthermore, the pins in the second interface 421 are Type-C interface pins, including pins such as VBUS, D+, D-, GND, CC1, and CC2. The pins in the second interface 422 are Type-C interface pins, including pins such as VBUS, D+, D-, GND, CC1, and CC2. The pins in the third interface 423 only include the VBUS and GND pins.

[0198] It is understood that the VBUS / GND conductor path can include a branch path from the first interface 421 of cable 4200A to the second interface 422 of cable 4200A, and a branch path from the first interface 421 of cable 4200A to the third interface 423 of cable 4200A. When both branches are connected to the test path, a parallel connection is formed, which significantly reduces the impedance in the test path. For example, the impedance of cable 4200A, the interface contact impedance of cable 4200A, the partial wiring impedance in test device 460, the switch collection impedance and soldering impedance in test device 460 can all be reduced.

[0199] In some embodiments, the pins in the third interface 423 may also include VBUS, GND, CC1, CC2, D+, and D- wire pins. During charging compatibility testing, the control methods for the D+ and D- wires in the second interface 422 and the third interface 423 can refer to the continuity scenarios of the wires in each interface of the cable 4000A described above, and will not be repeated here.

[0200] refer to Figure 1F The on / off state of each signal of the second interface 422 of cable 4200A, such as CC1 and CC2, can be achieved by the corresponding switch set 4212A. The on / off state of each signal of the third interface 423 of cable 4200A, such as CC1 and CC2, can be achieved by the corresponding switch set 4212B.

[0201] During charging compatibility testing, both CC1 and CC2 wires in the second interface 422 are conductive, while neither CC1 nor CC2 wires in the third interface 423 are conductive. Alternatively, during charging compatibility testing, neither CC1 nor CC2 wires in the second interface 422 are conductive, while both CC1 and CC2 wires in the third interface 423 are conductive, and so on. This avoids short circuits caused by inconsistent insertion directions of the second and third interfaces 422 and 423. It is understood that the conductivity of CC1 and CC2 wires in the second and third interfaces 422 and 423 can be adjusted based on specific scenarios and needs to avoid short circuits in the test path and ensure the smooth implementation of charging compatibility testing. In this embodiment, the conductivity of CC1 and CC2 wires in the second and third interfaces 422 and 423 is not specifically limited.

[0202] It is understood that in some embodiments, the cable connecting the power supply device 200A and the testing device 460 may be divided into two or more branches, as shown in cable 4000A; while the cable connecting the charging device 100A and the testing device 460 may be, as shown in cable 320A, without more than one branch. Alternatively, the cable connecting the power supply device 200A and the testing device 460 may be, as shown in cable 310A, without more than one branch; while the cable connecting the charging device 100A and the testing device 460 may be, as shown in cable 4200A, divided into two or more branches. The number and form of branches of the cables connecting the power supply device 200A and the testing device 460, and the cables connecting the charging device 100A and the testing device 460, can be configured as needed, and no specific limitation is made in this embodiment.

[0203] As an example, such as Figure 1F As shown, the power supply device 200A is connected to the test device 460 via cable 4000A. The first interface 401 of cable 4000A is connected to the power supply port of the power supply device 200A, the second interface 402 of cable 4000A is connected to port 411A of the test device 460, and the third interface 403 of cable 4000A is connected to port 411B of the test device 460.

[0204] The charging device 100A is connected to the testing device 460 via cable 4200A. The first interface 421 of cable 4200A connects to the charging port of the charging device 100A, the second interface 422 connects to port 412A of the testing device 460, and the third interface 423 connects to port 412B of the testing device 460. This is understandable. Figure 1FThis is a circuit example. When the interface types of cable 4000A and cable 4200A are different, the interface types of each branch are different, and the pin types of each interface are different, the circuit diagram will also change accordingly, which will not be described in detail here.

[0205] It is understood that in some embodiments, cables 4000A and 4200A can be further divided into more branches. For example, one end of cable 4000A may include one interface, and the other end of cable 4000A may include three interfaces, four interfaces, or more interfaces, thereby further reducing the impedance of the test path. The number of branches of cable 4000A and cable 4200A does not need to be the same and can be selected as needed.

[0206] In this embodiment, the number of branches for cable 4000A and cable 4200A is not specifically limited. Furthermore, the impedance of the test path can be further reduced by changing the manner in which the VBUS / GND conductors in cable 4000A and cable 4200A are handled. In this embodiment, the method for reducing the impedance of the test path is not specifically limited.

[0207] As examples, Tables 2 and 3 show Figure 1F The states of different switch sets in the test device 460 and the conduction state of the cable to be tested in the test device 460.

[0208] The cable 4000A includes three interfaces: the first interface 401 is a Type-A interface that connects to the power supply device 200A, and the pins of the first interface 401 include VBUS, D+, D-, and GND wire pins; the second interface 402 is a Type-C interface that connects to port 411A, and the pins of the second interface 402 include VBUS, D+, D-, and GND wire pins; the third interface 403 is a Type-C interface that connects to port 411B, and the pins of the third interface 403 only include VBUS and GND wire pins.

[0209] Cable 4200A includes three interfaces: the first interface 421 is a Type-C interface, and the pins of the first interface 421 include VBUS, D+, D-, GND, CC1, and CC2 wire pins; the second interface 422 is a Type-C interface, connecting to port 412A, and the pins of the second interface 422 include VBUS, D+, D-, GND, CC1, and CC2 wire pins; the third interface 423 is a Type-C interface, connecting to port 412B, and the pins of the third interface 423 only include VBUS and GND wire pins.

[0210] In this diagram, “√” indicates that the corresponding switch is closed, “×” indicates that the corresponding switch is open, and “-” indicates that the corresponding switch can be either closed or open.

[0211] Table 2:

[0212]

[0213] Table 3:

[0214]

[0215] As shown in Tables 2 and 3, as an example, when the test device 460 is in straight-through mode, neither cable 380A nor cable 380B is connected to the test path.

[0216] The power supply equipment side port switches, such as the VBUS switch, D+ switch, D- switch, and GND switch in switch set 4211A, are in the closed state, while the CC1 switch and CC2 switch can be closed or open, so that the VBUS, D+, D-, and GND wires connected to switch set 4211A are all in the conductive state, and the CC1 and CC2 wires connected to switch set 4211A can be conductive or not.

[0217] In switch set 4211B, the VBUS switch and GND switch are in the closed state, while the D+ switch, D- switch, CC1 switch and CC2 switch can be closed or open, so that the VBUS and GND wires connected to switch set 4211B are in the conductive state, and the D+ wire, D- wire, CC1 wire and CC2 wire connected to switch set 4211B can be conductive or not conductive.

[0218] The control switches at the first port of the external cable, such as switch set 4313A and switch set 4313B, are both in the off state.

[0219] The external cable second port control switches, such as switch set 4314A and switch set 4314B, are all in the off state.

[0220] When a direct-acting control switch, such as switch set 4115A, is in the closed state, switches VBUS, D+, D-, CC1, and CC2 in switch set 4115A are also in the closed state. Therefore, all wires connected to switch set 4115A are in the conductive state, such as VBUS, D+, D-, CC1, CC2, and GND wires.

[0221] When the port switches on the charging device side, such as the charging device side switch set 4212A, are in a closed state, that is, when the VBUS switch, D+ switch, D- switch, CC1 switch, CC2 switch, and GND switch in the switch set 4212A are in a closed state, the VBUS, D+, D-, CC1, CC2, and GND wires connected to the switch set 4212A are all in a conductive state.

[0222] In switch set 4212B, some switches are in the closed state. For example, the VBUS switch and GND switch in switch set 4212B are in the closed state. The D+ switch and D- switch in switch set 4212B can be closed or open. The CC1 switch and CC2 switch in switch set 4212B are in the open state, so the VBUS and GND wires connected to switch set 4212B are in the conductive state. The D+ wire and D- wire connected to switch set 4212B can be conductive or not. The CC1 wire and CC2 wire connected to switch set 4211B are not conductive.

[0223] It is understood that in the pass-through mode, a cable simulation circuit can be added to the test device 460, such as adding a CC pull-up resistor, to simulate the cable type and improve the charging compatibility test effect. It is also understood that in the pass-through mode, the pass-through cable, such as cable 4000A (pass-through cable), can be replaced with the cable to be tested or the cable to be tested for cable type identification. In this embodiment of the application, no specific limitation is made.

[0224] As shown in Tables 2 and 3, as an example, when the operating mode of the test device 460 is the switching mode (Type-A to Type-C), the cable 380B is connected to the test path.

[0225] In some embodiments, the first interface of cable 380B is connected to the second end of switch set 4313B, and the first interface of cable 380B is a Type-A interface. The second interface of cable 380B is connected to the first end of switch set 4314B, and the second interface of cable 380B is a Type-C interface.

[0226] The power supply equipment side port switches, such as the VBUS switch, D+ switch, D- switch, and GND switch in switch set 4211A, are in the closed state. The CC1 switch and CC2 switch in switch set 4211A can be closed or open, so that the VBUS, D+, D-, and GND wires connected to switch set 4211A are all in the conductive state. The CC1 wire and CC2 wire connected to switch set 4211A can be conductive or not.

[0227] In switch set 4211B, the VBUS switch and GND switch are in the closed state. The D+ switch, D- switch, CC1 switch and CC2 switch in switch set 4211B can be closed or open, so that the VBUS and GND wires connected to switch set 4211B are in the conductive state, and the D+ wire, D- wire, CC1 wire and CC2 wire can be conductive or not conductive.

[0228] The external cable's first port control switch, such as the VBUS, D+, D-, and GND switches in switch set 4313B, is in the closed state, making the VBUS, D+, D-, and GND wires connected to switch set 4313B conductive. All switches in switch set 4313A are in the open state.

[0229] The external cable's second port control switch, such as the VBUS, D+, D-, GND, CC1, and CC2 switches in switch set 4314B, is in the closed state, making the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4314B conductive. All switches in switch set 4314A are in the open state.

[0230] A direct-acting control switch, such as switch set 4115A, where all switches except the VBUS switch are in the off state, meaning the VBUS switch is in the on state.

[0231] The port switches on the charging device side, such as the VBUS switch, D+ switch, D- switch, GND switch, CC1 switch, and CC2 switch in the charging device side switch set 4212A, are in the closed state, so that the VBUS, D+, D-, CC1, CC2, and GND wires connected to the switch set 4212A are all in the conductive state.

[0232] In switch set 4212B, the VBUS and GND switches are closed, the D+ and D- switches can be closed or open, and the CC1 and CC2 switches are open, so that the VBUS and GND wires connected to switch set 4212B are in a conductive state. The D+ and D- wires connected to switch set 4212B can be conductive or not conductive. The CC1 and CC2 wires connected to switch set 4212B are open.

[0233] It is understandable that, during charging compatibility testing, in order to make the test scenario more consistent with the user's actual charging scenario, the interface type of the first port of the external cable connected to the test path should be consistent with the output port type of the power supply equipment currently connected to the test path.

[0234] For example, if the interface type of the power supply device currently connected to the test path is Type-A, then the first port type of the external cable currently connected to the test path should also be Type-A (such as the pin type of switch set 4313B); if the interface type of the power supply device currently connected to the test path is Type-C, then the first port type of the external cable currently connected to the test path should also be Type-C (such as the pin type of switch set 4313B).

[0235] In some embodiments, the interface type of the first port of the external cable and the interface type of the power supply equipment connected to the test path can be adjusted according to actual needs. In this embodiment, no specific limitation is made on the interface type of the first port of the external cable and the interface type of the power supply equipment connected to the test path.

[0236] It is understood that Tables 2 and 3 are merely examples. The continuity of each wire in the second interface 402 of the first cable 4000A and each wire in the third interface 403 of the first cable 4000A, as well as the continuity of each wire in the second interface 422 of the second cable 4200A and each wire in the third interface 423 of the second cable 4200A, can be adjusted based on specific scenarios and needs. In this embodiment, no specific limitations are made, and they will not be elaborated here.

[0237] As an example, Tables 4 and 5 show Figure 1F The states of different switch sets in the test device 460 and the conduction state of the cable to be tested in the test device 460.

[0238] The cable 4000A includes three interfaces. The first interface 401 of the cable 4000A is a Type-C interface, and the pins of the first interface 401 of the cable 4000A may include VBUS, GND, D+, D-, CC1, and CC2 wire pins. The first interface 401 of the cable 4000A is connected to the power supply device 200A. The second interface 402 of the cable 4000A is a Type-C interface, and the pins of the second interface 402 of the cable 4000A may include VBUS, GND, D+, D-, CC1, and CC2 wire pins. The second interface 402 of the cable 4000A is connected to port 411A. The third interface 403 of the cable 4000A is a Type-C interface, and the third interface 403 of the cable 4000A is connected to port 411B. The pins of the third interface 403 of the cable 4000A may include VBUS, GND, D+, D-, CC1, and CC2 wire pins.

[0239] Cable 4200A includes three interfaces. The first interface 421 of cable 4200A is a Type-C interface, and the pins of the first interface 421 of cable 4200A may include VBUS, GND, D+, D-, CC1, and CC2 wire pins. The first interface 421 of cable 4200A connects to charging device 100A. The second interface 422 of cable 4200A is a Type-C interface, and the pins of the second interface 422 of cable 4200A include VBUS, GND, D+, D-, CC1, and CC2 wire pins. The second interface 422 of cable 4200A connects to port 412A. The third interface 423 of cable 4200A is a Type-C interface, which connects to port 412B. The pins of the third interface 413 of cable 4200A may include VBUS, D+, D-, CC1, CC2, and GND wire pins.

[0240] In this diagram, “√” indicates that the corresponding switch is closed, “×” indicates that the corresponding switch is open, and “-” indicates that the corresponding switch can be either closed or open.

[0241] Table 4:

[0242]

[0243] Table 5:

[0244]

[0245] As shown in Tables 4 and 5, as an example, when the test device 460 operates in pass-through mode, neither cable 380A nor cable 380B is connected to the test path. The power supply side port switches, such as the VBUS switch, D+ switch, D- switch, CC1 switch, CC2 switch, and GND switch in switch set 4211A, are in the closed state, ensuring that the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4211A are in a conductive state. In switch set 4211B, some switches are in the closed state. The VBUS and GND switches in switch set 4211B are closed. The D+ and D- switches in switch set 4211B can be closed or open. The CC1 and CC2 switches in switch set 4211B are open, making the VBUS and GND wires connected to switch set 4211B conductive. The CC1 and CC2 wires connected to switch set 4211B are not conductive. The D+ and D- wires connected to switch set 4211B can be conductive or not. Switches controlling the first port of the external cable, such as switch sets 4313A and 4313B, are all in the open state. Switches controlling the second port of the external cable, such as switch sets 4314A and 4314B, are all in the open state. For direct-acting control switches, such as VBUS, D+, D-, CC1, and CC2 switches in switch set 4115A, when all switches are closed, the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4115A are in a conductive state. Similarly, for charging device-side port switches, such as those in charging device-side switch set 4212A, when all switches are closed, the VBUS, D+, D-, CC1, CC2, and GND switches in switch set 4212A are also closed, ensuring that the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4212A are also conductive. In switch set 4212B, some switches are in the closed state. The VBUS and GND switches in switch set 4212B are in the closed state. The D+ and D- switches in switch set 4212B can be closed or open. The CC1 and CC2 switches in switch set 4212B are open, allowing the D+ and D- wires connected to switch set 4212B to be either conductive or non-conductive. The VBUS and GND wires connected to switch set 4212B are both conductive, while the CC1 and CC2 wires connected to switch set 4212B are not conductive. It is understood that in the pass-through mode, a cable simulation circuit can be added to the test device 460, such as adding a CC pull-up resistor, to simulate the cable type and improve the charging compatibility test effect. It is also understood that in the pass-through mode, the pass-through cable, such as cable 4000A (pass-through cable), can be replaced with a test or under-test cable for cable type identification; however, this embodiment does not impose specific limitations.

[0246] As shown in Tables 4 and 5, as an example, when the operating mode of the test device 460 is the switching mode (Type-C to Type-C), cable 380A is connected to the test path. In some embodiments, the first interface of cable 380A is connected to the second end of switch set 4313A, and the first interface of cable 380A is a Type-C interface. The second interface of cable 380A is connected to the first end of switch set 4314A, and the second interface of cable 380A is a Type-C interface. The power supply side port switches, such as each switch in switch set 4211A, can be in the closed state. The VBUS switch, D+ switch, D- switch, CC1 switch, CC2 switch, and GND switch in switch set 4211A are in the closed state, so that the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4211A are all in the conductive state. In switch set 4211B, some switches are in the closed state. The VBUS and GND switches in switch set 4211B are closed. The D+ and D- switches in switch set 4211B can be closed or open. The CC1 and CC2 switches in switch set 4211B are open, making the VBUS and GND wires connected to switch set 4211B conductive. The CC1 and CC2 wires connected to switch set 4211B are not conductive. The D+ and D- wires connected to switch set 4211B can be conductive or not. The external cable's first port control switch, for example, in switch set 4313A, the VBUS, D+, D-, CC1, CC2, and GND switches are in the closed state, making the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4313A conductive. External cable second port control switches, such as the VBUS, D+, D-, CC1, CC2, and GND switches in switch set 4314A, are in the closed state, ensuring that the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4314A are all conductive. Straight-through control switches, such as the switches in switch set 4115A other than the VBUS switch, are in the open state, meaning the VBUS switch is conductive. Charging device side port switches, such as the switches in charging device side switch set 4212A, are in the closed state, including the VBUS, D+, D-, CC1, CC2, and GND switches, ensuring that the VBUS, D+, D-, CC1, CC2, and GND wires connected to switch set 4212A are conductive.In switch set 4212B, some switches are in the closed state. The VBUS switch and GND switch in switch set 4212B are in the closed state. The D+ switch and D- switch in switch set 4212B can be closed or open. The CC1 switch and CC2 switch in switch set 4212B are open, so the D+ and D- wires connected to switch set 4212B can be conductive or non-conductive. The VBUS and GND wires connected to switch set 4212B are both conductive. The CC1 and CC2 wires connected to switch set 4212B are not conductive.

[0247] It is understood that Tables 4 and 5 are merely examples. The continuity of the D+, D-, CC1, and CC2 wires in the second interface 402 of the first cable 4000A and the D+, D-, CC1, and CC2 wires in the third interface 403 of the first cable 4000A, as well as the D+, D-, CC1, and CC2 wires in the second interface 422 of the second cable 4200A and the D+, D-, CC1, and CC2 wires in the third interface 423 of the second cable 4200A, can be adjusted based on specific scenarios and needs. In this embodiment, no specific limitations are imposed, and further details will not be provided here.

[0248] It is understandable that the number of switch sets and interface types can be adjusted according to actual testing needs. For example, if more cable branches are required, more ports and switch sets can be set up to connect different cable branches. The interface types are not limited to USB Type-A and USB Type-C; other types of interfaces are also applicable to the method of this application embodiment, such as Lightning interfaces and Thunderbolt interfaces. Furthermore, the type and number of switch sets in the test device 460, the type and number of cables connecting the power supply equipment and the test device, and the type and number of cables connecting the charging equipment and the test device can all be adjusted according to the needs of charging compatibility testing. By selecting different cables, power supply equipment, and charging equipment through the control module and switch sets on the test device 460, the automated switching of charging cables can be better realized. In addition, the various switch sets, cables, and ports in the test device 460 can better reduce the volume and number of interfaces occupied by charging compatibility testing, and also save the cost of repeatedly purchasing power supply equipment, charging equipment, and charging cables.

[0249] Figure 5A An integrated system architecture for charging compatibility testing is shown, wherein the integrated system may include a programmable power strip, a power supply equipment group, charging cable A, a testing device, a data acquisition device, an oscilloscope, charging cable C, an OTG cable, and the charging equipment group. Figure 5AAs shown, the power supply equipment is connected to the test device via charging cable A (also known as the first cable), and the charging equipment is connected to the test device via charging cable C (also known as the second cable). Mains power is supplied to the power supply equipment group via a programmable power strip. The test device also includes charging cable B (also known as the third cable, sixth cable, etc.).

[0250] The programmable power strip can be used to control the power supply device under test to power on while other power supply devices are powered off when multiple power supply devices are present. A power supply device group can include multiple different power supply devices, and a charging device group can include multiple different charging devices. OTG (on-the-go) devices can be used to assist in discharging mobile phones. Data acquisition devices can be various types of data acquisition units, used to collect various data on the test path during charging compatibility testing, such as voltage and current. A computer can be used to control the programmable power strip, data acquisition devices, testing equipment, and charging device group, such as controlling the opening and closing of switches on the programmable power strip and testing equipment, controlling data acquisition by the data acquisition devices, and controlling which charging device is used for charging compatibility testing.

[0251] The testing apparatus in this application embodiment (such as the aforementioned testing apparatuses) can be as follows: Figure 5B As shown, the device includes switch modules (such as the aforementioned switch sets), a power supply module, a control module, a communication module, power supply connection ports (including the aforementioned power supply ports), charging connection ports (including the aforementioned charging ports), and some wires or cables (such as the aforementioned cable 380A). The communication module is used for communication between the test device and external devices, such as a computer. The control module controls the opening and closing of the switch modules, the power supply module powers all modules in the test device, the power supply connection ports are used to connect to power supply equipment via cables, and the charging connection ports are used to connect to charging equipment via cables. It is understood that... Figure 5B The hardware and connection relationships shown are merely examples. In other scenarios, there may be more or fewer hardware and other connection relationships. For example, the test device may only include a control module, a switch module, a power supply connection port, and a charging connection port. No specific limitations are made in this embodiment.

[0252] It is understood that the various embodiments in this application can be adapted to... Figure 5A The integrated system structure shown is connected to begin charging compatibility testing. Figure 5A The various hardware components and connections shown are merely examples. In other scenarios, there may be more or fewer hardware components and other connections. This application does not impose specific limitations on these embodiments.

[0253] It is understood that during charging compatibility testing, it is necessary to sample the power of the test path in real time. This can be achieved by adding a sampling resistor to the VBUS wire of the test path and connecting a separate lead from the sampling resistor to a data acquisition device. This allows the data acquisition device to collect the voltage, current, and power of the test path in real time, thereby monitoring whether the voltage changes on the VBUS wire during the charging compatibility test meet expectations. It is understood that the resistance value of the sampling resistor can be selected based on the current range on the VBUS wire and the voltage sampling range of the data acquisition device. The sampling resistor can be placed on the charging device side, the power supply device side, or other suitable locations. The key is to ensure that at least one resistor in the test path can be used to collect the current of the test path during data acquisition. In this embodiment, the resistance value and placement of the sampling resistor are not specifically limited.

[0254] When there are more than one VBUS and GND wire path connected to the same charging device on the charging device side. Figure 6A and Figure 6B Two different sampling circuit diagrams are shown. Compared to the aforementioned test device, Figure 6A and Figure 6B The test setup includes a sampling resistor. For example, Figure 6A Two resistors are installed on the 100A side of the charging device. The first terminal of resistor R1 is connected to the second terminal of the VBUS switch in switch set 4115A, switch set 4314A, and switch set 4314B, respectively. The second terminal of resistor R1 is connected to the first terminal of the VBUS switch in switch set 4212A. The first terminal of resistor R2 is connected to the second terminal of the VBUS switch in switch set 4115A, switch set 4314A, and switch set 4314B, respectively. The second terminal of resistor R2 is connected to the first terminal of the VBUS switch in switch set 4212B. Both resistors R1 and R2 have separate leads to... Figure 5A The data acquisition device shown can collect the voltage, current and power of the two parallel paths of resistors R1 and R2 in real time, and sum the currents of the two parallel paths to obtain the 100A current entering the charging device.

[0255] It is understood that the resistance values ​​of resistors R1 and R2 can be selected based on the current range on the VBUS conductor and the voltage sampling range of the data acquisition equipment. Resistors R1 and R2 can be placed on the 100A side of the charging device, the 200A side of the power supply device, or other suitable locations. In this embodiment, no specific limitations are made regarding the resistance values ​​and placement of resistors R1 and R2.

[0256] Understandable. Figure 6A The method shown, which involves setting a sampling resistor on each of the parallel paths, offers good flexibility in the hardware connection of the test path. Figure 6A The second interface 422 and the third interface 423 of the 4200A cable on the charging device side can be arbitrarily selected. When calculating the 100A current entering the charging device, it is only necessary to sum the currents of the parallel paths. However, current measurement errors caused by sampling resistor value errors, data acquisition device sampling errors, etc., may have an accumulating effect in this method. At the same time, due to the impedance difference between the two paths, the line voltages sampled at the two sampling resistor positions will also differ. The line voltage can be calculated by averaging or other methods. If it is desired to obtain the accurate voltage of the power supply device output port or the charging device input port, real-time voltage compensation can be performed based on the real-time line current and the pre-measured impedance from the sampling resistor to the power supply device or charging device port. For obtaining more accurate port voltages, please refer to the following text. Figure 7 The solution.

[0257] Figure 6B A resistor is provided on the charging device 100A side. The first end of the resistor R1 is connected to the second end of the VBUS switch in switch set 4115A, the second end of the VBUS switch in switch set 4314A, and the second end of the VBUS switch in switch set 4314B. The second end of the resistor R1 is connected to the first end of the VBUS switch in switch set 4212A and the first end of the VBUS switch in switch set 4212B.

[0258] Understandable. Figure 6B In the sampling method shown, the VBUS wires between switch set 4115A and switch set 4212A, and between switch set 4115A and switch set 4212B, share a single sampling resistor R1. Relative to Figure 6A Sampling method, Figure 6B The sampling method shown has poor hardware connection flexibility, but it offers better current sampling accuracy due to reduced error accumulation. Understandably, this approach can also be used for test paths with multiple VBUS paths. Figure 6B As shown, a single sampling resistor is shared among multiple VBUS wires. This application does not impose specific limitations on the setting method and number of sampling resistors.

[0259] Understandable. Figure 6A and Figure 6BThese are just two examples of setting sampling resistors when there is more than one VBUS wire path input to the charging device. For other types of test devices, including various cables, power supply devices, and charging devices, there can be other corresponding ways to set the sampling resistors. For example, if the VBUS wire in the cable connecting the charging device and the test device is divided into three or more branches, or if the VBUS wire in the cable connecting the power supply device and the test device is divided into three or more branches, a sampling resistor can be set at a corresponding position on each VBUS wire branch, or only one sampling resistor can be set on all VBUS wire branches. In this application, the method of setting the sampling resistor is not specifically limited.

[0260] The above sampling scheme can accurately control the charging compatibility test process by sampling the voltage and current of the test path in real time, so that the charging compatibility test can be carried out smoothly and the charging effect is good.

[0261] It is understandable that the voltage measurement value of the above sampling scheme can only represent the voltage at the sampling point. Due to the inherent resistance of each line in the test path, voltage attenuation will occur, and the voltage at the sampling point is related to the placement of the resistor. Therefore, it is impossible to accurately measure the voltage at the charger output port and the voltage at the mobile phone input port.

[0262] When measuring the output voltage / power of a power supply device or the input voltage / power of a charging device, it is often desirable to accurately obtain the voltage at the output port of the power supply device and the input port of the charging device. One feasible solution to obtain accurate port voltage is to directly connect the sampling points of a data acquisition device or multimeter to the output port of the power supply device and the input port of the charging device. However, the ports of the power supply device and the charging device do not have exposed sampling points that can be directly connected. Therefore, this solution is not the optimal option.

[0263] Therefore, it can be based on Figure 6A and Figure 6B The test scheme shown can accurately measure port voltage by adding voltage sampling points to the test device and controlling the port switch. It also allows the connection points of data acquisition equipment or multimeters to be transferred to the test device, which is more conducive to automated test integration.

[0264] For example, Figure 7 A schematic diagram of a sampling circuit is shown. Compared to test apparatus 490, test apparatus 500 also includes various sampling interfaces and / or programmable adjustable resistors. Figure 7As shown, the voltage and / or current of each port can be collected through various sampling points, including sampling points 11, 12, 13, and 14. By adding sampling resistors and voltage and current sampling points to the VBUS path, the voltage and current during the charging process can be monitored. For example, sampling point 11 is used to monitor the voltage of port 411A, sampling point 12 is used to monitor the voltage of port 411B, sampling point 13 is used to monitor the voltage of port 412A, sampling point 14 is used to monitor the voltage of port 412B, and sampling points 13 and 15 are used to monitor the current input to the charging device 100A. For example, the current input to the charging device 100A can be calculated from the voltage and resistance values ​​collected by sampling points 13 and 15. The voltage sampling points are connected to data acquisition equipment or testing equipment such as multimeters via separate wiring.

[0265] Specifically, the first end of the first sampling interface is connected to the VBUS pin of the first power supply port and the first end of the VBUS switch of the second switch group, respectively. The first end of the second sampling interface is connected to the first end of the GND switch of the second switch group and the GND pin of the first power supply port, respectively. The second ends of the first and second sampling interfaces are respectively used to connect to the voltage detection device. The first end of the third sampling interface is connected to the first end of the VBUS switch of the sixth switch group and the VBUS pin of the second power supply port, respectively. The first end of the fourth sampling interface is connected to the GND pin of the second power supply port and the first end of the GND switch of the sixth switch group, respectively. The second ends of the third and fourth sampling interfaces are respectively used to connect to the voltage detection device. The first end of the fifth sampling interface is connected to the first end of the first resistor in the resistor unit and the first end of the VBUS switch of the first switch group. The second terminal of the switch and the second terminal of the first resistor in the resistor unit are respectively connected to: the first terminal of the seventh sampling interface, the first terminal of the third switch centralized VBUS switch, the first terminal of the seventh switch centralized VBUS switch, the first terminal of the sixth sampling interface is connected to the first terminal of the third switch centralized GND switch, the second terminal of the fifth sampling interface and the second terminal of the sixth sampling interface are respectively used to connect to the voltage detection device, the third terminal of the sixth sampling interface and the second terminal of the seventh sampling interface are respectively used to connect to the voltage detection device; the first terminal of the eighth sampling interface is respectively connected to the second terminal of the seventh switch centralized VBUS switch and the VBUS pin of the second charging port, the first terminal of the ninth sampling interface is respectively connected to the second terminal of the seventh switch centralized GND switch and the GND pin of the second charging port, and the second terminal of the eighth sampling interface and the second terminal of the ninth sampling interface are respectively used to connect to the voltage detection device. It can be understood that the second end of the first sampling interface and the second end of the second sampling interface are also referred to as the two endpoints of sampling point 11, the second end of the third sampling interface and the second end of the fourth sampling interface are also referred to as the two endpoints of sampling point 12, the second end of the fifth sampling interface and the second end of the sixth sampling interface are also referred to as the two endpoints of sampling point 13, the second end of the eighth sampling interface and the second end of the ninth sampling interface are also referred to as the two endpoints of sampling point 14, and the second end of the seventh sampling interface and the third end of the sixth sampling interface are also referred to as the two endpoints of sampling point 15.

[0266] In some embodiments, the control module (not shown in the figure) can control the on / off state of each switch in the first switching unit based on the received fifth test signal, so that the path between the first branch cable of the first cable and the first power supply port, and the path between the first charging port and the first branch cable of the second cable are connected; the control module can control the on / off state of each switch in the first switching unit based on the received sixth test signal, so that the path between the first branch cable of the first cable and the first power supply port, and the path between the first charging port and the first branch cable of the second cable are disconnected; the control module can control the on / off state of each switch in the first switching unit based on the received seventh test signal, so that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are connected; the control module can control the on / off state of each switch in the first switching unit based on the received eighth test signal, so that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are disconnected.

[0267] It is understood that the fifth test signal can be any signal used to indicate the continuity between the first branch cable of the first cable and the first power supply port, and the continuity between the first charging port and the first branch cable of the second cable, such as closing switch set 4211A and switch set 4212A. The sixth test signal can be any signal used to indicate the disconnection of the continuity between the first branch cable of the first cable and the first power supply port, and the continuity between the first charging port and the first branch cable of the second cable, such as disconnecting switch set 4211A and switch set 4212A. The seventh test signal can be any signal used to indicate the continuity between the second branch cable of the first cable and the second power supply port, and the continuity between the second charging port and the second branch cable of the second cable, such as closing switch set 4211B and switch set 4212B. The eighth test signal can be any signal used to indicate the disconnection of the continuity between the second branch cable of the first cable and the second power supply port, and the continuity between the second charging port and the second branch cable of the second cable, such as disconnecting switch set 4211B and switch set 4212B. No specific limitations are made in this embodiment.

[0268] Operating Mode 1: If the switch combination of ports 411A and 412A is closed, for example, switch set 4211A and switch set 4212A are closed, and the switch combination of ports 411B and 412B is closed, for example, switch set 4211B and switch set 4212B are closed, then charging current flows through all four ports: ports 411A, 411B, 412A, and 412B. The voltage sampled at sampling point 11 is the voltage of port 411A, the voltage sampled at sampling point 12 is the voltage of port 411B, the voltage sampled at sampling point 13 is the voltage of port 412A, and the voltage sampled at sampling point 14 is the voltage of port 412B.

[0269] Operating Mode 2: If the switch combination of ports 411A and 412A is closed (e.g., switch set 4211A and switch set 4212A are closed), and the switch combination of ports 411B and 412B is open (e.g., switch set 4211B and switch set 4212B are open), forming a Kelvin connection, the voltage of port 411B sampled at sampling point 12 is the output voltage of power supply device 200A, and the voltage of port 412B sampled at sampling point 14 is the input voltage of charging device 100A. The voltages sampled at these two sampling points can be used to measure the voltage of the power supply port of power supply device 200A and the accurate voltage of the charging port of charging device 100A. The voltage of port 411B sampled at sampling point 12 is the voltage at the point where the two branches of cable 4000A separate. Since sampling point 12 is close to the power supply device port, the voltage of port 411B sampled at sampling point 12 can be regarded as the voltage of the power supply device port. The voltage at port 412B sampled at sampling point 14 is the voltage at the point where the two branches of cable 4200A separate. Since sampling point 14 is close to the charging device port, the voltage at port 412B sampled at sampling point 14 can be considered as the voltage of the charging device port. The current input to charging device 100A sampled at sampling points 13 and 15, along with the voltage at the power supply port of power supply device 200A and the voltage at the charging port of charging device 100A, can be used to calculate the impedance of the test path.

[0270] It's important to note that when using the above method to form a Kelvin connection, if it's a two-branch cable, only one path can carry power current. If the actual test current exceeds the current-carrying capacity of a single cable, it may cause problems such as cable overheating or even burnout. A feasible solution is to select the number of cable paths based on the current-carrying requirements, and then add an additional path for port voltage sampling. For example, if a single cable has a current-carrying capacity of 5A, and the actual maximum test current is 8A, a three-path cable can be used: two paths for transmitting power current and one path for port sampling.

[0271] In some embodiments, it may also be as follows Figure 7As shown, programmable resistors R3 and R4 are added to the VBUS / GND wire path in port 412A. When the adjustable resistors are needed, the parallel switch of programmable resistors R3 and R4 can be disconnected, so that programmable resistors R3 and R4 are connected in series to the VBUS / GND wire path. By adjusting the resistance values ​​of programmable resistors R3 and R4, the impedance of the entire test path can be dynamically adjusted to simulate charging compatibility tests of cables with different impedances, and to test whether the charging process of the charging device meets expectations under the corresponding impedance.

[0272] It is understandable that an adjustable resistor can be connected in series in the VBUS / GND wire path of port 412A, or an adjustable resistor can be connected in series in either the VBUS wire path or the GND wire path. Alternatively, a low-impedance switch can be connected in series with a fixed-value resistor in the VBUS / GND wire path of port 412A, and the fixed-value resistor can be selected to be connected in the path by closing and opening the low-impedance switch.

[0273] It is understood that the various test devices in the embodiments of this application can simulate the scenario of plugging and unplugging the power supply device and the charging device by controlling the switch set on the power supply device side and the switch set on the charging device side. The control timing for simulating the plugging and unplugging of the power supply device and the charging device can be as follows: Figure 8 As shown. Assume state 1 represents a closed switch and state 0 represents an open switch. When simulating insertion / removal actions, the VBUS and GND wire paths can be controlled to conduct first, followed by a delay operation, such as setting a preset delay time t1, before the signal paths, such as the D+ wire path, D- wire path, CC1 wire path, and CC2 wire path, are then activated. By adjusting the preset delay time t1, different speeds of insertion / removal actions can be simulated. Furthermore, each signal path can be controlled independently, with its own preset delay time set, making the simulated insertion / removal actions more precise. In some possible implementations, a fixed preset delay time can be set, or a preset delay time can be set based on a specified time, increasing the interval between the conduction of each wire, or setting a range for the preset delay time. In this embodiment, no specific limitations are made.

[0274] It is understood that the structure of the electronic device illustrated in the embodiments of this application does not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0275] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0276] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0277] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored thereon on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine-readable (e.g., computer-readable) form, including but not limited to floppy disks, optical disks, optical discs, magneto-optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic cards or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in the form of electrical, optical, acoustic, or other forms of propagated signals. Therefore, machine-readable media includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine-readable, for example, computer-readable form.

[0278] In some embodiments, this application also provides a computer program product comprising: computer program code that, when run on a computer, causes the computer to perform the methods described above.

[0279] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.

[0280] It should be noted that all units / modules mentioned in the device embodiments of this application are logical units / modules. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important factor; the combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in this application. Furthermore, to highlight the innovative aspects of this application, the above-described device embodiments of this application have not introduced units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that the above-described device embodiments do not contain other units / modules.

[0281] Although the invention has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made therein without departing from the scope of the invention.

Claims

1. A testing apparatus, the testing apparatus comprising: Power supply port module, charging port module, control module, and switch module; The control module is connected to the switch module, and the control module is used to control the closing and opening of each switch in the switch module; and The power supply port module includes a first power supply port, the charging port module includes a first charging port, and the switch module includes a first switch unit, wherein the first power supply port, the first switch unit, and the first charging port are connected in sequence. The first power supply port is used to connect to the first cable, wherein the first cable is used to connect the first power supply port and the power supply port of the first power supply device; The first charging port is used to connect to the second cable, wherein the second cable is used to connect the first charging port and the charging port of the first charging device.

2. The testing apparatus according to claim 1, characterized in that, The first switching unit includes a first set of switches, and When all switches in the first switch set are in the closed state, a path is formed between the first power supply port, the first switch set, and the first charging port; and When all switches in the first switch set are in the off state, an open circuit is formed between the first power supply port, the first switch set, and the first charging port.

3. The testing apparatus according to claim 1, characterized in that, The first end of the first power supply port is connected to the second interface of the first cable, and the second end of the first power supply port is connected to the first end of the first switch set. The first end of the first charging port is connected to the second end of the first switch set, and the second end of the first charging port is connected to the first interface of the second cable. The third terminal of the first switch set is connected to the control module.

4. The testing apparatus according to claim 1, characterized in that, The first cable and / or the second cable are cables to be tested, and include at least one of the following: The first cable and the second cable are the cables to be tested; The first cable is a straight-through cable, and the second cable is the cable to be tested; The first cable is the cable to be tested, and the second cable is a straight-through cable.

5. The testing apparatus according to claim 4, characterized in that, It also includes the first cable and the second cable, and The first interface of the first cable is used to connect to the power supply port of the power supply equipment; The second interface of the second cable is used to connect to the charging port of the charging device.

6. The testing apparatus according to claim 1, characterized in that, The first cable and the second cable are not the cables under test, and both are straight-through cables. The switch sets included in each switch unit of the switch module include VBUS switches.

7. The testing apparatus according to claim 6, characterized in that, It also includes a third cable, which is the cable to be tested, and The first switching unit includes a first switch set, a second switch set, and a third switch set, and The switching module further includes a second switching unit, which includes a fourth switch set and a fifth switch set; in The first terminal of each switch in the first switch set is connected to the second terminal of each switch in the second switch set and the first terminal of each switch in the fourth switch set, the second terminal of each switch in the first switch set is connected to the first terminal of each switch in the third switch set and the second terminal of each switch in the fifth switch set, and the third terminal of each switch in the first switch set is connected to the control module. The first end of each switch in the second switch set is connected to the first power supply port, the second end of each switch in the second switch set is also connected to the first end of each switch in the fourth switch set, and the third end of each switch in the second switch set is connected to the control module. The first end of each switch in the third switch set is also connected to the second end of each switch in the fifth switch set, the second end of each switch in the third switch set is connected to the first charging port, and the third end of each switch in the third switch set is connected to the control module. The second end of each switch in the fourth switch set is connected to the first interface of the third cable, and the third end of each switch in the fourth switch set is connected to the control module. The first end of each switch in the fifth switch set is connected to the second interface of the third cable, and the third end of each switch in the fifth switch set is connected to the control module.

8. The testing apparatus according to claim 7, characterized in that, When the VBUS switches in the first switch set, all switches in the second switch set, all switches in the third switch set, all switches in the fourth switch set, and all switches in the fifth switch set are all in the closed state, a path is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port, and... A path is formed between the VBUS in the first power supply port, the VBUS of the second switch cluster, the VBUS of the first switch cluster, the VBUS of the third switch cluster, and the VBUS in the first charging port; When at least one of the switches in the first switch set, the second switch set, and the third switch set is in an open state, an open circuit is formed between the first power supply port, the second switch set, the first switch set, the third switch set, and the first charging port. When at least one of the switches in the second switch set, the fourth switch set, the fifth switch set, and the third switch set is in an open state, an open circuit is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port.

9. The testing apparatus according to claim 8, characterized in that, It also includes a second power supply port and a second charging port, and the first switch unit further includes a sixth switch set and a seventh switch set; and, The second power supply port is used to connect to the fourth cable, wherein the fourth cable is used to connect the second power supply port and the power supply port of the second power supply device; The second charging port is used to connect to the fifth cable, wherein the fifth cable is used to connect the second charging port and the charging port of the second charging device; The first end of each switch in the sixth switch set is connected to the second power supply port, the second end of each switch in the sixth switch set is connected to the first end of each switch in the first switch set, the second end of each switch in the second switch set, and the first end of each switch in the fourth switch set, and the third end of each switch in the sixth switch set is connected to the control module. The second end of each switch in the seventh switch set is connected to the second charging port, and the first end of each switch in the seventh switch set is respectively connected to the second end of each switch in the first switch set, the first end of each switch in the third switch set, and the second end of each switch in the fifth switch set. The third end of each switch in the seventh switch set is connected to the control module.

10. The testing apparatus according to claim 9, characterized in that, Corresponding to the VBUS switches in the first switch set, the switches in the sixth switch set, the switches in the seventh switch set, the switches in the fourth switch set, and the switches in the fifth switch set all being in a closed state, a path is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port. Furthermore, a path is formed between the VBUS in the second power supply port, the VBUS in the sixth switch set, the VBUS in the first switch set, the VBUS in the seventh switch set, and the VBUS in the second charging port. When at least one of the switches in the first switch set, the sixth switch set, and the seventh switch set is in an open state, an open circuit is formed between the second power supply port, the sixth switch set, the first switch set, the seventh switch set, and the second charging port. When at least one of the switches in the sixth switch set, the fourth switch set, the fifth switch set, and the seventh switch set is in an open state, an open circuit is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port.

11. The testing apparatus according to claim 9, characterized in that, It also includes a sixth cable, which is the cable to be tested, and The second switching unit also includes an eighth switch set and a ninth switch set, and The first end of each switch in the eighth switch set is connected to the first end of each switch in the fourth switch set, the second end of each switch in the eighth switch set is connected to the first interface of the sixth cable, and the third end of each switch in the eighth switch set is connected to the control module. The first end of each switch in the ninth switch set is connected to the second interface of the sixth cable, the second end of each switch in the ninth switch set is connected to the second end of each switch in the fifth switch set, and the third end of each switch in the ninth switch set is connected to the control module.

12. The testing apparatus according to claim 11, characterized in that, Corresponding to the VBUS switches in the first switch set, each switch in the second switch set, each switch in the third switch set, each switch in the eighth switch set, and each switch in the ninth switch set, all are in a closed state. A path is formed between the first power supply port, the second switch set, the eighth switch set, the sixth cable, the ninth switch set, the third switch set, and the first charging port. Furthermore, a path is formed between the VBUS in the first power supply port, the VBUS in the second switch set, the VBUS in the first switch set, the VBUS in the third switch set, and the VBUS in the first charging port. When at least one of the switches in the second switch set, the eighth switch set, the ninth switch set, and the third switch set is in an open state, an open circuit is formed between the first power supply port, the second switch set, the eighth switch set, the sixth cable, the ninth switch set, the third switch set, and the first charging port.

13. The testing apparatus according to claim 11, characterized in that, The types of the first interface of the third cable, the second interface of the third cable, the first interface of the sixth cable, and the second interface of the sixth cable include: Type-A interface or Type-C interface, and If the type of the first interface of the third cable is the same as the type of the first interface of the sixth cable, and the type of the second interface of the third cable is different from the type of the second interface of the sixth cable, then... When the type of the second interface of the third cable is the same as the type of the second interface of the sixth cable, the type of the first interface of the third cable is different from the type of the first interface of the sixth cable.

14. The testing apparatus according to claim 11, characterized in that, The first cable includes a first interface, a second interface and a third interface. The first branch cable of the first cable is located between the first interface and the second interface of the first cable, and the second branch cable is located between the first interface and the third interface of the first cable. The second cable includes a fourth interface, a fifth interface, and a sixth interface. The section between the fourth interface and the fifth interface of the second cable is the first branch cable of the second cable, and the section between the fourth interface and the sixth interface of the second cable is the second branch cable of the second cable. Furthermore, both the first and second cables are straight-through cables; in The first interface of the first cable is connected to the power supply port of the first power supply device, the second interface of the first cable is connected to the first power supply port, and the third interface of the first cable is connected to the second power supply port. The fourth interface of the second cable is connected to the charging port of the first charging device, the fifth interface of the second cable is connected to the first charging port, and the sixth interface of the second cable is connected to the second charging port.

15. The testing apparatus according to claim 14, characterized in that, The second interface of the first cable includes VBUS, D+, D-, and GND pins; the third interface of the first cable includes VBUS and GND pins; the fifth interface of the second cable includes VBUS, D+, D-, CC1, CC2, and GND pins; and the sixth interface of the second cable includes VBUS and GND pins. When all switches in the second switch group are in the closed state, the VBUS switch and GND switch in the sixth switch group are in the closed state, and the first power supply equipment and the test device are connected. When all switches in the third switch set are in the closed state, the VBUS switch and GND switch in the seventh switch set are in the closed state, and the first charging device and the test device are connected. When each switch in the second switch set and each switch in the sixth switch set are in the off state, the first power supply equipment and the test device are disconnected. When all switches in the third switch set and the seventh switch set are in the off state, the first charging device and the testing device are disconnected.

16. The testing apparatus according to claim 15, characterized in that, It also includes a first sampling interface, a second sampling interface, a third sampling interface, a fourth sampling interface, a fifth sampling interface, a sixth sampling interface, a seventh sampling interface, an eighth sampling interface, a ninth sampling interface, and a resistor unit. Furthermore, the first power supply port, the second power supply port, the first charging port, and the second charging port each include a VBUS pin and a GND pin. in The first end of the first sampling interface is connected to the VBUS pin of the first power supply port and the first end of the VBUS switch of the second switch group respectively. The first end of the second sampling interface is connected to the first end of the GND switch of the second switch group and the GND pin of the first power supply port respectively. The second end of the first sampling interface and the second end of the second sampling interface are respectively used to connect to the voltage detection device. The first end of the third sampling interface is connected to the first end of the sixth centralized VBUS switch and the VBUS pin of the second power supply port, respectively. The first end of the fourth sampling interface is connected to the GND pin of the second power supply port and the first end of the sixth centralized GND switch, respectively. The second end of the third sampling interface and the second end of the fourth sampling interface are respectively used to connect to the voltage detection device. The first end of the fifth sampling interface is connected to the first end of the first resistor in the resistor unit and the second end of the first VBUS switch in the switch unit. The second end of the first resistor in the resistor unit is connected to the first end of the seventh sampling interface, the first end of the third VBUS switch, and the first end of the seventh VBUS switch. The first end of the sixth sampling interface is connected to the first end of the third GND switch. The second end of the fifth sampling interface and the second end of the sixth sampling interface are respectively used to connect to the voltage detection device. The third end of the sixth sampling interface and the second end of the seventh sampling interface are respectively used to connect to the voltage detection device. The first end of the eighth sampling interface is connected to the second end of the seventh centralized VBUS switch and the VBUS pin of the second charging port, respectively. The first end of the ninth sampling interface is connected to the second end of the seventh centralized GND switch and the GND pin of the second charging port, respectively. The second end of the eighth sampling interface and the second end of the ninth sampling interface are respectively used to connect to the voltage detection device.

17. A testing method applied to a testing apparatus, characterized in that, The testing device includes a power supply port module, a charging port module, a control module, and a switch module. The control module is connected to the switch module. The power supply port module includes a first power supply port, the charging port module includes a first charging port, and the switch module includes a first switch unit. The first power supply port, the first switch unit, and the first charging port are connected in sequence. The method includes: The control module receives a first test signal, wherein the first test signal is used to indicate that the path between the first power supply device connected to the first power supply port and the first charging device connected to the first charging port is open. In response to the first test signal, the control module controls the on / off state of each switch in the first switching unit so that the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, and the first charging port, is connected. The control module receives a second test signal, wherein the second test signal is used to indicate that the path between the first power supply device connected to the first power supply port and the first charging device connected to the first charging port is disconnected; In response to the second test signal, the control module controls the on / off state of each switch in the first switching unit, so as to disconnect the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, and the first charging port.

18. The method of claim 17, wherein the first switching unit comprises a first set of switches, and The control module controls the on / off state of each switch in the first switching unit to enable the connection between the first power supply device and the first charging device, including the first power supply port, the first switching unit, and the first charging port, including: Control each switch in the first switch set to be in the closed state, so that a path is formed between the first power supply port, the first switch set, and the first charging port; and The control module controls the on / off state of each switch in the first switching unit to disconnect the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, and the first charging port, including: Control each switch in the first switch set to be in the off state, so that an open circuit is formed between the first power supply port, the first switch set, and the first charging port.

19. The method according to claim 17, wherein the first power supply port is used to connect the first cable, wherein, The first cable is used to connect the first power supply port and the power supply port of the first power supply device; The first charging port is used to connect to the second cable, wherein the second cable is used to connect the first charging port and the charging port of the first charging device.

20. The method according to claim 19, characterized in that, The first cable and the second cable are not the cables under test, and both are straight-through cables. The switch sets included in each switch unit of the switch module include VBUS switches.

21. The method according to claim 20, characterized in that, The testing device also includes a third cable, which is the cable to be tested. The first switching unit includes a first switch set, a second switch set, and a third switch set, and The switching module further includes a second switching unit, which includes a fourth switch set and a fifth switch set; in The first terminal of each switch in the first switch set is connected to the second terminal of each switch in the second switch set and the first terminal of each switch in the fourth switch set, the second terminal of each switch in the first switch set is connected to the first terminal of each switch in the third switch set and the second terminal of each switch in the fifth switch set, and the third terminal of each switch in the first switch set is connected to the control module. The first end of each switch in the second switch set is connected to the first power supply port, the second end of each switch in the second switch set is also connected to the first end of each switch in the fourth switch set, and the third end of each switch in the second switch set is connected to the control module. The first end of each switch in the third switch set is also connected to the second end of each switch in the fifth switch set, the second end of each switch in the third switch set is connected to the first charging port, and the third end of each switch in the third switch set is connected to the control module. The second end of each switch in the fourth switch set is connected to the first interface of the third cable, and the third end of each switch in the fourth switch set is connected to the control module. The first end of each switch in the fifth switch set is connected to the second interface of the third cable, and the third end of each switch in the fifth switch set is connected to the control module.

22. The method according to claim 21, characterized in that, The method further includes: In response to the first test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so that the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, is connected. In response to the second test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so as to disconnect the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port.

23. The method according to claim 22, characterized in that, The control module controls the on / off states of each switch in the first switching unit and each switch in the second switching unit, so that the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, is connected, including: The VBUS switches in the first switch set, each switch in the second switch set, each switch in the third switch set, each switch in the fourth switch set, and each switch in the fifth switch set are controlled to be in a closed state, so that a path is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port, and... This allows a path to be formed between the VBUS in the first power supply port, the VBUS in the second switch cluster, the VBUS in the first switch cluster, the VBUS in the third switch cluster, and the VBUS in the first charging port. The control module controls the on / off states of each switch in the first switching unit and each switch in the second switching unit, so as to disconnect the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, including: Control at least one of the switches in the first switch set, the second switch set, and the third switch set to be in an open state, so that an open circuit is formed between the first power supply port, the second switch set, the first switch set, the third switch set, and the first charging port; Control at least one of the switches in the second switch set, the fourth switch set, the fifth switch set, and the third switch set to be in an open state, so that an open circuit is formed between the first power supply port, the second switch set, the fourth switch set, the third cable, the fifth switch set, the third switch set, and the first charging port.

24. The method according to claim 23, characterized in that, The testing device also includes a second power supply port and a second charging port, and the first switching unit further includes a sixth switch set and a seventh switch set; and, The second power supply port is used to connect to the fourth cable, wherein the fourth cable is used to connect the second power supply port and the power supply port of the second power supply device; The second charging port is used to connect to the fifth cable, wherein the fifth cable is used to connect the second charging port and the charging port of the second charging device; The first end of each switch in the sixth switch set is connected to the second power supply port, the second end of each switch in the sixth switch set is connected to the first end of each switch in the first switch set, the second end of each switch in the second switch set, and the first end of each switch in the fourth switch set, and the third end of each switch in the sixth switch set is connected to the control module. The second end of each switch in the seventh switch set is connected to the second charging port, and the first end of each switch in the seventh switch set is respectively connected to the second end of each switch in the first switch set, the first end of each switch in the third switch set, and the second end of each switch in the fifth switch set. The third end of each switch in the seventh switch set is connected to the control module.

25. The method according to claim 24, characterized in that, Also includes: The control module receives a third test signal, wherein the third test signal is used to indicate that the path between the second power supply device connected to the second power supply port and the second charging device connected to the second charging port is open; In response to the third test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so that the path between the second power supply device and the second charging device, including the second power supply port, the first switching unit, the second switching unit, and the second charging port, is connected; The control module receives a fourth test signal, wherein the fourth test signal is used to indicate the disconnection of the path between the second power supply device connected to the second power supply port and the second charging device connected to the second charging port; In response to the fourth test signal, the control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so as to disconnect the path between the second power supply device and the second charging device, including the second power supply port, the first switching unit, the second switching unit, and the second charging port.

26. The method according to claim 25, characterized in that, The control module controls the on / off states of each switch in the first switching unit and each switch in the second switching unit, so that the path between the second power supply device and the second charging device, including the second power supply port, the first switching unit, the second switching unit, and the second charging port, is connected, including: Controlling the VBUS switches in the first switch set, the switches in the sixth switch set, the switches in the seventh switch set, the switches in the fourth switch set, and the switches in the fifth switch set to be in a closed state, so that a path is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port, and so that a path is formed between the VBUS in the second power supply port, the VBUS in the sixth switch set, the VBUS in the first switch set, the VBUS in the seventh switch set, and the VBUS in the second charging port; The control module controls the on / off states of each switch in the first switching unit and each switch in the second switching unit, so as to disconnect the path between the second power supply device and the second charging device, including the second power supply port, the first switching unit, the second switching unit, and the second charging port, including: Control at least one of the switches in the first switch set, the sixth switch set, and the seventh switch set to be in an open state, so that an open circuit is formed between the second power supply port, the sixth switch set, the first switch set, the seventh switch set, and the second charging port; Control at least one of the switches in the sixth switch set, the fourth switch set, the fifth switch set, and the seventh switch set to be in an open state, so that an open circuit is formed between the second power supply port, the sixth switch set, the fourth switch set, the third cable, the fifth switch set, the seventh switch set, and the second charging port.

27. The method according to claim 26, characterized in that, The testing device also includes a sixth cable, which is the cable to be tested. The second switching unit also includes an eighth switch set and a ninth switch set, and The first end of each switch in the eighth switch set is connected to the first end of each switch in the fourth switch set, the second end of each switch in the eighth switch set is connected to the first interface of the sixth cable, and the third end of each switch in the eighth switch set is connected to the control module. The first end of each switch in the ninth switch set is connected to the second interface of the sixth cable, the second end of each switch in the ninth switch set is connected to the second end of each switch in the fifth switch set, and the third end of each switch in the ninth switch set is connected to the control module.

28. The method according to claim 27, characterized in that, The control module controls the on / off states of each switch in the first switching unit and each switch in the second switching unit, so that the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, is connected, including: Controlling the VBUS switches in the first switch set, the switches in the second switch set, the switches in the third switch set, the switches in the eighth switch set, and the switches in the ninth switch set to be in a closed state, so that a path is formed between the first power supply port, the second switch set, the eighth switch set, the sixth cable, the ninth switch set, the third switch set, and the first charging port, and so that a path is formed between the VBUS in the first power supply port, the VBUS in the second switch set, the VBUS in the first switch set, the VBUS in the third switch set, and the VBUS in the first charging port; The control module controls the on / off state of each switch in the first switching unit and each switch in the second switching unit, so as to disconnect the path between the first power supply device and the first charging device, including the first power supply port, the first switching unit, the second switching unit, and the first charging port, including: Control at least one of the switches in the second switch set, the eighth switch set, the ninth switch set, and the third switch set to be in an open state, so that an open circuit is formed between the first power supply port, the second switch set, the eighth switch set, the sixth cable, the ninth switch set, the third switch set, and the first charging port.

29. The method according to claim 28, characterized in that, The first cable includes a first interface, a second interface and a third interface. The first branch cable of the first cable is located between the first interface and the second interface of the first cable, and the second branch cable is located between the first interface and the third interface of the first cable. The second cable includes a fourth interface, a fifth interface, and a sixth interface. The section between the fourth interface and the fifth interface of the second cable is the first branch cable of the second cable, and the section between the fourth interface and the sixth interface of the second cable is the second branch cable of the second cable. Furthermore, both the first and second cables are straight-through cables; in The first interface of the first cable is connected to the power supply port of the first power supply device, the second interface of the first cable is connected to the first power supply port, and the third interface of the first cable is connected to the second power supply port. The fourth interface of the second cable is connected to the charging port of the first charging device, the fifth interface of the second cable is connected to the first charging port, and the sixth interface of the second cable is connected to the second charging port.

30. The method according to claim 29, characterized in that, The testing device further includes a first sampling interface, a second sampling interface, a third sampling interface, a fourth sampling interface, a fifth sampling interface, a sixth sampling interface, a seventh sampling interface, an eighth sampling interface, a ninth sampling interface, and a resistor unit. Furthermore, the first power supply port, the second power supply port, the first charging port, and the second charging port each include a VBUS pin and a GND pin. in The first end of the first sampling interface is connected to the VBUS pin of the first power supply port and the first end of the VBUS switch of the second switch group respectively. The first end of the second sampling interface is connected to the first end of the GND switch of the second switch group and the GND pin of the first power supply port respectively. The second end of the first sampling interface and the second end of the second sampling interface are respectively used to connect to the voltage detection device. The first end of the third sampling interface is connected to the first end of the sixth centralized VBUS switch and the VBUS pin of the second power supply port, respectively. The first end of the fourth sampling interface is connected to the GND pin of the second power supply port and the first end of the sixth centralized GND switch, respectively. The second end of the third sampling interface and the second end of the fourth sampling interface are respectively used to connect to the voltage detection device. The first end of the fifth sampling interface is connected to the first end of the first resistor in the resistor unit and the second end of the first VBUS switch in the switch unit. The second end of the first resistor in the resistor unit is connected to the first end of the seventh sampling interface, the first end of the third VBUS switch, and the first end of the seventh VBUS switch. The first end of the seventh sampling interface is also connected to the first end of the third VBUS switch and the first end of the seventh VBUS switch. The first end of the sixth sampling interface is connected to the first end of the third GND switch. The second end of the fifth sampling interface and the second end of the sixth sampling interface are respectively used to connect to the voltage detection device. The third end of the sixth sampling interface and the second end of the seventh sampling interface are respectively used to connect to the voltage detection device. The first end of the eighth sampling interface is connected to the second end of the seventh centralized VBUS switch and the VBUS pin of the second charging port, respectively. The first end of the ninth sampling interface is connected to the second end of the seventh centralized GND switch and the GND pin of the second charging port, respectively. The second end of the eighth sampling interface and the second end of the ninth sampling interface are respectively used to connect to the voltage detection device. The method further includes: The control module receives a fifth test signal, wherein the fifth test signal is used to indicate the path between the first branch cable of the first cable and the first power supply port, and the path between the first charging port and the first branch cable of the second cable. In response to the fifth test signal, the control module controls the on / off state of each switch in the first switch unit so that the path between the first branch cable of the first cable and the first power supply port, and the path between the first charging port and the first branch cable of the second cable are connected. The control module receives a sixth test signal, wherein the sixth test signal is used to indicate that the path between the first branch cable of the first cable and the first power supply port, and the path between the first charging port and the first branch cable of the second cable are disconnected. In response to the sixth test signal, the control module controls the on / off state of each switch in the first switching unit so that the path between the first branch cable of the first cable and the first power supply port, and the path between the first charging port and the first branch cable of the second cable are disconnected. The control module receives a seventh test signal, wherein the seventh test signal is used to indicate the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable; In response to the seventh test signal, the control module controls the on / off state of each switch in the first switching unit so that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are connected. The control module receives an eighth test signal, wherein the eighth test signal is used to indicate the disconnection of the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable; In response to the eighth test signal, the control module controls the on / off state of each switch in the first switching unit, so that the path between the second branch cable of the first cable and the second power supply port, and the path between the second charging port and the second branch cable of the second cable are disconnected.