03-22-2016 10:23 PM
Hello,everyone!
I'm working on a UDP based Ethernet communication lately. The host is DSP28335 and the receiver is LV. I've tested the UDP sending function using Wireshark and it seems that everything is correct. However, when I use the UDP Receiver vi provided in the example, no data seems to be received.
I've done the following things below:
1. I've run both UDP sender and UDP receiver provided in the example on the same computer, it works well;
2. I've checked the windows firewall configuration and functions related to LV are all unblocked by the firewall;
3. I've checked some of the discussions in the forum on this issue. However, the solutions seem not to be effective in my project.
I wonder whether someone can provide some instructions!
Thank you!
03-23-2016 08:06 PM
Somebody can help me?
03-23-2016 10:18 PM
03-24-2016 03:49 AM
Hi,Nathand,
I‘ve attached both the screenshot of Wireshark and UDP receiver vi. I believe the setting of UDP port is correct. I've authorized Labview to be unblocked by the firewall in both public and provate network. I'll find another computer and do UDP test on it.
Thank you!
03-24-2016 10:15 AM
You are crossing subnets. Can your sending device actually reach your receving computer? Normally devices need to be on the same subnet in order to communicate unless you have the correct network infrastructure in place to route the packets.
03-24-2016 09:28 PM
Hi,Mark,
I've tried UDP communication on two different PCs. At first, I set the IP address of two computers to 010.110.041.056 and 192.168.1.101, the communication failed. Then, I set the IP address of both computers to 010.110.041.056 and 010.110.041.057, the communication succeeded. As you mentioned, the two PCs need to be on the same subnet to ensure normal UDP communication. I will try to modify the IP address of my DSP next.
Thank you so much!!!
03-24-2016 09:40 PM
Not necessarily. You just need to make sure what device is routing traffic between the two subnets allows UDP packets to pass. Setting up one as 10. and the other as 192. doesn't make much sense because those networks are about as far apart as you can get.
03-25-2016 02:40 AM
Hi,thank you for your reply.
I've got a new problem. When I test UDP on two PCs with IP address of 10.110.41.56 and 10.110.41.57, it seems the communication goes well. However, when I set the IP address of the DSP to 10.110.41.57, the PC with IP address of 10.110.41.57 seems to receive no data from it. I've attached the screenshot of Wireshark. Hope you can provide me with some instructions.
Thank you !
03-25-2016 09:18 AM
You can't have two devices with the same IP address on the network at one time. Also, if the source and destination IP address is the same the packets will never reach the network. They will remain insdie the device itself.
03-25-2016 09:48 PM