Main Site Documentation

New SDK version


#1

Hello ,
anybody knows if the problem: Wiznet W5100 DHCP does not renew when it expires
is solved in the new SDK version ?

Thanks


#2

From the release notes page:

[quote]Known Issues
Wiznet W5100 DHCP does not renew when it expires[/quote]

http://www.tinyclr.com/release-notes/


#3

Thanks

Is there any trun around for this problem ?
Usaually I´m not able to see the Fez domino if it is connected to a phisical router port and I have the DCHP computer in the wireless network.
Thanks


#4

Is it possible to set a timer that trigger DHCP lease renewal?


#5

That is the way I addressed it in the netconfig class http://code.tinyclr.com/project/308/netconfig-wiz5100-http-configuration-framework/

  • Allow the user to chose to reset the wiz5100 chip every x hours
  • or at fixed times
  • or automaticaly when the network is loss / restored (cable plugued)
    Then it renews the DHCP lease.

ResetTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 1, 0, 0);
MyNetConfig.AutoReinitialize(ResetTime,new TimeSpan(24,0,0)); // Reset network Every 24h hours at 1am
// We could have also chosen to reset it simply every 6 hours
//MyNetConfig.AutoReinitialize(DateTime.Now.AddHours(6),new TimeSpan(6,0,0));

However, you don’t renew the lease according to the dhcp server lease time (which is basicaly unknown). Anyway, I found usefull to reset the wiz5100 on a regular basis to avoid troubles or bugs. I had panda / domino boards running http server and udp clients for several months without crashing, using this way !


#6

Thanks Joe and Nicolas for the suggestions