discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] problems connecting wavfile_source to usrp_sink.


From: Justin G. Eskesen
Subject: [Discuss-gnuradio] problems connecting wavfile_source to usrp_sink.
Date: Wed, 13 May 2009 16:25:39 -0400

Greetings,  I'm new to the list, though I've been using gnuradio for about 6 months now.  I'm using the USRP connected to an acoustic transceiver for underwater communications/data collection.

I'm having some trouble sending data from a file, specifically a wavfile_source, to a usrp_sink_c.  The block diagram is as follows:  gr.wavfile_source ->blks2.rational_resampler_fff -> gr.float_to_complex ->usrp.sink_c.  It doesn't give me any errors (other than a few "uU"s) but I get garbage on the other end of the transmission.

I've tested out most of these parts individually, and they work fine.  The usrp_sink works fine when I use the signal generator.  I can read the wavfile_source, resample it, and pipe it to an audio_sink or a wavfile_sink and it does the resampling properly.  Assuming I've done everything correctly, am I missing something?  Is there some fundamental reason why one would be unable to read a file & send it via the usrp?  I've gotten the reverse (usrp_source -> wavfile_sink) to work just fine.

Any help would be appreciated.

Justin

P.S. I've tried both wavfile_source & file_source & neither work.  I'm aware of the -1.0 to 1.0 normalization in wavfile_* & have commented that portion of the code out.  If I get this to work, I'll write a wavfile_source & sink that do no rescaling & take shorts because I'm doing too many unecessary conversions.

reply via email to

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