Preamble detection using the Wireless Testbench
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Jieming Xu
2023 年 1 月 30 日
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
回答 (1 件)
Jieming Xu
2023 年 1 月 30 日
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 件のコメント
Neil MacEwen
2023 年 2 月 2 日
編集済み: Neil MacEwen
2023 年 2 月 6 日
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
2023 年 2 月 9 日
This was resolved with the connection of antennas on transmit and receive ports for the loopback case.
参考
カテゴリ
Help Center および File Exchange で Transmit and Capture についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!