Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: when to set a Modem online
Date: Mon, 25 Mar 2013 10:34:24 -0500	[thread overview]
Message-ID: <51506E80.40402@gmail.com> (raw)
In-Reply-To: <CABvLYuCcfYBrNWETbSGbWm=Mem5Mh9q4nuKYQre9tmj7C5=e3Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]

Hi Cedric,

On 03/25/2013 09:34 AM, Cedric Jehasse wrote:
> Hi,
>
> On Huawei devices i need to wait for the pin to be entered before
> setting the Online property to true.

Then wait for the SubscriberIdentity to be signaled.  This is similar to 
how connman works.  See tools/auto-enable.c for a more detailed example.

Going Online before the PIN is entered is really only for voice modems 
and emergency mode.

> For this i'm waiting for the Interfaces dict to contain
> org.ofono.ConnectionManager.
> Now i'm trying an Option dongle, the org.ofono.ConnectionManager
> interface is only added after the Online property is set.

Sounds like the option driver was never converted fully.  Care to move 
the GPRS stuff into post_sim and see if anything breaks?

>
> So checking which interfaces are available isn't a good way to check
> when i can set a modem Online.
> Is there a good way to know the modem is in MODEM_STATE_OFFLINE, and
> we can set the Online property?
>

Regards,
-Denis

      reply	other threads:[~2013-03-25 15:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-25 14:34 when to set a Modem online Cedric Jehasse
2013-03-25 15:34 ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51506E80.40402@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox