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

remove HackRF anti-freeze timeouts in places that do not require them #890

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

nilswint
Copy link
Contributor

The HackRF device has a freeze-bug when stopping sending or receiving data. As a workaround, there is a 0.2 second timeout in hackrf.pyx.

As far as I can tell, this timeout is only required in stop_rx_mode and stop_tx_mode. The additional timeouts in the set_* methods are an issue because they cause a combined delay of one complete second whenever something is supposed to be sent (e. g. using cli).

I have been running the following code without issues for a while in an application, that sends some data every couple of minutes.

        hackrf.TIMEOUT = 0
        hackrf.set_freq(self.args.frequency)
        hackrf.set_sample_rate(self.args.sample_rate)
        hackrf.set_baseband_filter_bandwidth(bandwidth)
        hackrf.set_rf_gain(gain)
        hackrf.set_if_tx_gain(if_gain)
        hackrf.TIMEOUT = 0.2

I did some manual testing in the urh gui, too.

@CLAassistant
Copy link

CLAassistant commented Jul 13, 2021

CLA assistant check
All committers have signed the CLA.

@jopohl jopohl merged commit 03db43f into jopohl:master Feb 21, 2022
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

Successfully merging this pull request may close these issues.

3 participants