Preamble detection using the Wireless Testbench
1 view (last 30 days)
Show older comments
Dear all,
I am trying to use the preamble detection function in Matlab Wireless Testbench, with 2 USRPs N310. In the transmitter side, I generate a baseband signal, wchich I transmit using the transmit function:
transmit(bbtx,signal,"continuous");
stopTransmission(bbtx);
In the receiver side I use the preamble detection function:
recordLen = milliseconds(1000)
timeout = milliseconds(1000)
[data, timestamp, ~, status] = capture(pd,recordLen, timeout);
At the moment, the two USRPs are connected with cable. Unfortunatelly, only once I managed to get the result given in teh attachment, and most of teh time, I do not detect packets. Could you help me understand the problem?
1 Comment
Jieming Xu
on 30 Jan 2023
Hi Giti,
I noticed that you are you baseband transceiver to transmit signals. If possible, please check the transmitter is working properly. You can use internal loopback or transmit and receive by the same devices to check the transmitter works properly.
As you said, the two USRP devices are wired by cables. Please make sure an attenuator is placed between the transmitter and receiver to avoid it damage the RF receiver.
Best regards,
Jieming Xu
Answers (1)
Jieming Xu
on 30 Jan 2023
Hi Giti,
In preamble detector, if you don't receive anything, you can check the thresholding value and correlator output by using: pd.plotThreshold. From the result, you can check and tune the threshold if it is too high or too low.
From you attachment, I saw you are using the plot threshold function. From the picture you provide, I can see very clear peaks for detection, which mean the transmission and receive of the two N310 devices you are using at that time works corretly. The picture shows me the threshold you set is low, which causes many false alarm detection point where there are no peaks.
If it still doesn't work, please tell me which threshold method (fixed, adaptive) you are using. Also with a plotThreshold picture when you cannot make a detection.
5 Comments
Neil MacEwen
on 2 Feb 2023
Edited: Neil MacEwen
on 6 Feb 2023
Hi Giti,
Looking at your spectrum plot, you are correct, the power is very low. We reproduced the same example on our N310 which has antennas connected and see much higher powers at much lower gains. You may want to investigate the hardware you are using (loopback cable + attenuator).
Thanks,
Neil
Neil MacEwen
on 9 Feb 2023
This was resolved with the connection of antennas on transmit and receive ports for the loopback case.
See Also
Categories
Find more on Spectrum Monitoring in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!