GithubHelp home page GithubHelp logo

rodrigo455 / ad936x_libiio Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 89 KB

REDHAWK FrontEnd Interface for the transceivers AD9361, AD9364, AD9363

License: GNU Lesser General Public License v3.0

Shell 1.21% C++ 85.79% Makefile 1.08% M4 1.09% Python 10.82%
ad9361 adrv9361 plutosdr fmcomms iio redhawk sdr

ad936x_libiio's Introduction

AD936X LIBIIO REDHAWK DEVICE

Description

Note: This project is being updated. software decimation and interpolation was a featured taken from 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 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 and 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? 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-iio

Just 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_LIBIIO

You 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 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}

ad936x_libiio's People

Contributors

rodrigo455 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ad936x_libiio's Issues

AD936X_LIBIIO DEVICE AND FMCOMMS2 BOARD

Hi

This is with reference to "https://stackoverflow.com/questions/52490594/fmcomms2-frontend-interface-redhawk-sdr-device".

With your reply i compiled ad936x_libiio tag 2.0 and was able to configure fmcommm2 board with redhawk 2.0.8 version successfully.

Now I have written FM TX component to send FM data to "dataShortTX_in" port of the ad936x_libiio device in a waveform application using the "usesdevice" property.

I am able to deploy the waveform without any problem but the inteded data from FM TX component is not reaching the ad936x_libiio device input.

Please point to anything I am doing wrong so I can proceed.
I am attaching test.tar.gz file which contains the following for your reference:
KKfmtx.cpp and KKfmtx.h for the FM TX component.

Screenshot from 2018-11-05 11-02-22.png contains the screenshot of the diagram of waveform being tested.

audio_test.sad.xml is the SAD file of the waveform being deployed.

All other files of the FM TX component are unchanged which I have not attached to avoid unnecessary details.

test.tar.gz

KK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.