[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarti
From: |
Andy_Long |
Subject: |
Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming |
Date: |
Thu, 22 Apr 2010 09:22:46 -0700 (PDT) |
Hi, Martin
Can you put your version number if you have solved it?
thank you.
Andy
Martin Dvh wrote:
>
> Hi All,
>
> When you use an USRP2 for capturing and you call
>
> u2->stop_rx_streaming()
>
> and later
>
> u2->start_rx_streaming(0)
>
> You always get a single overrun.
> -a single 'S' is output on the console
> -u2->rx_overruns() returns 1 (in stead of 0)
>
> I am developing a usrp2 application which does not permit any overrun
> conditions, so this needed fixing.
>
> It turns out that the expected sequence number of received samples is
> not reset when stopping the stream.
>
> This single line patch fixes this.
>
>
> Best Regards,
>
> Martin
>
> diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc
> index b19c6ec..92d52db 100644
> --- a/usrp2/host/lib/usrp2_impl.cc
> +++ b/usrp2/host/lib/usrp2_impl.cc
> @@ -814,6 +814,7 @@ namespace usrp2 {
> success = transmit_cmd_and_wait(&cmd, sizeof(cmd), &p,
> DEF_CMD_TIMEOUT);
> success = success && (ntohx(reply.ok) == 1);
> d_channel_rings[channel].reset();
> + d_rx_seqno=-1;
> //fprintf(stderr, "usrp2::stop_rx_streaming: success = %d\n",
> success);
> return success;
> }
>
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
--
View this message in context:
http://old.nabble.com/fix-for-usrp2-overruns-when-stopping-and-restarting-rx-streaming-tp28314794p28331267.html
Sent from the GnuRadio mailing list archive at Nabble.com.
- [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming, Martin DvH, 2010/04/21
- [Discuss-gnuradio] Re: fix for usrp2 overruns when stopping and restarting rx streaming, Johnathan Corgan, 2010/04/21
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming, Andy_Long, 2010/04/22
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming, Johnathan Corgan, 2010/04/22
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming, Andy_Long, 2010/04/22
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming, Johnathan Corgan, 2010/04/22
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming, Andy_Long, 2010/04/23
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping andrestarting rx streaming, Don Ward, 2010/04/23
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping andrestarting rx streaming, Andy_Long, 2010/04/23
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping andrestarting rx streaming, Andy_Long, 2010/04/24
- Re: [Discuss-gnuradio] fix for usrp2 overruns when stopping and restarting rx streaming,
Andy_Long <=