in
Creating Smarter Networks

Reload module or reboot server?

Last post 10-06-2008 3:02 PM by mrusso. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-14-2008 1:30 AM

    • JasonC
    • Top 25 Contributor
    • Joined on 06-13-2008
    • Posts 5
    • Points 85

    Reload module or reboot server?

    Hi all,

    When deploying a new build of a FPM to an ilon from the development tools, the fpm on the ilon is automatically unloaded and reloaded to bring the newly compiled app into effect. This does not happen when manually updating the complied program via ftp.

    How can I achieve this same functionality from within my FPM code? Or, even reboot the system if I can't do that? My reason for asking is I have a FPM which can auto update itself remotely, but the new code does not come into effect until the device is rebooted.

     Any help on reloading or rebooting would be great.

     EDIT: To half answer my own question, rebootLib.h and  sysLib.h provide functions for rebooting, but I still haven't found a way to simply reload a module

    • Post Points: 20
  • 08-14-2008 10:03 AM In reply to

    • jster23
    • Top 10 Contributor
    • Joined on 04-03-2008
    • Posts 17
    • Points 235

    Re: Reload module or reboot server?

    Jason,

    Unfortunately, the FPM API currently does not have anything that lets you programmatically reload an FPM. 

    Jonathan
    Technical Writer, Echelon
    • Post Points: 20
  • 08-15-2008 1:11 AM In reply to

    • JasonC
    • Top 25 Contributor
    • Joined on 06-13-2008
    • Posts 5
    • Points 85

    Re: Reload module or reboot server?

    jster23:

    Jason,

    Unfortunately, the FPM API currently does not have anything that lets you programmatically reload an FPM. 

     

    Thanks for the info Jonathan, that's unfortunate. Can you provide any insight into how the Programming tools achieves the same effect without rebooting? Looking at the ilon console output, while deploying from the Eclipse SDK the FPM seems to be unloaded and loaded again. Is this something uniquely available to the IDE, or a SOAP call, or console command? I can't seem to replicate it myself.

    • Post Points: 20
  • 10-06-2008 3:02 PM In reply to

    • mrusso
    • Top 25 Contributor
    • Joined on 05-22-2008
    • Posts 5
    • Points 40

    Re: Reload module or reboot server?

    It should be using a SOAP call.  You could try a tool like Charles to isolate the messages.

    • Post Points: 5
Page 1 of 1 (4 items)
©2008 Echelon Corporation