Odd problem I'm encountering. Wonder if anyone experienced it yet or has any thoughts. It's network related when power cycling the ethernet.
When my Netduino App Starts I am turning off both Ethernet and the Power Led to conserve power due to the numerous sensors and the LCD display using the following code:
// POWER MANAGEMENT// Turn off the Ethernet controllerPowerManagment.SetPeripheralState(Peripheral.Ethernet, OFF);// Turn off the Netduino Power LED. Not seen anyway.PowerManagment.SetPeripheralState(Peripheral.PowerLED, OFF);
From the menu on my Netduino App I put the Netduino into Host mode which in my case an an HTTP server that allows my windows app to exchange data and download log files. I am turning the Ethernet Back on before setting the network settings from a cfg file then starting the web server.
// Turn on the Ethernet controllerPowerManagment.SetPeripheralState(Peripheral.Ethernet, ON);Thread.Sleep(1000);// Code to start webserver//...
After starting the web server I can see the network settings are correct however I cannot PING or communicate with the ND+2. If I comment out the first line that turns off the Ethernet (never having powered it down) it runs 100% and I can PING and reach the box.
Is there something that needs to be done to initialize or reset the ethernet after powering it back up?