30 sec delay when closing socket on W5100
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: 30 sec delay when closing socket on W5100
by Eugeny ·
There must be delay anyway as code you have assumes exchange between two network devices. In case of W5500 it seems delay is subtle for you to notice.
Several things to mention -
RE: RE: 30 sec delay when closing socket on W5100
by gfwilliams ·
Thanks - yes, it does sound like a timeout. I’ll check those registers. If I set the timeout value to something lower than 30 seconds, I guess that will affect other aspects of the connection?
I’m still unsure why the W5500 and W5100 would behave so differently though?
RE: 30 sec delay when closing socket on W5100
by Eugeny ·
No idea… the best is to compare network activity from and to each of the chips. May happen that W5500 sets PSH flag on the FIN packet.
Not sure if you need timeout at all if you communicate to non-embeded device (e.g. Windows or Linux) when socket hung for several tens of seconds is not an issue for remote network stack. Howeher if you work with another embedded devices it would be good to have FIN processed properly.
Are you able to test both chips and get the dump of the packet exchange?