Hi all,

I am working with GNU Radio 3.7.13.4, two N200 USRPs and a X310.
I would like to control the CORDIC module because I wuold like to
synchronize the phase in USRPs.
I found the following commands for UHD for receiver and for transmitter:

uhd::stream_cmd_t
<http://files.ettus.com/manual/structuhd_1_1stream__cmd__t.html> stream_cmd(
uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE
<http://files.ettus.com/manual/structuhd_1_1stream__cmd__t.html#a4df1f2e22148b7e09ace0eca0dfbf904a0e293a4a7cab198a4f6cb0e196ca377d>
);
stream_cmd.num_samps = samps_to_recv;
stream_cmd.stream_now = false;
stream_cmd.time_spec = time_to_recv;
usrp->issue_stream_cmd(stream_cmd);
uhd::tx_metadata_t
<http://files.ettus.com/manual/structuhd_1_1tx__metadata__t.html> md;
md.start_of_burst
<http://files.ettus.com/manual/structuhd_1_1tx__metadata__t.html#ab5ffe812f8d3d1870253e98e6ff1718a>
= true;
md.end_of_burst
<http://files.ettus.com/manual/structuhd_1_1tx__metadata__t.html#a00543aaaeb5a5d67b212778d6b5f1b53>
= false;
md.has_time_spec
<http://files.ettus.com/manual/structuhd_1_1tx__metadata__t.html#af8f34976fc468381bfc662f57a398360>
= true;
md.time_spec
<http://files.ettus.com/manual/structuhd_1_1tx__metadata__t.html#acf9881a671ba4651a2b4e3187ec23da7>
= time_to_send;
//send a single packet
size_t num_tx_samps = tx_streamer->send(buffs, samps_to_send, md);

But I have two problems:
1) I don't know how I can use this commands. Can I send this commands
directly in the terminal or can I use some setting in UHD:USRP Source and
UHD:USRP Sink?
2) I read that I can do the synchronization only with X-series, I cannot do
the synchronization in phase with the N-series because there is the FPGA
Spartan 6, doesn't it? Or is there some other problem?

Thank you for every help.
Best Regards,

Simona
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to