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

hackrf_sweep output missing bins on high system load #362

Open
michaellass opened this Issue Mar 26, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@michaellass

michaellass commented Mar 26, 2017

The number of frequency bins output by hackrf_sweep reduces when the system is under high load. Most likely, frequency bins are just dropped in this case. This showed to be a problem in qspectrumanalyzer, because here a data structure of fixed size is allocated after the first sweep and the output of hackrf_sweep was expected to be of same size for subsequent sweeps: xmikos/qspectrumanalyzer#26

For qspectrumanalyzer, there is now a workaround in place which drops an entire sweep if the number of bins is not equal to that from the first sweep but this still fails when bins are dropped during the very first sweep.

Is there anything which can be done regarding this issue on the side of hackrf_sweep? Or is there a simple way to determine the number of bins that should come from hackrf_sweep, given a set of parameters?

@ZeroChaos-

This comment has been minimized.

Contributor

ZeroChaos- commented Mar 29, 2017

ping @miek

@ZeroChaos-

This comment has been minimized.

Contributor

ZeroChaos- commented Aug 21, 2018

ping @miek

I have a new computer, a Ferrari compared to my old one, still have this issue.

@dominicgs

This comment has been minimized.

Collaborator

dominicgs commented Sep 6, 2018

A reminder to myself, from the discussion in #hackrf

dominicgs> We can take a look at the issue. Is it just high system load that triggers it?
Zero_Chaos> dominicgs: I have a brand new 3000 dollar laptop.  I'm pretty sure it's not a system load issue
dominicgs> Zero_Chaos: So, the issue says it appears under high system load, but I've never been dominicgs> I'm happy to look at it, but I'm going to need some more information about the system at the time that it happens
dominicgs> Is it consistently a problem? Or intermittent?
Zero_Chaos> dominicgs: consistent. hackrf_sweep seems to return a different number of samples all the time, while qspectrumanalyzer expects the same number
Zero_Chaos> dominicgs: set qspectrumanalyzer to go 1-6000 once per second and I get more failures than successes
Zero_Chaos> 599196 bins coming from backend, expected 601200
Zero_Chaos> dominicgs: bin size 10khz fails horribly, 100 seems to work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment