Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Netduino reboot : what code is executed ?

netduino reboot

  • Please log in to reply
No replies to this topic

#1 jmnicolas

jmnicolas

    New Member

  • Members
  • Pip
  • 1 posts

Posted 01 September 2014 - 09:21 AM

Hello,

 

English is not my native language, but I will try to explain my problem the best I can. Thanks for your understanding.

 

I was asked to modify an existing Netduino project. I don't have prior experience with this platform.

The Netduino in question commands some lights and sometimes it becomes unresponsive.

 

So I implemented a reboot with :

PowerState.RebootDevice(false);

The reboot seems extremely fast, the board only misses one ping and the tiny leds near the Ethernet interface don't even stop shining.

The web service doesn't respond after the reboot, a bit like if it wasn't relaunched.

 

The application is quite simple, the main is this :

public class Program
{
    public static void Main()
    {
        HttpServer httpServer = new HttpServer(80,new HttpHandler());
        httpServer.Start();
    }        
}

Then there is a second class HttpHandler : IHttpHandler that manages the web service.

All the logic of lighting is done on a server that sends the commands to this web service.

 

So my question is : what code is executed after the reboot ? It doesn't seem to go to the main() method and debugging in Visual Studio hung and didn't let me follow what happens.

 

Thank you for your help.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.