W5500 LAN vs WAN
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: W5500 LAN vs WAN
by Eugeny ·
Routing of the packets may be different in the LAN (where one or only several intermediate devices are involved) and in WAN (where a lot of devices may play their role, with packets arriving in incorrect sequence).
You must use Wireshark to see what is going on at the W5500 port and why it gets stuck. The obvious cause could be out of order packets.
RE: RE: W5500 LAN vs WAN
by Nigel Bond ·
Hi,
Thanks for that.
Typing-out my query went a long way to solving it. It was time related, and I was sending new data to the TX buffer(s) too quickly.
I haven’t proved it beyond doubt, but it seems highly probable that the W5500 generates a SEND_OK interrupt BEFORE(!) it’s ready to have its Tx buffer over-written.
i.e. I was polling for a SEND_OK before sending new data, and that was failing when done over WAN. Now “doing it” via TX_Free register.
All good when sending quickly over LAN, but gets into trouble with the slower WAN.
RE: W5500 LAN vs WAN
by Eugeny ·
Not clear if you have solved the issue by using TX_FSR?
I never used SEND_OK, can not comment. It is intended for interrupts, maybe you are right and there must be some delay before you can send, but most probably you will have to check FSR in your ISR anyway, and wait until you have some free space before sending.