> I'm not entirely sure what you mean with "power off" and "shut down the
> radio", but here are the definitions I'm using:
> power off: the entire modem is powered off not just the radio. The
> device does not communicate with the host because it is unpowered.
>
> radio off: the radio is powered down and no network communication is
> possible, but the modem can still communicate with the host.
clear, the same as mine.
So, saying that my targets are ModemManager Telit plugin's modem_power_down and modem_power_off functions, we have:
* modem_power_off (which is not implemented) == power off.
Ideally, CFUN=0 would be the candidate, but it would make the modem unrecoverable, so CFUN=4 would be my choice, which is OK, if I understood correcly.
* modem_power_down is currently implemented with CFUN=4 so == radio off.
However, considering that it is activated with "mmcli -m <ID> --set-power-low", it looks to me as a function that puts the modem in a "power saving state", for which Telit's CFUN=5 would be more appropriate.
The problem is that if I change modem_power_down to CFUN=5, when I use "nmcli radio off" ModemManager will send CFUN=5, which is not a "radio off" state.
So, the question is, "mmcli -i <ID> --state-power-low" is to be considered like "go to power save" or "radio off"?
> The ModemManager API specification would not allow CFUN=5 for the
> "disabled" state, since it defines the disabled state as not allowing
> network communication. So I would still use CFUN=4 for "disabled"
> state.
But, if I got it right, I can't override mm_modem_disable for a plugin, right? When I disable the modem (mmcli -m ID --disable) no AT+CFUN command is sent to the modem.
> But couldn't the modem instead be set to CFUN=5 whenever it is
> enabled? The Telit docs seem to say it's a fully functional state,
> just that the modem can do some power saving. Which sounds like a win
> without a downside.
I guess that moving in and out from a power saving state would cost some time (and maybe overhead?) respect CFUN=1 which should be more responsive. Moreover, I would expect to get into a power saving state issuing --set-power-low more that with --set-power-on.
Carlo