Forum: GNU Radio Measuring SNR

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
943dfd420a51199bb6c801461758391f?d=identicon&s=25 Swapna Raj (Guest)
on 2009-02-12 15:58
(Received via mailing list)
Hi,

I am trying to implement a particular channel coding technique as part
of my
work(Master's Thesis). I need to test this technique in a fading
channel.
But since I have no control over the channel I cannot quantify channel
condition.I need SNR to analyze the performance of the coding
technique.The
only solution i thought was to inject noise at source and ensure that
transmission.But this is more like a simulation. I would like to know if
there are better ways to do this.


My second question is more related to Python programming. I need to run
a
series of scripts one after the other in my work.Though these scripts
work
fine independently. I get an error when I use os.popen(). In most cases
I do
not want the control to return back to the calling script.Could any one
suggest what is the best way to do this, or atleast a reference?


Thanks
Swapna
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2009-02-12 17:44
(Received via mailing list)
On Thu, Feb 12, 2009 at 08:57:11AM -0600, Swapna Raj wrote:
> Hi,
>
> My second question is more related to Python programming. I need to run a
> series of scripts one after the other in my work.Though these scripts work
> fine independently. I get an error when I use os.popen(). In most cases I do
> not want the control to return back to the calling script.Could any one
> suggest what is the best way to do this, or atleast a reference?

Try

   os.system("ls -l")

Eric
943dfd420a51199bb6c801461758391f?d=identicon&s=25 Swapna Raj (Guest)
on 2009-02-13 04:20
(Received via mailing list)
Eric,

Thank You.
os.system() worked. I can now switch between different scripts while in
transmitting mode.

To all,
While receiving data (using a modification of benchmark_rx.py) I need to
receive at a different frequency depending on some control information .

I get an error message while attempting to do this using os.system().It
says
*

cannot connect to usb interface, cannot connect to usrp1*.
I tried the following and it doesn't work

1.I tried using flowgraph.disconnect and flowgraph.close() before
calling
the second script.
2.I tried calling os.system() after exiting rx_callback and main() but
it
still can't connect to the source.
3.I also tried changing frequency instead of calling a separate script
inside rx_callback()


How can I ensure that the receive path is completely disconnected and
usrp_source is available?

thanks ,
Swapna
943dfd420a51199bb6c801461758391f?d=identicon&s=25 Swapna Raj (Guest)
on 2009-02-13 05:35
(Received via mailing list)
I am sorry if my previous mail was confusing. I am trying to switch toa
different Rx  freq depending on a control information. Even though I
exit
from rx_callback and try to call a new script for Rx using os.system I
get
an error message saying
USB _claim_interface :failed interface 2
Device or resource busy
can't open rx_interface
can't open usrp1.

I closed /disconnected the flowgraph before attempting to open a new
script.
How can I ensure that the rx_path is clear?

Thank you
Swapna
658f734d9897782d7e4062c6c3f4bb41?d=identicon&s=25 Tachwali, Yahia (Guest)
on 2009-02-14 01:50
(Received via mailing list)
Hello Swapna,

The SNR in wireless channel cannot be measured but it can be
"estimated". One way to do that for constant envelope modulation such as
PSK is by measuring the variance in the received signal envelope.
Ideally you should receive a constant stable envelope of your signal.
However, due to the noise in the channel (assuming WGN channel, which is
normally the assumption for the famous theoretical waterfall plots for
BER vs SNR) you can find a relation between the variance in the envelope
and SNR.

To get the exact relation I suggest you to look at the last chapter of

Optical Bit Error Rate: An Estimation Methodology by
Stamatios<http://search.barnesandnoble.com/booksearch/result...
V.
Kartalopoulos<http://search.barnesandnoble.com/booksearch/result...

I hope that helps. Good luck!

Kind regards,
Yahia Tachwali
________________________________
From: discuss-gnuradio-bounces+ytachwali=ou.edu@gnu.org
[discuss-gnuradio-bounces+ytachwali=ou.edu@gnu.org] On Behalf Of Swapna
Raj [swapna.raj.n@gmail.com]
Sent: Thursday, February 12, 2009 8:57 AM
To: Discuss-gnuradio@gnu.org
Subject: [Discuss-gnuradio] Measuring SNR

Hi,

I am trying to implement a particular channel coding technique as part
of my work(Master's Thesis). I need to test this technique in a fading
channel. But since I have no control over the channel I cannot quantify
channel condition.I need SNR to analyze the performance of the coding
technique.The only solution i thought was to inject noise at source and
ensure that transmission.But this is more like a simulation. I would
like to know if there are better ways to do this.


My second question is more related to Python programming. I need to run
a series of scripts one after the other in my work.Though these scripts
work fine independently. I get an error when I use os.popen(). In most
cases I do not want the control to return back to the calling
script.Could any one suggest what is the best way to do this, or atleast
a reference?


Thanks
Swapna
This topic is locked and can not be replied to.