<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 26, 2013 at 12:44 AM, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@lanedo.com" target="_blank">aleksander@lanedo.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 09/26/2013 09:37 AM, Ben Chan wrote:<br>
> The original help message for --enable-pin implies that it expects the<br>
> existing PIN to be specified via the --pin argument, which seems<br>
> confusing as it actually expects the PIN to be set.<br>
> ---<br>
> This is based on the conversation between Dan and me on IRC.<br>
><br>
<br>
</div>What? --enable-pin will enable the PIN lock if the lock was disabled;<br>
but it doesn't change the PIN. --pin needs to be used to pass the<br>
current PIN. Changing the PIN is done with --change-pin=NEW --pin=OLD.<br>
<br>
See e.g. this flow (current PIN is 1234):<br>
<br>
$ sudo mmcli -i 0 --pin=1234<br>
successfully sent PIN code to the SIM<br>
<br>
$ sudo mmcli -i 0 --disable-pin --pin=1234<br>
successfully disabled PIN code request in the SIM<br>
<br>
$ sudo mmcli -i 0 --enable-pin --pin=0000<br>
error: couldn't enable PIN code request in the SIM:<br>
'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.IncorrectPassword:<br>
Couldn't enable PIN: QMI protocol error (12): 'IncorrectPin''<br>
<br>
(incorrect PIN passed with --enable-pin)<br>
<br>
$ sudo mmcli -i 0 --enable-pin --pin=1234<br>
successfully enabled PIN code request in the SIM<br>
<br>
$ sudo mmcli -i 0 --change-pin=0000 --pin=1234<br>
successfully changed PIN code in the SIM<br>
<br>
$ sudo mmcli -i 0 --disable-pin --pin=0000<br>
successfully disabled PIN code request in the SIM<br>
<br>
$ sudo mmcli -i 0 --enable-pin --pin=0000<br>
successfully enabled PIN code request in the SIM<br>
<br>
$ sudo mmcli -i 0 --change-pin=1234 --pin=0000<br>
successfully changed PIN code in the SIM<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>oh I see. sorry, my misunderstanding.</div></div></div></div>