Dear all, I'm trying to generate synchronized pulses with specific timing, based on the GPS synchronization.
The idea is to send these pulses at approximately the "same time" from multiple USRPs. I have two B210 with an internal GPS module. I use this environment: GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.11.0.HEAD-0-ga1b5c4ae The usrp are connected to a laptop with Linux virtual machine. With this configuration I can run my code and the uhd examples without any problem. Since I need a to generate a pulse at a specific time (for example a pulse every second), I use the following code: // wait for GPS look procedure and synchronization of USRP time to GPS time (as uhd example: sync_to_gps.cpp ) uhd::time_spec_t time_last_pps = tx_usrp->get_time_now(mboard); --> while (!( (time_last_pps.get_tick_count(10000) < 3))) { time_last_pps = tx_usrp->get_time_now(mboard); } // send pulse When the usrp is running the while cycle the CPU of the connected laptop is heavily charged and on the USB port a lot of data is flowing. I supposed that the function get_time_now() does not need to communicate with the laptop. Someone can explain why I get this flow of data between laptop and USRP during this 'while' cycle? Do you have suggestions to improve the pulse generation algorithm? Best regards, Davide
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com