How configure the modem PIN, when not using NM

Aleksander Morgado aleksander at aleksander.es
Fri Feb 7 11:41:26 UTC 2020


On Fri, Feb 7, 2020 at 11:28 AM Martin <debacle at debian.org> wrote:
>
> On 2020-02-07 09:30, Aleksander Morgado wrote:
> > > I'm using a modem just for SMS, i.e. no mobile internet.
> > > Therefore, NM does not control my modem and maybe I will remove NM.
> > > I can set the pin using mmcli, but it should be automatic.
> > > How would I configure that?
> >
> > ModemManager doesn't keep any state or configuration anywhere, so this
> > is currently not possible. You would need an external application to
> > unlock the PIN for you before any SMS can be sent or received.
>
> OK, I'll just manually disable the PIN for now, and add a DBus
> call to MM later. What would be the right DBus API?
> org.freedesktop.ModemManager1.Sim.SendPin("1234"), I assume?

Yes, https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Sim.html#gdbus-method-org-freedesktop-ModemManager1-Sim.SendPin


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list