<div dir="ltr">Hi again, I found my mistake. The modem is indeed created just like it should, even when in "failed" state. Sorry for that.<div>There's something else I'd like to understand, also in the matter of working with sims -</div><div>I couldn't find any signal which can tell me that a new sim inserted in a modem which was simless at first. Is there something like this that I miss?</div><div><br></div><div>Thanks again for your help</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 17, 2019 at 4:28 PM Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</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">Hey,<br>
<br>
> I want to create a modem object (org.freedesktop.ModemManager1.Modem), but when it has no sim, an exception "[org.freedesktop.ModemManager1.Error.Core.WrongState] modem in failed state" is thrown.<br>
> The thing is, I want to reset the modem, and for this I do need to have the modem object.<br>
><br>
> How can I create a modem object although it's in "failed" state? Or, on the other hand, how can I reset a modem which hasn't been created yet, without using any shell command?<br>
><br>
<br>
A modem object with the Modem interface available is always exposed in<br>
DBus when in Failed state. There is (should be) nothing that prevents<br>
that from happening.<br>
I assume you're not using libmm-glib, so please share the code you're<br>
trying to run, otherwise it's impossible to help :D<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b style="color:rgb(7,55,99);white-space:pre-wrap;font-family:arial">Ido Dotan, software developer</b><br></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><br></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(102,102,102)"><br></span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><em style="color:rgb(130,130,130);font-family:ARIAL;font-size:13.3333px"><strong>CONFIDENTIALITY NOTICE</strong> The information contained in this email message (including any attachments) is confidential and proprietary, is not intended for public access or use, and may be subject to privacy laws, export control laws, and other legal restrictions and privileges. Such information is intended only for the addressee(s) named above. You are hereby notified that any dissemination, distribution, printing, retaining, copying or use of this email (including its attachments) by unintended recipient(s) is strictly prohibited and may be unlawful. If you are not an addressee named above, or believe that you have received this email in error, kindly notify the sender immediately (by replying to this email) and permanently delete it (and its attachments) from your system.</em></p></div></div></div></div>