Scroll to navigation

iio_attr(1) LibIIO Utilities iio_attr(1)

NAME

iio_attr - list IIO devices, and read/write device attributes

SYNOPSIS

iio_attr [ options ] -d [device] [attr] [value]
iio_attr [ options ] -c [device] [channel] [attr] [value]
iio_attr [ options ] -D [device] [attr] [value]
iio_attr [ options ] -C [attr]
iio_attr -S <arg>
iio_attr -h

DESCRIPTION

iio_attr is a utility for displaying information about local or remote IIO devices. By providing an optional value, iio_attr will attempt to write the new value to the attribute.

COMMANDS

Read and Write IIO device attributes
Read and Write IIO channel attributes
Read and Write IIO Buffer attributes
Read and Write IIO Context attributes
Read and Write IIO Debug attributes
Scan for available IIO contexts, optional arg of specific backend(s) 'ip', 'usb' or 'ip,usb'. Specific options for USB include Vendor ID, Product ID to limit scanning to specific devices 'usb=0456:b673'. vid,pid are hexadecimal numbers (no prefix needed), "*" (match any for pid only) If no argument is given, it checks all that are available.
Tells iio_attr to display some help, and then quit.

OPTIONS

Look around for devices (locally, ip, and usb), and if there is only one device found, connect to it.
The Uniform Resource Identifier (uri) for connecting to devices, can be one of:
network address, either numeric (192.168.0.1) or network hostname (pluto.local)
blank, if compiled with zeroconf support, will find an IIO device on network
normally returned from iio_info -s or iio_attr -S
blank, if there is only one IIO device plugged into USB, find it, and attach to it.
serial configuration, serial:/dev/ttyUSB0,115200,8n1 115200 baud, 8 data bits, no partity, one stop bit
with no address part
Filters channels by input channels only
Filters channels by output channels only
Filters channels by scan channels only
When pattern matching devices, channels or attributes, ignore case
Generate small C or python snippets that emulate what you are doing on the command line. Argument is a file name 'foo.c' or 'foo.py'

RETURN VALUE

If the specified device is not found, a non-zero exit code is returned.

SEE ALSO

iio_attr(1), iio_info(1), iio_readdev(1), iio_reg(1), iio_writedev(1), libiio(3)

libiio home page: https://wiki.analog.com/resources/tools-software/linux-software/libiio

libiio code: https://github.com/analogdevicesinc/libiio

Doxygen for libiio https://analogdevicesinc.github.io/libiio/

BUGS

All bugs are tracked at: https://github.com/analogdevicesinc/libiio/issues

24 January 2023 libiio-0.24