hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#1
Hello,

I'm trying to obtain a Cell ID, to which N900 is currently connected (GSM/WCDMA).
It works fine, when using liblocation, however, to be able to read network information, I need to set location method to LOCATION_METHOD_CWP or LOCATION_METHOD_ACWP.

What I would like to be able to do, is to read current Cell ID regardless of current location method, i.e. read Cell ID while using real GPS for positioning.

Any ideas how to do that?

Thanks!
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Sorry for my noobishness, but by Cell ID, do you mean the MNC and MCC? If so, there's a Phone.Net D-Bus method (I'll dig it out of Custom Operator Home Widget if that is the case).
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#3
There is an additional field, that identifies the cell itself (MCC gives you the country, MNC gives you the network, cellID/UCID gives you the actual station):

http://maemo.org/api_refs/5.0/5.0-fi...cdma-cell-info

e.g.:
MCC: 238 (Denmark)
MNC: 20 (Telia)
Cell ID: 798903 (a station near Copenhagen)
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following 2 Users Say Thank You to hopbeat For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
Originally Posted by hopbeat View Post
There is an additional field, that identifies the cell itself (MCC gives you the country, MNC gives you the network, cellID/UCID gives you the actual station):

http://maemo.org/api_refs/5.0/5.0-fi...cdma-cell-info

e.g.:
MCC: 238 (Denmark)
MNC: 20 (Telia)
Cell ID: 798903 (a station near Copenhagen)
Would 53835 be a valid Cell ID (in London, somewhere...)?

If so, you want the third value returned by "dbus-send --system --print-reply --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_registration_status"

If not, sorry...

The output from my N900:

Code:
Nokia-N900-42-11:~# dbus-send --system --print-reply --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_registration_status
method return sender=:1.16 -> dest=:1.212 reply_serial=2
   byte 0
   uint16 754
   uint32 53835
   uint32 30
   uint32 234
   byte 0
   byte 3
   int32 0
Nokia-N900-42-11:~#
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#5
Wonderful, thanks!
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following User Says Thank You to hopbeat For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:19.