N210 buffering problems
Mostrar comentarios más antiguos
Has anyone noticed any buffering issues with USRPs? I can transmit and receive data but whenever I change the transmitted data, the receiver still reads the old transmitted signal. This is true even if I stop transmitting or disconnect the power from the transmitter. If I do a "release" or a very large number of dummy reads, the correct data is read. This leads me to believe there is a problem with buffering but I don't know how to solve this, apart from releasing the system object or reading lots of dummy data (both of these approaches take up a lot of time).
I'm using two N210 with XCVR2450 daughterboards and Matlab R2020a (Communications Toolbox with SDRuTransmitter and SDRuReceiver). I've tried both with and without Burst Mode but that doesn't seem to make any difference. I'm seeing the same problem under Windows 10 and Ubuntu 20.04.
Respuestas (3)
Karunya Choppara
el 14 de Abr. de 2021
0 votos
The dummy data indicates that the data is not valid. If the data length output of the SDRuReceiver is greater than zero, it indicates that the data is valid. If the data length output is zero, it indicates invalid data.
3 comentarios
Magnus Sandell
el 15 de Abr. de 2021
Karunya Choppara
el 17 de Abr. de 2021
The current implementation of the SDRu receiver has inherent buffering, which we are actively working on to eliminate the buffer delays. However, upon releasing the receiver system object, the buffers would be cleared.
To obtain the valid data (outData in the code below)
for t =1:1000
[rcvdSignal,len]=radio_rx();
if len>0
outData = rcvdSignal;
end
end
release(radio_rx);
Magnus Sandell
el 20 de Abr. de 2021
Karunya Choppara
el 29 de Abr. de 2021
0 votos
Hi Magnus,
One trick would be to use burst mode with number of frames in burst set to 1.
We are actively investing to update the internal buffer mechanism to eliminate the invalid data outputs with the receiver. The updates would be available on the release notes at https://in.mathworks.com/help/supportpkg/usrpradio/release-notes.html
1 comentario
Magnus Sandell
el 30 de Abr. de 2021
Karunya Choppara
el 1 de Jul. de 2021
0 votos
Hi Magnus
The buffer mechanism for SDRu Transmitter and Receiver system objects is updated in R2021b, that are now available with the R2021b pre-release at this link.
Categorías
Más información sobre Communications Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!