How to implement Multiple USRPs for Synchronised Operation using wireless testbench
15 次查看(过去 30 天)
显示 更早的评论
I am currently using multiple USRPs connected through an octoclock and trying to synchronise the USRPs to implement simultaneous transmission.
I am using Wireless testbench for this setup, but I have not been able to find an option with the testbench interface to configure the USRPs to use an external clock and PPS.
I would like to know if this is supported using wireless testbench or is there any other way I could achieve synchronisation without the loss of speed.
This is essentially the code I have used in MATLAB to for transmission from the USRP.
%% Define USRP Parameters
CenterFreq = 3e9;
USRP_gain = 10;
Fs = 100e6;
%% Transmit waveform over the air
bbtx = basebandTransmitter("My USRP 2944r");
bbtx.CenterFrequency = CenterFreq;
bbtx.RadioGain = USRP_gain;
bbtx.SampleRate = Fs;
bbtx.Antennas = [ "RFA:TX/RX", "RFB:TX/RX" ];
bbtx1 = basebandTransmitter("My USRP 2944r 2");
bbtx1.CenterFrequency = CenterFreq;
bbtx1.RadioGain = USRP_gain;
bbtx1.SampleRate = Fs;
bbtx1.Antennas = [ "RFA:TX/RX", "RFB:TX/RX" ];
%% Transmit:
transmit(bbtx, waveform, "continuous");
fprintf("Transmission started for USRP 1 .\n")
transmit(bbtx1, waveform, "continuous");
fprintf("Transmission started for USRP 2 .\n")
%% Stop transmission:
pause;
stopTransmission(bbtx);
stopTransmission(bbtx1);
fprintf("Transmission stopped.\n")
0 个评论
采纳的回答
Martin Enderwitz
2024-5-9
编辑:Martin Enderwitz
2024-5-9
Hi Ahmed,
The basebandTransmitter does not currently support the use of multiple USRPs to transmit.
You can instead use the comm.SDRuTransmitter System Object to transmit with multiple USRPs. When you create an instance of the System Object, you can specify the IPAddress of each USRP device you want to use as a comma- or space-separated string. You can also use the ClockSource and PPSSource properties of the System Object.
The QPSK Transmitter with USRP Hardware example demonstrates how to use the System Object to transmit QPSK data with a single USRP, and can be adapted for your use case.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Communications Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!