[En-Nut-Discussion] Detecting disconnet of the network cable
Addisu Z. Taddese
addisu at ciholas.com
Fri Jun 13 07:27:46 CEST 2008
Is it not possible to use the Network Status Register of the Ethernet PHY.
I am sure there are other registers that you can access through MII. The
data sheet also shows that pin 78 is Cable Link Status Output.
Hope that helps,
Addisu
On Thu, Jun 12, 2008 at 8:20 AM, Wiegelmann, Jörg <
Joerg.Wiegelmann at ces-tronics.de> wrote:
> I'm using Ethernut with the EIR-SAM7 Hardware. I got data over a TCP-IP
> connection. When someone disconnects the network cable at the Ethernutboard,
> no softwarepart ist recognizing this. I tried the following implementation,
> but without success. tcperr doesn't show any error on disconnecting.
>
>
>
> NutTcpAccept(sockin, PortListen);
>
>
> NutTcpSetSockOpt(sockin,SO_RCVTIMEO,&ulReceiveTimeout,sizeof(ulReceiveTimeout));
>
> do
>
> {
>
> Cnt=NutTcpReceive(sockin,buffer,BUFFER_SIZE);
>
> tcperr = NutTcpError(sockin);
>
> }while(tcperr==0);
>
>
>
> any Idea?
>
> Best regards and thank you
>
> Joerg.
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
--
Addisu Taddese 812 962 9415 voice
Ciholas Technologies 812.962.9401 fax
255 South Garvin St. addisu at ciholas.com
Evansville, IN 47713 www.ciholas.com
More information about the En-Nut-Discussion
mailing list