This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCP closing problem

Hi

I'm using AT91sam7x512 with DP83848 for Ethernet connection and in my project device is set as host, and every thing is OK except TCP closed detection.

I've used tcp_get_state() to determine which state my device is. but it's really unreliable and maybe after 10 minute I could detect that the connection was lost and sometimes never I could.

my cable connected to the PC through Ethernet switch and I've set timeout to 120.

in configuration of DP83848 I've used auto negotiation mode to connect and there's not any difference between auto neg. and fixed mode(100BT or something else)

Does anybody have suggestion?

if you could help, I'd appreciate you.

thanks

Parents
  • Are you talking about a correct TCP closure or a disconnection of a cable?

    If you're talking about TCP closure, then the stack provides an event to tell you of it.

    If you're talking about trying to detect when the cable has been disconnected (or cut), then the TCP protocol stack will not directly tell you of the event.

Reply
  • Are you talking about a correct TCP closure or a disconnection of a cable?

    If you're talking about TCP closure, then the stack provides an event to tell you of it.

    If you're talking about trying to detect when the cable has been disconnected (or cut), then the TCP protocol stack will not directly tell you of the event.

Children