Question about sending RST packet after TCP disruption
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: Question about sending RST packet after TCP disruption
by Eugeny ·
You should check your code driving W5100. W5100, to my experience, sends RST only in case remote device sends packet to it, but related socket is closed. Thus in your case first thing I would check if code closes W5100’s socket under consideration when “disruption” happens. In my application, and I also use TCP (HTTP), I can remove cable for several seconds, then insert it back, and data flow properly continues.
RE: Question about sending RST packet after TCP disruption
by MinhVH ·
Hi Eugeny,
Thank for you reply, i’m using W5100 as a client to communicate with Inverter(server). And when discruption happens, if i reconnect it with SYN packet, it will keep the old connection so long. I tested it 4 times and the inverter didn’t accept connection anymore so i want to know how to send RST packet for resetting the connection.
RE: Question about sending RST packet after TCP disruption
by Eugeny ·
Two ways:
– you do not care about disruption, both devices should continue communicate if at both ends they do not time out. Set W5100’s timeout for longer period of time;
– you set server timeout, if server does not receive keep-alive response from W5100 it automatically closes connection, and W5100 can reconnect.