All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Ofono use
  2011-10-24  9:44 Ofono use Jean Parpaillon
@ 2011-10-23 20:20 ` Denis Kenzior
  2011-10-24 15:48   ` Jean Parpaillon
  2011-10-26 11:17   ` Jean Parpaillon
  2011-10-24 11:11 ` Pekka Pessi
  1 sibling, 2 replies; 5+ messages in thread
From: Denis Kenzior @ 2011-10-23 20:20 UTC (permalink / raw)
  To: ofono

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

Hi Jean,

On 10/24/2011 04:44 AM, Jean Parpaillon wrote:
> Hi all,
> I am currently trying to use ofono and I can not get how to register the
> modem in a reliable way.
> When I detect a modem, I set org.ofono.Modem.Powered to True.
> When SimManager interface is ready, I enter the pin.
> Then, I set the modem org.ofono.Modem.Online to True.

So far so good...

> By the way, I wait for NetworkRegistration interface to be available.
> When it is available, I wait for NetworkRegistration.Name to be non
> empty to call NetworkRegistration.Register.
> 

oFono will automatically register unless the Mode property is set to
'manual'.  So calling NetworkRegistration.Register is wholly pointless
if you obtain a NetworkRegistration.Name.  That means you're already
registered ;)

> The point is setting Online property usually end with a timeout. It is
> the right workflow ? Must I look for other property ? 

What modem are you using?  In general Online should never result in a
timeout...

Regards,
-Denis

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

* Ofono use
@ 2011-10-24  9:44 Jean Parpaillon
  2011-10-23 20:20 ` Denis Kenzior
  2011-10-24 11:11 ` Pekka Pessi
  0 siblings, 2 replies; 5+ messages in thread
From: Jean Parpaillon @ 2011-10-24  9:44 UTC (permalink / raw)
  To: ofono

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

Hi all,
I am currently trying to use ofono and I can not get how to register the
modem in a reliable way.
When I detect a modem, I set org.ofono.Modem.Powered to True.
When SimManager interface is ready, I enter the pin.
Then, I set the modem org.ofono.Modem.Online to True.
By the way, I wait for NetworkRegistration interface to be available.
When it is available, I wait for NetworkRegistration.Name to be non
empty to call NetworkRegistration.Register.

The point is setting Online property usually end with a timeout. It is
the right workflow ? Must I look for other property ? 

In a few words, what is the right workflow to get a UMTS modem
registered to its default network from the moment you plug it in ? 

Any piece of a clue will be appreciated :)


Regards,
Jean


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

* Re: Ofono use
  2011-10-24  9:44 Ofono use Jean Parpaillon
  2011-10-23 20:20 ` Denis Kenzior
@ 2011-10-24 11:11 ` Pekka Pessi
  1 sibling, 0 replies; 5+ messages in thread
From: Pekka Pessi @ 2011-10-24 11:11 UTC (permalink / raw)
  To: ofono

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

Hi Jean,

2011/10/24 Jean Parpaillon <jean.parpaillon@free.fr>

> The point is setting Online property usually end with a timeout. It is
> the right workflow ? Must I look for other property ?
>

The registration might take some time (usually, however, much less than 25
seconds). Perhaps you have to adjust the SetProperty method timeout?


> In a few words, what is the right workflow to get a UMTS modem
> registered to its default network from the moment you plug it in ?
>
>
Sounds right to me. I would not wait for operator name, however.



-- 
Pekka.Pessi mail at nokia.com

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1064 bytes --]

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

* Re: Ofono use
  2011-10-23 20:20 ` Denis Kenzior
@ 2011-10-24 15:48   ` Jean Parpaillon
  2011-10-26 11:17   ` Jean Parpaillon
  1 sibling, 0 replies; 5+ messages in thread
From: Jean Parpaillon @ 2011-10-24 15:48 UTC (permalink / raw)
  To: ofono

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

Hi,
Thak you all for your answer.

Le dimanche 23 octobre 2011 à 15:20 -0500, Denis Kenzior a écrit :
> Hi Jean,
> 
> On 10/24/2011 04:44 AM, Jean Parpaillon wrote:
> > Hi all,
> > I am currently trying to use ofono and I can not get how to register the
> > modem in a reliable way.
> > When I detect a modem, I set org.ofono.Modem.Powered to True.
> > When SimManager interface is ready, I enter the pin.
> > Then, I set the modem org.ofono.Modem.Online to True.
> 
> So far so good...
> 
> > By the way, I wait for NetworkRegistration interface to be available.
> > When it is available, I wait for NetworkRegistration.Name to be non
> > empty to call NetworkRegistration.Register.
> > 
> 
> oFono will automatically register unless the Mode property is set to
> 'manual'.  So calling NetworkRegistration.Register is wholly pointless
> if you obtain a NetworkRegistration.Name.  That means you're already
> registered ;)
> 

Noted :)

> > The point is setting Online property usually end with a timeout. It is
> > the right workflow ? Must I look for other property ? 
> 
> What modem are you using?  In general Online should never result in a
> timeout...
> 

I am using a Huawei 1752 USB dongle.
After some time, modem is online, but I sometimes got a timeout. Really
precise, isn't it ? ;)

The really point now is I wanted to make voice calls but it appears that
this modem come with voice call feature disabled by default. Arggg.

> Regards,
> -Denis

Thanks again,
Jean


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

* Re: Ofono use
  2011-10-23 20:20 ` Denis Kenzior
  2011-10-24 15:48   ` Jean Parpaillon
@ 2011-10-26 11:17   ` Jean Parpaillon
  1 sibling, 0 replies; 5+ messages in thread
From: Jean Parpaillon @ 2011-10-26 11:17 UTC (permalink / raw)
  To: ofono

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

Hi,

Le dimanche 23 octobre 2011 à 15:20 -0500, Denis Kenzior a écrit :
> Hi Jean,
> 
> On 10/24/2011 04:44 AM, Jean Parpaillon wrote:
> > Hi all,
> > I am currently trying to use ofono and I can not get how to register the
> > modem in a reliable way.
> > When I detect a modem, I set org.ofono.Modem.Powered to True.
> > When SimManager interface is ready, I enter the pin.
> > Then, I set the modem org.ofono.Modem.Online to True.
> 
> So far so good...
> 
> > By the way, I wait for NetworkRegistration interface to be available.
> > When it is available, I wait for NetworkRegistration.Name to be non
> > empty to call NetworkRegistration.Register.
> > 
> 
> oFono will automatically register unless the Mode property is set to
> 'manual'.  So calling NetworkRegistration.Register is wholly pointless
> if you obtain a NetworkRegistration.Name.  That means you're already
> registered ;)
> 
> > The point is setting Online property usually end with a timeout. It is
> > the right workflow ? Must I look for other property ? 
> 
> What modem are you using?  In general Online should never result in a
> timeout...
> 

At the end, setting Online to True always end in error if I follow the
workflow described above. Error is:
- First time:
Error setting online: org.freedesktop.DBus.Error.NoReply: Did not
receive a reply. Possible causes include: the remote application did not
send a reply, the message bus security policy blocked the reply, the
reply timeout expired, or the network connection was broken.
- Then, if I retry before 30sec:
Error setting online: org.ofono.Error.InProgress: Operation already in
progress

If I stop my program and come back after a while, modem is registered.
Modem is Huawei 1752USB

> Regards,
> -Denis

Best regards,
Jean


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

end of thread, other threads:[~2011-10-26 11:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-24  9:44 Ofono use Jean Parpaillon
2011-10-23 20:20 ` Denis Kenzior
2011-10-24 15:48   ` Jean Parpaillon
2011-10-26 11:17   ` Jean Parpaillon
2011-10-24 11:11 ` Pekka Pessi

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.