Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLS improvements, chunk 3 #155

Closed
wants to merge 6 commits into from

Conversation

v1ne
Copy link

@v1ne v1ne commented Jul 31, 2021

The next slice of #51 "OLS Improvements":

  • Obey code style (new commit)
  • Provide sample count in RLE mode to provide a more useful list of sample buffer lengths in PulseView
  • Smaller clean-ups
  • Fix operation of demuxer
  • Fix off-by-one in logic that sets up trigger stages

v1ne added 6 commits July 31, 2021 15:54
It just means "number of compressed samples", but it's still highly useful
to decice how much data to capture. If this is unavailable, PulseView
provides a weird list of up to 1 TSmpl, which makes even less sense.
On my OLS with Demon Core (v3.07), the following command produces only low
levels on channels 8-15:
sigrok-cli -d ols:conn=/dev/ttyACM0 --output-format ascii:width=128 \
  --config='samplerate=200M:pattern=Internal:captureratio=50' \
  --channels 0-15 --samples 32 --triggers "12=1"

This doesn't make sense since it only triggers if channel 12 is high.
By not overwriting the channel data, I get the desired output. The data
is processed in groups of 2 bytes, so there's no need to fold back "input"
from devc->sample[2..3] because these bytes are always zero.
The additional stage prevented OLS from using 4 stages.
@v1ne v1ne mentioned this pull request Jul 31, 2021
@wsakernel
Copy link

Looks good, can be pulled IMO.

Copy link

@wsakernel wsakernel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to set the "approved" flag.

@abraxa
Copy link
Member

abraxa commented Sep 10, 2021

Thank you both for your work! I merged the changes as 55eca71 and following.

@abraxa abraxa closed this Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants