Re: getting result of "at+cpin?" via dbus



On Mon, 2010-11-08 at 21:05 +0100, van Schelve wrote:
> Hi,
> 
> can somebody tell me if there is a way to get the output of "at+cpin?" 
> for a connected modem via dbus api?
> I already found 
> org.freedesktop.ModemManager.Modem.Gsm.Card.EnablePin(....) but nothing 
> for getting the current SIM state.

You're looking for the "UnlockRequired" D-Bus property.  It'll tell you
what (if any) unlock code is required for the modem to be enabled.

Dan

> I'm on the way to disable PIN Protection on all of our SIM Cards. 
> Because I need to do this more or less fully automated I need a way to 
> check the active state and let the user enter the PIN one time in a 
> popup.
> 
> Thank you!
> 
> -- HG
> 
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]