How can I know if a TCP Send was successful
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Wireless
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: How can I know if a TCP Send was successful
by kaizen ·
Hi
If you have socket time out, your MCU receive the [ERROR:SOCKET FAILURE] message from WizFi210.
RE: How can I know if a TCP Send was successful
by wieser ·
In that case, how can I know which socket timed out?
RE: How can I know if a TCP Send was successful
by kaizen ·
Hi
WizFi210 does not have message for only socket timeout. If WizFi210 occure socket timeout, WizFi210 will send [ERROR:SOCKET FAILURE].
But, In default mode of WizFi210, You don’t see this error message. Because WizFi210 has default TCP retransmission timeout is infinite.
So using retransmission timeout, You need to enter command as below after create socket cid.
[quote]AT+WD
[OK]
AT+WWPA=12345678
[OK]
AT+XDUM=0
[OK]
AT+NDHCP=1
[OK]
AT+WA=WiznetKaizen
IP SubNet Gateway
192.168.15.42: 255.255.255.0: 192.168.15.1
[OK]
AT+NCTCP=222.98.xxx.xxx,6000
[CONNECT 0]
[OK]
AT+SETSOCKOPT=0,6,10,20,4
[OK]
AT+SETSOCKOPT=0,65535,8,1,4
[OK]
AT+SETSOCKOPT=0,6,4005,1,4
[OK]
AT+SETSOCKOPT=0,6,4001,75,4
[OK]
AT+CID=?
CID TYPE MODE LOCAL PORT REMOTE PORT REMOTE IP
0 TCP CLIENT 36486 6000 222. 98.xxx.xxx
[OK]
[color=#FF0000]Disconnect LAN cable on PC
WizFi210 send data to PC
After 10sec, You will see error message
[/color]
[ERROR: SOCKET FAILURE]
[/quote]