Navigation Menu

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

Feature/soapysdr args #11

Closed

Conversation

wcampbell0x2a
Copy link
Contributor

Motivation

SoapySDR inputs are hardcoded and should be user defined.

Solution

Add custom freq/sample_rate/gain SoapySdr Block

Add freq/sample_rate/gain to the SoapySdrBuilder. This allows the freq/gain/sample_rate to be set in the init() function once the soapySDR library has the context of the device.

This was tested on a HackRF One device.

Enable soapysdr logging

This changes the following output:

[INFO] Opening HackRF One #0 57b068dc214b4c63...

into the following:

FutureSDR: INFO - Opening HackRF One #0 57b068dc214b4c63...

This  changes the following output:
```
[INFO] Opening HackRF One #0 57b068dc214b4c63...
```

into the following:
```
FutureSDR: INFO - Opening HackRF One #0 57b068dc214b4c63...
```
Add freq/sample_rate/gain to the SoapySdrBuilder. This allows the
freq/gain/sample_rate to be set in the init() function once the soapySDR
library has the context of the device.

This was tested on a HackRF One device.
@bastibl
Copy link
Member

bastibl commented Sep 2, 2021

Nice, thank you!
(I messed with master, introduced a conflict, fixed, and pushed manually. Somehow it doesn't recognize, so I'll have to close the PR. But your commits are in-tree. Sorry for the hassle -.-)

@bastibl bastibl closed this Sep 2, 2021
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.

None yet

2 participants