Support Question of the Week: Setting up Beagle 5000 USB 2.0 Protocol Analyzer for Triggering on Bus States
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/match 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.
- Start the Data Center application and click "Device Settings".
- In the Beagle 5000 Capture Mode, select "USB 2.0 Only" (see Figure 1).
Figure 1: Configure USB 2.0 Capture
- In the Capture Buffer section, uncheck "Trigger Immediately" and check "Infinite Capture".
- Click "Additional Settings".
- Under USB 2.0 Matching, select "Complex" and check "Enabled" (see Figure 2).
Figure 2: Configure Event State
- In the State 1 dialog, select "New Match / Action" and then select "Event".
- 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).
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
- Start the Data Center application and click "Device Settings".
- In the Beagle 5000 Capture Mode, select" USB 2.0 Only"( see Figure 1).
- In the Capture Buffer section, uncheck" Trigger Immediately" and check "Infinite Capture".
- Click "Additional Settings".
- Under USB 2.0 Matching, select "Complex" and check "Enable" (see Figure 2).
- In the State 1 dialog, select "New Match / Action" and then select "Data Match".
- 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.
Figure 4: Configure Data Match
- Next, while still within state 1, select new match/action and then select "Timer" (see Figure 2 and Figure 5).
- 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.
Figure 5: Set Timer
- 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.