<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<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 Definitions */
@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;}
/* Style Definitions */
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;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<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 width="564" height="257" style="width:5.875in;height:2.677in" id="Picture_x0020_1" src="cid:image001.png@01D9259B.CD31ECA0"><o:p></o:p></p>
<p class="MsoNormal">After calling AT command:<br>
<img width="236" height="96" style="width:2.4583in;height:1.0in" id="Picture_x0020_2" src="cid:image002.png@01D9259B.CD31ECA0"><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 width="885" height="41" style="width:9.2187in;height:.427in" id="Picture_x0020_3" src="cid:image003.png@01D9259C.4777A6D0"><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 width="1060" height="213" style="width:11.0416in;height:2.2187in" id="Picture_x0020_4" src="cid:image004.png@01D9259C.8695F240"><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 straymail@tttech.com immediately.
</body>
</html>