Strange operation of the chip in TCP mode
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: Strange operation of the chip in TCP mode
by Eugeny ·
It must be proven that ACK message was NOT delivered before you disconnect cable.
Please provide the way to reproduce the issue reliably. As far as I see, it will be about blocking the ACK packet from remote device, and seeing what W5500 is doing.
RE: RE: Strange operation of the chip in TCP mode
by voroshilov ·
The sequence is simple:
If during the execution of this algorithm, after the connection is established, to disconnect the cable, the Send Ok flag will be set to 1 after a short time. And only after 2-3 packets it will be set together with the timeout bit from the interrupt register.
UPD.
One more way:
You need PC with 2 network adapters;
While this script running, you can remove net bridge and see result.
RE: Strange operation of the chip in TCP mode
by Eugeny ·
Would be good to check TX_FSR register to see if it shrinks. It may be possible that while SENDOK is set, W5500 still keeps data in the buffer and perform retries. And timeout is got set when buffer gets full. Let’s wait for response of someone from WIZnet.
RE: Strange operation of the chip in TCP mode
by voroshilov ·
Thank you for answer.
I not immediately understood, what you means, but as soon as I began to check the completion of delivery upon clearing the TX buffer, the problem was solved.