SoapyHackRF icon indicating copy to clipboard operation
SoapyHackRF copied to clipboard

AssertionError using self_test.py

Open francescou opened this issue 7 years ago • 3 comments

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

francescou avatar Feb 02 '18 16:02 francescou

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 :-/

guruofquality avatar Feb 16 '18 01:02 guruofquality

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

francescou avatar Feb 18 '18 10:02 francescou

@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

mossmann avatar Oct 01 '22 17:10 mossmann