iio_genxml(1)

iio_genxml1

Generate xml representation of a libiio context

Usage

iio_genxml [options]

Overview

iio_genxml is a utility for generating a XML representation of a Libiio context.

Options

-h, --help

Tells iio_genxml to display some help, and then quit.

-V, --version

Prints the version information for this particular copy of iio_genxml and the version of the libiio library it is using. This is useful for knowing if the version of the library and iio_genxml on your system are up to date. This is also useful when reporting bugs.

-S, --scan [backends]

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.

-u, --uri

The Uniform Resource Identifier (uri) for connecting to devices, can be one of:

ip:[address]

network address, either numeric (192.168.0.1) or network hostname

ip:

blank, if compiled with zeroconf support, will find an IIO device on network

usb:[device:port:instance]

normally returned from iio_genxml -S

serial:[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 of 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200 [default], 128000 or 256000, but can vary system to system.

[settings]

would normally be configured as '8n1' this is controlled by:

data_bits:

(5, 6, 7, 8 [default], or 9)

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.

Return value

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

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11–12
  3. 13

--scan since Debian 13 (Trixie); --version since Debian 13 (Trixie); -S since Debian 13 (Trixie); -V since Debian 13 (Trixie).

--network until Debian 12 (Bookworm); --xml until Debian 12 (Bookworm); -n until Debian 12 (Bookworm); -x until Debian 12 (Bookworm).

Bugs

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

From libiio 0.26-5 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.