sparkfun / WiFly-Shield

WiFly Shield -- A shield for the Roving Networks RN-52 WiFly Module.
https://www.sparkfun.com/products/9954
Other
149 stars 145 forks source link

Hang on connect #25

Closed dblunt closed 10 years ago

dblunt commented 11 years ago

Occasionally when calling client.connect() it will hang, rather than returning. If I reset the Arduino (and hence the shield), the next call will usually work. I have not been able to correlate it to a WiFi signal issue or network connectivity problem. This will happen at variable times after the last reset of the Arduino, e.g. after an hour, or sometimes after three days. My use case is a sensor array that posts HTTP data to a remote web site each minute.

I have taken a cursory look at the code to see if there are places with missing timeouts, but haven't found them yet.

I'm using the latest code from the repo.

dblunt commented 11 years ago

When the call to client.connect() hangs, the WiFly is still pingable, although the DHCP table on my router shows a blank client name. After resetting the Arduino, the client name reappears as WiFly-GSX.

ToniCorinne commented 11 years ago

I'm not sure what the problem could be on this (especially with the random time periods between failures), but at the very least, you might want to try upgrading the firmware (instructions are here) and triple checking your signal strength. Is there any way this could possibly be due to external wireless interference?

ToniCorinne commented 10 years ago

Due to lack of response, I'm closing this issue. If we need to reopen this, we can.

dblunt commented 10 years ago

Yeah, I'm sorry for not responding. I tried upgrading the firmware and unfortunately got stuck where I can't connect into the CLI... If I manage to get the device working again I'll report back on whether I still get random lockups.

ToniCorinne commented 10 years ago

Cool- sounds good. Sorry to hear you are running into issues with the firmware upgrade. Let us know how it goes!