Automatic reconnection to a TCP server
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: Automatic reconnection to a TCP server
by wizdaniel ·
Hi
Please refer to the following link and check AT+FSOCK=6, 8
wizwiki.net/wiki/doku.php?id=pro … t#at_fsock
RE: Automatic reconnection to a TCP server
by phil31 ·
hello Daniel,
please explain me a little more this command !..?
where i can specify which socket to apply ?
in my application, i have several sockets open… :
1 TCP server to serve a web server
1 TCP client to send PUSH frames
and several UDP socket to different features !
thanks, regards
Phil
RE: Automatic reconnection to a TCP server
by wizdaniel ·
Hi phil
Sorry, This function can support just 1 socket.
because this function recreate the socket using saved in flash memory(scon=s)
and the SCON=S command can overwrite the socket information in the flash memory. So, just 1 socket will be saved.
You can use Recreate socket or Reset the module when there is no socket connected using the following commands.
AT+WSET=
(your configuration)(your configuration)AT+WSEC=
AT+WNET=~~~~(your configuration)
AT+WJOIN
AT+SCON=SO,5000,0 <<< as you know, the tcp server socket will create as 5000 port and saved flash memory.
AT+FSOCK=6,10 << you can choose FSOCK=6 or FSOCK=8. // FSOCK=6,10 << Check the Socket connected every 10 seconds. If disconnected, recreate the saved socket once again.(TCP Server 5000 port)
AT+FSOCK=8,30 << FSOCK=8,30 << Check the socket connected every 30 seconds, if disconnected, Reset the module and create the TCP Socket(5000 port)
AT+MPROF=S << previous commands must be saved.
RE: Automatic reconnection to a TCP server
by phil31 ·
well not sure to right understand …
==> which one is “supported” if several socket are open ?
anyway, this AT command seem not the right solution for my problem.
regards