Ofono use
Hi Jean,
Quoted 6 lines · Jean Parpaillon
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...
Quoted 4 lines
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 ;)
Quoted 2 lines
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
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
Hi Jean,
2011/10/24 Jean Parpaillon <[email protected]>
Quoted 3 lines
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?
Quoted 4 lines
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.
Signature · 1 line
Pekka.Pessi mail at nokia.com
Hi,
Thak you all for your answer.
Quoted 17 lines · Denis Kenzior
Hi Jean,
Quoted 6 lines · Jean Parpaillon
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...
Quoted 4 lines
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.
Quoted 5 lines
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 :)
Quoted 6 lines
Quoted 2 lines
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.
Quoted 2 lines
Regards,
-Denis
Thanks again,
Jean
Hi,
Quoted 22 lines · Denis Kenzior
Hi Jean,
Quoted 6 lines · Jean Parpaillon
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...
Quoted 4 lines
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 ;)
Quoted 6 lines
Quoted 2 lines
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
Quoted 2 lines
Regards,
-Denis
Best regards,
Jean