I2C SPI USB CAN eSPI Cable Testing View All Quick Start Guides User Manuals Software Downloads Knowledge Base Videos Case Studies App Notes White Papers Sales Support About Us
Products Blog Sales Support Contact Search
Monitoring Flash Drive Power Delivery Using USB Power Delivery Analyzer Sigrok and PulseView
Monitoring Flash Drive Power Delivery Using USB Power Delivery Analyzer, Sigrok and PulseView

Introduction

Monitoring USB Type C Laptop and USB Type C Flash Drive is a common use case for the USB Power Delivery Analyzer. This article focuses on how to monitor USB Power Delivery system with USB Power Delivery Analyzer, Sigrok and PulseView. Although the following describes the USB Power Delivery between SanDisk USB Type C Flash Drive and Google Chromebook Pixel (2015) with USB Type C receptacles, similar steps can be used for other devices. The goal of this article is to demonstrate how to monitor USB Power Delivery with Power Delivery Analyzer and Sigrok and then to view it with PulseView on Ubuntu Linux 14.04 LTS 64-bit laptop. 

Overview

In this article the analyzer is USB Power Delivery Analyzer TP350110, the analysis device is Ubuntu Linux 14.04 LTS 64-bit laptop, the target host device is Google Chromebook Pixel (2015) with USB Type C receptacles, and the target device is SanDisk 32GB Flash Drive for USB Type C devices SDDDC-032G-G46. The SW tools include Sigrok and PulseView.

USB Monitoring Guidelines

  1. Connect the System units as shown in Figures 10-12.
    1. Connect Chrome laptop power supply betwen Power Source and Chrome laptop type C receptacle.
    2. Connect Power Delivery analyzer analysis USB micro B receptacle to Linux laptop USB type A receptacle through micro B male to type A male cable.
    3. Connect Power Delivery analyzer target host USB type C plug to Chrome laptop USB type C receptacle.
    4. Connect Power Delivery analyzer target USB type C receptacle to Flash Drive USB type C plug.
  2. Launch Ubuntu Linux 14.04 64-bit system.
  3. Download the 4 packages below from the USB Power Delivery Analyzer project downloads, and install them in the order below using the Ubuntu Software Center tool by double-clicking the files in the Files Viewer.
    1. libsigrok1_20141111-1_amd64.deb
    2. libsigrokdecode1_20141111-1_amd64.deb
    3. sigrok-cli_20141111-1_amd64.deb
    4. pulseview_20141111-1_amd64.deb

    Figure 1: Download Tools Packages

    Figure 2: Install Tools Packages

  4. Download the 4 packages below from the Ubuntu website, and install them in the order below using the Ubuntu Software Center tool by double-clicking the files in the Files Viewer.
    1. libftdi1_0.20-1ubuntu1_amd64.deb
    2. libzip2_0.10.1-1.2_amd64.deb
    3. libboost-system1.55.0_1.55.0-1_amd64.deb
    4. libboost-filesystem1.55.0_1.55.0-1_amd64.deb
  5. Capture the USB trace using Power Delivery analyzer and sigrok.
    1. Open a terminal.
    2. Launch the sigrok program by typing in the command line: sudo sigrok-cli -d chromium-twinkie --continuous -o test.sr. test.sr is the name of the capture file you plan to record the trace in.

      Figure 3: Launch Sigrok

    3. If you are prompted for the sudo password, then enter it and the capture should begin. On the Power Delivery analyzer: capture mode is indicated by a blinking blue light.
    4. Unplug and plug Power Delivery analyzer from the Chrome laptop. You should see red/green light and then blinking blue light on the Power Delivery analyzer. On the Power Delivery analyzer: CC1 activity is indicated by a green light, CC2 activity is indicated by a red light, and capture mode is indicated by a blinking blue light.
    5. Unplug, rotate upside down, and plug Power Delivery analyzer from the Chrome laptop. You should see again red/green light and then blinking blue light on the Power Delivery analyzer.
    6. Press the Enter key to stop the capture.
  6. View the capture using PulseView
    1. Open a terminal
    2. Launch the PulseView program by typing in the command line: pulseview test.sr &.

      Figure 4: Launch PulseView

      Figure 5: PulseView Window

    3. Add the decoders for the BMC CC1 and CC2 encoded channels.
      1. Go to the top left bar of the window and click Decoders, Click Add, and Select pd_bmc.

        Figure 6: PulseView - Add Decoder

      2. Click on the new trace pd_bmc to open the trace dialog box.
      3. In the trace dialog box change the Name to pd_pmc_cc1.
      4. In the trace dialog box click on the cc (control channel) button and select CC1.
      5. In the trace dialog box click on the Stack Decoder button and select usb_pd_packet.

        Figure 7: PulseView - Configure Decoder

      6. Click on the PulseView window, and the decorder should begin to decode the selected channel.
      7. Repeate steps i-vi above for CC2 channel.
    4. Move the traces around for organizing the window.

      Figure 8: PulseView - Organize Window

    5. Click the Zoom In button in the top left bar of the Window to zoom in the trace.
    6. Use the scrool bar to move around in the trace.
    7. Add Cursors: Go to the top left bar of the window, click View and select Show Cursors

      Figure 9: PulseView - Add Cursors

    Figure 10: Power Delivery analyzer system

    Figure 11: Power Delivery analyzer and Flash Drive

    Figure 12: Power Supply

Notes

For additional information, take a look at the USB Power Delivery Analyzer Quick Start Guide and USB Power Delivery Analyzer project.