WiFly software reset

Hi

I am quite new to the WiFly. I did successfully implement the demo client and also the project reading data from the web (http://bildr.org/2011/06/arduino-ethernet-client/).

My project aims of reading data quite frequently, about every 5 sec or so. This is to prevent having too big buffers on the arduino side.

I have noticed that after polling the web for a while, the routines fail and the messages read are WiFly internal message artifacts such as

*CLOS*

or

GET / HTTP/1.0

ERR: ?-Cmd
<2.23> 


<2.23>

The only way I fount to resolve this without disconnecting power is to reset the WiFly. Closing the connection and reinitialize the connection is not sufficient.

Is there an easy way to this in a software routine with the provided driver? I see an example for a hardware Factory reset but not sure if this also applies for a software reset?

It would be interesting to understand why the module suddenly switches to an undefined behavior.

Thanks for any help in this matter!

You are using a pretty old version of the WiFly firmware so you should upgrade (following instructions in the WiFly user manual). The version number is at least 2.31 at present. However, the firmware is still buggy and unreliable, as a search through these forums will show. For example, search for “wifly crash”.

If you still have the problem after upgrading the firmware contact Roving Networks. They are responsive, but I think it will be some time before this product is reliable.

Thank you !

Version 2.32 helped a bit. Although it is still not 100% reliable, some flush, close and connecting and it recovers.