Low level test and exercise USB

Following an issue with a USB memory stick I'd like to make a tester that can give me results I cant get from connecting to a PC.
I have in mind something like this


Has anyone tried doing this - I've googled for it but too many other irrelevant sites coming up about testing USB on a PC etc.

A logic analyzer may help.

You mean like a USB sniffer?
You can use Wireshark to see the data transfers between the PC and stick.

No, Jim below protocol level. Really mainly the hardware and signal responses.Its a bit academic really,
I've read the stuff on wiki

now I want to be able to drive the data lines and check how it responds.

Get a hold of the old USB 1.1 specification. It explains how everything works before USB got real complicated. See chapter 7 Electrical for the physical set-up

:rofl:

This one?
http://esd.cs.ucr.edu/webres/usb11.pdf

311 pages!
This is useful:
The USB uses a differential output driver to drive the USB data signal onto the USB cable. The static output swing of the driver in its low state must be below V OL (max) of 0.3V with a 1.5k load to 3.6V and
in its high state must be above the V OH (min) of 2.8V with a 15k load to ground as listed in Table 7-5.

Looks as if I'll need to add 15k pull-downs.

Yes

311 pages!

3.0 is twice that size.

However, everything in the old specification still applies since it's backwards compatible.
In the past, I have used PIC microcontrollers when doing USB but they at least had the tranceivers and some of the simple processing built in.

For example, you want to send 0x15 from NANO to PC using USB Protocol, then you need firmware at the NANO side that will mimic the whole/part of CH340G type TTL <----> USB Converter.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.