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

When using oversample mode, bladerf_set_frequency also modifies sample rate #983

Open
asazernik opened this issue Sep 3, 2024 · 2 comments

Comments

@asazernik
Copy link

The following sequence of calls results in a sample rate of 384000000:

bladerf_enable_feature(dev, BLADERF_FEATURE_OVERSAMPLE, true);
bladerf_rational_rate actual, desired;
desired.integer = 96000000; desired.num = 0; desired.den = 1;
bladerf_set_rational_sample_rate(dev, BLADERF_TX_CHANNEL, desired, &actual);
// assert(actual.integer == desired.integer); // passes
bladerf_set_frequency(dev, BLADERF_RF_TX_CHANNEL, 122657000);
bladerf_get_rational_sample_rate(dev, BLADERF_RF_TX_CHANNEL, actual);

This also happens with regular old integral bladerf_set_sample_rate().

If I swap the order of call so that bladerf_set_frequency() comes first, everything works as expected.

@cwozny
Copy link

cwozny commented Oct 25, 2024

Are you using a specific release of libbladeRF or whatever the latest was at the time of this post?

@asazernik
Copy link
Author

The version included in release 2023.02. Checking now, that seems to be 2.5.0.

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

2 participants