<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello, <br>
    </p>
    <p>I had the same question a while ago, and found an explanation:</p>
    <p><a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/archives/modemmanager-devel/2018-January/006142.html">https://lists.freedesktop.org/archives/modemmanager-devel/2018-January/006142.html</a></p>
    <p>Best regards, <br>
    </p>
    <p>Uli<br>
    </p>
    <div class="moz-cite-prefix">Am 11.01.2023 um 09:10 schrieb Vanja
      Žerić:<br>
    </div>
    <blockquote type="cite"
cite="mid:VI1PR01MB6576A54C37022C769DB24286E9FC9@VI1PR01MB6576.eurprd01.prod.exchangelabs.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello everyone,<br>
          <br>
          I am working with some USB Connectivity Module and I am using
          ModemManager to get status of SIM PIN. When I am using C app
          that is using ModemManager library and when I extract status
          of SIM PIN, I am getting that SIM requires PIN2
          (MM_MODEM_LOCK_SIM_PIN2), but when I send AT command I am
          getting that SIM is READY, that means that SIM is unlocked.
          SIM is connected correctly, but it seems only that message is
          wrong.
          <br>
          After calling test app:<br>
          <img style="width:5.875in;height:2.677in" id="Picture_x0020_1"
            src="cid:part1.PI9NtA3d.0xkY8Zw3@semex-engcon.com" class=""
            width="564" height="257"><o:p></o:p></p>
        <p class="MsoNormal">After calling AT command:<br>
          <img style="width:2.4583in;height:1.0in" id="Picture_x0020_2"
            src="cid:part2.aRPOWFaZ.jEJ0AkIG@semex-engcon.com" class=""
            width="236" height="96"><br>
          I am getting correct PIN status messages if SIM requires PIN
          or PUK, I tested it, but when I send correct PIN, SIM
          connects, but PIN status message is that SIM requires PIN2.<br>
          <br>
          This is how I am extracting the status:<br>
          This is prototype of my function:  <o:p></o:p></p>
        <p class="MsoNormal"><b><img
              style="width:9.2187in;height:.427in" id="Picture_x0020_3"
              src="cid:part3.yDPzphrh.pHr0zd1H@semex-engcon.com"
              class="" width="885" height="41"><o:p></o:p></b></p>
        <p class="MsoNormal">This is how I extract status in that
          function: <o:p></o:p></p>
        <p class="MsoNormal"><img
            style="width:11.0416in;height:2.2187in" id="Picture_x0020_4"
            src="cid:part4.QTPOLeHo.VaHdoadT@semex-engcon.com" class=""
            width="1060" height="213"><o:p></o:p></p>
        <p class="MsoNormal">Hal_modem_pin_status_enum convert MM PIN
          status to my enum…<br>
          <br>
          Does anyone has any idea?<br>
          <br>
          <o:p></o:p></p>
        <p class="MsoNormal">Best regars,<br>
          Vanja Zeric<o:p></o:p></p>
      </div>
      CONFIDENTIALITY: The contents of this e-mail are confidential and
      intended only for the above addressee(s). If you are not the
      intended recipient, or the person responsible for delivering it to
      the intended recipient, copying or delivering it to anyone else or
      using it in any unauthorized manner is prohibited and may be
      unlawful. If you receive this e-mail by mistake, please notify the
      sender and the systems administrator at <a class="moz-txt-link-abbreviated" href="mailto:straymail@tttech.com">straymail@tttech.com</a>
      immediately.
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Best regards / Mit freundlichen Grüßen / Salutations distinguées

Ulrich Mohr

SEMEX-EngCon GmbH
Carl-Merz-Strass 26
76275 Ettlingen
Phone: +49 (0) 7243 5143596
email:  <a class="moz-txt-link-abbreviated" href="mailto:u.mohr@semex-engcon.com">u.mohr@semex-engcon.com</a>
___________________________________________
Executive board: A. Stiegler, H.-J. Nitzpon
Commercial register: Mannheim, HRB 718881
Company domicile: Ettlingen</pre>
  </body>
</html>