How to disconnect TCP client connection?
Serial-to-Ethernet & ConfigTool
No replies yet. Be the first to reply.
Join the discussion.
Serial-to-Ethernet & ConfigTool
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 to disconnect TCP client connection?
by becky ·
The existing connections will be closed when entering “AT command mode”.
Whenever you want to disconnect, can you send +++ and then AT + EXIT?
If you can, it disconnect and reconnect the TCP connection.
However, AT + EXIT should be transmitted 1 second after +++ transmission.
RE: RE: How to disconnect TCP client connection?
by Praveena ·
Hi Becky,
Thank you so much for the reply.
I tested these steps you have mentioned in one of our server i am working. It works with Normal server and the Wiz Modem sends FIN packet to the server once it comes out of Data mode using the +++ command. But the same sequence is not working with the SSL protected servers i.e HTTTPS servers. The modem is not sending the FIN packet to server. What might be the reason? Please reply.
Thanks in advance.
RE: How to disconnect TCP client connection?
by becky ·
W7500S2E-R1 does not support SSL connections. How did you connect?
RE: How to disconnect TCP client connection?
by Praveena ·
Hi Becky,
We are working in an embedded environment where we use two scenarios HTTP connection without SSL - Http client and HTTP connection with SSL - Https client. We have our own HTTP application & SSL stack which uses the underlying TCP-IP connection which is where we use Wiz W7500S2E-R1 module. Both the HTTP and SSL stack are proven application and they are working fine for years with our previous Modem. The TCP-IP connection and Data transfer to and fro works fine with both the scenarios. Once confirmed all the data transfer has been done, when the application tries to close the active TCP-IP connection by coming out of data mode (by sending +++ with a time gap of 1 sec each before and after sending) , the first scenario HTTP connection without SSL - Http client is working as expected .Here the Wiz module sends a FIN packet to the remote host to disconnect the active connection. But in the second scenario HTTP connection with SSL - Https client, the Wiz modem doesn’t sends a FIN packet to the remote host. The remote host disconnects the connection after certain timeout.
I tried with setting the inactive timer to 1 ms and setting the reconnect time to 55 secs after coming out of the data mode and later going back to data mode (AT+EXIT). Later i expect the Wiz modem disconnects the connection. I tested with two different HTTPs connection i.e different servers (as TCP client). The result is, in one of the case, the Wiz modem sends a RST packet to the remote host in ~6 secs after entering data mode. In other case, nothing happened and the connection ended by remote host on timeout.
Hope i gave a clear and detailed story. Please help.
Thanks in advance.
RE: RE: How to disconnect TCP client connection?
by Praveena ·
Please reply for my question as this is really IMPORTANT for my current work.
Thanks,
Praveena