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!