Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-29 Thread Marcus D. Leech
On Thu, Dec 29, 2011 at 5:15 PM, Andrew Davis > wrote: I will, but a lot are unmaintained. This is something that UHD should do anyway, and if it helps eliminate bad code then it's a win-win situation. Theres really no reason a program should have t

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-29 Thread Tom Rondeau
On Thu, Dec 29, 2011 at 5:15 PM, Andrew Davis wrote: > I will, but a lot are unmaintained. This is something that UHD should do > anyway, and if it helps eliminate bad code then it's a win-win situation. > Theres really no reason a program should have to ask for and set every UHD > variable every

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-29 Thread Andrew Davis
I will, but a lot are unmaintained. This is something that UHD should do anyway, and if it helps eliminate bad code then it's a win-win situation. Theres really no reason a program should have to ask for and set every UHD variable every time, this just adds a lot of clutter at the top of a program

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-29 Thread Matt Mills
On Thu, Dec 29, 2011 at 9:27 AM, Andrew Davis wrote: > It's going to have to be part of UHD because a lot of programs I'm having > problems with are not using GNUradio, they just read from UHD. > It seems like there is a lot of effort going into fixing problems with bad code; Perhaps these are i

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-29 Thread Andrew Davis
It's going to have to be part of UHD because a lot of programs I'm having problems with are not using GNUradio, they just read from UHD. UHD guesses on a lot of things ( device, sub-device, antenna, fpga image, fpga frequency etc. ) when not defined in the program, currently it's up to the program

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-28 Thread Tom Rondeau
On Sat, Dec 24, 2011 at 6:52 AM, Andrew Davis wrote: > What I'm proposing is simply for the UHD, when not given a specific > device, to check for a configuration file ( in the users home directory > preferably ) and load its default device and settings. This way if you dont > have this config file

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-24 Thread Andrew Davis
What I'm proposing is simply for the UHD, when not given a specific device, to check for a configuration file ( in the users home directory preferably ) and load its default device and settings. This way if you dont have this config file it will still make up the default device ( I believe this is

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Tom Rondeau
On Fri, Dec 23, 2011 at 9:23 PM, Andrew Davis wrote: > That might work, but why worry about people who reconfigure just yet, us > who use the device consistently still have to type several args every-time > we run a program, the first step is a simple default device config file. > I'm more concer

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Robert McGwier
Capture your complex command line in a shell script seems an easy way to do this yesterday, today, and tomorrow. Bob On Friday, December 23, 2011, Andrew Davis wrote: > That might work, but why worry about people who reconfigure just yet, us who use the device consistently still have to type se

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Andrew Davis
That might work, but why worry about people who reconfigure just yet, us who use the device consistently still have to type several args every-time we run a program, the first step is a simple default device config file. On Fri, Dec 23, 2011 at 9:09 PM, Tom Rondeau wrote: > On Fri, Dec 23, 2011

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Tom Rondeau
On Fri, Dec 23, 2011 at 8:23 PM, Andrew Davis wrote: > I see what your saying but typing "--address 'type=usrp1' --spec 'A:0' > --antenna 'TX/RX'" every time wasn't my problem. > The problem is programs that let UHD pick the default device, I don't know > how UHD chooses but it could check ~/.uhd/

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Andrew Davis
I see what your saying but typing "--address 'type=usrp1' --spec 'A:0' --antenna 'TX/RX'" every time wasn't my problem. The problem is programs that let UHD pick the default device, I don't know how UHD chooses but it could check ~/.uhd/uhd.conf or something instead of guessing. As you said I could

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Marcus D. Leech
Could you give me a hint? How do you interface with UHD before a C++/python program requests the device? Well, you complained about having to "type --spec A:0" a lot, which is a natural for a shell script that starts your program--whether that program is written in C++ or Python, and simply

Re: [Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Andrew Davis
Could you give me a hint? How do you interface with UHD before a C++/python program requests the device? On Fri, Dec 23, 2011 at 3:21 PM, Marcus D. Leech wrote: > > Hello all, > > > > Some programs don't let you specify a subdevice, they let UHD decide, > > in my case it picks wrong. Is there a

[Discuss-gnuradio] UHD default subdevice.

2011-12-23 Thread Andrew Davis
Hello all, Some programs don't let you specify a subdevice, they let UHD decide, in my case it picks wrong. Is there a uhd config file to chose the default subdevice if one is not specified ( I also wouldn't have to type "--spec "A:0" so much ). Thank you!