Giter Site home page Giter Site logo

Synchronization issue about usb-sniffer-lite HOT 4 OPEN

diggit avatar diggit commented on August 16, 2024
Synchronization issue

from usb-sniffer-lite.

Comments (4)

ataradov avatar ataradov commented on August 16, 2024

Does this happen every capture, or do you get some that work?

Do you use the most recent firmware? There was update in the most version where I wait for SE0 after the capture start. This would find the end of the packet if the capture was started in the middle.

Generally there is no way to analyze the data as it gets captured, there is not enough time for that. The only way to do this is to capture the buffer, then process it. This assumes the capture started at the beginning of the packet.

How do you use the trigger? The best way is to connect it to the device under test and in the firmware detect the condition when the traffic is about to start and set the trigger there. This way you will be starting before there is a lot of traffic. Manual triggering is essentially equivalent to the manual start without a trigger.

from usb-sniffer-lite.

diggit avatar diggit commented on August 16, 2024

I was not able to get a single sync with bus heavily loaded with Bulk IN data packets (CDC ACM, 6~18 bytes in size).
Used compiled binary linked in readme: https://github.com/ataradov/usb-sniffer-lite/blob/main/bin/UsbSnifferLite.uf2
Trigger was just a simple button. There is no simple way of triggering just before bus gets loaded.

from usb-sniffer-lite.

ataradov avatar ataradov commented on August 16, 2024

Was it the most recent version of the file? It was updated multiple times and only the latest version contains sync improvements.

This behavior with the latest version is unexpected. I would debug it a bit. Capture D+/D- and GPIO18 (trigger) and GPIO12 (start). Trigger the scope on the GPIO12. You should see your trigger condition some time before the start. If trigger falls in the middle of the packet, then the start should follow right after the packet.

Otherwise the next option is to build the full version of the sniffer. PR2040 is powerful, but there are still limits and it can't constantly monitor the bus.

from usb-sniffer-lite.

FauthD avatar FauthD commented on August 16, 2024

Hi Diggit,
did you use two completely separate busses? Even better use two PCs. One for the USB under test and the other to control the sniffer.

I developed USB devices since 1996. It often makes a difference to use two PCs, even with professional Analyzers.

Dieter :-)

from usb-sniffer-lite.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.