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

AssertionError using self_test.py #19

Open
francescou opened this issue Feb 2, 2018 · 3 comments
Open

AssertionError using self_test.py #19

francescou opened this issue Feb 2, 2018 · 3 comments

Comments

@francescou
Copy link

I've installed SoapyHackRF on Ubuntu and it seems to work fine most of the time but, after some time, the script self_test.py doesn't work anymore:

[INFO] Opening HackRF One #0 a06063c822105a5f...
HackRF:HackRF One
Traceback (most recent call last):
  File "self_test.py", line 64, in <module>
    assert(sr.ret > 0)
AssertionError

after the first failure, the hackrf becomes unusable (neither self_test.py nor hackrf_sweep are working) and I need to restart the system

@guruofquality
Copy link
Contributor

I too have found that it was easy to crash the hackrf by simply opening and closing streams a lot. Closing and opening the device again didnt fix it, it needed a power cycle. So I think there are some hardware/firmware issue that might need to be addressed. And I'm not sure if thats possible. But, either there is an API call we can make on libhackrf when its in this bad state, or maybe this is something to share with the hackrf maintainers. Probably not the news you wanted though :-/

@francescou
Copy link
Author

Thank you for your answer. The only workaround I've found is to perform a reset with hackrf_spiflash -R

@mossmann
Copy link
Contributor

mossmann commented Oct 1, 2022

@francescou The latest HackRF release includes several stability improvements. Can you please let us know if you still have trouble with this release?
https://github.com/greatscottgadgets/hackrf/releases/latest

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

3 participants