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. timeout of uhd_tx_streamer_send (Ekko)
   2. Re: timeout of uhd_tx_streamer_send (Marcus M?ller)


----------------------------------------------------------------------

Message: 1
Date: Sun, 9 Oct 2016 16:11:11 +0800
From: Ekko <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [USRP-users] timeout of uhd_tx_streamer_send
Message-ID:
        <CAGgoB6YfX0bB7dtEaOqQGvi2q=WfG+g9=yS=a_y0g14cdwc...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

hello all
i am using the UHD C API to write my own application, and i got some
question about function uhd_tx_streamer_send,
my code is:
while(num_tx_samps < samps_to_send){
    uhd_tx_streamer_send(tx_streamer, buffs_ptr, samps_per_buff_tx, &md_tx,
seconds_in_future+0.1, &num_samps_sent);
    num_tx_samps += num_samps_sent;
}

the value of seconds_in_future is the time when to send the samples.
seconds_in_future = 0.02;

i got the output:
linux; GNU C++ version 4.9.2; Boost_105700; UHD_003.009.002-0-unknown

Creating USRP with args "master_clock_rate=40000000"...

UHD Warning:
    Unknown motherboard type, loading e300 image.
-- Loading FPGA image: /usr/share/uhd/images/usrp_e300_fpga.bit... done
-- Detecting internal GPSDO .... found
-- Initializing core control...
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Performing CODEC loopback test... pass
-- Setting time source to internal
-- Asking for clock rate 40 MHz
-- Actually got clock rate 40 MHz
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
Setting TX Rate: 10000000.000000...
Actual TX Rate: 10000000.000000...
Setting RX Rate: 20000000.000000...
Actual RX Rate: 20000000.000000...
Setting TX Gain: 0.000000 dB...
Actual TX Gain: 0.000000dB...
Setting RX Gain: 0.000000 dB...
Actual RX Gain: 0.000000dB...
Setting TX frequency: 1030.000000 MHz...
Actual TX frequency: 1030.000000 MHz...
Setting RX frequency: 1090.000000 MHz...
Actual RX frequency: 1090.000000 MHz...
Rx Buffer size in samples: 1016
Issuing stream command.
Tx Buffer Size in samples : 400000
start sending...
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLstart
recieving...LReceived packet: 1016 samples, 1 full secs, 0.015975 frac secs
Receive sum samps 1016,request samps:1016
Received packet: 1016 samples, 1 full secs, 0.016026 frac secs
Receive sum samps 2032,request samps:1016
Received packet: 968 samples, 1 full secs, 0.016077 frac secs
Receive sum samps 3000,request samps:968

so many LLLLL, i don't know what those L mean,
anf if i set the seconds_in_future to 2,the Ldisappeared,also i don't know
why.

thank you

--Ekko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20161009/c04eabe9/attachment-0001.html>

------------------------------

Message: 2
Date: Sun, 9 Oct 2016 16:18:46 +0200
From: Marcus M?ller <[email protected]>
To: [email protected]
Subject: Re: [USRP-users] timeout of uhd_tx_streamer_send
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"

Dear Ekko,

"L" means "Late", which means that the metadata you used contained a
device time spec that had already passed on the device when the samples
+ metadata reached the USRP.

This aligns with the observation that when using a larger offset, things
work.

In other words: operation as expected! I don't know the code you use to
calculate the time spec of your first (or successive) packet, so that's
what you should be looking at.


Best regards,

Marcus


On 09.10.2016 10:11, Ekko via USRP-users wrote:
> hello all
> i am using the UHD C API to write my own application, and i got some
> question about function uhd_tx_streamer_send,
> my code is:
> while(num_tx_samps < samps_to_send){
>     uhd_tx_streamer_send(tx_streamer, buffs_ptr, samps_per_buff_tx,
> &md_tx, seconds_in_future+0.1, &num_samps_sent);
>     num_tx_samps += num_samps_sent;
> }
>
> the value of seconds_in_future is the time when to send the samples.
> seconds_in_future = 0.02;
>
> i got the output:
> linux; GNU C++ version 4.9.2; Boost_105700; UHD_003.009.002-0-unknown
>
> Creating USRP with args "master_clock_rate=40000000"...
>
> UHD Warning:
>     Unknown motherboard type, loading e300 image.
> -- Loading FPGA image: /usr/share/uhd/images/usrp_e300_fpga.bit... done
> -- Detecting internal GPSDO .... found
> -- Initializing core control...
> -- Performing register loopback test... pass
> -- Performing register loopback test... pass
> -- Performing register loopback test... pass
> -- Performing CODEC loopback test... pass
> -- Performing CODEC loopback test... pass
> -- Setting time source to internal
> -- Asking for clock rate 40 MHz
> -- Actually got clock rate 40 MHz
> -- Performing timer loopback test... pass
> -- Performing timer loopback test... pass
> Setting TX Rate: 10000000.000000...
> Actual TX Rate: 10000000.000000...
> Setting RX Rate: 20000000.000000...
> Actual RX Rate: 20000000.000000...
> Setting TX Gain: 0.000000 dB...
> Actual TX Gain: 0.000000dB...
> Setting RX Gain: 0.000000 dB...
> Actual RX Gain: 0.000000dB...
> Setting TX frequency: 1030.000000 MHz...
> Actual TX frequency: 1030.000000 MHz...
> Setting RX frequency: 1090.000000 MHz...
> Actual RX frequency: 1090.000000 MHz...
> Rx Buffer size in samples: 1016
> Issuing stream command.
> Tx Buffer Size in samples : 400000
> start sending...
> LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
> LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLstart
> recieving...LReceived packet: 1016 samples, 1 full secs, 0.015975 frac
> secs
> Receive sum samps 1016,request samps:1016
> Received packet: 1016 samples, 1 full secs, 0.016026 frac secs
> Receive sum samps 2032,request samps:1016
> Received packet: 968 samples, 1 full secs, 0.016077 frac secs
> Receive sum samps 3000,request samps:968
>
> so many LLLLL, i don't know what those L mean,
> anf if i set the seconds_in_future to 2,the Ldisappeared,also i don't
> know why. 
>
> thank you
>
> --Ekko
>
>
> _______________________________________________
> 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/20161009/1ac39bf7/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 74, Issue 9
*****************************************

Reply via email to