Analyzing USB

a month ago by za_warudo_steve_freiheit to c/ece

How do people use an oscilloscope to analyze USB packets and such? I saw a video by Ben Eater and the way he did it was by exposing the necessary wires of a USB cable and probing those. Is this standard or are there types out there that have this functionally built-in as some accessory or something?

Edit: logic analyzers are pretty interesting

Shadow 6 points a month ago

FYI you can also just use wireshark

path: 0 25699089, hotness: undefined, score: 6, children: 3
za_warudo_steve_freiheit 2 points a month ago

Wireshark can do USB protocol analysis?????

path: 0 25699089 25703964, hotness: undefined, score: 2, children: 1
SteveTech 3 points a month ago

Depends on how low level you need. If you're just looking at the data being sent, then Wireshark will work fine; I've even used it to help reverse engineer a UPS. If you're investigating interference/timing/collisions/whatever then you'd need a scope or logic analyser.

path: 0 25699089 25703964 25706225, hotness: undefined, score: 3, children: 0
SteveTech 1 point a month ago

Deleted - Replied to wrong comment.

path: 0 25699089 25706216, hotness: undefined, score: 1, children: 0
1adam12 3 points a month ago

You would be looking for a scope with a logic analyzer function.

path: 0 25697111, hotness: undefined, score: 3, children: 0
one_old_coder 3 points a month ago path: 0 25701111, hotness: undefined, score: 3, children: 5
za_warudo_steve_freiheit 2 points a month ago path: 0 25701111 25703974, hotness: undefined, score: 2, children: 4
emptiness 2 points a month ago

I have the same scope, but it doesn’t have USB decode. I watched the video and he’s initially doing the decoding very manually. Fun, but not something you’re going to want to do when someone’s paying for your time.

He later switches to a Keysight DSO-X 4024A. It costs a fair bit more. :)

path: 0 25701111 25703974 25705156, hotness: undefined, score: 2, children: 3
za_warudo_steve_freiheit 2 points a month ago

Been doing some digging now knowing about logic analyzers and I found that RIGOL has some oscilloscopes with digital channels that are within my budget range (needs the RPL1116 probe to function). Though they're bandwidth is 100MHz for the one's I could find that are under 500-1,000$. Would this be enough at least for USB 2.0?

path: 0 25701111 25703974 25705156 25714869, hotness: undefined, score: 2, children: 2
emptiness 1 point a month ago

Does it have built-in USB decoding? If not then it’s not very practical tbh, but it could do low speed and full speed, with manual decoding. Not high speed.

OpenVizsla can do high speed: https://shop.sysmocom.de/USB-Tracing/

What are you after though? A scope is more fun. :)

path: 0 25701111 25703974 25705156 25714869 25721568, hotness: undefined, score: 1, children: 1
emptiness 1 point a month ago

That sounds like an expensive oscilloscope.

I use an OpenVizsla.

path: 0 25696832, hotness: undefined, score: 1, children: 1
za_warudo_steve_freiheit 1 point a month ago

The one Ben Eater was using was a Keysight 200MHz, I think with 2GS/s sampling.

path: 0 25696832 25697130, hotness: undefined, score: 1, children: 0
ece
ece

@lemmy.world

login for more options
3126
103
23

Electrical and computer engineering (ECE) community, for professionals and learners. Discuss ECE related topics here, for instance digital design, signal processing, circuit analysis, electromagnetics, microelectronics, power electronics, RF electronics, etc.

go to feed...