https://github.com/rodrigo455/ad936x_libiio
REDHAWK FrontEnd Interface for the transceivers AD9361, AD9364, AD9363
https://github.com/rodrigo455/ad936x_libiio
ad9361 adrv9361 fmcomms iio plutosdr redhawk sdr
Last synced: 3 months ago
JSON representation
REDHAWK FrontEnd Interface for the transceivers AD9361, AD9364, AD9363
- Host: GitHub
- URL: https://github.com/rodrigo455/ad936x_libiio
- Owner: rodrigo455
- License: lgpl-3.0
- Created: 2017-07-28T11:41:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T22:30:28.000Z (about 7 years ago)
- Last Synced: 2025-03-27T08:11:27.583Z (7 months ago)
- Topics: ad9361, adrv9361, fmcomms, iio, plutosdr, redhawk, sdr
- Language: C++
- Homepage:
- Size: 86.9 KB
- Stars: 9
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AD936X LIBIIO REDHAWK DEVICE
## DescriptionNote: This project is being updated. software decimation and interpolation was a featured taken from [gr-iio](https://github.com/analogdevicesinc/gr-iio) and it was removed by analogdevices, since it is indeed incorrect, because no filtering is applied.
The project is based in [REDHAWK USRP_UHD](https://github.com/RedhawkSDR/USRP_UHD)
and it contains the source and build script for the REDHAWK Device AD936X_LIBIIO
device. This device is a FRONTEND Interfaces compliant device for the AD936x that
requires the [libiio](https://github.com/analogdevicesinc/libiio) and
[libad9361-iio](https://github.com/analogdevicesinc/libad9361-iio) libraries to be installed.## Installation Instructions
This project requires the libiio and libad9361 libraries, which must be installed in order to build and run this asset.
### libiio
Follow Analog Devices' [What is libiio?](https://wiki.analog.com/resources/tools-software/linux-software/libiio#building_on_the_linux_host_target) wiki page, in order to build libiio for Debian-flavoured GNU/Linux distributions.
For CentOs you're able to get the required dependencies with the command:
```
$ sudo yum install libxml2 libxml2-devel libaio-devel libusbx-devel avahi-devel
```
then you can fetch the source, build and install
```
$ git clone https://github.com/analogdevicesinc/libiio.git
$ cd libiio
$ cmake ./
$ make all
$ sudo make install
```
### libad9361-iioJust fetch the source, build and install
```
$ git clone https://github.com/analogdevicesinc/libad9361-iio.git
$ cd libad9361-iio
$ cmake ./
$ make all
$ sudo make install
```
### AD936X_LIBIIOYou can import this project to your workspace using the REDHAWK Import Wizard,
build and install to $SDRROOT within the REDHAWK IDE. Otherwise run the `build.sh` script found at the
top level directory. To install to $SDRROOT, run `build.sh install`. Note: root
privileges (`sudo`) may be required to install.## Copyrights
This work is protected by Copyright. Please refer to the
[Copyright File](COPYRIGHT) for updated copyright information.## License
AD936X LIBIIO REDHAWK DEVICE is licensed under GNU Lesser General Public License (LGPL).
## Troubleshooting
* if during cmaking libiio, you got: `Check size of struct usb_functionfs_descs_head_v2 - failed`, use the following commands to fix it, being able to support usb backend.
```
$ wget https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/usb/functionfs.h
$ sudo mv functionfs.h /usr/include/linux/usb/functionfs.h
```
* if having a library linking error when executing the device, adding these lines to the `~/.bashrc` file might do the trick:
```
if [[ $LD_LIBRARY_PATH != *"/usr/lib64"* ]]; then
LD_LIBRARY_PATH=/usr/lib64:${LD_LIBRARY_PATH}
fi
if [[ $LD_LIBRARY_PATH != *"/usr/local/lib"* ]]; then
LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
fi
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
```