RX and TX with single USRP

I want to build a network analyzer using the usrp with LF-RX/TX.
I am new to gnu-radio and usrp and so far only managed to send an
receive based on the examples usrp_rx_cfile.py and usrp_siggen.py.
I think I pretty much understand the code.

It seems I cannot have two derivatives of gr.top_block (one for RX one
for TX) within one module?

Using class transmit_path(gr.hier_block2) and
class receive_path(gr.hier_block2) as in usrp_nbfm_ptt.py
looks like and overkill for my purposes, as I don’t need any
demodulation nor base-band filtering for my network-analyzer.

Any suggestions for a straightforward approach would be more than
welcome.

Wolfgang

Wolfgang Buesser wrote:

Any suggestions for a straightforward approach would be more than
welcome.

The pattern to use (in pseudo code) is:

class receive_path(gr.hier_block2), with no inputs or outputs
(instantiate and self.connect your receive chain here)

class transmit_path(gr.hier_block2), with no inputs or outputs
(instantiate and self.connect your transmit chain here)

class my_top_block(gr.top_block)

In my_top_block’s init function:

rx = receive_path(…)
tx = transmit_path(…)
self.connect(rx)
self.connect(tx)


Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com

Johnathan C.-2 wrote:

self.connect(tx)

Thank’s!
Meanwhile I found a different solution:
http://www.nabble.com/file/p14519016/my_both.py my_both.py

It works fine - I just can’t get it to quit after nsamples have been
read
Any idea how that could be achieved?

Wolfgang

View this message in context:
http://www.nabble.com/RX-and-TX-with-single-USRP-tp14513947p14519016.html
Sent from the GnuRadio mailing list archive at Nabble.com.

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