What does ulpm_ShutDown() really do?

Hello,

I have been working with the ulpm_ShutDown() function while trying to implement a way for a user to properly turn off an FX30.

I had hoped ulpm_ShutDown() would initiate a Linux shutdown (poweroff), but it appears it shuts down the processor without going through the usual shutdown steps.

Is this the way it is supposed to work?

Is there a way to invoke a Linux shutdown/poweroff from a Legato app so as to ensure an orderly termination of services, etc.?

Thanks,
Mark

In FX30 current codebase, ulpm_shutdown() function doesn’t initiate linux (power off), but rather only modem-shutdown
so the proper orderly shutdown of linux services doesn’t happen.
In fact you can try system(“poweroff”) or invoke AT command AT!RESET.