Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal-apps
base: 04173e764f29
Choose a base ref
...
head repository: ngscopeclient/scopehal-apps
compare: 5ff7cfd22d8d
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 24, 2021

  1. Improve the usbcsv example

    This program was originally created by azonenberg to assist in
    decoding USB snippets in a headless state. The main intent of this
    program is to export only packets sent from the client device
    to the host computer. It is a bit messy, but I tried to make
    it clear how the logic works.
    
    The output format is as follows:
    [starting line in csv] [ending line in csv] [DATA 1/0] [hex bits] | [SETUP request code]
    
    This is supposed to make it easier to extract those client packets
    from the CSV. I briefly considered using CPython to transform it
    into a format that can easily be used in feature extraction libraries,
    but that is more work than is necessary.
    
    This is not a perfect example, as I only really capture the data
    packets and the NAK packets. There are others in the USB spec,
    so feel free to implement them.
    
    Another thing to note is that there is a `step` variable in the
    ProcessWaveform function that represents the number of femtoseconds
    between lines in the csv. This was done because my logic analyser
    does not sample at that high of a rate, and I wanted to translate
    from femtoseconds that the decoder used back into a format that
    fit my original CSV. So be warned that you will need to change this!
    
    Big thank you to azonenberg for helping out with the original example.
    Codysseus committed Mar 24, 2021
    Copy the full SHA
    090559f View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2021

  1. Merge pull request #310 from Codysseus/master

    Improve the usbcsv example
    azonenberg committed Apr 12, 2021
    Copy the full SHA
    5ff7cfd View commit details
    Browse the repository at this point in the history