Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFi server becomes unresponsive if it loses connection to network and reconnects #38

Open
cameronwest opened this issue Oct 15, 2013 · 6 comments

Comments

@cameronwest
Copy link

WiFi shield can connect fine, can receive and send packets, and works for a random amount of time - sometimes less than a minute, at most 5 hours. After much debugging, I determined that if the server status ever returned 4 (WL_CONNECT_FAILED), it became unresponsive to clients. Which makes sense.

I then added code where if that status occurs, it would reconnect to the network. The shield is able to reconnect without issue, returns a successful status, however it is still completely unresponsive to clients. The only thing that seems to work is manually pressing the reset button on the WiFi shield.

This has been frustrating since our project needs to have this server running for months or years without any manual intervention. 5 hours simply doesn't cut it for our needs.

I've already applied the latest version of the firmware (and multiple other versions) and this has never been resolved by any of them.

@DonKnowlton
Copy link

I have exactly the same problem on three different wifi shields. One has gone as long as 29 days before becoming unresponsive. The others typically fail within a few days. I am using IDE 1.0.5 with the wifi firmware and library that are supplied with that revision.

@derorrim
Copy link

derorrim commented Dec 2, 2013

Same issues here, is somebody working on this?
I am using a single TCP Socket that is held up all the time.
After random time the connection is dropped by the wifi shield.

@neno76
Copy link

neno76 commented Dec 6, 2013

Same issues here...

@agdl
Copy link
Member

agdl commented Jan 8, 2015

Hi to all. Please can you try to download the latest Arduino IDE version and try it again. Almost surely this issues has been solved.

@rpretolesi
Copy link

Hi, I update all (WiFi SHield and IDE) to last release but the problem it's the same. Many comment about this issue but no solution. After many days of test i discovered that the problem is the function:"uint8_t ServerDrv::getClientState(uint8_t sock)" in "server_drv.cpp". In this function the calling: "//Wait the reply elaboration SpiDrv::waitForSlaveReady();" hangs, and nothing to do , you must reset. It happens after a wifi reconnecting. No solution found on the network. I tested many code, but the problem , everytime, come out from here.....

@jb2b38
Copy link

jb2b38 commented Jul 19, 2016

Same issue 3 years later. Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants