LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding UDP Rx. customized FPGA board to PC

Solved!
Go to solution

Dear Sir,

 

We are not able to receive the data in LabVIEW which is captured in WireShark. We are transmitting data from FPGA Board  to PC. Here we are using UDP Protocol.

We are following below procedure to transmit and receive data:

  1. FPGA Board side:
    1. We are receiving ARP Request from PC.
    2. Then, we are giving ARP Reply to PC.
    3. Then, We are receiving One UDP  packet from PC.
    4. After that, we are transmitting  one UDP packet to PC.

  

We are monitoring all frames using WireShark Analyzer.

 

Kindly let me know the solution and fulfil the gap.

 

Thanks & Regards,

S Nagaraju

0 Kudos
Message 1 of 9
(4,126 Views)

The operating system handles ARP packets; LabVIEW knows nothing about them.

 

Please share your code and your wireshark logs. Have you confirmed that there is no firewall running on the PC? Do you know that the UDP packets are valid? Are you sure the problem is LabVIEW, and not somewhere else?

0 Kudos
Message 2 of 9
(4,059 Views)

Dear Sir,

 

In my PC firewall was stoped. Please find the enclosed wireshark logs, UDP Tx and UDP Rx. VIs. Kindly look in to the files and let me know any mistakes.

 

Thanks& regards,

SNagaraju

Download All
0 Kudos
Message 3 of 9
(4,044 Views)

Sorry, I'm still on an older version of LabVIEW. If you save your VIs for LabVIEW 2012 I'll take a look. Alternatively, post a screenshot, if the VIs are not too big.

 

The Wireshark log shows UDP packets going in both directions between two IP addresses. I can't tell from the Wireshark logs if the data is valid because I don't know what you are trying to send. What exactly doesn't work in the LabVIEW code? Do you get an error? Do you receive some data, but not the data you expect to receive? What is the expected contents of the UDP packets?

0 Kudos
Message 4 of 9
(4,009 Views)

Dear Sir,

 

Please find the enclosed screens.

Download All
0 Kudos
Message 5 of 9
(3,987 Views)

I can't tell what you're trying to do here, and you did not respond to the questions asking for more details about in what way it is not working. Your TX VI only runs once; is that the intention? Have you tried sending data between two ports on the local computer, without the FPGA?

0 Kudos
Message 6 of 9
(3,974 Views)

Dear sir,

 

I have tried Tx and Rx. in localhost and one PC to another PC are working fine.

 

For our testing purpose we are sending the data only once. Coming to automation we will send continuous data and the FPGA should receive all the data without loss. After receiving the data every time FPGA should send the acknowledgement to the PC. Now we are trying to receive the acknowledgement (some data) and that acknowledgement have been detected in wireshark but in Labview it is not.

 

I didn’t get any errors while transmitting and receiving the data.

 

From Labview I have been transmitted the data to FPGA and FPGA also received the same data, this is the one way communication. Now FPGA should raise a flag saying that “data has been received”. Instead of this message FPGA is sending back the same received data. While sending back the data Labview is not receiving but the data is detected in wireshark. I don’t know why labview is not detecting. Is there certain format is required to receive the data? Kindly let me know the format.

 

This is what we want to do.

 

Thanks & Regards,

S Nagaraju

0 Kudos
Message 7 of 9
(3,923 Views)
Solution
Accepted by topic author Sonti_11532

The only thing I'm seeing is that I think you mixed up your ports. Looking at your PCAP log, it appears that the FPGA (10.1.8.121) sends to destination port 1234, but your UDP receiver VI listens on port 1200. However, if you change the receiver port on the UDP Rx VI, you may get an error - I don't know if you'll be allowed to open the same port twice (once in the TX, once in the RX). If that is the case, you should move both functions into the same VI so they can use the same UDP refnum.

0 Kudos
Message 8 of 9
(3,878 Views)

Dear sir,

 

Thank you very much for your support. I changed my code and it is working. Please find the enclosed code. Once again thank you very much sir. A small mistake created a big problem.

 

Thanks & Regards,

S Nagaraju

0 Kudos
Message 9 of 9
(3,752 Views)