Active Topics

 


Reply
Thread Tools
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#11
@danielwilms, it's getting tricky when you want use gps and read cell id at the same time
__________________
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
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#12
Originally Posted by hopbeat View Post
@danielwilms, it's getting tricky when you want use gps and read cell id at the same time
If you just want to use the cell id to get the location, then you should use the location framework, because this is what it does. Or what do you want to do with the cell id?
 
Posts: 486 | Thanked: 154 times | Joined on Sep 2009 @ New York City
#13
Originally Posted by danielwilms View Post
That's right. Have a look here. Further it is always better in terms of stability of the API to use the high-level APIs if it exists.


Daniel
That's cool, but I'm not seeing python-liblocation examples on that page.
 
Posts: 35 | Thanked: 8 times | Joined on Jan 2010
#14
i tried Ima's script which worked nicely. however, in the information returned, can someone please tell me what is the cid and what is the lac? those two seems to have being returned as a single value...
 
Posts: 35 | Thanked: 8 times | Joined on Jan 2010
#15
also, how would one make this something that's running in the background and just log everything to a file?

would something like screen work on the n900? could i just do

python cid.py > logfile.log?
 
Posts: 53 | Thanked: 90 times | Joined on Nov 2009 @ Manaus, Brazil
#16
Originally Posted by hypnotik View Post
That's cool, but I'm not seeing python-liblocation examples on that page.
Its on the PyMaemo wiki pages:

http://wiki.maemo.org/PyMaemo/Using_Location_API

Unfortunately the Cell ID information part is still not implemented in python-location (not the correct package name).

PS: as a general tip, you can see Python related wiki pages by checking the Python category:

http://wiki.maemo.org/Category:Python
__________________
Anderson Lizardo
 
Posts: 196 | Thanked: 54 times | Joined on Jan 2010 @ UK
#17
lizardo
I have been looking at the location example you quoted above and get the following error.
Traceback (most recent call last):
File "location.py", line 1, in <module>
import location
File "/home/user/location.py", line 25, in <module>
control = location.GPSDControl.get_default()
AttributeError: 'module' object has no attribute 'GPSDControl'
Any sugestions what I am doing wrong?
 
Posts: 23 | Thanked: 4 times | Joined on Dec 2009
#18
Originally Posted by fred123 View Post
lizardo
I have been looking at the location example you quoted above and get the following error.


Any sugestions what I am doing wrong?
rename your script to something else and don't forget to delete the compiled version (if exists)
 
Posts: 53 | Thanked: 90 times | Joined on Nov 2009 @ Manaus, Brazil
#19
Originally Posted by roose View Post
rename your script to something else and don't forget to delete the compiled version (if exists)
Correct. Furthermore, I added a small note to that page as this mistake is now common:

http://wiki.maemo.org/PyMaemo/Using_...mplete_example
__________________
Anderson Lizardo
 
Posts: 52 | Thanked: 25 times | Joined on Dec 2009 @ Texas
#20
Hi Guy's

I have been checking out Lma's script from page1, it appear that when in 3G coverage args[2] shows the global cell id (unique with in network) this can be split in the following way to retrieve the RNC Id.

Upper 12 bits RNC/ Lower 16 bits Cell
i.e
52455502
001100100000 - 0110100001001110
800 - 26702

Also args[1] = LAC

Hope this helps anyone working on this.
 
Reply

Tags
cell id, location, n900, python


 
Forum Jump


All times are GMT. The time now is 15:37.