필터 지우기
필터 지우기

USRP hardware for direction finding using Mathlab

조회 수: 1 (최근 30일)
umesh sinha
umesh sinha 2023년 4월 19일
댓글: Harsh 2023년 5월 16일
can anyone give me instruction about how to use the Examples of QPSK transmitter and receiver with USRP Hardware . I am unable to understand which code i have to run first and which one to run at last i have two usrp . i want to make one as a QPSK transmitter and second as QPSk receiver .the receiver code have default text messsage which contain hello world! can anyone change it so that it can receive the message transmitted by transmitter . if anyone can give the code of both then it will be very helpful for me.

답변 (1개)

Harsh
Harsh 2023년 5월 15일
Hi Umesh,
I understand that you want to learn about the usage of “QPSK Transmitter/Receiver with USRP™ Hardware” examples. Further, you want to change the code such that it can receive other messages transmitted by the transmitter.
In the following points, I am answering the query in a stepwise manner:
  1. Assuming, both USRP boards are connected to the same computer, you need to open two MATLAB windows on that computer.
  2. Otherwise, open the MATLAB window on each of the computers to which USRP board is connected.
  3. Open the “QPSKTransmitterWithUSRPHardwareExample.mlx” file in one of the MATLAB windows. Ensure that a USRP board with transmit antenna is connected to this computer.
  4. Similarly, open the “QPSKReceiverWithUSRPHardwareExample.mlx” file in the other MATLAB window. Ensure that a USRP board with receiving antenna is connected to this computer. You can also use the following command to open the file.
  5. Now, execute the transmitter file first, then run the receiver example file.
  6. On the successful transmission of the message, the receiver MATLAB window will print the error rate value on the command prompt.
  7. To see the received message, you can set the “printReceivedData” variable to “true” at line number 87 of the “QPSKReceiverWithUSRPHardwareExample.mlx” file.
  8. Further, you can change the default “Hello World” message to any other message by setting “SimParams.Message” to any other text message at line 28 of the “sdruqpsktransmitter_init.m” file.
Thanks!
  댓글 수: 2
umesh sinha
umesh sinha 2023년 5월 15일
I have done all that earlier but in receiver code there this default hello world written. When I run receiver code it shows me that same hello world inspite of showing message send by transmitter
Harsh
Harsh 2023년 5월 16일
Okay umesh. I understand that.
For better clarity of the issue, can you please share the file and line number where this default text is written in receiver code?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Communications Toolbox에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by