Author Topic: WTB: Highspeed USB 2.0 Protocol Analyzer  (Read 1768 times)

0 Members and 1 Guest are viewing this topic.

Offline parawizardTopic starter

  • Regular Contributor
  • *
  • Posts: 53
  • Country: ca
WTB: Highspeed USB 2.0 Protocol Analyzer
« on: January 11, 2025, 10:43:05 am »
Troubleshooting a side project and in need of a highspeed USB protocol analyzer. Looking for something cheaper and have my feelers out on eBay. If you have one for sale hit me up.

Thanks
 

Offline RoadRunner

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #1 on: January 11, 2025, 10:47:41 am »
I would not post any links to ebay or others sites but
There are many Clone of this USB protocol analyzers are on sale on various sites.
I would not buy a cone but may be you are interested enough to make your self. 

https://github.com/ataradov/usb-sniffer
 

Offline parawizardTopic starter

  • Regular Contributor
  • *
  • Posts: 53
  • Country: ca
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #2 on: January 11, 2025, 11:42:37 am »
Thanks for the suggestion! I did already buy a clone. It may make it to me in a few weeks. I may populate one myself. It would be nice to work with more fleshed out software for this issue. At least wireshark has good filtering.

I might grab a cheap Lecroy Mercury T2 used or a Ellisys USB Explorer 200.
 

Offline Kean

  • Supporter
  • ****
  • Posts: 2557
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #3 on: January 11, 2025, 12:09:42 pm »
I have a Chinese clone of ataradov's design, but also a GSG Cythion.  Admittedly, I've not used either yet...

You should be able to by a Cythion from Crowd Supply pretty quickly.
https://www.crowdsupply.com/great-scott-gadgets/cynthion
 

Offline RoadRunner

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #4 on: January 11, 2025, 02:11:28 pm »
I am using ataradov's design, it work pretty well. Total Cost is also reasonable.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11937
  • Country: us
    • Personal site
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #5 on: January 11, 2025, 03:57:37 pm »
Note that there are a number of vendors selling assembled boards of my design on AliExpress. I don't endorse any of them, but I did evaluate this one https://www.aliexpress.us/item/3256807265784243.html and out of all of them, I can recommend it. It uses correct speed grade FPGA (actually higher than needed) and the performance seems to be as good. The only thing it is missing is a trigger input. It is rarely needed, but still.
Alex
 
The following users thanked this post: edavid, Kean, msliva, gamalot, parawizard

Offline RoadRunner

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #6 on: January 11, 2025, 04:30:52 pm »
Thank you ataradov, I have assembled your Design as I had some fear of fake CYUSB chip on Chinese clone.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11937
  • Country: us
    • Personal site
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #7 on: January 11, 2025, 04:38:06 pm »
They are not fake clones, they are legit re-implementations because Cypress are idiots and discontinued the only good product in their whole portfolio instead of improving on it.

That CBM9002A performs just as well as the original device. It was used by random shops for fakes in the past, but there is no reason to even look for the original in China, since this re-implementation it is pretty well k known established now.
Alex
 

Offline zzattack

  • Regular Contributor
  • *
  • Posts: 136
  • Country: nl
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #8 on: January 11, 2025, 08:45:05 pm »
I'm very content with the 1480A by member John_ITEC.
 

Offline parawizardTopic starter

  • Regular Contributor
  • *
  • Posts: 53
  • Country: ca
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #9 on: January 12, 2025, 05:05:23 am »
I have a Chinese clone of ataradov's design, but also a GSG Cythion.  Admittedly, I've not used either yet...

You should be able to by a Cythion from Crowd Supply pretty quickly.
https://www.crowdsupply.com/great-scott-gadgets/cynthion

I looked at the Cythion but I wasn't sure yet if it's what I would want to order.

Note that there are a number of vendors selling assembled boards of my design on AliExpress. I don't endorse any of them, but I did evaluate this one https://www.aliexpress.us/item/3256807265784243.html and out of all of them, I can recommend it. It uses correct speed grade FPGA (actually higher than needed) and the performance seems to be as good. The only thing it is missing is a trigger input. It is rarely needed, but still.

This is the exact one that I ordered actually! Glad it is a good one. Thanks for making putting the design out there 8)

I'm very content with the 1480A by member John_ITEC.

I sent ITIC an email about their usb protocol analyzer but haven't received a response yet. I wish there were decoders and an external trigger. Software looks good though otherwise. I might try to snag up a used Lecroy as it has both decoders and an external trigger
 

Online voltsandjolts

  • Supporter
  • ****
  • Posts: 2600
  • Country: gb
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #10 on: January 12, 2025, 09:02:30 am »
I'm very content with the 1480A by member John_ITEC.

The ITIC software (being purpose built for USB analysis) looks much more friendly than wireshark. If John added support for Alex's open capture hardware he could make some sales of software alone.
« Last Edit: January 12, 2025, 09:04:20 am by voltsandjolts »
 

Online voltsandjolts

  • Supporter
  • ****
  • Posts: 2600
  • Country: gb
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #11 on: January 12, 2025, 09:14:14 am »
That CBM9002A performs just as well as the original device.

So this can be used in your design, without any firmware changes? It's drop-in compatible with CY7C68013A?
 

Offline Kean

  • Supporter
  • ****
  • Posts: 2557
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #12 on: January 12, 2025, 10:39:24 am »
FWIW, the one I bought has a Lattice LCMXO2-2000HC-4TG100I (industrial temp grade) and a Cypress CY7C68013A.
https://vi.aliexpress.com/item/1005002287272881.html

The PCB layout is slightly different to the one that Alex linked above.  It looks like they did that to make it a single sided assembly job.
I bought this one because it came with a metal enclosure (so a little bit more expensive), but I was slightly put off that they didn't give attribution to Alex.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11937
  • Country: us
    • Personal site
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #13 on: January 12, 2025, 03:56:55 pm »
So this can be used in your design, without any firmware changes? It's drop-in compatible with CY7C68013A?
Yes, it is a full drop-in replacement, no firmware or hardware changes necessary.
Alex
 
The following users thanked this post: voltsandjolts

Online mwb1100

  • Frequent Contributor
  • **
  • Posts: 629
  • Country: us
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #14 on: January 12, 2025, 05:53:20 pm »
FWIW, the one I bought has a Lattice LCMXO2-2000HC-4TG100I (industrial temp grade) and a Cypress CY7C68013A.
https://vi.aliexpress.com/item/1005002287272881.html

The PCB layout is slightly different to the one that Alex linked above.  It looks like they did that to make it a single sided assembly job.
I bought this one because it came with a metal enclosure (so a little bit more expensive), but I was slightly put off that they didn't give attribution to Alex.

It's possible those changes made it incompatible with ataradov's software/firmware.  This is a comment left by a buyer:

Quote
It was expected to be a copy of the ataradov project, but this turned out to be not the case. The Chinese made incompatible changes. The seller or froze and does not know what he is selling. Found any software failed. Minus money and killed time.

It would be interesting to know if you have a different experience.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11937
  • Country: us
    • Personal site
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #15 on: January 12, 2025, 06:22:32 pm »
It would be interesting to see what exactly is wrong. It may be some assembly issue. And I see a lot of user error with this project too.

I don't think it is outright incompatible, but slower speed grade FPGA and removing a lot of decoupling from the cypress IC may be contributing to the issue. I have no idea how much decoupling it really needs. I've seen logic analyzers running with just a couple caps.
Alex
 
The following users thanked this post: Kean

Offline Kean

  • Supporter
  • ****
  • Posts: 2557
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #16 on: January 12, 2025, 09:26:17 pm »
It would be interesting to know if you have a different experience.

Oh, thanks for pointing that out.  Of course it hides the one negative review by default... but there are still 4 positive reviews.
I will try to test it out later this week.  I am a bit behind on some projects right now.

I don't think it is outright incompatible, but slower speed grade FPGA and removing a lot of decoupling from the cypress IC may be contributing to the issue.

I haven't done a direct comparison against your BOM, but a rough count of capacitors doesn't show a significant reduction between the pics in those two listings.  Moving the caps to the top layer may not be ideal though.
And based on the photos the FPGAs in those listings they seem to be the same speed rating (4) on both boards, only in different temperature grades.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11937
  • Country: us
    • Personal site
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #17 on: January 12, 2025, 09:56:58 pm »
The one I linked has speed grade 6 both in the pictures and on the actual boards. At least for now. Given that it is an overkill, I assume they just put whatever they had in stock. But they also advertise that in the listing, so when advertisement goes away, I guess it would be a sign that they changed things.
Alex
 
The following users thanked this post: Kean

Offline Kean

  • Supporter
  • ****
  • Posts: 2557
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #18 on: January 12, 2025, 10:23:26 pm »
The one I linked has speed grade 6 both in the pictures and on the actual boards. At least for now. Given that it is an overkill, I assume they just put whatever they had in stock. But they also advertise that in the listing, so when advertisement goes away, I guess it would be a sign that they changed things.

I see now that it is 6 in the first photo (which I didn't check).  All the other photos on that listing have speed grade 4.

But I just noticed that note specifying that they are using speed grade 6, so I see why you pointed to that listing - and that I need to pay more attention  :-DD

Maybe I'll buy one of their PCBs and swap it into the enclosure I have, but I suspect that may require some milling of the case to avoid damage to some of the caps close to the edge.
I'll mention this to my brother as I think he also bought the same one.

Thanks!
 

Offline Kean

  • Supporter
  • ****
  • Posts: 2557
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #19 on: January 15, 2025, 07:07:03 am »
OK, I ran some tests today with the PCB that has the speed grade 4 FPGA.  I was not sure what to expect if it isn't working right.

I was able to use the --test command line option and get about 41-42MB/s.  I then did some captures with an FTDI serial interface (full speed), and as best I can tell it is losing data.  :--

I will put in an order for one of the PCBs with speed grade 6 part and do some comparisons when it arrives.

Thanks to mwb1100 & ataradov for the info.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11937
  • Country: us
    • Personal site
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #20 on: January 15, 2025, 07:28:33 am »
Can you share some logs? I don't expect it to subtly malfunction because of the FPGA speed grade. It would likely fail entirely. The design relies on the uninterrupted stream if one byte gets lost, the whole stream will de-synchronize. If you  consistently see any frames at all, then it is likely working and any loss would be due to different reasons. The frame loss may happen on the USB PHY side, but again, FPGA grade would not matter here.

The difference is not huge. The design is supposed to work at 60 MHz and in grade 4 FPGA it gets to 56 MHz or something like this. This is realistically within the margins especially at room temp.

And if speed test does not fail and runs for a long time, it means that FPGA-MCU interface is stable. The test uses pseudo-random sequence generated on the FPGA side and checked on the PC. It is not just a lot of dummy data, it is actually checked for correctness.

42 MB/s is a bit slow, but should not matter for FS. This is likely because of the internal motherboard hub. There must be a port with direct connection to the root hub that would get better speed.
« Last Edit: January 15, 2025, 07:33:11 am by ataradov »
Alex
 

Offline parawizardTopic starter

  • Regular Contributor
  • *
  • Posts: 53
  • Country: ca
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #21 on: January 15, 2025, 08:00:20 am »
What makes you think data is missing?

I ended up picking up an used Total Phase Beagle 480 as well. I haven't received either yet. The Beagle was less than half of new retail price and is still 20x+ more expensive ;)
 

Offline Kean

  • Supporter
  • ****
  • Posts: 2557
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #22 on: January 15, 2025, 09:14:47 am »
Can you share some logs?

I didn't save any captures unfortunately - they didn't seem too useful.  I need to head home now (it is getting late here), but will try again in the next day or two.

Quote
I don't expect it to subtly malfunction because of the FPGA speed grade. It would likely fail entirely. The design relies on the uninterrupted stream if one byte gets lost, the whole stream will de-synchronize. If you  consistently see any frames at all, then it is likely working and any loss would be due to different reasons. The frame loss may happen on the USB PHY side, but again, FPGA grade would not matter here.

OK that is good to know.  I wasn't sure if it would be slightly unstable at the packet level, or drop out completely.
I saw some weird output in Wireshark, but wasn't sure if it was expected or not just because of what I was doing.
e.g. if I set it to full speed and started a capture with no device plugged in I was getting a bunch of phy errors - but once plugged in I saw the negotiation and device descriptor queries.

What made me suspect partial data loss is that I typed "Hello" into putty and only data the data packets for "H", "l", and "o" characters.
Honestly I don't know USB packet structures very well, so I usually just make assumptions about what looks good or not.
I have an STM32 based GPS tracker project I want to get back to where USB never worked.  It has been a number of years, but I was pretty sure that was a MikroElectronica compiler/library issue.

Quote
And if speed test does not fail and runs for a long time, it means that FPGA-MCU interface is stable. The test uses pseudo-random sequence generated on the FPGA side and checked on the PC. It is not just a lot of dummy data, it is actually checked for correctness.

42 MB/s is a bit slow, but should not matter for FS. This is likely because of the internal motherboard hub. There must be a port with direct connection to the root hub that would get better speed.

I was wondering how well the test mode actually tested it.  I read the notes on github, but it didn't give a lot of detail and I didn't delve into the code.
I had it plugged into a USB3 hub on my desk that comes off my USB-C docking station when I tested it earlier.
While typing this I had it plugged into the USB port on the side of my laptop, and I was getting a pretty stable 46-48 MB/s for more than 15 minutes.

What makes you think data is missing?

As mentioned above, I was just capturing the packets to FTDI USB serial while I typed Hello and could not see all those characters in data packets.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11937
  • Country: us
    • Personal site
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #23 on: January 15, 2025, 02:33:18 pm »
e.g. if I set it to full speed and started a capture with no device plugged in I was getting a bunch of phy errors - but once plugged in I saw the negotiation and device descriptor queries.
This happens sometimes. PHY picks up random noise on the floating lines and interprets it as packets. I don't try to suppress it, I just show everything that PHY shows.

What made me suspect partial data loss is that I typed "Hello" into putty and only data the data packets for "H", "l", and "o" characters.
At full speed I would have expected it to capture everything, but I would need to see the logs to confirm.

I had it plugged into a USB3 hub on my desk that comes off my USB-C docking station when I tested it earlier.
In that case the speed drop is normal, hubs will do that.

Alex
 
The following users thanked this post: Kean

Offline parawizardTopic starter

  • Regular Contributor
  • *
  • Posts: 53
  • Country: ca
Re: WTB: Highspeed USB 2.0 Protocol Analyzer
« Reply #24 on: January 20, 2025, 01:58:28 am »
The peripheral I am working on is having difficulty connecting through the analyzer. Haven't checked out what is being reported to wireshark yet. I switched out to the best USB cables I have and it works half the time now. Note it likely has a large impedance mismatch. Didn't seem to work at all with the included cables. It's a high-speed device with a captive cable. Will reply again after I've looked at it more carefully
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf