I'm working on a robotics project that will be using ethernet for communication. For some background, we'll have a laptop running some Processing code with a GUI and libraries to interface with a PS3 controller. Then we'll connect to an Arduino Due (w/ ethernet shield) over a 100ft cat6/7 cable.
For communication we're sending out 12 comma separated, ascii encoded values over UDP (from Processing). After running this code for 15-20 minutes there begins to be a very noticeable lag from when you move a joystick to where you see a motor move. Am I doing something incorrect with the Arduino code? Is this expected? Any suggestions to resolve this issue?
We're sending the data in ASCII because we had issues sending it as raw data from Processing. When we sent a value from 128-160 the arduino mysteriously received a value of 63. All other values were fine. If we need to use larger values in the future, there will be less code to change and we won't have to worry about endianess.
I think I found the issue. I was running it through my Wifi router for testing. Today I tried it with a wired connection, and it's been working flawlessly! Thanks for trying to help!!