WiFly RN-XV Reliability

I’ve been wrestling with the RN-XV and the WiFlyHQ library. I can only assume I am doing something wrong but not sure what I could be missing.

I’m using an Arduino UNO, and a WiFly RN-XV (2.32). I have multiple boards of each to rule out any random hardware issue. First I tried the sample HTTP Server Sketch that comes with the WiFly HQ library but it would periodically not respond. I then tried the TCP Client Sketch and after about 20 seconds I would get a message that the WiFly crashed and needed to be restarted.

Finally, I tried writing my own sketch using UDP. I can send packets back and forth between the Arduino and an Xcode project on my Mac, but while TCPDump shows the packet going out of the Mac’s network interface, the WiFly seems to receive a garbled packet many more times than a correct one.

So I’ve put in my on error recovery to resend “bad” UDP packets, and I’ve gotten it to work but the result is extremely slow because so many packets seem to be bad.

And yes, I’m using an modern, up-to-date Airport Extreme WiFi Network.

I have my WiFly connected to my Arduino using the Wireless SD Shield. I cut off pins 1&2 on the SD shield and ran jumpers to Pins 6&7. I’m using SoftwareSerial to communicate to the WiFly on pins 6&7 at 9600 baud.

I just have to assume I’m doing something really wrong…as the HTTP Server Sketch was spotty at best and the TCP Client Sketch crashed repeatedly after about 20 seconds, and my custom UDP sketch works but once again it only does so because I wrote my own packet-resending routine and error check that handles the fact that most packets don’t arrive as expected.

Any help or advice would be appreciated.

Thanks to a post on the arduino.cc forums I found the solution. I used a Mega board to put the WiFly on hardware serial and it now works fine. So the WiFly and software serial don’t always work well together it seems. Now what I could use help on is how do I debug on an Uno using SoftwareSerial so I can use the single hardware serial on the Uno for the Wily RV-XV?