Hello John,
> I would be interested in a solution to this as well but 'm not sure I
> understood your reply to this. You replied with a reference to a
> large chunk of code.
The link I gave links to a particular line: 153 in this case.
I suppose it wasn't clear, so my apologies.
You can use -d to specify the device options as well as the driver.
Example:
sigrok-cli -l 5 -d lecroy:conn=tcp-raw/192.168.0.10/111
sigrok-cli -l 5 -d lecroy:conn=vxi/192.168.0.10
For USB devices, specifying only the driver is sufficient (rigol-ds
in your case). Does this make things clearer?
All the best,
-Soeren
>
> Having a scan through, I presume this segment is what you were
> referring to, but I am struggling to see your point. There is an
> option to specify a driver, but nothing about specifying a connection
> IP address or a config file - unless this is what is meant by 'input
> file'? If so, then what is the format of this file and what are the
> parameters that can be specified? I did find some information on File
> Formats, but nothing really that relates to this issue?
>
> BTW, I have noted -c --clean which might be useful for future
> reference so thanks for that.
>
> void usage()
> 142 {
> 143 fprintf(stdout,
> 144 "Usage:\n"
> 145 " %s [OPTIONS] [FILE]\n"
> 146 "\n"
> 147 "Help Options:\n"
> 148 " -h, -?, --help Show help
> option\n"
> 149 "\n"
> 150 "Application Options:\n"
> 151 " -V, --version Show release
> version\n"
> 152 " -l, --loglevel Set
> libsigrok/libsigrokdecode loglevel\n"
> 153 " -d, --driver Specify the
> device driver to use\n"
> 154 " -D, --no-scan Don't auto-
> scan for devices, use -d spec only\n"
> 155 " -i, --input-file Load input
> from file\n"
> 156 " -I, --input-format Input
> format\n"
> 157 " -c, --clean Don't restore
> previous sessions on startup\n"
> 158 " -s, --log-to-stdout Don't use
> logging, output to stdout instead\n"
> 159 "\n", PV_BIN_NAME);
> 160 }
>
>
> > > > I also experienced the problem you mentioned with the network
> > > > connection
> > > > config not being saved and having to be re-entered.
> > >
> > > I mean, that the connetion and device data on every start have
> > > do
> > > reentered - so it should be either a command line parameter to
> > > pulseview
> > > or part of a config file.
> >
> > There is a command line parameter for this:
> > https://sigrok.org/gitweb/?p=pulseview.git;a=blob;f=main.cpp;h=cdc7
> > 50aa80aade18b21916708463189c78a41f9a;hb=HEAD#l153
> >
> > PV also reconnects to USB devices if you so desire. Reconnecting to
> > ethernet
> > devices is not implemented at the moment.
> >
>
> --
> John
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel