Mod Can Delete

Status
Not open for further replies.

PottedMeat

Lifer
Apr 17, 2002
12,363
475
126
Wow, who the hell is making you do this?

Do you know the type of device that was used to generate the waveforms - low/full/high speed? From that you could at least get the clock.

Since it's a differential bus all you know is that one waveform is the opposite of the other.

You could do the matlab view thing, just take I dunno the first ~10000+ points and look at it. See if you can find the SYNC field - then PID... etc.

Maybe you're supposed to just find the clock, take the two waveforms and convert them to 1's and 0's using the period, then somehow dump it into one of those free USB transaction analyzers and see what it spits out.

hope that helps a little.
 

canis

Member
Dec 10, 2007
152
0
0
I was given a waveform that was generated after data was sent along a USB cable and I have to basically decode all the relevant information (amount of frames, content, CRC, etc) along with determining which is the D+ waveform and which is the D-. We were given 2 .dat files, each containing about 10000000 lines of specific times and voltages as the cable was being used.

I've tried using MATLAB to parse through the data, but it froze up on me, so I imported the data into excel and from there I basically been using the specifications from the USB 2.0 guide and from the website (http://www.beyondlogic.org/usbnutshell/usb2.htm#SpeedIdentification) to help me get 1's and 0's...but I feel like I'm doing something wrong since I normally just end up with a long patterns of 1's followed by 0's and then more 1's and then more 0's, etc.

I have no idea when a frame starts or stops or how to interpret the data in between really. People who did this in the past resulted to actually zooming in really close in MATLAB and reading the lines and it took them incredibly long to get anywhere.

If anyone has an intimate knowledge of how this stuff works I'd love it if someone could explain to me how to read this data.

I've attached an image of what I'm working with to maybe make it easier to understand what I'm asking about

waveform.PNG

10000000 lines over how many seconds interval?
 
Status
Not open for further replies.