<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=us-ascii">
<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;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">I’m just getting started with interfacing with the ModemManager via mm-glib. I am experimenting with the synchronous SIM slot APIs, and they don’t seem to work.<o:p></o:p></p>
<p class="MsoNormal">I am running ModemManager 1.18.2 on Ubuntu 20.04 with a Sierra Wireless MC7455-based USB modem running in MBIM mode and an AT&T SIM.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I call mm_modem_get_sim_path() I do get the primary (only) SIM path back.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I call mm_modem_get_sim_slot_paths(), I get an empty array back (the first element is NULL).<o:p></o:p></p>
<p class="MsoNormal">If I call mm_modem_get_primary_sim_slot(), I get an answer of 0, although the documentation implies the answer should be [1..N]<o:p></o:p></p>
<p class="MsoNormal">If I call mm_modem_list_sim_slots_sync(), I get an empty (len = 0) array back with no error message.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Should I expect these APIs to work? I’m very new to glib and D-Bus programming, so debugging tips are very welcome.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:11.25pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif">Jeffrey M Bushman</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif"><br>
<span style="color:gray">Software Engineer 4 </span><span style="color:red">|</span><span style="color:gray"> </span>
<span style="color:gray">Ciena</span> <br>
<span style="color:gray">Spokane, WA, USA</span> <br>
<span style="color:gray">O </span><span style="color:red">|</span><span style="color:gray"> +1.509.242-9405
<br>
M </span><span style="color:red">|</span><span style="color:gray"> +1.678.232.4013</span></span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">
<br>
</span><a href="https://www.ciena.com/?src=emailsig" target="_blank"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue;text-decoration:none"><img border="0" width="266" height="43" style="width:2.7708in;height:.4479in" id="Picture_x0020_1" src="cid:image001.png@01D7DA2C.4D85F5C0" alt="Ciena AN Logo"></span></a><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>