Main Site Documentation

Wiz5100 and DHCP and checking the network status?


#1

Hello !

The new DHCP class for Wiz5100 is a great improvement ! However, due to the limitations of the Wiz5100 chipset (?) this is not 100% reliable, because the dhcp process should be run only when a network cable is (re)connected. For an example, the Fez board is well connected with the user’s router, and for some reasons the router is power cycled, and when it’s backup the dhcp lease is not good anymore…

I am pretty sure from the Wiznet datasheet that checking the cable status is not possible through software (register). Is it correct ?

If it’s not possible using software, I will work on some hardware trick. Maybe loop the “link” status led to an input pin and monitor the result, to reset the Wiz5100 stack and run the DHCP once the network is up (and re-run it everytime the network goes down for more than 30s and back up, as the standards usualy do). Has someone some working code already :smiley: ?


#2

You are correct there is not way to check if the cable is connected through W5100 registers.

The hardware solution you suggested is the way out I guess. :wink:
You can wire the link status signal to one of the free GPIOs.