We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have a situation where the DHCP server is not available until after my ARM device starts up. My understanding is the stack will fall back to a static configuration.
How can I make DHCP attempt discovery again without totally resetting my program? Calling init_TcpNet() again doesn't seem to do it.
Thanks Dave
TCPnet DHCP Client in general waits indefinetly for DHCP Server. We have modified the HTTP_Demo example and installed a timer, which disables DHCP Client after a timeout in case that the IP address was not obtained. You can modify the HTTP_Demo.c and remove this timer so that the application waits until it receives a valid IP Configuration packet from DHCP Server.
Franc
Thanks for clarifying that.
Is there a way I can force DHCP to acquire a new lease?
Anybody? Is there no way to do this short of resetting the firmware?
You can not restart DHCP. Once a lease is obtained, also an IP address expiration timeout is obtained from DHCP Server. TCPnet DHCP Client maintaines this timeout and when expired, it resends DHCP Renewal request to DHCP Server. This process runs indefinetly. It always tries to renew his IP address when the lease has expired.
However you may always restart your application and DCHP Client will restart also.