[maemo-developers] Meaning of Phone.Net.get_current_cell_info return values

From: Dawid Lorenz (maemobile) adl at adl.pl
Date: Tue Apr 27 21:18:11 EEST 2010
----- Original message -----
> Hi,
>
> I have been spending quite some time understanding the values returned
> by:
> dbus-send --system --type=method_call --dest=com.nokia.phone.net
> --print-reply /com/nokia/phone/net Phone.Net.get_current_cell_info
> method return sender=:1.17 -> dest=:1.373 reply_serial=2
>      byte 2                        --> type GSM = 1, WCDMA = 2 ??
>      uint16 2050              --> LAC
>      uint32 17143306      --> Cell ID (cellid = res & 65535), RNC = res >>
> 16
>      uint32 1                    --> mnc
>      uint32 214                --> mcc
>      byte 0                        --> ???
>      byte 3                        --> ??? 3 on supported network, 0 on unsupported
> network, 2 when NSPS
>      int32 0                      --> error
>
> So far, this is what I have got, the 2 last bytes returned parameters
> are the ones I try to get info from:
>      byte 0                        --> ???
>      byte 3                        --> ??? 3 on supported network, 0 on unsupported
> network, 2 when NSPS
>
> On my phone, I am generally getting values 0,3 respectively, and it
> seems that the last byte will change to 0 on unsupported networks and 2
> when only NSPS is available.
>
> Is there anybody out there that can give me some more info on these
> values?
> Any Nokia developers that will know what those values stands for :p.
>
> Any leads really appreciated :p
>
> Tks,
>
> Chantra
>
>
> !DSPAM:4bd5e1f361679337353318!


NSPS stands for No Service Power Save (or similar) and occurs when you have no home/accessible network coverage, hence device will 'power save' instead of searching for it all the time. Basically, the field you're looking at here is current network status and tells you whether you're within home network, is device searching for network or give up and go into power save mode.

Don't know whether you want to know the meaning of other fields, ping me if you do.

You might also install NetMon app from extras-devel and have a look into its source (python). It reads that exact values you're after, so that might give some extra clues to you. Good luck.

--
Dawid 'evad' Lorenz * http://adl.pl

null://real men never use nokia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100427/258604cf/attachment.htm>
More information about the maemo-developers mailing list