pothosware / SoapyPlutoSDR

Soapy SDR plugin for PlutoSDR
https://github.com/pothosware/SoapyPlutoSDR/wiki
GNU Lesser General Public License v2.1
53 stars 22 forks source link

How to differentiate 2 Adalm Pluto devices via their serial number #46

Closed waterwin closed 2 years ago

waterwin commented 2 years ago

I am trying to use 2 devices with different serial numbers with a SoapyPlutoSDR setup for OpenWebRx. But it fails, the developer of OWR advised me to turn to you for information as he is passing the device parameter that holds the serial number when calling Soapy.

Example from the OWR script for one of the devices (my xxx to hide the complete number) "device": "serial=1040xx323198000ffbff3300d0d1024xxx"

Both devices also have a different IP address and a different hardware build version B. and C. Besides that, one of them is a Pluto+ but that should not matter ;-)

Thanks de Erwin PE3ES / F4VTQ

zuckschwerdt commented 2 years ago

You can open the default Pluto IIO device using iio_create_default_context() or with

S.a. https://github.com/pothosware/SoapyPlutoSDR/blob/master/PlutoSDR_Settings.cpp#L19-L27 and https://analogdevicesinc.github.io/libiio/master/libiio/index.html#creating_context