My robotic project is almost completed. I have a robot completely controlled via a visual C# program with data coming in through multiple sensors on the robot. The only issue is that the communication is through a USB cable (USB 2.0 is limited to 5m). I'm hoping to communicate via my Ethernet Shield instead which should give me greater flexibility.
I've spent the better part of two days digging around it seems that UDP communications are my best bet. I am, however, not proficient with network communications nor am I proficient with UDP network communications in C#.
I found the following code at this site (http://arduino.cc/en/Tutorial/UDPSendReceiveString) which seems to suit my basic needs (i.e. two way communication via UDP) but the PC code is using "Processing" (http://www.processing.org/) and I need my code to be in C# as all my other code is in C#. Can anyone help me translate the "Processing code" into usable visual C# code? I'm basically stuck at this point.
Thanks so much for any help you can provide.