Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time()

2012-06-19 Thread Andrew Senior
Hi Nick, thanks for your help, I'll give that a try. Regards, Andrew. On 19 Jun 2012, at 18:15, Nick Foster wrote: > Hey, I'm losing my mind, apparently. Sorry about the confusion. I was > recently hacking on timed TX and my brain apparently read source as sink. > > The easiest way to get ar

Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time()

2012-06-19 Thread Nick Foster
Hey, I'm losing my mind, apparently. Sorry about the confusion. I was recently hacking on timed TX and my brain apparently read source as sink. The easiest way to get around it is to schedule your receive thread to start sometime less than 1 second before your set_start_time() call expires. This w

Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time()

2012-06-19 Thread Nowlan, Sean
Nick Foster Cc: discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time() Hi Nick, thanks for replying. I'm a bit confused though: it's receiving data from the USRP with gr_uhd_usrp_source that's giving me trouble, not sending it wi

Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time()

2012-06-19 Thread Andrew Senior
Hi Nick, thanks for replying. I'm a bit confused though: it's receiving data from the USRP with gr_uhd_usrp_source that's giving me trouble, not sending it with gr_uhd_usrp_sink. Looking again at gr_uhd_usrp_source.cc I see that tags are added indicating the time of the received samples. I g

Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time()

2012-06-19 Thread Nowlan, Sean
nowlan=gtri.gatech@gnu.org] On Behalf Of Nick Foster Sent: Tuesday, June 19, 2012 10:50 AM To: Andrew Senior Cc: discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time() Andrew, There is a better way. If you look in gr_uhd_usrp_sink.cc, it'

Re: [Discuss-gnuradio] Timeout problem using usrp_source.set_start_time()

2012-06-19 Thread Nick Foster
Andrew, There is a better way. If you look in gr_uhd_usrp_sink.cc, it's expecting to see tags indicating start of burst ("tx_sob") and end of burst ("tx_eob") as well as a transmit time ("tx_time"). To issue a start of burst, for instance, use: add_item_tag(0, //stream ID nitems_written(0)+i

[Discuss-gnuradio] Timeout problem using usrp_source.set_start_time()

2012-06-19 Thread Andrew Senior
Hello all, I've been trying to use the set_start_time() method of usrp_source to start my USRP N210 streaming data at a known time. The USRP has the GPSDO fitted and the time is set automatically from this, so I can specify an absolute time for when I want streaming to begin. I've done this s