# Soapy SDR plugin for Fobos SDR

This is the Soapy SDR plugin wrapper for Fobos SDR receiver API shared library. Full source code.


## Versions and compatibility

See [versions.txt](versions.txt)

## Platforms tested on

- Linux (Ubuntu 22.04 LTS ...)
- Windows (7, 8.1, 10, 11) x64

## Requirements

- git v.2.31 or later (otherwise download the repository manualy: Code->Download ZIP)
- any **c++** compiler (tested on gcc, g++, mingw, msvc) 

## Dependencies

* SoapySDR - https://github.com/pothosware/SoapySDR/
* libfobos - https://github.com/rigexpert/libfobos/
* libfobos-sdr-agile - https://github.com/rigexpert/libfobos-sdr-agile/

## How to build and install

### Linux
```
git clone [this repo]
cd SoapyFobosSDR
mkdir build
cd build
cmake ..
make
subo make install
sudo ldconfig
```
### Windows
Download and install latest version of **Pothos SDR dev environment** binaries from https://downloads.myriadrf.org/builds/PothosSDR/
or build it from source https://github.com/pothosware/PothosSDR<br />
Download any libfobos release .zip pack from https://github.com/rigexpert/libfobos/releases<br />
Unpack content to **libfobos** directory<br />
Clone the repository and configure the build
```
git clone [this repo]
cd SoapyFobosSDR
mkdir build
cd build
cmake ..
```
Build actually SoapyFobosSDR:

```
cmake --build . --config Release
```
or<br />
open **fobos.sln** in your favorite **MS VisualStudio IDE**, build.<br />

Copy compiled **FobosSDRSupport.dll** to Soapy modules directory, default **c:/Program Files/PothosSDR/lib/SoapySDR/modules0.8/**<br />
Copy **fobos.dll** library to Soapy binaries directory, default **c:/Program Files/PothosSDR/bin/**<br />

enjoy.<br />

## Check with SoapySDRUtil
```
SoapySDRUtil --probe="driver=fobos"
```

<img src="./showimg/Screenshot001.png" scale="100%"/><br />

## Multiple devices support
```
SoapySDRUtil --find="driver=fobos"
```
<img src="./showimg/Screenshot003.png" scale="100%"/><br />

Use "index" key:
```
SoapySDRUtil --probe="driver=fobos,index=0"
SoapySDRUtil --probe="driver=fobos,index=1"
```


## Test with GNU Radio

See [soapy_fobossdr_test.grc](test/soapy_fobossdr_test.grc)

<img src="./showimg/Screenshot002.png" scale="100%"/><br />


## What is actually Fobos SDR

For more info visit the main product page

https://rigexpert.com/en/products/kits-en/fobos-sdr/
