[Top][All Lists]

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

[Discuss-gnuradio] Calculate BER

From: sergio vazquez
Subject: [Discuss-gnuradio] Calculate BER
Date: Mon, 16 Feb 2009 17:49:47 +0200


I want to calculate BER between 2 USRPs connected via coaxial cable. For that reason my aim is to send bits and pick them in the receiver. Then, in another application (not with GNUradio), calculate BER with both sequences, the one sent and the one received.

In the transmitter I use the example benchmark_tx.py but changing some things in the transmit_path:

        self.source = gr.vector_source_b(data,False) #data = "">
        # use the modulator dbpsk
        self.mod = blks2.dbpsk_mod()

        # Set the USRP for maximum transmit gain
        # (Note that on the RFX cards this is a nop.)

        self.amp = gr.multiply_const_cc(1)

        # Create and setup transmit path flow graph
        self.connect(self.source, self.mod, self.amp, self.u)

So I just send bits without any packet format.

In the receiver, the receive_path is changed as:
        self.sink = gr.vector_sink_b()
        self.connect(self.u, self.demod, self.sink)

But the problem is how to get the data from self.sink. I have been thinking of doing a thread that blocks when no data, runs when something arrives to the USRP, and have everything in an infinitive loop. But I dont really know how to do it... any suggestions??

Thank you so much,

Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!

reply via email to

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