I need to send some data from a file by a frequency hopping USRP sink and receive by the USRP source. Both have to change the frequency synchronously and constantly after an amount of samples. How can I tell (especially) the USRP source in the python code to change the frequency?
https://www.gnuradio.org/doc/doxygen/page_uhd.html the UHD Source and Sink has an command port.
pmt::pmt_t command = pmt::cons( // Make a pair
pmt::mp("freq"), // Key is 'freq' => sets the frequency
pmt::mp(1.1e9) // Set the frequency to 1.1 GHz
);
// Now pass 'command' into the USRP block's command port
Sounds like a way to change it. But I don understand how I'll connect this to the USRP? And how to trigger it after an amount of samples. Does anybody has an example or suggestion? Thanks