Comments (8)
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.
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.
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.
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.
from python-saleae.
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.
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.
from python-saleae.
Related Issues (20)
- Add parameter to launch_logic allowing the caller to specify path HOT 4
- export_analyzer returns before csv file is completed HOT 3
- Random CommandNAKedError occurrence during "capture_to_file(log_file)" call HOT 3
- Implement get_sample_rate HOT 2
- enum34 should not be required above Python 3.4 HOT 2
- Path manipulation doesn't work when Logic is running on different OS than the Python module HOT 1
- get_analyzers raises IndexError HOT 4
- is_analyzer_complete raising self.CommandNAKedError when using custom analyzer HOT 1
- Windows str.replace not implemented properly HOT 3
- Implement several missing methods.
- get_capture_range throws ValueError HOT 1
- Export data to a python container HOT 2
- How to use this library with the new logic 2 HOT 1
- Is there a way to get ACK when the capture starts HOT 1
- AttributeError: partially initialized module 'saleae' has no attribute 'Saleae' (most likely due to a circular import) HOT 1
- Getting a type error while executing the launch_logic method HOT 1
- Saleae Init function doesn't take logic_path variable HOT 1
- Logic 2 Automation Interface - Feedback Request HOT 3
- Problem with export_data2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-saleae.