How can I create modem object when in "failed" state?

Ido Dotan idod at ottopia.tech
Thu Nov 21 14:50:31 UTC 2019


Hi again, I found my mistake. The modem is indeed created just like it
should, even when in "failed" state. Sorry for that.
There's something else I'd like to understand, also in the matter of
working with sims -
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?

Thanks again for your help


On Sun, Nov 17, 2019 at 4:28 PM Aleksander Morgado <aleksander at aleksander.es>
wrote:

> Hey,
>
> > 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.
> > The thing is, I want to reset the modem, and for this I do need to have
> the modem object.
> >
> > 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?
> >
>
> A modem object with the Modem interface available is always exposed in
> DBus when in Failed state. There is (should be) nothing that prevents
> that from happening.
> I assume you're not using libmm-glib, so please share the code you're
> trying to run, otherwise it's impossible to help :D
>
> --
> Aleksander
> https://aleksander.es
>


-- 

*Ido Dotan, software developer*



*CONFIDENTIALITY NOTICE 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.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20191121/edbe2238/attachment.html>


More information about the ModemManager-devel mailing list