<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 16, 2021 at 12:08 AM Bushman, Jeff <<a href="mailto:jbushman@ciena.com">jbushman@ciena.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div style="overflow-wrap: break-word;" lang="EN-US">
<div class="gmail-m_-8958544183012224789WordSection1">
<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.<u></u><u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If I call mm_modem_get_sim_path() I do get the primary (only) SIM path back.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If I call mm_modem_get_sim_slot_paths(), I get an empty array back (the first element is NULL).<u></u><u></u></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]<u></u><u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div class="gmail-m_-8958544183012224789WordSection1"><span class="gmail_default" style="font-family:monospace,monospace"><br></span></div><div class="gmail-m_-8958544183012224789WordSection1"><span class="gmail_default" style="font-family:monospace,monospace"><br></span></div><div class="gmail-m_-8958544183012224789WordSection1"><span class="gmail_default" style="font-family:monospace,monospace">Are you running a GLib main loop in some way when using the sync APIs? Maybe these properties are not getting properly populated due to the lack of main loop. An example snippet of what you're doing would help.</span>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" lang="EN-US">
</div>

</blockquote></div><br>-- <br><div dir="ltr" class="gmail_signature">Aleksander<br><a href="https://aleksander.es" target="_blank">https://aleksander.es</a></div></div>