Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

baylibre-acme/libsigrok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

libsigrok with IIO

Summary

IIO is a generic transport protocol, tools and libraries used to transport Industrial Input/Output measurements.

In order to use the Sigrok facility to record and visualize IIO devices data, a Generic IIO driver was added to the libsigrok source code.

This git repository is a fork of the official sigrok source code with the following goals :

  • Add Generic IIO support to actual distributed version for libsigrok, 0.3.0
  • Upstream a clean IIO support the the future libsigrok releases

How to use

To specify your IIO device, you may either :

  • only specify the generic-iio driver if the IIO devices are on the local machine
  • specify the IP or Hostname after the generic-iio as :
sigrok-cli -d generic-iio:conn=baylibre-acme.local
  • specify an XML file as :
sigrok-cli -d generic-iio:conn=my-context-file.xml

For PulseView, you cannot specify a conn variable, so you can use some Environment variables as :

IIOD_REMOTE=baylibre-acme.local pulseview

Ubuntu

Ubuntu Xenial 16.04

Replace the distribution libsigrok by adding the following PPA :

sudo add-apt-repository ppa:sigrok-iio/ppa

Then update and install the new libsigrok package :

sudo apt update
sudo apt install sigrok-cli

This should trigger installation of a libsigrok_iio package.

Running sigrok-cli should show the generic-iio package :

sigrok-cli -V
...
Supported hardware drivers:
...
  generic-iio          Generic IIO wrapper
...

Ubuntu Trusty 14.04

The installation depends on the official sigrok PPA archive, then the sigrok-iio PPA :

sudo add-apt-repository ppa:daniel-elstner/sigrok
sudo add-apt-repository ppa:sigrok-iio/ppa

Then update and install the new libsigrok package :

sudo apt update
sudo apt install sigrok-cli

Running sigrok-cli should show the generic-iio package :

sigrok-cli -V
...
Supported hardware drivers:
...
  generic-iio          Generic IIO wrapper
...

Local build and install

This method depends on the following libraries you should compile and install before :

And optionally (to support other sigrok devices) :

Download and extract the release tarball, then :

$ ./configure
$ make
$ sudo make install

Make sure the configure script shows :

  - generic-iio..................... yes

In order to use the distribution's sigrok-cli or pulseview, you may use LD_LIBRARY_PATH to use the previously built shared library, like :

$ LD_LIBRARY_PATH=/usr/local/bin sigrok-cli -V

or

$ LD_LIBRARY_PATH=/usr/local/bin pulseview

By building a full sigrok install

Please look at the http://www.sigrok.org/wiki/Building and replace the tarballs or git checkout by the one provided here.

See :

Support status

0.3.0

  • Almost supported, each device exported as channel group
  • Need testing over more IIO devices

Releases :

PPA Ubuntu archive :

0.4.0

  • Work ongoing on branch libsigrok-0.4.x-iio, is aligned on 0.3.x work, will serve as base for master work
  • 0.4.x version is not packaged on Debian/ubuntu

Master

  • Discution were started on the early 0.4.0 version, must be rebased on the 0.3.0 architecture and integrated in the official libsigrok source repository

Contact & Help

Feel free to report Issues and submit Pull Requests.

About

Migrated to gitlab - IIO Support tree for libsigrok

Resources

Stars

Watchers

Forks

Packages

No packages published