On 01/04/2016 10:17 AM, Marc Titinger wrote: > On 03/01/2016 12:44, Lars-Peter Clausen wrote: >> Hi, >> >> On 12/31/2015 02:53 PM, Marc Titinger wrote: >>> >>> On behalf of Hubert Chaumette (author) >>> >>> >>> Clarification on usage: >>> >>> 'conn' was used for the IP in previous iterations, but the current code >>> uses libiio's IIOD_REMOTE variable for that. Instead, conn is now used >>> to choose a device, on branch generic-iio. This example should be: >>> >>> $ IIOD_REMOTE=$IP_OF_IIOD sigrok-cli --driver >>> generic-iio:conn=$IIO_DEVICE_ID_OR_NAME --samples 3 > > something like 'conn=${hostip},${device_name_or_id}' ? > > example: conn=192.168.1.69,device0 > > IDK if this is legit in terms of parameter parsing in Sigrok,:I assume, the > common parsing code will provide a parameter value like "ip,device" for us > to re-parse, which is fine.
Yes. Ideally we'd add a specifier that selects the backend. It is still a valid use case to e.g. want to use the local backend and there is now also the USB backend. I think libiio should provide a parsing function for host strings, this way we'll ensure that this will be the same for all types of applications. E.g. there shouldn't be a difference between how you specify the host in GnuRadio and sigrok. - Lars ------------------------------------------------------------------------------ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel