I am having problems with my Wifi Shields.
All my Shields are plugged into Arduino Duo Rev.3, of course, one for each Wifi Shield. Nothing fancy here.
I do not power the Uno via USB, but with a 12V power supply. However, I tried both and it doesnt affect its behaviour or these problems.
The software running Server Side (on the Arduino) is just like the Chat Server example. It doesnt echo back the data, but makes a simple computation and then, sends back the data to my computer.
At client side, there is a software which connects to the server and sends random values, 1 per second.
I have to deal with two problems:
1. Reconnect Issues - Whenever I had to stop my software on the computer (happened a lot while debugging), the socket doesnt terminate correctly ( the server probably doesnt get any RST ). After that, I can not reconnect to the Arduino. After resetting the Arduino, connecting works normally.
2. Disconnecting - After some time (like 3 hours) the Arduino just seems to disconnect from the network. I dont know why, but pinging the device still works. I cant reconnect, though. Here, I have to reset the whole Arduino again in order to reconnect.
3. Random data - When connecting to the Arduino (with netcat or telnet) I get random data, first. If I dont send any data back, the connetion terminates and I have to reset the Arduino in order to reconnect again. Why is that? Of course, the server flushes the client buffer when I connect, but actually, I shouldnt get this random data.
All these problems occur not only once - They occur all the time. I am using 5 Uno - WifiShield setups so this is definitely not some hardware-specific failure.
I hope anyone can help me fixing these problems or, at least, provide some workaround. The server doesnt have to run 24/7 but 12 hours a day straight should be possible.
Thanks in advance!
Link to Chatserver Example:http://arduino.cc/en/Tutorial/WiFiChatServer