RE: [Discuss-gnuradio] mingw install help

2007-10-26 Thread Kevin Rudd (Contractor)
Thanks.

There is no gcc in my bin directory (there is a g++ thou).  I downloaded the
gcc fles (core and gcc) and uncompressed them in the minigw directory.  I am
sure I am missing something simple.  

kevin

-Original Message-
From: Don Ward [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 25, 2007 4:33 PM
To: Kevin Rudd (Contractor); discuss-gnuradio@gnu.org
Subject: Re: [Discuss-gnuradio] mingw install help

Kevin Rudd (Contractor) [EMAIL PROTECTED] wrote:

 I am following the directions for installing GNURadio with minGW on XP 
 found
 here...

 http://gnuradio.org/trac/wiki/MingwInstallMain

 When I get to installing FFTW, I try compiling it (from MSYS prompt) and I
 get the following error...

 No acceptable C compiler found in $PATH

 Quick internet search indicates that GCC was not installed.  Do I need to 
 do
 more than just unpack the gcc files into the mingw directory?  Any other
 ideas?

ls /mingw/bin should show that gcc.exe is in /mingw/bin and echo $PATH 
should list /mingw/bin as being in the search path.  If both of these are 
true, then which gcc should return /mingw/bin/gcc and the FFTW install 
should work.  If not, you need to figure out if gcc is missing or if the 
shell just can't find it.

Let us know what you find, because sometimes things change and the 
instructions stop working and need to be updated.




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


[Discuss-gnuradio] mingw install help

2007-10-25 Thread Kevin Rudd (Contractor)
Hello Everyone,

I am following the directions for installing GNURadio with minGW on XP found
here...

http://gnuradio.org/trac/wiki/MingwInstallMain

When I get to installing FFTW, I try compiling it (from MSYS prompt) and I
get the following error...

No acceptable C compiler found in $PATH

Quick internet search indicates that GCC was not installed.  Do I need to do
more than just unpack the gcc files into the mingw directory?  Any other
ideas?

Thanks for the help.
Kevin




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


[Discuss-gnuradio] Vista, Xp, or Linux?

2007-09-27 Thread Kevin Rudd \(Contractor\)
Hello all,

  I just got my new notebook computer with Vista pre-installed.  I have a
couple questions.

 

1) Has anyone had any luck installing GNURadio under Vista using Cygwin or
MinGW method? 

 

2) Are there any performance issues running GNURadio under windows (XP or
Vista) as opposed to Linux?

 

Thanks!

Kevin 

 

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


[Discuss-gnuradio] GNU Radio TCP and MATLAB

2007-04-26 Thread Kevin Rudd \(Contractor\)
Hello again,
  I have decided to try the GNURadio - TCP - MATLAB route.  I am running
into a few problems.

First, I downloaded Jamie Cooley's GNURadio TCP Socket code here... 

http://alumni.media.mit.edu/~jcooley/gr_experiments/experiments/gr_socket.ht
m

Then I downloaded a free matlab TCP toolbox as David suggested.

http://www.mathworks.nl/matlabcentral/fileexchange/loadFile.do?objectId=345;
objectType=file

I can set up the connection and send data to matlab, but the data I receive
is all messed up. I think the format is off.  For those who have done this,
what data type are you sending and how are you receiving it?  Currently, I
am just sending a complex sine wave.  If I sink it to a file, I can open it
in matlab with no problem.  But when I send it via TCP, I get garbage.

My matlab commands are basically...

Con   = pnet(sock,'tcplisten');
data  = pnet(con, 'read', 1000, 'SINGLE');
cdata = data(1:2:end)+j*data(2:2:end);
plot(log(abs(fft(cdata

Is 'SINGLE' the correct type to use? (I tried all the others and I still get
gargabe).

Thanks for the help,
Kevin





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


[Discuss-gnuradio] Re: FRS with the FLEX400

2007-04-23 Thread Kevin Rudd \(Contractor\)
Hello again,
  Thanks for those that emailed me directly with my last request.  I have
been able to get my transmit code to tune now, but it is still not working.

All I am trying to do is fm modulate a sine wave and transmit it at a
certain frequency.  I have hooked up a vector signal analyzer and I see no
output from the USRP.  Could I have a dysfunctional daughter card?

My newer code is below.  Any help would be appreciated.

Kevin Rudd
Naval Research Laboratory

myfm.py
--
#!/usr/bin/env python

from gnuradio import gr, eng_notation
from gnuradio import usrp
from gnuradio import audio
from gnuradio import blks
from gnuradio.eng_option import eng_option
import usrp_dbid
import sys


class my_graph(gr.flow_graph):

def __init__(self):
gr.flow_graph.__init__ (self)

self.u = usrp.sink_c ()   # the USRP sink (consumes
samples)

# Setup Constants
self.dac_rate = self.u.dac_rate()# 128
MS/s
self.usrp_interp = 400
self.u.set_interp_rate(self.usrp_interp)
self.usrp_rate = self.dac_rate / self.usrp_interp# 320
kS/s
self.sw_interp = 40
self.audio_rate = self.usrp_rate / self.sw_interp# 8
kS/s

# Determine the daughterboard subdevice we're using
tx_subdev_spec = usrp.pick_tx_subdevice(self.u)
m = usrp.determine_tx_mux_value(self.u, tx_subdev_spec)
self.u.set_mux(m)
self.subdev = usrp.selected_subdev(self.u, tx_subdev_spec)
print Using TX d'board %s % (self.subdev.side_and_name(),)

# make blocks and connect them
  src0 = gr.sig_source_f (self.audio_rate, gr.GR_SIN_WAVE, 350,
1)
fmtx = blks.nbfm_tx (self, self.audio_rate, self.usrp_rate,
 max_dev=2.5e3, tau=75e-6)
gain = gr.multiply_const_cc (4000.0 );

self.connect (src0,fmtx,gain,self.u)

# set gain, tune, and turn on transmitter 
  self.subdev.set_gain(self.subdev.gain_range()[1]) #max Tx gain
self.u.tune(self.subdev._which, self.subdev, 462562500)
#self.set_freq(462562500)
self.subdev.set_enable(True)# enable transmitter

if __name__ == '__main__':
try:
my_graph().run()
except KeyboardInterrupt:
pass






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


[Discuss-gnuradio] FRS with the FLEX400 (newbie questions)

2007-04-20 Thread Kevin Rudd \(Contractor\)
Hello Again,
  I am starting to play with the GNU Radio code some and wanted to start by
capturing audio from a handheld radio (FRS fm modulation).  I am having some
problems and can't seem to figure out why it is not working.

1) receiving.  Why does the usrp nfm sample programs not work for FRS well?
I type...

python ./usrrp_nbfm_rcv.py -f462.5625

When I key the radio, I see the large spike at the carrier frequency
(+80db).  But after demod, the max amplitude is -80 to -60 db.  If I turn my
volume way up, I can hear the audio, but barely.  

2) transmitting.  I also tried modulating a single sine wave tone and
transmitting it so that I can hear it on the radio.  For some reason my tune
function returns a false.  Does this mean it did not tune to the correct
frequency?  What could be causing that?  My code is below if it helps.  

Thanks!
Kevin Rudd


#!/usr/bin/env python

from gnuradio import gr, eng_notation
from gnuradio import usrp
from gnuradio import audio
from gnuradio import blks
from gnuradio.eng_option import eng_option
import usrp_dbid
import sys


class my_graph(gr.flow_graph):

def __init__(self):
gr.flow_graph.__init__ (self)

self.u = usrp.sink_c ()   # the USRP sink (consumes
samples)

self.dac_rate = self.u.dac_rate()# 128
MS/s
self.usrp_interp = 400
self.u.set_interp_rate(self.usrp_interp)
self.usrp_rate = self.dac_rate / self.usrp_interp# 320
kS/s
self.sw_interp = 10
self.audio_rate = self.usrp_rate / self.sw_interp# 32
kS/s


# determine the daughterboard subdevice we're using
tx_subdev_spec = usrp.pick_tx_subdevice(self.u)
m = usrp.determine_tx_mux_value(self.u, tx_subdev_spec)
self.u.set_mux(m)
self.subdev = usrp.selected_subdev(self.u, tx_subdev_spec)
print Using TX d'board %s % (self.subdev.side_and_name(),)

m = usrp.determine_tx_mux_value(self.u, tx_subdev_spec)

self.subdev.set_gain(self.subdev.gain_range()[1])# set
max Tx gain

ttarget_freq = 462562500
#self.set_freq(ttarget_freq)
r = self.u.tune(self.subdev._which, self.subdev,
ttarget_freq)
print r  # this prints false!

self.subdev.set_enable(True) #
enable transmitter

src0 = gr.sig_source_f (self.audio_rate, gr.GR_SIN_WAVE,
350, 1)

  fmtx = blks.nbfm_tx (self, self.audio_rate, self.usrp_rate,
   max_dev=5e3, tau=75e-6)


gain = gr.multiply_const_cc (4.0)  # not sure about this

self.connect (src0, fmtx)
self.connect (fmtx, gain)
self.connect (gain, self.u)


if __name__ == '__main__':
try:
my_graph().run()
except KeyboardInterrupt:
pass





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


[Discuss-gnuradio] MATLAB/Windows and the USRP

2007-04-19 Thread Kevin Rudd \(Contractor\)
Hello all, 
  I just received my USRP and I have successfully installed GNURadio on my
Linux box.  I am just starting to dabble with the code a bit.  I am very
much a Windows/MATLAB developer, so I think I could be far more productive
if I could just stream the baseband waveforms to and from the USRP from
MATLAB.  I see on Ettus's site that some are working on a MATLAB interface.
I would like to contribute to this effort.  Does anyone have a good starting
point?  Are there any windows drivers (dll's or source)?   

Btw, I tried installing the binaries from www.olifantasia.com and the code
did not like my USRP revision??  I have also searched the list and tried
emailing people directly, but without any responses.   

I would appreciate any help or suggestions.   

Thanks, 
Kevin

 

(p.s. I apologize if this gets double posted.  I had trouble using a third
party forum)

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