Network cable disconnect

Joel Sherrill joel.sherrill at oarcorp.com
Wed Jun 20 16:26:17 UTC 2007


Camilo Alejandro Arboleda wrote:
> Hello,
>
> We working with a PC386 based board, with NE2000 compatible network 
> adapter. I've seen that disconnecting the network cable doesn't cause 
> the "write()" function to fail immediately, but it takes about a 
> minute to detect the network disconnection. Is it possible to detect 
> cable faults faster? Am I doing something wrong?

Did you turn on debug in the driver and try it?

Is there any output at all from the driver now?

I don't see anything explicitly in the driver about cable disconnect.
I do see ne_watchdog which is hooked to if_watchdog.  The
associated if_timer value is 2 which I think is 2 seconds based
upon IFNET_SLOWHZ and hz being rtems_bsdnet_ticks_per_second.
But this looks like a Tx timeout and is way shorter than what you
are seeing.

--joel
>
> Thanks,
>
> Camilo
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list