Giter Club home page Giter Club logo

Comments (8)

ppannuto avatar ppannuto commented on July 18, 2024

Hmm, I haven't seen anything like that happen before. It certainly doesn't sound like anything that is supposed to happen.

Are you only calling capture_start or are you doing something to check when the capture is complete? Could you reduce to some minimum working example that exhibits the bug?

from python-saleae.

flagline avatar flagline commented on July 18, 2024

Here's a test program and output that illustrate what I'm seeing.
SaleaeTest .py.txt
output.txt

In the output you can see that a 'List index out of range' exception occurs on subsequent first calls to get analyzers. This is because _recv is returning 'TRUE' in response to the 'GET_ANAYLZERS' _cmd call (instead of the expected list of analyzers).

from python-saleae.

ppannuto avatar ppannuto commented on July 18, 2024

Interesting.. it's quite surprising to see any F in the Export list. I believe that wait should be using is_analyzer_complete. Though that still does not explain how things get out of sync. Perhaps the issue stems from not waiting for the first export analyzer to finish before triggering the next?

from python-saleae.

flagline avatar flagline commented on July 18, 2024

I tried setting a breakpoint in _recv (line 242 of saleae.py) so that I could step slowly and allow plenty of time between commands. It also allows me to see the _rxbuf contents after each command. But even stepping through the commands slowly, it's behaving oddly. For example, the calls to is_processing_complete() following start_capture() return 'NAK' the first time, 'ACK' the second time, and 'TRUE/nACK' after that. The reply on the second call looks incorrect to me.

from python-saleae.

ppannuto avatar ppannuto commented on July 18, 2024

from python-saleae.

flagline avatar flagline commented on July 18, 2024

It could be. I appreciate your input, but I've put in as much time as I can afford looking into this. Despite the glitches, this module has been super helpful.

from python-saleae.

ppannuto avatar ppannuto commented on July 18, 2024

I understand! Thanks for all your debug effort.

If you find the loop method to be robust enough as a workaround and think it's worth integrating generally in the library, I'm happy to take a PR.

In the meantime, I think I'm going to close this issue out as an upstream bug (attn @Marcus10110). Feel free to re-open (you or others) if new information merits.

from python-saleae.

flagline avatar flagline commented on July 18, 2024

from python-saleae.

Related Issues (20)

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.