iio_attr(1)
β¨ iio_attr(1) β¨ β the LibIIO Utilities page, but make it make sense π
okay bestie, gather round π«Ά this is iio_attr, one of the LibIIO Utilities, and she's lowkey the friend who will tell you everything about your IIO devices and also let you poke at them. no cap.
π¦ 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 πΈ
so iio_attr is this utility that shows you info about your IIO devices β local ones, remote ones, all of them, she's not picky π
and here's the cute part: if you also hand her an optional value, she will attempt to write that new value into the attribute. like, she'll try. she's giving main character energy β¨
π COMMANDS π
iio_attr has a few main options, and these are the ones that decide what the app is actually doing. vibe check first, then the rest follows fr fr:
-d,--device-attrβ Read and Write IIO device attributes π-c,--channel-attrβ Read and Write IIO channel attributes π¦-B,--buffer-attrβ Read and Write IIO Buffer attributes π-C,--context-attrβ Read and Write IIO Context attributes π-D,--debug-attrβ Read and Write IIO Debug attributes π-h,--helpβ tellsiio_attrto show you some help, and then she dips. that's it, that's the whole job β¨-V,--versionβ prints the version info for this copy ofiio_attrplus the version of the libiio library she's using. super useful for knowing whether your library and youriio_attrare actually up to date, and honestly iconic when you're filing a bug report π-S,--scan[backends] β scan for available IIO contexts. optional arg for specific backend(s):'ip','usb'or'ip:usb'. specific options for USB include Vendor ID and Product ID, so you can limit scanning to specific devices like'usb=0456,b673'. vid and pid are hexadecimal numbers (no prefix needed), and"*"matches any β that's pid only, bestie. if you give no argument at all, she checks all that are available π₯
π OPTIONS π
-u,--uriβ the Uniform Resource Identifier (uri) for connecting to devices. can be any one of these:ip:[address]network address, either numeric (192.168.0.1) or a network hostnameip:blank! if it was compiled with zeroconf support, this will find an IIO device on network β¨usb:[device:port:instance]normally returned fromiio_attr -Sserial:[port],[baud],[settings]which are controlled, and need to match the iiod (or tinyiiod) on the other end of the serial port.[port]is something like'/dev/ttyUSB0'on Linux, and'COM4'on Windows.[baud]is is normally one of110,300,600,1200,2400,4800,9600,14400,19200,38400,57600,115200[default],128000or256000, but can vary system to system.[settings]would normally be configured as'8n1'β this is controlled by:data_bits: (5,6,7,8[default], or9)parity_bits: ('n'none [default],'o'odd,'e'even,'m'mark, or's'space)stop_bits: (1[default, or 2)flow_control: ('0'none [default],'x'Xon Xoff,'r'RTSCTS, or'd'DTRDSR)
local:with no address part.
-i,--input-channelβ filters channels by input channels only π«Ά-o,--output-channelβ filters channels by output channels only πΈ-s,--scan-channelβ filters channels by scan channels only β-I,--ignore-caseβ when pattern matching devices, channels or attributes, ignore case. lowercase girlies stay winning π-g,--generate-code<arg> β generate small C or python snippets that emulate what you're doing on the command line. the argument is a file name, like'foo.c'or'foo.py'π
π RETURN VALUE π
if the specified device is not found, a non-zero exit code is returned. periodt. no device, no zero, we don't make the rules π€
π SEE ALSO π
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
ngl if you found a bug, drop it there, they're tracking everything π
okay that's the whole page, you ate that bestie π
this was libiio-0.26, dated 06 February 2026 β consider this your cute little sign-off, mwah ππβ¨
π¦ where this page comes from
- ubuntu resolute: libiio-utils 0.26-2build2 Β· LGPL-2.1-or-later
- ubuntu stonking: libiio-utils 0.26-2build2 Β· LGPL-2.1-or-later
- Copyright (c) 2018-2020 Robin Getz
- Copyright (c) 2018-2020 Analog Devices Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms