Capture USB Power Delivery (USB PD) traffic for analysis during application development - KBA232684
Capture and analysis of USB Power Delivery packets transmitted over Configuration Channels (CC) lines is a very useful method to debug firmware during application development phase in USB PD Controllers. PD logs provide great insight on the possible errors/issues in the firmware and help firmware developers debug applications regarding USB-PD effectively.
Figure 1. PD Analyzer usage
Infineon offers CY4500 EZ-PD Protocol Analyzer, a tool which allows users to capture, analyze, and debug USB Power Delivery communication. It non-intrusively probes and accurately captures protocol messages on CC lines. It provides real-time VBUS voltage and current measurements. PD traffic captured by CY4500 EZ-PD Protocol Analyzer is then transmitted to host PC via a USB interface. CY4500 EZ-PD Protocol Analyzer can be purchased from our official website or from authorized distributors.
Figure 2. Setup for using CY4500 EZ-PD Analyzer
EZ-PD Protocol Analyzer Utility is a free Java based host GUI application that is used to decode and display the captured PD packets. It can decode USB PD 2.0, USB PD 3.0, and USB4 packets. It is available for Windows, macOS and Linux operation systems.
CY4500 EZ-PD Protocol Analyzer must be connected to Type-C port between a PD Source and EZ-PD PMG1 Prototyping Kit as shown in Figure 2.
To capture PD packets using CY4500 EZ-PD Protocol Analyzer follow the below mentioned steps:
- Connect CY4500 Analyzer to the Type-C receptacle on the EZ-PD PMG1 Prototyping Kit.
- Connect the other end of the CY4500 Analyzer to a peer device.
- Connect CY4500 Analyzer to a host PC running EZ-PD Protocol Analyzer Utility using USB Micro-B connection.
- Once CY4500 Analyzer is detected by EZ-PD Protocol Analyzer Utility, click on “Start” option in Toolbar to start capturing PD traffic.
Figure 3 shows a typical PD contract displayed in EZ-PD Protocol Analyzer Utility.
Figure 3. EZ-PD Protocol Analyzer Utility showing PD packets captured on CC lines
Refer the following webpage for more information on CY4500 EZ-PD Protocol Analyzer and EZ-PD Protocol Analyzer Utility usage. https://www.cypress.com/documentation/development-kitsboards/cy4500-ez-pd-protocol-analyzer