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

qspectrumanalyzer hangs after a few seconds and only shows noise #92

Open
marcoboehrs opened this issue Mar 1, 2021 · 0 comments
Open

Comments

@marcoboehrs
Copy link

Qspectrumanalyzer runs hackrf_sweep with the following parameters (happens with other frequency ranges too):
hackrf_sweep -f 5120:5500 -B -w 312500 -l 0 -g 4

and after i few seconds i get:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/qspectrumanalyzer/backends/hackrf_sweep.py", line 163, in run
    self.parse_output(buf)
  File "/usr/local/lib/python3.8/dist-packages/qspectrumanalyzer/backends/hackrf_sweep.py", line 128, in parse_output
    self.databuffer["y"].append(data[i])
AttributeError: 'numpy.ndarray' object has no attribute 'append'
421 total sweeps completed, 21.30 sweeps/second
422 total sweeps completed, 21.30 sweeps/second
423 total sweeps completed, 21.30 sweeps/second
425 total sweeps completed, 21.34 sweeps/second
425 total sweeps completed, 21.29 sweeps/second
427 total sweeps completed, 21.34 sweeps/second
428 total sweeps completed, 21.33 sweeps/second
429 total sweeps completed, 21.33 sweeps/second
430 total sweeps completed, 21.33 sweeps/second
430 total sweeps completed, 21.27 sweeps/second
430 total sweeps completed, 21.22 sweeps/second

Couldn't transfer any data for one second.

Exiting... hackrf_is_streaming() result: HACKRF_TRUE (1)
Total sweeps: 430 in 20.26419 seconds (21.22 sweeps/second)

If i run the command hackrf_sweep -f 5120:5500 -B -w 312500 -l 0 -g 4 standalone in bash, it runs forever

hackrf_info output:

hackrf_info version: git-f202160
libhackrf version: git-f202160 (0.5)
Found HackRF
Index: 0
Serial number: 0000000000000000XXX....
Board ID Number: 2 (HackRF One)
Firmware Version: git-f202160 (API:1.04)
Part ID Number: 0xa000cb3c 0x004c4f67

OS: Ubuntu 20.04 LTS
qspectrumanalyzer 2.2.0

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

No branches or pull requests

1 participant