Re: [Discuss-gnuradio] William & Alexander Hope this helps ...

2010-11-07 Thread Nick Foster
On Sun, 2010-11-07 at 22:14 -0500, alexander levedahl wrote:
> Thank you for the guide.  But I already have GNU radio installed, it
> is GNU radio companion that is causing the problems, I have an older
> version, but I am not sure if I can upgrade to the new one because I
> can't find any instructions on how to do it online.  Whatever version
> I have was installed about a month ago, so I don't think there has
> been a major upgrade since then.  The version of grc that I have is
> 0.70-6.fc12.  I do appreciate the help guide.
> 
> Alex
> 

Alex,

As Josh mentioned earlier, that version of GRC is ludicrously out of
date and won't work. It is strictly a relic of Fedora's package
maintainers and should probably be uninstalled. Later versions of
Gnuradio include GRC as part of the bundle, and so installing Gnuradio
also gets you GRC. That's why you can't find a GRC install guide.

Mr. Pretty's build guide will also install GRC from source as part of
the process (as it is bundled with Gnuradio) and so following it should
get you the most up-to-date Gnuradio/GRC installation. I recommend
taking the plunge and installing from Git. As his guide is tailored to
Ubuntu, the steps required will differ only in that you will have to
install the packages mentioned in steps 6 and 7 via yum, the Fedora
package manager. The names of the packages may differ, but you can
always use the graphical package management tool to find the most
up-to-date packages for your system.

No, it is not a single-click operation, but hey, it's free. Until we get
around to implementing Clippy for Gnuradio, it will still take some
Linux skills to utilize effectively.

--n


> 
> On Sun, Nov 7, 2010 at 9:52 PM, William Pretty Security Inc
>  wrote:
> Believe me guys, I know your pain. Been there done that L
> 
>  
> 
> After if figured things out I wrote the attached document. It
> is a step by step how-to.
> 
> Written by a Windows XP / RF Engineer …
> 
>  
> 
> Good luck to you both …
> 
>  
> 
> Bill
> 
>  
> 
>  
> 
>  
> 
> "People sleep peaceably in their beds at night only because
> rough men
> 
> stand ready to do violence on their behalf." - George Orwell
> 
>  
> 
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Question of tx_ampl range: [0, 1) or [0, 2^15/2) ?

2010-11-07 Thread Rachel Li
Hi All:

I am trying to set a proper pair of tx amplitude and rx gain, but found
something confused.

In transmit_path.py ( ..-> packet_transmitter -> Multiply Const -> USRP
Sink),  I see that the range of Multiply Const is [0, 1).

However, in one of the GRC example usrp_tx_dpsk.grc (Random Source -> DPSK2
Mod -> Multiply Const -> USRP Sink), Multiply_Const = tx_ampl*p2p/2 , where
p2p = 2^15.

Does anyone know why the Multiply_Const is set to tx_ampl*p2p/2 and what
does p2p refer to?

Also, why the amplifier value are so different in these two examples? Which
one should I use?

Many thanks!

Rachel
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Circulator and RX/TX path on daughter board?

2010-11-07 Thread Matt Ettus

On 10/22/2010 01:47 PM, Colby Boyer wrote:

Has anyone attempted to attach the RX/TX path of a daughter board to a
circulator. This is so that in a half duplex system, both paths can
share the same antenna.


In a half duplex system both paths can already share the same antenna. 
It is only for full duplex that you need separate antennas.


Matt

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Marcus D. Leech
On 11/07/2010 10:16 PM, alexander levedahl wrote:
> The person who installed the package on my computer said that he
> followed whatever instructions came on the website, so I assume he
> installed whatever is the most recent.
>
> Alex
>
>   
One of the problems is that support for Fedora 11 was dropped quite some
time ago (last year?).
  So no further updates will *ever* be available for Fedora 11.  Fedora
12 is about to enter that
  state as well, with the release of Fedora 14.

Which means that if you want to do updates, and keep the same basic
Fedora 11 platform, you
  have do install from source, and deal with whatever that entails.

That's annoying, to be sure, but it's a problem that's squarely outside
the purview of this
  particular forum.

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



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails

2010-11-07 Thread Marcus D. Leech
On 11/07/2010 10:02 PM, Josh Blum wrote:
> So, from what I gather, you build and ran 3.2.2 and dial tone worked
> fine. However, building and running dial done on the next branch gives
> you the following error?
>
>>
>> audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000
>>
>> card requested 44100 instead.
>>
>
> Maybe the underlying implementation of the alsa sink changed from
> 3.2.2 to next? Anybody aware of this?
>
> Take a look at the docs in the Audio sink block, I think there is a
> note to enable the resampler, or just pick a sample rate that your
> sound card agrees with.
>
> -josh
When I use alsa audio, I generally use the "plughw" device, which does
resampling.

This didn't work for a while on some Fedora distributions a couple of
releases back, but I recall
 that a system update corrected it.


>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>


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



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread alexander levedahl
The person who installed the package on my computer said that he followed
whatever instructions came on the website, so I assume he installed whatever
is the most recent.

Alex
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Marcus D. Leech
On 11/07/2010 09:38 PM, alexander levedahl wrote:
> This is the third time I have asked for help, each time I have tried
> to be civil, but I get responses back telling me to learn linux, not
> help with GNU-Radio/USRP2.  Or if they are help with GNURadio/USRP2,
> it is with GRC, which doesn't work with whatever version of Fedora I
> happen to have. 
>
> My initial request for help was a couple of weeks ago and was this:
>
> I just started using the USRP2 with GNURadio.  I have made a script
> that uses the gnuradio library, but it does not try and interface with
> the USRP2.
>
> How do you do this?  Or alternatively is there a list of gnuradio
> functions that I can look at that has how to set this up?  I have
> tried doing a google search for this, but it turns up nothing that I
> have found to be helpful.
>
> Thanks
>   Alex
>
> The response was for GRC, which doesn't work with whatever version of
> Fedora I have; however, by looking through the examples I tried to
> scrape together something, that didn't work.
>
> My second request for help was this:
>
> I have tried transmitting an analog signal from one USRP2 to another,
> but when I run usrp2_fft.py on the rx computer, there is no receive
> signal.  The analog signal is supposed to be two tones at 350 and 440
> HZ transmitted at 2.6GHz.  Can anyone help me figure out what I am
> doing wrong?
>
> This included the python script that I had written; I did not get any
> responses.
>
> My third request:
>
> I have tried transmitting an analog signal from one USRP2 to another,
> but when I run usrp2_fft.py on the rx computer, there is no receive
> signal.  The analog signal is supposed to be two tones at 350 and 440
> HZ transmitted at 2.6GHz.  Can anyone help me figure out what I am
> doing wrong?
>
> I have tried using GRC, but at the most up to date version does not
> work with Fedora, which is the OS that I have to use, this is for a
> research project with a professor at my university, and the mandate is
> to use Fedora, this does not look like it will change in the near
> future. 
>
> Again the response was to use GRC, which does not work with the
> version of Fedora that I have. 
>
> Fedora 11 is old and no longer updated. Upgrade your fedora.
>
> As I mentioned in my initial request for help, I cannot change the
> version of Fedora that I have.  It is mandated by a person who at the
> beginning of this semester made the decision to use this specific OS
> and it cannot be changed because of a large amount of software that
> would have to be reinstalled.  This ordinarily would not be a problem,
> except for the fact that the software has to be installed in a
> specific manner depending on the specific version of the OS and the OS
> itself.  I do not use that software, but that is the reason I was
> given.  This again would not be a problem since I have a laptop that I
> can do whatever with, but that doesn't solve the problem for everyone
> else on the project, somewhere between 15 and 25 people.  And I have
> Fedora 13, my inclusion of the statement about Fedora 11 was to
> illustrate a point about how confusing the instructions are.
>
> If you make a mistake installing software, its not a big deal, just
> google around, and if you need help,  ask  for help, polietly and
> someone will help. Complaining is not gonna fix anything.
>
> I did ask for help; however, I did not get it, I got people telling me
> to use GRC, which doesn't work with whatever version of Fedora I
> happen to have.
>
> Assuming you actually need to Install sdcc from source, it is no
> different then installing gnuradio from source. 7 simple steps here is
> the link from my google search "sdcc install
> linux"http://sdcc.sourceforge.net/doc/sdccman.html/node15.html#sub:Building-SDCC-on-Linux
>
> And what if I don't understand 75% of phrases in these 7 "simple" steps?
>
> I use Linux, and almost every program i use is a single click install
> from the software center and its free. Your comparing installing
> binaris in windows to installing bleeding endge source code in linux.
> Not a valid comparision.
>
> Interesting, the one time I actually need to use linux, it is not a
> "single click install."  Someone gave a bash script that installed
> GNU-Radio, and that works as long as I restrict myself to using the
> sample scripts that come with GNU Radio, which again is not useful.
>
> 1) As with a lot of things that seems complicated at first, some basic
> knowledge helps simplify things greatly. I'd suggest checking out a
> basic linux book at your library. Perhpas some others on the list can
> suggest some.
> 2) Linux isn't that scary, and most problems you encounter can be
> fixed up with a bit of googling.
>
> Or perhaps you could suggest some?  I also tried googling for help
> with USRP2, but got back links for a program I can't use or links that
> don't help.
>
> 3) GNU Radio + USRP isn't an easy thing. It requires knowledge of
> programming, DSP, digital communications, and

Re: [Discuss-gnuradio] William & Alexander Hope this helps ...

2010-11-07 Thread alexander levedahl
Thank you for the guide.  But I already have GNU radio installed, it is GNU
radio companion that is causing the problems, I have an older version, but I
am not sure if I can upgrade to the new one because I can't find any
instructions on how to do it online.  Whatever version I have was installed
about a month ago, so I don't think there has been a major upgrade since
then.  The version of grc that I have is 0.70-6.fc12.  I do appreciate the
help guide.

Alex


On Sun, Nov 7, 2010 at 9:52 PM, William Pretty Security Inc <
bill.pre...@xplornet.com> wrote:

>  Believe me guys, I know your pain. Been there done that L
>
>
>
> After if figured things out I wrote the attached document. It is a step by
> step how-to.
>
> Written by a Windows XP / RF Engineer …
>
>
>
> Good luck to you both …
>
>
>
> Bill
>
>
>
>
>
>
>
> "People sleep peaceably in their beds at night only because rough men
>
> stand ready to do violence on their behalf." - George Orwell
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Josh Blum



On 11/07/2010 07:06 PM, alexander levedahl wrote:

I might have made an error here by assuming that since the latest version of
grc doesn't come with the build for Fedora 13, it doesn't work with Fedora
13.  When I have used the add/remove software tool, it tells me that
0.70-6.fc12 is the most up to date version around, and I can't find


oh ah haha. It never dies... Thats an ancient version of GRC before it 
became integrated with gnuradio. It probably wont work with a recent 
version of gnuradio anyway. I think the gnuradio Fedora package is an 
all in one, so if you install that, you get grc. -Josh



instructions on the gnuradio website for a more recent version.

Alex


On Sun, Nov 7, 2010 at 9:54 PM, Josh Blum  wrote:



  I have tried using GRC, but at the most up to date version does not work

with Fedora, which is the OS that I have to use, this is for a research
project with a professor at my university, and the mandate is to use
Fedora,
this does not look like it will change in the near future.




Whats the error?

-Josh


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio





___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread alexander levedahl
I might have made an error here by assuming that since the latest version of
grc doesn't come with the build for Fedora 13, it doesn't work with Fedora
13.  When I have used the add/remove software tool, it tells me that
0.70-6.fc12 is the most up to date version around, and I can't find
instructions on the gnuradio website for a more recent version.

Alex


On Sun, Nov 7, 2010 at 9:54 PM, Josh Blum  wrote:

>
>  I have tried using GRC, but at the most up to date version does not work
>> with Fedora, which is the OS that I have to use, this is for a research
>> project with a professor at my university, and the mandate is to use
>> Fedora,
>> this does not look like it will change in the near future.
>>
>>
>
> Whats the error?
>
> -Josh
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails

2010-11-07 Thread Josh Blum
So, from what I gather, you build and ran 3.2.2 and dial tone worked 
fine. However, building and running dial done on the next branch gives 
you the following error?




audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000

card requested 44100 instead.



Maybe the underlying implementation of the alsa sink changed from 3.2.2 
to next? Anybody aware of this?


Take a look at the docs in the Audio sink block, I think there is a note 
to enable the resampler, or just pick a sample rate that your sound card 
agrees with.


-josh

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Josh Blum



I have tried using GRC, but at the most up to date version does not work
with Fedora, which is the OS that I have to use, this is for a research
project with a professor at my university, and the mandate is to use Fedora,
this does not look like it will change in the near future.




Whats the error?

-Josh

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] William & Alexander Hope this helps ...

2010-11-07 Thread William Pretty Security Inc
Believe me guys, I know your pain. Been there done that L

 

After if figured things out I wrote the attached document. It is a step by
step how-to.

Written by a Windows XP / RF Engineer .

 

Good luck to you both .

 

Bill

 

 

 

"People sleep peaceably in their beds at night only because rough men

stand ready to do violence on their behalf." - George Orwell

 



InstallingGNURadioFromGITUbuntu910.odt
Description: application/vnd.oasis.opendocument.text
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread alexander levedahl
This is the third time I have asked for help, each time I have tried to be
civil, but I get responses back telling me to learn linux, not help with
GNU-Radio/USRP2.  Or if they are help with GNURadio/USRP2, it is with GRC,
which doesn't work with whatever version of Fedora I happen to have.

My initial request for help was a couple of weeks ago and was this:

I just started using the USRP2 with GNURadio.  I have made a script that
uses the gnuradio library, but it does not try and interface with the USRP2.

How do you do this?  Or alternatively is there a list of gnuradio functions
that I can look at that has how to set this up?  I have tried doing a google
search for this, but it turns up nothing that I have found to be helpful.

Thanks
  Alex

The response was for GRC, which doesn't work with whatever version of Fedora
I have; however, by looking through the examples I tried to scrape together
something, that didn't work.

My second request for help was this:

I have tried transmitting an analog signal from one USRP2 to another, but
when I run usrp2_fft.py on the rx computer, there is no receive signal.  The
analog signal is supposed to be two tones at 350 and 440 HZ transmitted at
2.6GHz.  Can anyone help me figure out what I am doing wrong?

This included the python script that I had written; I did not get any
responses.

My third request:

I have tried transmitting an analog signal from one USRP2 to another, but
when I run usrp2_fft.py on the rx computer, there is no receive signal.  The
analog signal is supposed to be two tones at 350 and 440 HZ transmitted at
2.6GHz.  Can anyone help me figure out what I am doing wrong?

I have tried using GRC, but at the most up to date version does not work
with Fedora, which is the OS that I have to use, this is for a research
project with a professor at my university, and the mandate is to use Fedora,
this does not look like it will change in the near future.

Again the response was to use GRC, which does not work with the version of
Fedora that I have.

Fedora 11 is old and no longer updated. Upgrade your fedora.

As I mentioned in my initial request for help, I cannot change the version
of Fedora that I have.  It is mandated by a person who at the beginning of
this semester made the decision to use this specific OS and it cannot be
changed because of a large amount of software that would have to be
reinstalled.  This ordinarily would not be a problem, except for the fact
that the software has to be installed in a specific manner depending on the
specific version of the OS and the OS itself.  I do not use that software,
but that is the reason I was given.  This again would not be a problem since
I have a laptop that I can do whatever with, but that doesn't solve the
problem for everyone else on the project, somewhere between 15 and 25
people.  And I have Fedora 13, my inclusion of the statement about Fedora 11
was to illustrate a point about how confusing the instructions are.

If you make a mistake installing software, its not a big deal, just google
around, and if you need help,  ask  for help, polietly and someone will
help. Complaining is not gonna fix anything.

I did ask for help; however, I did not get it, I got people telling me to
use GRC, which doesn't work with whatever version of Fedora I happen to
have.

Assuming you actually need to Install sdcc from source, it is no different
then installing gnuradio from source. 7 simple steps here is the link from
my google search "sdcc install linux"
http://sdcc.sourceforge.net/doc/sdccman.html/node15.html#sub:Building-SDCC-on-Linux

And what if I don't understand 75% of phrases in these 7 "simple" steps?

I use Linux, and almost every program i use is a single click install from
the software center and its free. Your comparing installing binaris in
windows to installing bleeding endge source code in linux. Not a valid
comparision.

Interesting, the one time I actually need to use linux, it is not a "single
click install."  Someone gave a bash script that installed GNU-Radio, and
that works as long as I restrict myself to using the sample scripts that
come with GNU Radio, which again is not useful.

1) As with a lot of things that seems complicated at first, some basic
knowledge helps simplify things greatly. I'd suggest checking out a basic
linux book at your library. Perhpas some others on the list can suggest
some.
2) Linux isn't that scary, and most problems you encounter can be fixed up
with a bit of googling.

Or perhaps you could suggest some?  I also tried googling for help with
USRP2, but got back links for a program I can't use or links that don't help.


3) GNU Radio + USRP isn't an easy thing. It requires knowledge of
programming, DSP, digital communications, and maybe even some basic
electronics/circuits. If you already have that knowledge, why not take a bit
more time and get some linux knowledge under your belt. The two (at this
point) really go hand-in-hand.

I have knowledge of DSP, programmin

Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Marcus D. Leech
On 11/07/2010 06:59 PM, alexander levedahl wrote:
> Looking through those instructions I realized why Microsoft makes so
> much money, when you install programs on a windows machine the OS does
> it for you, whereas with linux it requires knowing what a tarball is,
> what cloning a repository means, what a git viewer is, what this
> sentence means "It will show you all of the branching and merging,
> diffs, etc.", comprehending "./bootstrap", and whether or not you need
> to run that command, comprehending "./configure", comprehending
> "make", knowing what to do if when you try and run "sudo" that fails,
> and how to give an account sudo privelege, comprehending "git clean -d
> -x -f", comprehending "yum install qt4-devel qwt-devel
> qwtplot3d-qt4-devel PyQt4-devel", knowing what bootstrap, configure,
> make means.  When I clicked on the "Fedora installation instructions"
> page it gets even worse:
>
> yum install gnuradio usrp
> Some one who doesn't know that installing stuff for USRP does not
> install it for USRP2 will run this and then become confused.
>
> $ yum groupinstall "Engineering and Scientific" "Development Tools"
> $ yum install fftw-devel cppunit-devel wxPython-devel libusb-devel \
> guile boost-devel alsa-lib-devel numpy gsl-devel python-devel pygsl \
> python-cheetah python-lxml PyOpenGL
> $ yum install PyQt4-devel qwt-devel qwtplot3d-qt4-devel (The pkg names
> depend on the version of Fedora. These work for 12)
>
> WTF?
>
> And then there is a set of instructions on what to do for the USRP but
> not the USRP2, for someone NOT familiar with linux, they will get lost
> at this point.  But lets say that we have USRP,
>
> The version of sdcc packaged for Fedora 11 (2.9.0) does not work with
> GNU Radio 3.2. It is possible to use the version packaged for Fedora
> 10 (2.8.0) available for i386
> 
> and x86_64
> .
> Alternatively sdcc 2.9.0 can be compiled from source available here
> .
>
> On earlier versions of Fedora you have to download the _Small Device C
> Compiler , build and install yourself.
>
> will drive anyone NOT FAMILIAR with linux nuts.  Windows comes with a
> couple of different versions and does its best to not make the above
> problems apparent, such that if I have software that was designed for
> windows '98, it won't fail for windows '98 version 1.1, and will still
> work on XP and possibly Vista and 7.
>
> Based on the linux commands I saw, if one mistake gets made,
> everything will get screwed up and, unless that user has a high degree
> of familiarity with linux, this problem will sit there and never be
> resolved.
>
> Alex
>
>
Apples to oranges comparison.  Linux distributions have "installers" for
100s and 100s of
  of different pre-configured, ready-to-go applications, just like
Windows does.  Those installers
  take care of any pre-requisites required, typically.  There are
pre-packaged versions of Gnu Radio
  available for Fedora, including GRC.  Those pre-packaged versions are
somewhat out-of-date
  with respect to the current development (actually, sometimes *really*
out-of-date).  On Fedora,
  Using the "System->Administration->Add/Remove Software" function
allows you to select
  from hundreds and hundreds of categorized software and install it over
the net, generally
  utterly seamlessly.  Try going in there and typing a search term, like
"gnuradio" or
  "plotting", or "scientific" or "engineering", or "radio", or
"algebra", or "simulation", or
  "electronics".   Some of what you find there likely also has versions
for Windows.

It's up to the maintainers of Linux-distribution-specific "packages" as
to what and when they
  "package" tools like Gnu Radio.  On Fedora 12, for example, the
version of GRC they package
  is horribly out-of-date.  The Gnu Radio project can't "force" Fedora,
Ubuntu, or any other
  Linux distribution project to update their packages--it's not up to
us, it's not done by us, it's
  outside of the Gnu Radio projects immediately responsibility.

Gnu Radio is an on-going development platform whose intended audience is
engineering and
  science folks want to "do stuff" with software defined radio.  It's
still very much a moving target,
  and as such, some amount of "pain" involving building from sources is
to be expected.

It is the case that the pre-packaged-for-particular-Linux-distribution
instances of Gnu Radio
  are "born obsolete", since Gnu Radio is an evolving, dynamic thing. 
Most of us here on the
  list are involved, in one way or another, with the development of that
"ongoing dynamic thing",
  so it's natural that we'd suggest that people "install from GIT source".

It's rather awkward to in one breath complain that the version of Gnu
Radio that has be

Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread William Cox
Alex,
I know you're frustrated. But, let me make a few points:
1) As with a lot of things that seems complicated at first, some basic
knowledge helps simplify things greatly. I'd suggest checking out a basic
linux book at your library. Perhpas some others on the list can suggest
some.
2) Linux isn't that scary, and most problems you encounter can be fixed up
with a bit of googling.
3) GNU Radio + USRP isn't an easy thing. It requires knowledge of
programming, DSP, digital communications, and maybe even some basic
electronics/circuits. If you already have that knowledge, why not take a bit
more time and get some linux knowledge under your belt. The two (at this
point) really go hand-in-hand.

Don't be discouraged. Also, civility, humility, and pleasantness will help
you greatly in getting help from this list of folks like me - spending a
Sunday evening with my 1 year-old on my lap, writing an email to a stranger
who's having a problem with GNU Radio.
-William


On Sun, Nov 7, 2010 at 6:59 PM, alexander levedahl <
alexanderleved...@gmail.com> wrote:

> Looking through those instructions I realized why Microsoft makes so much
> money, when you install programs on a windows machine the OS does it for
> you, whereas with linux it requires knowing what a tarball is, what cloning
> a repository means, what a git viewer is, what this sentence means "It will
> show you all of the branching and merging, diffs, etc.", comprehending
> "./bootstrap", and whether or not you need to run that command,
> comprehending "./configure", comprehending "make", knowing what to do if
> when you try and run "sudo" that fails, and how to give an account sudo
> privelege, comprehending "git clean -d -x -f", comprehending "yum install
> qt4-devel qwt-devel qwtplot3d-qt4-devel PyQt4-devel", knowing what
> bootstrap, configure, make means.  When I clicked on the "Fedora
> installation instructions" page it gets even worse:
>
> yum install gnuradio usrp
> Some one who doesn't know that installing stuff for USRP does not install
> it for USRP2 will run this and then become confused.
>
> $ yum groupinstall "Engineering and Scientific" "Development Tools"
> $ yum install fftw-devel cppunit-devel wxPython-devel libusb-devel \
> guile boost-devel alsa-lib-devel numpy gsl-devel python-devel pygsl \
>  python-cheetah python-lxml PyOpenGL
> $ yum install PyQt4-devel qwt-devel qwtplot3d-qt4-devel (The pkg names
> depend on the version of Fedora. These work for 12)
>
> WTF?
>
> And then there is a set of instructions on what to do for the USRP but not
> the USRP2, for someone NOT familiar with linux, they will get lost at this
> point.  But lets say that we have USRP,
>
> The version of sdcc packaged for Fedora 11 (2.9.0) does not work with GNU
> Radio 3.2. It is possible to use the version packaged for Fedora 10 (2.8.0)
> available for 
> i386and
> x86_64.
> Alternatively sdcc 2.9.0 can be compiled from source available 
> here
> .
>
> On earlier versions of Fedora you have to download the _Small Device C
> Compiler , build and install yourself.
>
> will drive anyone NOT FAMILIAR with linux nuts.  Windows comes with a
> couple of different versions and does its best to not make the above
> problems apparent, such that if I have software that was designed for
> windows '98, it won't fail for windows '98 version 1.1, and will still work
> on XP and possibly Vista and 7.
>
> Based on the linux commands I saw, if one mistake gets made, everything
> will get screwed up and, unless that user has a high degree of familiarity
> with linux, this problem will sit there and never be resolved.
>
> Alex
>
>
> P.S. You might be able to avoid a lot of these problems if you wrote a
> tutorial on how to write a python script that does this instead of an
> infinite number of tutorials on how to write a python script that transmits
> 350Hz and 440Hz tones over speakers and a grc diagram that transmits the
> same tones over the air.
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread alexander levedahl
Looking through those instructions I realized why Microsoft makes so much
money, when you install programs on a windows machine the OS does it for
you, whereas with linux it requires knowing what a tarball is, what cloning
a repository means, what a git viewer is, what this sentence means "It will
show you all of the branching and merging, diffs, etc.", comprehending
"./bootstrap", and whether or not you need to run that command,
comprehending "./configure", comprehending "make", knowing what to do if
when you try and run "sudo" that fails, and how to give an account sudo
privelege, comprehending "git clean -d -x -f", comprehending "yum install
qt4-devel qwt-devel qwtplot3d-qt4-devel PyQt4-devel", knowing what
bootstrap, configure, make means.  When I clicked on the "Fedora
installation instructions" page it gets even worse:

yum install gnuradio usrp
Some one who doesn't know that installing stuff for USRP does not install it
for USRP2 will run this and then become confused.

$ yum groupinstall "Engineering and Scientific" "Development Tools"
$ yum install fftw-devel cppunit-devel wxPython-devel libusb-devel \
guile boost-devel alsa-lib-devel numpy gsl-devel python-devel pygsl \
python-cheetah python-lxml PyOpenGL
$ yum install PyQt4-devel qwt-devel qwtplot3d-qt4-devel (The pkg names
depend on the version of Fedora. These work for 12)

WTF?

And then there is a set of instructions on what to do for the USRP but not
the USRP2, for someone NOT familiar with linux, they will get lost at this
point.  But lets say that we have USRP,

The version of sdcc packaged for Fedora 11 (2.9.0) does not work with GNU
Radio 3.2. It is possible to use the version packaged for Fedora 10 (2.8.0)
available for 
i386and
x86_64.
Alternatively sdcc 2.9.0 can be compiled from source available
here
.

On earlier versions of Fedora you have to download the _Small Device C
Compiler , build and install yourself.

will drive anyone NOT FAMILIAR with linux nuts.  Windows comes with a couple
of different versions and does its best to not make the above problems
apparent, such that if I have software that was designed for windows '98, it
won't fail for windows '98 version 1.1, and will still work on XP and
possibly Vista and 7.

Based on the linux commands I saw, if one mistake gets made, everything will
get screwed up and, unless that user has a high degree of familiarity with
linux, this problem will sit there and never be resolved.

Alex


P.S. You might be able to avoid a lot of these problems if you wrote a
tutorial on how to write a python script that does this instead of an
infinite number of tutorials on how to write a python script that transmits
350Hz and 440Hz tones over speakers and a grc diagram that transmits the
same tones over the air.
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Marcus D. Leech
On 11/07/2010 04:29 PM, alexander levedahl wrote:
> Let me rephrase this.  I CANNOT USE GRC.  The latest version does not
> work with the OS that I have, and nobody here has any idea about how
> to follow the instructions to compile from source files.  So using GRC
> IS NOT AN OPTION.  We have to program in GNU radio using python
> scripts, NOT GRC.
>
> Alex
So nobody there, including *yourself* apparently, has enough clue to
rebuild Gnu Radio from source.
  I wonder, out loud, how you're going to be able to engage in any kind
of serious development if
  a simple task (and believe me, it *is* relatively simple) like
building from the latest GIT source
  on a well-supported platform like Fedora is a serious stumbling block.

The fact is, that most people on here are pretty busy folks, and if
we're going to help debug stuff
  for people, having the flow-graphs in a form that is less
time-consuming, both for the developer,
  and the folks who are donating their time to help you debug, just
makes a lot of sense.

It's vastly easier to spot obvious errors quickly in a GRC flow-graph
than to delve into someones
  Python code.  GRC is a *great* prototyping tool, and it's *totally*
worth the effort to get it
  going.  Some initial pain perhaps (although, really, doing a
build/install from GIT for all recent
  Fedora instantiations is very straightforward--use the BuildGuide
that's on the gnuradio website).


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



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Marcus D. Leech
On 11/07/2010 02:00 PM, alexander levedahl wrote:
> I have tried transmitting an analog signal from one USRP2 to another,
> but when I run usrp2_fft.py on the rx computer, there is no receive
> signal.  The analog signal is supposed to be two tones at 350 and 440
> HZ transmitted at 2.6GHz.  Can anyone help me figure out what I am
> doing wrong?
>
> I have tried using GRC, but at the most up to date version does not
> work with Fedora, which is the OS that I have to use, this is for a
> research project with a professor at my university, and the mandate is
> to use Fedora, this does not look like it will change in the near
> future.  
>
> Alex
>
You haven't mentioned which daugtercard(s) you're using on the TX and RX
sides.

Also, your tones are going to be offset from the center frequency by
less than 1KHz, so they'll
  be hard to see in the DC-offset removal process.

Try tuning your receiver up or down a couple of KHz and see if your
tones show up in
  the FFT.




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



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread alexander levedahl
Let me rephrase this.  I CANNOT USE GRC.  The latest version does not work
with the OS that I have, and nobody here has any idea about how to follow
the instructions to compile from source files.  So using GRC IS NOT AN
OPTION.  We have to program in GNU radio using python scripts, NOT GRC.

Alex

On Sun, Nov 7, 2010 at 2:05 PM, Marcus D. Leech  wrote:

> On 11/07/2010 02:00 PM, alexander levedahl wrote:
> > I have tried transmitting an analog signal from one USRP2 to another,
> > but when I run usrp2_fft.py on the rx computer, there is no receive
> > signal.  The analog signal is supposed to be two tones at 350 and 440
> > HZ transmitted at 2.6GHz.  Can anyone help me figure out what I am
> > doing wrong?
> >
> > I have tried using GRC, but at the most up to date version does not
> > work with Fedora, which is the OS that I have to use, this is for a
> > research project with a professor at my university, and the mandate is
> > to use Fedora, this does not look like it will change in the near
> > future.
> >
> > Alex
> >
> >
> I use GRC on Fedora all the time.  I have Fedora 11,12 and 13 on my
> machines, and I use
>  GRC on them all the time.
>
> If you installed from a recent GIT source, GRC installs as
> "gnuradio-companion" to not conflict
>  with another piece of software called grc.
>
>
>
>
> --
> Principal Investigator
> Shirleys Bay Radio Astronomy Consortium
> http://www.sbrac.org
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Dial tone under GNU Radio Companion fails

2010-11-07 Thread Allen Vinegar
 I have installed  GNU radio and UHD as per instruction of Marc Epard (3Aug). I 
am running UBUNTU 10.04. When running GNU Radio Companion and trying to run the 
dial tone example I get the following output on the terminal with failure of 
the program to run. When using the 3.2.2 version of GNU Radio and invoking GRC 
the program ran fine. I am "GNUbee" and would appreciate  help with this 
problem. 

Thank you,
Al Vinegar
a...@ubuntu:~$ gnuradio-companion 

<<< Welcome to GNU Radio Companion v3.3.1git-196-g2aef0484 >>> 




Loading: 
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.grc" 

>>> Done 




Showing: 
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.grc" 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 




Generating: 
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py" 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 




Executing: 
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py" 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 







** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 

audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000 

card requested 44100 instead. 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 

audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 

Traceback (most recent call last): 

File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", 
line 120, in  

tb = dial_tone() 

File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", 
line 85, in __init__ 

self.audio_sink = audio.sink(32000, "", True) 

File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line 321, 
in sink 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 

return _audio_alsa.sink(*args, **kwargs) 

RuntimeError: audio_alsa_sink 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 




>>> Done 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 




** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion 
`height >= -1' failed 

a...@ubuntu:~$ 
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] USRP BasicRX read_io() from pins

2010-11-07 Thread Burak TUYSUZ
I did implement the pps input in the firmware
so I can precisely start collecting data and the buffer problem solved.
Thank you for your help
-Burak

On Sat, Nov 6, 2010 at 12:51 PM, Burak TUYSUZ  wrote:

> Do you think that it  will work or
> should I use verilog for this purpose?
>
> Actually I did something in verilog but I guess when I stop collecting data
> some
> of the data waiting in the buffers, so that is why I wanted to learn if it
> is easier to do in python.
> Thank you
>
>
>
> On Sat, Nov 6, 2010 at 12:48 PM, Eric Blossom  wrote:
>
>> On Sat, Nov 06, 2010 at 12:43:28PM -0400, Burak TUYSUZ wrote:
>> > Thanks Eric,
>> >
>> > Is there a pps input application/example done with this on USRP1
>> > probably using a counter in python.
>>
>> Not that I know of.
>>
>> > I would like it to count the pulses coming from a source and according
>> to
>> > that
>> > start collecting data.
>> >
>> > I would appreciate if you could explain this a little bit.
>> > Thank you
>> >
>> > On Sat, Nov 6, 2010 at 12:32 PM, Eric Blossom  wrote:
>> >
>> > > On Sat, Nov 06, 2010 at 11:11:51AM -0400, Burak TUYSUZ wrote:
>> > > > Hi all,
>> > > > I want to read an input from BasicRX pins using read_io()
>> > > > I could not find a document how to do this in python.
>> > > > An example would be great thank you in advance.
>> > >
>> > >   pins = u.read_io(0)   # 0 -> side A; 1 -> side B
>> > >
>> > > Eric
>> > >
>>
>
>
>
> --
> Burak TUYSUZ
> Ph.D. Candidate, Research Assistant
> The Pennsylvania State University
> Electrical Engineering
> 329 Electrical Engineering East Building
> University Park, PA 16802
>
> **CONFIDENTIAL**
> This e-mail message and any included attachments are confidential, intended
> only or the recipient named above, and may contain information that is
> privileged and exempt from disclosure under applicable law.  If you have
> received this message in error, or are not the named recipient, please
> immediately notify the sender by return e-mail and delete all copies of this
> message.
>
>


-- 
Burak TUYSUZ
Ph.D. Candidate, Research Assistant
The Pennsylvania State University
Electrical Engineering
329 Electrical Engineering East Building
University Park, PA 16802

**CONFIDENTIAL**
This e-mail message and any included attachments are confidential, intended
only or the recipient named above, and may contain information that is
privileged and exempt from disclosure under applicable law.  If you have
received this message in error, or are not the named recipient, please
immediately notify the sender by return e-mail and delete all copies of this
message.
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread Marcus D. Leech
On 11/07/2010 02:00 PM, alexander levedahl wrote:
> I have tried transmitting an analog signal from one USRP2 to another,
> but when I run usrp2_fft.py on the rx computer, there is no receive
> signal.  The analog signal is supposed to be two tones at 350 and 440
> HZ transmitted at 2.6GHz.  Can anyone help me figure out what I am
> doing wrong?
>
> I have tried using GRC, but at the most up to date version does not
> work with Fedora, which is the OS that I have to use, this is for a
> research project with a professor at my university, and the mandate is
> to use Fedora, this does not look like it will change in the near
> future.  
>
> Alex
>
>   
I use GRC on Fedora all the time.  I have Fedora 11,12 and 13 on my
machines, and I use
  GRC on them all the time.

If you installed from a recent GIT source, GRC installs as
"gnuradio-companion" to not conflict
  with another piece of software called grc.




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



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Basic analog USRP2 transmitter

2010-11-07 Thread alexander levedahl
I have tried transmitting an analog signal from one USRP2 to another, but
when I run usrp2_fft.py on the rx computer, there is no receive signal.  The
analog signal is supposed to be two tones at 350 and 440 HZ transmitted at
2.6GHz.  Can anyone help me figure out what I am doing wrong?

I have tried using GRC, but at the most up to date version does not work
with Fedora, which is the OS that I have to use, this is for a research
project with a professor at my university, and the mandate is to use Fedora,
this does not look like it will change in the near future.

Alex
#!/usr/bin/env python

from gnuradio import gr
from gnuradio import usrp2
from gnuradio import audio
from gnuradio import eng_notation
from gnuradio.eng_option import eng_option
from optparse import OptionParser
import math

def build_graph(options, args):
	#These are set to 440 and 350
	freq0 = options.waveform_freq
	freq1 = options.waveform2_freq
	#This is the USRP2
	sink1 = usrp2.sink_32fc(options.interface,options.mac_addr)
	DACRate = sink1.dac_rate()
	interp = options.interp
	amp = .5
	scRate = 50e3 
	cFreq = 1/16*scRate
	tWidt = 1/16*scRate
	tFreq = 2.6e9
	#Sets the tranmsmit center frequency
	tx = sink1.set_center_freq(tFreq)
	print tx
	g  = sink1.set_gain(1)
	print g


	fg = gr.top_block()
	ethRate = DACRate/interp
	#Frequency generators
	src0 = gr.sig_source_f(scRate,gr.GR_SIN_WAVE,int(freq0),amp)
	src1 = gr.sig_source_f(scRate,gr.GR_SIN_WAVE,int(freq1),amp)
	add0 = gr.add_ff()
	#Converts the input samples to complex to transmit to USRP2
	f2c  = gr.float_to_complex()

	#Creates filter for interpolator
	chanCoeffs = gr.firdes.low_pass(1.0, scRate, 1000, 3000, gr.firdes.WIN_HAMMING)
	print ethRate/scRate
	print DACRate
	#Upsamples the input stream to transmit to the USRP2
	interp = gr.interp_fir_filter_ccf(int(ethRate/scRate),chanCoeffs)

	#Plays the two tones over speakers
	sink0 = audio.sink(int(scRate))
	fg.connect((src0, 0), (add0, 0))
	fg.connect((src1, 0), (add0, 1))
	fg.connect(add0, sink0)
	fg.connect(add0, f2c)
	fg.connect(f2c, interp)
	fg.connect(interp, sink1)
	
	return fg
def get_options():
usage="%prog: [options]"

parser = OptionParser(option_class=eng_option, usage=usage)

parser.add_option("-e", "--interface", type="string", default="eth0",
  help="Use specified Ethernet interface [default=%default]")
parser.add_option("-m", "--mac-addr", type="string", default="",
  help="Use USRP2 at specified MAC address [default=None]")  
parser.add_option("-i", "--interp", type="int", default=16, metavar="INTERP",
  help="Set FPGA interpolation rate of INTERP [default=%default]")
parser.add_option("-f", "--tx-freq", type="eng_float", default=None,
  help="Set carrier frequency to FREQ [default=mid-point]", metavar="FREQ")
parser.add_option("--lo-offset", type="eng_float", default=None,
  help="set daughterboard LO offset to OFFSET [default=hw default]")
parser.add_option("-g", "--gain", type="eng_float", default=None,
  help="Set TX gain to GAIN [default=mid-point]")
parser.add_option("-w", "--waveform-freq", type="eng_float", default=440,
  help="Set baseband waveform frequency to FREQ [default=%default]")
parser.add_option("-x", "--waveform2-freq", type="eng_float", default=350,
  help="Set 2nd waveform frequency to FREQ [default=%default]")
parser.add_option("--sine", dest="type", action="store_const", const=gr.GR_SIN_WAVE,
  help="Generate a carrier modulated by a complex sine wave", default=gr.GR_SIN_WAVE)
parser.add_option("--const", dest="type", action="store_const", const=gr.GR_CONST_WAVE, 
  help="Generate a constant carrier")
parser.add_option("--offset", type="eng_float", default=0,
  help="Set waveform phase offset to OFFSET [default=%default]")
parser.add_option("--gaussian", dest="type", action="store_const", const=gr.GR_GAUSSIAN,
  help="Generate Gaussian random output")
parser.add_option("--uniform", dest="type", action="store_const", const=gr.GR_UNIFORM,
  help="Generate Uniform random output")
parser.add_option("--2tone", dest="type", action="store_const", const="2tone",
  help="Generate Two Tone signal for IMD testing")
parser.add_option("--sweep", dest="type", action="store_const", const="sweep",
  help="Generate a swept sine wave")
parser.add_option("-a", "--amplitude", type="eng_float", default=0.1,
  help="Set output amplitude to AMPL (0.0-1.0) [default=%default]", metavar="AMPL")
parser.add_option("-v", "--verbose", action="store_true", default=False,
  help="Use verbose console output [default=%default]")

(options, args) = parser.parse_args()

return (options, args)

if __name__=="__main__