W7500 TCP client Example
MCU & Boards
No replies yet. Be the first to reply.
Join the discussion.
MCU & Boards
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: W7500 TCP client Example
by lawrence WIZnet ·
Hello, joaopaulob
Are you using W7500 with TCP client?
You only can send data in TCP after tcp connection success.
That is why it is hard to guess the network timing, with delay.
So, w7500 supports useful register, Sn_SR(sn), which can check network conditions.
With Sn_SR(n),
You can find the Sn_SR & Sn_RX_RSR in W7500 reference sheet.
http://wizwiki.net/wiki/lib/exe/fetch.php?media=products:w7500:w7500_rm_v109.pdf
Thank you
lawrence
RE: RE: W7500 TCP client Example
by joaopaulob ·
Hi,
I found the problem. The socket.c was set as non_blocking mode. The “Sn_SR(sn) != SOCK_ESTABLISHED” was not checked.
Thanks
RE: W7500 TCP client Example
by lawrence WIZnet ·
You did !!
I am glad to hear that!
Thank you for your interests.
Feel free to ask anytime.
Thank you
lawrence