[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Re: uhd_usrp_sink often blocks in non-continuous data
From: |
Josh Blum |
Subject: |
[Discuss-gnuradio] Re: uhd_usrp_sink often blocks in non-continuous data sending |
Date: |
Thu, 03 Mar 2011 21:19:40 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 |
> As such, do you know an approach to solve this blocking problem? I have
> tried to set the timeout as a small value, e.g. 1ms, but it seems not
> able to completely solve the problem. I have never seen such behavior
> using the raw Ethernet code. What's the difference?
>
Andrew,
The uhd_usrp_sink::work() should always block until the entire buffer
has been transmitted. There is no choice in the matter. However many
samples gnuradio buffered before calling work(), we must send all of
those samples.
Now, there is a question of where is the delay, what is taking too long,
what is buffering too much, etc. I am attaching a diff with prints for
the time before and after the send() call in the work function. This
will tell us how often work is called, how many samples are transmitted,
and how long this operation takes. Please try the attached diff and post
the output.
Thanks,
-Josh
gr_uhd_usrp_sink_cc_prints.diff
Description: Text Data
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, (continued)
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/01
- Message not available
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/01
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/02
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Josh Blum, 2011/03/02
- Re: [Discuss-gnuradio] Re: UHD Announcement - February 25rd 2011, Feng Andrew Ge, 2011/03/02
- [Discuss-gnuradio] How is "UU" generated, Feng Andrew Ge, 2011/03/02
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- [Discuss-gnuradio] uhd_usrp_sink often blocks in non-continuous data sending, Feng Andrew Ge, 2011/03/03
- [Discuss-gnuradio] Re: uhd_usrp_sink often blocks in non-continuous data sending,
Josh Blum <=
- [Discuss-gnuradio] Re: uhd_usrp_sink often blocks in non-continuous data sending, Feng Andrew Ge, 2011/03/04
- [Discuss-gnuradio] Re: uhd_usrp_sink often blocks in non-continuous data sending, Feng Andrew Ge, 2011/03/07
- [Discuss-gnuradio] Is data communication between UHD_USRP_SOURCE and USRP2 "polling" or "pushing", Feng Andrew Ge, 2011/03/02