AssertionError using self_test.py
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
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 :-/
Thank you for your answer. The only workaround I've found is to perform a reset with hackrf_spiflash -R
@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