I have wiz550io module in my boards. I use one of this module as a server and the other is a client. My server board always listen the tcp port for connection. In my project my client board will connect the server and ask for a small data (10 byte). After getting answer client will disconnect the port. After a while (20-30 seconds) client will connect again and ask for a data.
My problem is;
When client module try to connect the server module , connection establihed (without problem) and send a data to server. But in server side no data came. After a timeout (my software timeout) I disconnect and close the port. After a while(20-30 seconds) client try to connect server again. connection established (without problem). client send a data, server get data and send back an other data to client. Client get data also without a problem. After that I disconnect and close the port. After next attemp connection also established but no data came to server.
One connection is done, next connection cant be done and repating like that. When I try to connect to PC (with a generic tcp terminal software) as a server, everything is ok. But when I try one wiznet module to an other there is a problem.
I use wiznet library to connect and disconnect.
I will connect 10 server like this and get data from them. But now I try one server and one client. So I have to disconnet and close the port.
What should be the disconnect and reconnect situtation excatly ? Is there any application note or sample project? If connection status is established I call disconnect funciton before close port function.