analogdevicesinc / iio-oscilloscope

A GTK+ based oscilloscope application for interfacing with various IIO devices

Home Page:https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSC (especially DMM plugin) should identify devices by ID and not by name

dNechita opened this issue · comments

There are situations where multiple IIO devices with the same name exists and in those cases there is no way to differentiate the devices if looking them up by name.

In theory this is the first thing to try iio_device_get_label()... in the kernel, IIO labels are how devices should be distinguished when multiple devices exist. We were doing this by setting the device name with the devicetree node name which is not how things should be done in IIO. Now that libiio supports labels, we can start doing this properly (in new drivers)... In #323 , I'm already making use of them :). Unfortunately for 2019_R2 we cannot use it as we cannot assume that 2019_R2 libiio has support for it

yeah, I would agree - by label, by name (if no duplicates), and by ID as the last resort...

I have started to do it with #345. Maybe the DMM plugin is the next on the list...