Hello,
I wrote a very small web server for the Netduino Plus 2; the only purpose of the server is to give the user the ability to change the IP configuration of the board (enable DHCP or set a static address).
At the beginning of my Main() routine is a piece of code that retrieves the IP configuration from SD (if any, otherwise, it uses defaults), programs the network interface accordingly, and then starts the web server.
Once the user has entered the new configuration, I store it to the SD card, then reboot the device with [font="'courier new', courier, monospace;"]PowerState.RebootDevice(false)[/font]. The [font="'courier new', courier, monospace;"]Main()[/font] routine restarts, but then the Netduino card cannot be accessed from the network ; it just does not answer ; for the rest, it appears to be alive and well. I have to remove and re-apply power to get it back to responding to the network.
I tried RonZon's approach to hard reset the Ethernet chip (http://forums.netdui...+ethernet +port), but that apparently does not change anything (though I'm not sure what I'm really doing as I'm kind of working blindfolded, not havving an oscilloscope to put on the /ENC_RESET signal...).
Any idea how to change the IP configuration on the fly without powering off the Netduino ?
BTW, this is with the .Net MF 4.3 and the 4.3 beta 1 SDK.
Thanks,
Pyt.