-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The device stop work after repeat receive and stop operation. #394
Comments
This is a known issue and is related to issue #322 |
@commthu As a temporary workaround you could use use the LPC43xx watchdog timer to reset the |
@dominicgs When the hackrf is stuck you cannot send USB requests |
@barto- I thought this issue was with the transceiver state being incorrect and not transferring data to the host. I thought the HackRF is still responding to USB control requests in this state. Is that not the case? |
When it's stuck it doesn't respond to USB requests. The main loop in hackrf_usb.c it's not executed |
We've recently done a release which includes some enhances and fixes to |
I'm going to close this as there hasn't been a response in a while, but please re-open this issue or open a new one if you still need assistance. |
I think that this is still a problem on the most recent release (2021.03.1). I wrote a C program that can reproduce an error where, after a few repeated start rx/stop rx calls in quick succession, the TX light stays on and the rx callback is never triggered. Here is my hackrf_info output (platform is RPi 3 raspbian):
libhackrf is not installed globally - instead I'm manually linking in the compiled libhackrf 2021.03.1 binary. Check out this gist for the program I'm using. Below is the expected output. The rx should start, maybe get a few cycles before the callback isn't called, and then should restart again indefinitely.
Below is the output I get after letting the program run for about 10 seconds (sometimes more, sometimes less). Eventually, the callback is never triggered and the program gets stuck on "Not started yet" forever.
Is there a way to fix this to allow for start_rx and stop_rx to be called in quick succession? |
Steps to reproduce
My software use "hackrf_start_rx" for 10 seconds and then stop,
result = hackrf_stop_rx(device);
result = hackrf_close(device);
hackrf_exit();
after 5 seconds, then repeat hackrf_start_rx to receive for 10 seconds and stop recieve, after 5 second,.....,and so on
Expected behaviour
Tell us what you expect should happen
Actual behaviour
Tell us what happens instead
after serveral minutes (3 minutes for example), the device is dead, restart my software does not work. I should re-connect the USB plug.
Version information
git-2dffba9
Operating system:
Win7-64-ultimate, also tried other windows systems, same problem
hackrf_info output:
If you are reporting a problem that involves third party software
(GNU Radio, Gqrx, etc), please report the version here.
Output
The text was updated successfully, but these errors were encountered: