08-10-2015 10:54 PM
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:
We are monitoring all frames using WireShark Analyzer.
Kindly let me know the solution and fulfil the gap.
Thanks & Regards,
S Nagaraju
Solved! Go to Solution.
08-11-2015 10:58 AM
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?
08-12-2015 01:26 AM
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
08-12-2015 11:43 AM
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?
08-12-2015 10:56 PM
Dear Sir,
Please find the enclosed screens.
08-12-2015 11:20 PM
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?
08-14-2015 12:48 AM
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
08-14-2015 11:01 PM
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.
08-16-2015 11:20 PM - edited 08-16-2015 11:30 PM
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