All of lore.kernel.org
 help / color / mirror / Atom feed
* Network information can't be updated dynamically
@ 2009-07-29  8:28 Li, Zhigang
  2009-07-29  9:41 ` Li, Zhigang
  2009-07-29 17:24 ` Denis Kenzior
  0 siblings, 2 replies; 8+ messages in thread
From: Li, Zhigang @ 2009-07-29  8:28 UTC (permalink / raw)
  To: ofono

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

Hi,
I take a phone as modem to use ofono and find the network information can't be updated dynamically in ofono: so the network status always is roaming.
Because ofono get the response is roaming status at beginning.
  ofonod[10503]:  Response line: +CREG: 2,5,"188E","00006302"

The network status and signal strength will update dynamically but ofono can't receive it automatically because modem can't send it regular. or anything wrong in my understanding?

Can ofono send the CREG command regular to get the network information look like COPS command?

If we expect application to initialize this request then which interface for it?
Get properties and properties_changed can't get the updated information so far.

Thanks


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

* RE: Network information can't be updated dynamically
  2009-07-29  8:28 Network information can't be updated dynamically Li, Zhigang
@ 2009-07-29  9:41 ` Li, Zhigang
  2009-07-29 17:24 ` Denis Kenzior
  1 sibling, 0 replies; 8+ messages in thread
From: Li, Zhigang @ 2009-07-29  9:41 UTC (permalink / raw)
  To: ofono

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

And send the CQS to get the signal value.

Thanks

>-----Original Message-----
>From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf Of Li,
>Zhigang
>Sent: 2009年7月29日 16:29
>To: ofono(a)ofono.org
>Subject: Network information can't be updated dynamically
>
>Hi,
>I take a phone as modem to use ofono and find the network information can't be
>updated dynamically in ofono: so the network status always is roaming.
>Because ofono get the response is roaming status at beginning.
>  ofonod[10503]:  Response line: +CREG: 2,5,"188E","00006302"
>
>The network status and signal strength will update dynamically but ofono can't
>receive it automatically because modem can't send it regular. or anything wrong
>in my understanding?
>
>Can ofono send the CREG command regular to get the network information look like
>COPS command?
>
>If we expect application to initialize this request then which interface for
>it?
>Get properties and properties_changed can't get the updated information so far.
>
>Thanks
>
>_______________________________________________
>ofono mailing list
>ofono(a)ofono.org
>http://lists.ofono.org/listinfo/ofono

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

* Re: Network information can't be updated dynamically
  2009-07-29  8:28 Network information can't be updated dynamically Li, Zhigang
  2009-07-29  9:41 ` Li, Zhigang
@ 2009-07-29 17:24 ` Denis Kenzior
  2009-07-30  1:51   ` Li, Zhigang
  1 sibling, 1 reply; 8+ messages in thread
From: Denis Kenzior @ 2009-07-29 17:24 UTC (permalink / raw)
  To: ofono

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

Hi,

> Hi,
> I take a phone as modem to use ofono and find the network information can't
> be updated dynamically in ofono: so the network status always is roaming.
> Because ofono get the response is roaming status at beginning.
>   ofonod[10503]:  Response line: +CREG: 2,5,"188E","00006302"
>
> The network status and signal strength will update dynamically but ofono
> can't receive it automatically because modem can't send it regular. or
> anything wrong in my understanding?

The only thing that oFono core will poll periodically is the network 
operators.  Everything else must be handled by the driver.  For network status 
updates atmodem sends an AT+CREG=2, quoting 27.007:

"2 - enable network registration and location information unsolicited result 
code +CREG: <stat>[,<lac>,<ci>[,<AcT>]]"

This seems to work ok on my devices.  Are you sure your modem re-registers to 
the home network?

For signal strength oFono explicitly doesn't poll this in the reference 
driver.  This is because vast majority of vendors out there have their own 
specific command to turn on period signal strength updates.  If you want this 
feature, you need to submit a patch that enables this support explicitly.

>
> Can ofono send the CREG command regular to get the network information look
> like COPS command?

No.

>
> If we expect application to initialize this request then which interface
> for it? Get properties and properties_changed can't get the updated
> information so far.

Nope, nothing like this is required.

Regards,
-Denis

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

* RE: Network information can't be updated dynamically
  2009-07-29 17:24 ` Denis Kenzior
@ 2009-07-30  1:51   ` Li, Zhigang
  2009-07-30  2:01     ` Denis Kenzior
  0 siblings, 1 reply; 8+ messages in thread
From: Li, Zhigang @ 2009-07-30  1:51 UTC (permalink / raw)
  To: ofono

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

Hi,

>The only thing that oFono core will poll periodically is the network
>operators.  Everything else must be handled by the driver.  For network status
>updates atmodem sends an AT+CREG=2, quoting 27.007:
>
>"2 - enable network registration and location information unsolicited result
>code +CREG: <stat>[,<lac>,<ci>[,<AcT>]]"

How ofono known the changed network status?  Registed -> roaming 

Suppose UI want to show the status, which interface can be used?

>>For signal strength oFono explicitly doesn't poll this in the reference
>driver.  This is because vast majority of vendors out there have their own
>specific command to turn on period signal strength updates.  If you want this
>feature, you need to submit a patch that enables this support explicitly.
>
Ok, we handle it as special command of modem.

>Regards,
>-Denis

Thanks 
Zhigang

>_______________________________________________
>ofono mailing list
>ofono(a)ofono.org
>http://lists.ofono.org/listinfo/ofono

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

* Re: Network information can't be updated dynamically
  2009-07-30  1:51   ` Li, Zhigang
@ 2009-07-30  2:01     ` Denis Kenzior
  2009-07-30  2:18       ` Li, Zhigang
  0 siblings, 1 reply; 8+ messages in thread
From: Denis Kenzior @ 2009-07-30  2:01 UTC (permalink / raw)
  To: ofono

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

Hi,

> Hi,
>
> >The only thing that oFono core will poll periodically is the network
> >operators.  Everything else must be handled by the driver.  For network
> > status updates atmodem sends an AT+CREG=2, quoting 27.007:
> >
> >"2 - enable network registration and location information unsolicited
> > result code +CREG: <stat>[,<lac>,<ci>[,<AcT>]]"
>
> How ofono known the changed network status?  Registed -> roaming

The modem tells it?

>
> Suppose UI want to show the status, which interface can be used?

You use the NetworkRegistration interface, 'Status' property.

Regards,
-Denis

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

* RE: Network information can't be updated dynamically
  2009-07-30  2:01     ` Denis Kenzior
@ 2009-07-30  2:18       ` Li, Zhigang
  2009-07-30  2:45         ` Denis Kenzior
  0 siblings, 1 reply; 8+ messages in thread
From: Li, Zhigang @ 2009-07-30  2:18 UTC (permalink / raw)
  To: ofono

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

Hi,

>-----Original Message-----
>From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf Of
>Denis Kenzior
>Sent: 2009年7月30日 10:01
>To: ofono(a)ofono.org
>Subject: Re: Network information can't be updated dynamically
>> >The only thing that oFono core will poll periodically is the network
>> >operators.  Everything else must be handled by the driver.  For network
>> > status updates atmodem sends an AT+CREG=2, quoting 27.007:
>> >
>> >"2 - enable network registration and location information unsolicited
>> > result code +CREG: <stat>[,<lac>,<ci>[,<AcT>]]"
>>
>> How ofono known the changed network status?  Registed -> roaming
>
>The modem tells it?
No, if ofono don't request it and the modem can't send the response

>>
>> Suppose UI want to show the status, which interface can be used?
>
>You use the NetworkRegistration interface, 'Status' property.

That's the point; the status can't be changed because ofono only get the status at modem/networking initialization, during registered to roaming ofono don't know the changing even modem update the information correctly

Thanks 
Zhigang
>_______________________________________________
>ofono mailing list
>ofono(a)ofono.org
>http://lists.ofono.org/listinfo/ofono

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

* Re: Network information can't be updated dynamically
  2009-07-30  2:18       ` Li, Zhigang
@ 2009-07-30  2:45         ` Denis Kenzior
  2009-07-30  7:22           ` Li, Zhigang
  0 siblings, 1 reply; 8+ messages in thread
From: Denis Kenzior @ 2009-07-30  2:45 UTC (permalink / raw)
  To: ofono

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

Hi,

> No, if ofono don't request it and the modem can't send the response

I think you have no idea what you're talking about.  The 'spec' way of doing 
this is sending AT+CREG=2, at which point the modem will send a +CREG: 
unsolicited result code whenever the registration state changes (e.g. roaming, 
searching, home, etc).  See 27.007 Section 7.2.  

oFono also requests the registration status whenever any registration 
operation is performed.  This works, you can even test it on phonesim if you 
like.

>
> >> Suppose UI want to show the status, which interface can be used?
> >
> >You use the NetworkRegistration interface, 'Status' property.
>
> That's the point; the status can't be changed because ofono only get the
> status at modem/networking initialization, during registered to roaming
> ofono don't know the changing even modem update the information correctly

Again, you're wrong.  Take a look at ofono_network_registration_notify in 
src/network.c and and creg_notify in drivers/atmodem/network-registration.c.

I ask you again, are you sure your modem is actually switching its status, and 
if so, can you provide a debug trace?

Regards,
-Denis

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

* RE: Network information can't be updated dynamically
  2009-07-30  2:45         ` Denis Kenzior
@ 2009-07-30  7:22           ` Li, Zhigang
  0 siblings, 0 replies; 8+ messages in thread
From: Li, Zhigang @ 2009-07-30  7:22 UTC (permalink / raw)
  To: ofono

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

Hi, Denis

>-----Original Message-----
>From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf Of
>Denis Kenzior
>Sent: 2009年7月30日 10:46
>To: ofono(a)ofono.org
>Subject: Re: Network information can't be updated dynamically

>I ask you again, are you sure your modem is actually switching its status, and
>if so, can you provide a debug trace?

 Thanks your clarification, I take phone as modem, unfortunately the stupid phone didn’t' update the information, and the status always is roaming.
I will try a real modem. 

Thanks
Zhigang

>_______________________________________________
>ofono mailing list
>ofono(a)ofono.org
>http://lists.ofono.org/listinfo/ofono

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

end of thread, other threads:[~2009-07-30  7:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29  8:28 Network information can't be updated dynamically Li, Zhigang
2009-07-29  9:41 ` Li, Zhigang
2009-07-29 17:24 ` Denis Kenzior
2009-07-30  1:51   ` Li, Zhigang
2009-07-30  2:01     ` Denis Kenzior
2009-07-30  2:18       ` Li, Zhigang
2009-07-30  2:45         ` Denis Kenzior
2009-07-30  7:22           ` Li, Zhigang

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.