07-22-2005 02:07 PM
07-22-2005 08:57 PM
I have looked at your code and tweaked it a bit so if you get an error you will at least be able to tell that it happened. I also added a stop button so everything gets deinitialized properly.
But I see one rather fundamental problem. Your code is assuming that the data is coming through error-free. This is a problem because the UDP protocol does no error checking what so ever. If you get a datagram it might be garbled, or it might not show up at all. Likewise, two datagrams might even show up at the receiver out of order because they took different routes to get through.
Now having said that, I'm also a little confused why you need the "filter" to ignore your own messages. The datagrams are being sent to a specific IP address so you shouldn't see your own transmissions.
07-22-2005 09:08 PM
Just did a little more research. The reason for your basic problem is that you are wanting to have a single receiver getting datagrams from multiple transmitters--that is called a multicast. UDP like you are doing it is a point-to-point connection. Check out LV app note 160. Pay particular attention to the "delivery problems" cited on the first page. It mentions another problem I forgot about. You can actually get the same datagram twice!
Mike...
07-25-2005 06:52 AM
07-25-2005 07:41 AM
07-25-2005 10:02 AM
07-25-2005 10:08 AM
07-25-2005 10:47 AM
07-25-2005 11:04 AM
07-25-2005 11:09 AM