Hi all,
I'd like to use the phase resync freature on the SBX to get reliable phase alignment in the following setup:
I've been able to use timed commands to get the same channel/phase every time (after multiple restarts) in a single link setup like:
USRP-A TX @ Freq1 ---> USRP-B RX @ Freq1
But my code for phase sync in the 2-link setup doesn't seem to work(copied below). I understand that the phase of each link's channel may not be the same as the frequencies are different. However is it possible to set it up so that the phase/channel over wire in link_freq1 is always X and that in link_freq2 is always Y? Or is that impossible because of some hardware constraints?
Thank you,
AB
code snippet:
## 2-channel usrp source and sink have been initialized, everything except
## center feqs have been set
## uhd_usrp_source_0 is a multi usrp source block
## the following code is added in the init() function:
self.uhd_usrp_source_0.set_command_time(future_cmd_time)
self.uhd_usrp_sink_0.set_command_time(future_cmd_time)
self.uhd_usrp_source_0.set_center_freq(uhd.tune_request(cf), 0)
self.uhd_usrp_source_0.set_center_freq(uhd.tune_request(cf2), 1)
self.uhd_usrp_sink_0.set_center_freq(uhd.tune_request(cf2), 0)
self.uhd_usrp_sink_0.set_center_freq(uhd.tune_request(cf), 1)
self.uhd_usrp_source_0.clear_command_time()
self.uhd_usrp_sink_0.clear_command_time()
This is in the init() function. I don't re-tune the frequencies again after this.

No comments:
Post a Comment