discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] multimode.py Wrong device arguments specified. Mi


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] multimode.py Wrong device arguments specified. Missing nchan?
Date: Thu, 06 Dec 2012 10:40:56 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 12/06/2012 07:30 AM, Ben Z en de rest wrote:
Hi,
Trying to get multimode running on a virtual machine (VMware) with Ubuntu 12.04.

My rtlsdr device is connected to rtl_tcp server at 192.168.0.99 port 1234.

Because of the message "FATAL: Wrong rtlsdr device index given." and the fact that there is no rtlsdr device connected to the VM so it has to connect to the rtl_tcp server I did change the multimode.py

def __init__(self, ahw="default", freq=150.0e6, ppm=0.0, vol=1.0, ftune=0.0, xftune=0.0, srate=1.0e6, upclo=0.0, devinfo="rtl_tcp 192.168.0.99:1234 ", agc=0, arate=48.0e3, upce=0, mthresh=-10.0, offs=50.e3, flist="", dfifo="multimode_fifo", mbw=2.0e3, deemph=75.0e-6, dmode="NFM1"):

and

type="string", default="rtl_tcp 192.168.0.99:1234",
        help="Set Device Information [default=%default]")

The wrong device index message disappeared but there is one error left

Traceback (most recent call last):
  File "ben.py", line 1101, in <module>
    tb = multimode(ahw=options.ahw, freq=options.freq, ppm=options.ppm, vol=options.vol, ftune=options.ftune, xftune=options.xftune, srate=options.srate, upclo=options.upclo, devinfo=options.devinfo, agc=options.agc, arate=options.arate, upce=options.upce, mthresh=options.mthresh, offs=options.offs, flist=options.flist, dfifo=options.dfifo, mbw=options.mbw, deemph=options.deemph, dmode=options.dmode)
  File "ben.py", line 488, in __init__
    self.osmosdr_source_c_0 = osmosdr.source_c( args="nchan=" + str(1) + " " + devinfo )
  File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 1309, in source_c
    return _osmosdr_swig.source_c(args)
RuntimeError: Wrong device arguments specified. Missing nchan?

Do I have to specify nchan myself, and if, where do I place the value ?

Thanks for your help,
Ben


 
_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
You know that you can pass those parameters ON THE COMMAND LINE, when you start up multimode -- no need to modify code.

multimode.py --devinfo "whatever"  for example



-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]