How can I check usrp.sink_c

Hi,

I want to transmit some data using usrp.sink_c and immediately after the
data is sent I want to start receiver mode, but my problem is if I do
like
this:

Send using ‘usrp.sink_c’
start receive mode

My USRP immediately goes into receive mode and the data sent is not
successful, so I want to do something like following:

Send using ‘usrp.sink_c’
check ‘usrp.sink_c’ if the data is sent then
start receive mode

But I dont know how can I check that data is successfully sent or it is
still on the way…Any suggestions

I am using USRP + RFX2400 + SUSI

Best Regards
Kaleem Ahmad


View this message in context:
http://www.nabble.com/How-can-I-check-usrp.sink_c-tp19780504p19780504.html
Sent from the GnuRadio mailing list archive at Nabble.com.

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

On Oct 2, 2008, at 7:34 AM, kaleem ahmad wrote:

My USRP immediately goes into receive mode and the data sent is not
successful, so I want to do something like following:

Send using ‘usrp.sink_c’
check ‘usrp.sink_c’ if the data is sent then
start receive mode

There is an automatic switching between transmit and receive modes
that does what you want – whenever there is something being
transmitted, it disables the receive chain, and switches back once
that buffer is empty. Look through the examples for flow graphs with
both transmit and receive chains. It’s called something like auto_tr.

  • -Dan
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkjk9eQACgkQy9GYuuMoUJ5VnACbBRdFmIQcD0JF5hQThV6Z5oe7
tksAoICpSompAsP4d5Wq6TytrLqNyX6+
=AWGx
-----END PGP SIGNATURE-----

On Thu, Oct 02, 2008 at 09:25:08AM -0700, Dan H. wrote:

Send using ‘usrp.sink_c’
that does what you want – whenever there is something being
transmitted, it disables the receive chain, and switches back once
that buffer is empty. Look through the examples for flow graphs with
both transmit and receive chains. It’s called something like auto_tr.

-Dan

This is all good.

Kaleem, I suggest that you take a look at
gnuradio-examples/python/digital/tunnel.py. The MAC that it implements
is terrible, but it does show how to have both the Tx and Rx running
without having to reconfigure anything.

Basically there are two disjoint pipelines:

network --> -> usrp.sink_c
usrp.source_c --> --> network

They both run at the same time and use the auto_tr feature.

Eric