I2C SPI USB CAN eSPI Cable Testing View All Videos Quick Start Guides Software Downloads App Notes White Papers User Manuals Knowledge Base Sales Support About Us
Products Blog Sales Support Contact Search
Support Question of the Week: Setting up Beagle 5000 USB 2.0 Protocol Analyzer for Triggering on Bus States
Rena

Q: I want to use the Beagle USB 5000 v2 SuperSpeed Protocol Analyzer for debugging with trigger functions for USB 2.0 bus states such as RESET and SUSPEND.  It would be helpful if you could show me how to do this.

A: Thanks for your question!  Before we get to the details of your trigger/matc­­h question, I’d like to let our readers know that the response applies to all Beagle USB 5000 v2 SuperSpeed Protocol Analyzers.  Let’s review two ways to accomplish your debug functions:

  • The Beagle 5000 can be set up to trigger on Chirp. In high-speed USB, RESET is followed by Chirp.
  • Configure two start of frame (SOF) states. In this case, trigger when there is more than 1 ms (full speed) or 125 us (high speed) between the SOFs. When the device has more than 1 ms (full speed) or 125 us (high speed) between the SOF, it enters the SUSPEND state

This is accomplished within our Data Center Software.

Method 1:  Setting up Beagle USB 5000 v2 SuperSpeed Analyzer to trigger on chirp after RESET

Connect your device and host so they are communicating, and then set this trigger. The next chirp will occur after a RESET,  which will start (trigger) your capture.

  1. Start the Data Center application and click "Device Settings".
  2. In the Beagle 5000 Capture Mode, select "USB 2.0 Only" (see Figure 1).

    Configure Beagle USB Protocol Analyzer for USB 2.0 only Figure 1: Configure USB 2.0 Capture
  3. In the Capture Buffer section, uncheck  "Trigger Immediately" and check "Infinite Capture".
  4. Click "Additional Settings".
  5. Under USB 2.0 Matching, select "Complex" and check "Enabled" (see Figure 2).

    Configure Beagle USB Protocol Analyzer for Event ] Figure 2: Configure Event State
  6. In the State 1 dialog, select  "New Match / Action" and then select  "Event".
  7. In the Event Configuration dialog, for External Event select "Chirp". Make sure the "capture trigger" box is checked and then click OK (see Figure 3).

    Configure Beagle USB Protocol Analyzer to Trigger on Chirp Figure 3: Configure Chirp

  • The next chirp will occur after a RESET, which will start your capture.
Method 2:  Beagle USB 5000 v2 SuperSpeed Analyzer for two SOF states

  1. Start the Data Center application and click "Device Settings".
  2. In the Beagle 5000 Capture Mode, select" USB 2.0 Only"( see Figure 1).
  3. In the Capture Buffer section, uncheck" Trigger Immediately" and check "Infinite Capture".
  4. Click "Additional Settings".
  5. Under USB 2.0 Matching, select "Complex" and check "Enable" (see  Figure 2).
  6. In the  State 1 dialog, select "New Match / Action" and then select "Data Match".
  7. Configure the following in the Match Configuration dialog:

    • For Pack Type, select "Packet".
    • For Packet Prefix, select "SETUP".
    • For the Packet ID, select "SOF".
    • For Match on, click "Any packet with this PID".
    • For Apply Action, select "on and after 1 (matches)"
    • Click OK.

      Configure Beagle USB Protocol Analyzer to Match Specified Packet Figure 4: Configure Data Match
  8. Next, while still within state 1, select new match/action and then select "Timer" (see Figure 2 and Figure 5).
  9. Select the appropriate delay, 1 ms (full speed) or 125 us (high speed), and click OK. This delay sets the timer for the SUSPEND state, which is related to the speed of the host analyzer.

    Set the Timer for Beagle USB 5000 Protocol Analyzer Figure 5: Set Timer
  10. Select the appropriate delay, 1 ms (full speed) or 125 us (high speed), and click OK. This delay sets the timer for the SUSPEND state, which is related to the speed of the host analyzer.

    • For full speed, SUSPEND occurs when there is more than 1 ms between State 1 and State 2.
    • For high speed, SUSPEND occurs when there is more than 125 us between State 1 and State 2.

To create state 2, repeat steps 1–10.

For more information about the Beagle USB 5000 USB 2.0 Protocol Analyzer, please see the following documents:

Beagle USB 5000 v2 SuperSpeed Protocol Analyzer

Beagle Protocol Analyzer Data Sheet

Data Center Software

You can also find convenient videos about setting advanced triggers for USB 2.0 and USB 3.0 here.

We hope this answers your question. If you have other questions about our Protocol Analyzers or other Total Phase products, feel free to email us at sales@totalphase.com or support@totalphase.com.