Page 1 of 1

USB Analyzer [DSO Quad Application Software Design Entry]

Posted: Sun Jan 13, 2013 6:51 am
by jpa
This is an USB Protocol Analyzer for the DSO Quad Application design competition:

Image

Image

Image

See here for more details:
http://essentialscrap.com/dsoquad/usb.html

Downloads here (it needs QuadPawn 0.06 or newer):
http://koti.kapsi.fi/~jpa/dsoquad/#USB%20Analyzer

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Sun Jan 13, 2013 10:55 pm
by gabonator1
Amazing work! I Cant wait until I use it as hardware keyboard sniffer :) And is it really necessary to measure both D+/D- wires? The are forming a differential pair and most of the time they hold the same logic level on both lines.

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Sun Jan 13, 2013 11:14 pm
by jpa
It would be quite easy to hack it to only show the contents of DATA packets.. that would make an excellent keyboard sniffer :)

End of packet is signalled in USB by pulling both D+ and D- to ground. I'm not sure if it is possible to detect it otherwise. Other than that, a single signal would be enough.

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Mon Jan 14, 2013 11:20 pm
by c.wilt
Very nice addition. Thank you.

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Wed Feb 13, 2013 4:53 am
by alvadep
I established the PAWN_006 version. USB Analyzer works normally, but with this version Frequency Response doesn't work (FREQ001, doesn't work at other modes absolutely). Frequency Response perfectly works with PAWN_002 (FREQ000), but USB Analyzer and many other things doesn't work.

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Wed Feb 13, 2013 11:37 pm
by jpa
alvadep wrote:I established the PAWN_006 version. USB Analyzer works normally, but with this version Frequency Response doesn't work.
Ok, I can see that there is a problem. For me it just stops midway through the measurement. I'll debug that problem.

Can you tell what are the exact settings you use for testing? The results you get look a lot like the input probe (channel A) was just disconnected.

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Wed Feb 13, 2013 11:56 pm
by alvadep
minfreq = 2
maxfreq = 3
waveform = 0
clear = 1
steps = 3
reference = 0

PAWN_002 with these parameters works. PAWN_006 with these parameters hangs (even scanning doesn't begin). On PAWN_006 it was possible though any result to receive for save only at maxfreq - 20k. Change only PAWN. All the rest without changes.

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Thu Feb 14, 2013 2:57 am
by jpa
This bug should be now fixed in PAWN_007. Available from
http://koti.kapsi.fi/jpa/dsoquad/#QuadPawn

The bug was caused by the new GCC version (4.7.3 vs. old 4.6.1) optimizing things differently. This caused a few bugs in the time-critical wavein loop to come visible.

There is also a new version of freqresp. But it is only a small speedup, not related to this bug:
https://github.com/PetteriAimonen/QuadP ... eqresp.amx

Re: USB Analyzer [DSO Quad Application Software Design Entry

Posted: Thu Feb 14, 2013 5:28 am
by alvadep
jpa, you do such lot of work, huge to you thanks.

Freqresp earned with the new PAWN version. Wasn't started only scanning with minfreq - 10Hz, maxfreq - 20MHz . But with the new freqresp version everything fell into place, everything earned of full.

And here new LOGICAPP versions don't work for me. I have works only the version of March, 2012, in size 66,3 kb. I have very old HW (v 2.6).

Excuse me for my English and off topic.