Demodulation problem

hi…
i am working on rx_voice.py for transmission of audio files. In my
application, i need to capture directly the usrp samples and write them
onto a file. Now, i further want do some processing on them using
MATLAB. Next, what i want is that the file be passed to the python code
where i can demodulate them as it is done in receive_path.py . I have
been able to capture the data directly from USRP and write it onto a
file by making the connection:

fg.connect(self.u,self.dst)
where self.dst refers to the file. I also do the processing using MATLAB
and again write it onto a different file. Now, the problem is that how
should i pass the new file back to the code so that it gets demodulated.
I have tried running the rx_voice again wherein i make a connection as
follows:

fg.connect(self.dst,self.chan_filt,self.packet_receiver)
where self.dst refers to the new file which i want to demodulate.

But, nothing happens on making such a connection. Maybe the problem is
because of the way in which the samples from USRP and files are read.
The other option which i have thought of is to demodulate the entire
signal in MATLAB .But tht i suppose would be pretty tedious because then
i will probably have to study all the C++ implementations of the demod
blocks.

Can anyone please suggest any solution. I jus want that the data from a
file be read and demodulated in the same fashion as it is done when it
reads direct samples from the USRP.

Thanks for all the help in advance
Pratik Hetamsaria

Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger.yahoo.com/download.php

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

pratik hetamsaria wrote:

hi…
fg.connect(self.dst,self.chan_filt,self.packet_receiver)
where self.dst refers to the new file which i want to demodulate.

That should work, as long as self.dst is actually a file source not a
file sink. And the file is in the right format – have you verified that
the MATLAB code does what it’s supposed to?

  • -Dan
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.7 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGkcICy9GYuuMoUJ4RAv9wAJoCxMKVVEoSWUBYY2HynL3iUhjdgQCfZAem
fpbhFlxK1W/oV8TmE5MAJz4=
=Mgta
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs