Send USRP-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of USRP-users digest..."
Today's Topics:
1. Re: uhd_rx_streamer_recv function keeps returning 0 as the
number of received samples (Marcus M?ller)
----------------------------------------------------------------------
Message: 1
Date: Sun, 21 May 2017 12:44:57 +0200
From: Marcus M?ller <[email protected]>
To: [email protected]
Subject: Re: [USRP-users] uhd_rx_streamer_recv function keeps
returning 0 as the number of received samples
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"
Hi Felipe,
I don't know whether someone else reacted yet, but I don't want to leave
you hanging in there; thus:
> Dear GNU Radio group,
oh well, this is the usrp-users mailing list; GNU Radio is a separate
Free & Open Source project, and they have their own mailing list:
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Anyway, I don't really see that you're using anything GNU
Radio-specific, so I think it's right to post this here:
I don't know what your open_rx_stream() does, but it shouldn't recreate
the streamer everytime. Get the streamers once, then only
uhd_rx_streamer_recv in the while() loop.
Best regards,
Marcus
On 05/12/2017 01:33 PM, Felipe Augusto Pereira de Figueiredo via
USRP-users wrote:
>
>
> I'm playing around with UHD and I've got a problem you might be able
> to help me with. It basically reads samples from UHD. Below, for the
> sake of clarity and conciseness, you will find a pseud-code of what I
> have running right now.
>
> //----------------------------------------------------------------------------------------------------
> do_initial_configuration() // master clock, sampling rate, RX
> frequency, open radio, etc.
>
> while(1) {
>
> // stream mode is set to: UHD_STREAM_MODE_START_CONTINUOUS
> // stream now set to true
> open_rx_stream()
>
> // read sample from UHD
> uhd_error error = uhd_rx_streamer_recv(rx_stream,
> buffs_ptr, rx_samples, md, 5, false, &rxd_samples);
>
> // Process samples.
> do_some_processing()
>
> // stream mode is set to: UHD_STREAM_MODE_START_CONTINUOUS
> // stream now set to true
> close_rx_stream()
> }
>
> // Free memory, etc.
> release_resources();
> //----------------------------------------------------------------------------------------------------
>
> What happens is that after some time (it is random, it can happen
> after minutes or after seconds) the function "uhd_rx_streamer_recv"
> starts returning 0 as the number of received (read) samples, i.e., the
> variable "rxd_samples" returns 0. After the function starts returning
> 0 as the number of read samples it never returns to the normal
> operation, i.e., read a number of samples different from 0. With an
> x310 it keeps in that state indefinitely and to get my program running
> back again I need to power off/on the x310, however, with a b200 (USB)
> after a little while I've got that error message: "recv packet demuxer
> unexpected sid ".
>
> My question is, could this problem be related to the open/close of the
> rx stream inside the infinite loop? If not, what could be the problem?
>
> Thanks and Kind Regards,
>
> Felipe Augusto
>
>
> _______________________________________________
> USRP-users mailing list
> [email protected]
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20170521/d759049d/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
------------------------------
End of USRP-users Digest, Vol 81, Issue 21
******************************************