I’m using WiFly shield and Arduino UNO to query a page every 5 seconds after a successful connection. Everything work as expected but after rough 43 minutes stop working, and green led on pin04 starts blinking fast indicating WiFly has no ip? (or it hangs?). Unplug and plug again and everything work fine again until next 43 minutes.
First, I’d update the firmware to the latest version - V2.36 as of 9/14/2012. It would be useful to see the data coming from the module to see what messages it’s outputting before it hangs. I’ve been using this module in commerical applications for about 18 months, and while I’ve experienced several different problems, I haven’t had it hang on me.
I have a similar issue. I’ve got an RN-171 using the HTTP GET command to link short data strings from a logger to a web page at the rate of 1/s via a smartphone tether. But it never holds up for more than a few hours. I’m reluctant to upgrade the WiFly firmware because they have ditched adhoc mode in the latest version & adhoc mode is the only sure way for me to connect to this embedded device.
I was having similar problems with the WiFly RN-XV. My setup would run for a few minutes to a few hours then communications would stop. I don’t know that my setup is exactly like yours but based on an app note on the Roving Networks site I added the following.
Same problems here. Actually I have been having a long fight with the WiFly over a variety of issues, including the integrity of the packets going into and out of it.
But more recently I’ve been having network drops that have been tough to figure out.
I’ve tried both the 2.383 firmware and the newer 4.00(1) firmware.
Interestingly, even if you set linkmon value to 30, in the 4.0x series the default value for Join is 0. Join has to be set to 1 for it to auto associate if the linkmon detects an issue. This was confirmed to me by tech support at roving.
I’ve gone the further route to make an expensive check (timewise) to get the connection status flags of the wifly chip every 5 seconds and check to see if the tcp status equals 3, meaning it doesn’t have a valid connection, and then I execute a join to try to reconnect the network.
At my office, the wifly is dropping randomly but frequently (like every 5 to 15 minutes)
At home, I’m running the same exact config as i type this and it’s been running for quite a while and no drops are occurring.
I’m at a loss why the exact same config drops so often at work but not at home. But it’s getting frustrating.