All of lore.kernel.org
 help / color / mirror / Atom feed
* when to set a Modem online
@ 2013-03-25 14:34 Cedric Jehasse
  2013-03-25 15:34 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Cedric Jehasse @ 2013-03-25 14:34 UTC (permalink / raw)
  To: ofono

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

Hi,

On Huawei devices i need to wait for the pin to be entered before
setting the Online property to true.
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.

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?

Thanks,
Cedric

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: when to set a Modem online
  2013-03-25 14:34 when to set a Modem online Cedric Jehasse
@ 2013-03-25 15:34 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2013-03-25 15:34 UTC (permalink / raw)
  To: ofono

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-25 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-25 14:34 when to set a Modem online Cedric Jehasse
2013-03-25 15:34 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.