[USRP-users] How to set up metadata for simultaneous rx/tx application on USRP N210

Josh Blum josh at ettus.com
Sun Feb 24 21:06:52 EST 2013



On 02/24/2013 06:18 PM, Fernando Quivira wrote:
> Hi guys:
> 
> I'm trying to write a multi-threaded application to run a rx thread and a
> tx thread. I was looking at the txrx_loopback_to_file example, and I saw
> that to setup the metadata, this code was used:
> 
>     uhd::tx_metadata_t md;
>     md.start_of_burst = true;
>     md.end_of_burst   = false;
>     md.has_time_spec  = true;
>     md.time_spec = uhd::time_spec_t(0.1); //give us 0.1 seconds to fill the
> tx buffers
> 
> However, the other tx example files only use this:
> 
>     uhd::tx_metadata_t md;
>     md.start_of_burst = false;
>     md.end_of_burst = false;
> 
> What is the difference between these two ways of setting up the metadata?
> 

If two devices have their reference clocks and time synchronized, the
time spec can be used to control when a sample is transmitted.

See
http://files.ettus.com/uhd_docs/manual/html/sync.html

Also
http://files.ettus.com/uhd_docs/doxygen/html/structuhd_1_1tx__metadata__t.html


-josh

> Thanks
> 
> 
> 
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> 




More information about the USRP-users mailing list