<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=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 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;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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">Hi,<o:p></o:p></p>
<p class="MsoNormal"><br>
thanks for the answer, I saw your thread, but for me it is strange because AT command does not return SIM PIN2 but READY, but reading with library returns that SIM PIN2 is required.
<br>
<br>
BR,<br>
Vanja<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Ulrich Mohr <u.mohr@semex-engcon.com> <br>
<b>Sent:</b> Wednesday, January 11, 2023 09:46<br>
<b>To:</b> Vanja Žerić <vanja.zeric@ttcontrol.com>; modemmanager-devel@lists.freedesktop.org<br>
<b>Cc:</b> Igor Vinčić <igor.vincic@tttech.com><br>
<b>Subject:</b> Re: ModemManger behaves strange<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0" style="background:red">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="color:white">CAUTION: This message was sent from outside of TTTech Group. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe.</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
<p>Hello, <o:p></o:p></p>
<p>I had the same question a while ago, and found an explanation:<o:p></o:p></p>
<p><a href="https://urldefense.com/v3/__https:/lists.freedesktop.org/archives/modemmanager-devel/2018-January/006142.html__;!!Cm4lpUGrlw!g4EDhARApmzCxYKVH_cZJfyXBDqxZar11vtDrXtD7bLPNAjqiQF_pLfYqIpSmJNxUoBrVV0Ds-CKRc_CnzGmdYH4$">https://lists.freedesktop.org/archives/modemmanager-devel/2018-January/006142.html</a><o:p></o:p></p>
<p>Best regards, <o:p></o:p></p>
<p>Uli<o:p></o:p></p>
<div>
<p class="MsoNormal">Am 11.01.2023 um 09:10 schrieb Vanja Žerić:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<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 border="0" width="564" height="257" style="width:5.875in;height:2.677in" id="Picture_x0020_1" src="cid:image001.png@01D925A2.2C2BADD0"><o:p></o:p></p>
<p class="MsoNormal">After calling AT command:<br>
<img border="0" width="236" height="96" style="width:2.4583in;height:1.0in" id="Picture_x0020_2" src="cid:image002.png@01D925A2.2C2BADD0"><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 border="0" width="885" height="41" style="width:9.2187in;height:.427in" id="Picture_x0020_3" src="cid:image003.png@01D925A2.2C2BADD0"></b><o:p></o:p></p>
<p class="MsoNormal">This is how I extract status in that function: <o:p></o:p></p>
<p class="MsoNormal"><img border="0" width="1060" height="213" style="width:11.0416in;height:2.2187in" id="Picture_x0020_4" src="cid:image004.png@01D925A2.2C2BADD0"><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>
<br>
<o:p></o:p></p>
<p class="MsoNormal">Best regars,<br>
Vanja Zeric<o:p></o:p></p>
<p class="MsoNormal">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 href="mailto:straymail@tttech.com">straymail@tttech.com</a> immediately. <o:p>
</o:p></p>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Best regards / Mit freundlichen Grüßen / Salutations distinguées<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Ulrich Mohr<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>SEMEX-EngCon GmbH<o:p></o:p></pre>
<pre>Carl-Merz-Strass 26<o:p></o:p></pre>
<pre>76275 Ettlingen<o:p></o:p></pre>
<pre>Phone: +49 (0) 7243 5143596<o:p></o:p></pre>
<pre>email: <a href="mailto:u.mohr@semex-engcon.com">u.mohr@semex-engcon.com</a><o:p></o:p></pre>
<pre>___________________________________________<o:p></o:p></pre>
<pre>Executive board: A. Stiegler, H.-J. Nitzpon<o:p></o:p></pre>
<pre>Commercial register: Mannheim, HRB 718881<o:p></o:p></pre>
<pre>Company domicile: Ettlingen<o:p></o:p></pre>
</div>
</body>
</html>