You Are Here:

Community: Developer Discussion Boards

#1 Old using python to detect cell id - 2005-08-11, 17:58

Join Date: Aug 2005
Posts: 5
eugenio23
Offline
Registered User
hello all,

i am trying to build an application for a nokia 6680 phone. i need to get the cell id (GSM location), so i can find out the phone's position. is it possible to do this? additionally, i would like to be able to take a picture using the phone's camera, and name the resulting jpg according to the cell id.

for example, if cell id = 9999, then tyhe picture taken at that location would be named 9999.jpg

thank you so much in advance...

e.
Reply With Quote

#2 Old 2005-08-11, 18:00

Join Date: Apr 2005
Posts: 21
Location: Robin Hood County
lxo's Avatar
lxo
Offline
Registered User
yes, that's possible with python.
Reply With Quote

#3 Old 2005-08-11, 18:17

Join Date: Aug 2005
Posts: 5
eugenio23
Offline
Registered User
ok... could you give me a clue where to start?



i have already downloaded the python sdk...

thanks...
Reply With Quote

#4 Old 2005-08-11, 18:27

Join Date: Apr 2005
Posts: 21
Location: Robin Hood County
lxo's Avatar
lxo
Offline
Registered User
hmm, since you want to get the cell id, you will have to use the phone itself (as the emulator always returns the same value like 0 or 1). also taking pictures is (i think) not supported by the emulator.

so i would recommend you to get going with python on a regular desktop first. just a little bit to try things out. next i would recommend you to get the python for s60 bluetooth console working (discover and pair the devices and stuff, run hyperterm on the pc, run bt-console.py on the phone) so you are able to log into the phone with a terminal program like hyperterm. if you see some welcome lines from the phone you are almost there.

try print "hello world"

then try looking into the python for s60 docs and look for the "location module". it has only one command. you will be able to get the cell id and print it to the screen in now time.

the rest is for you to find out.
have fun.
Reply With Quote

#5 Old 2005-08-11, 18:35

Join Date: Aug 2005
Posts: 5
eugenio23
Offline
Registered User
thanks!

i'll give it a try...

i'll come back if there's any problem.

see ya.
Reply With Quote

#6 Old 2005-08-12, 14:08

Join Date: Aug 2005
Posts: 5
eugenio23
Offline
Registered User
hello!

well, i got the cell id part working. i worte the following code:

import location
mcc, mnc, lac, cellid = location.gsm_location()

print lac
print cellid

quite simple. but now, in order to take the picture, i need the "camera" module. when i try:

import camera

the console answers: "No module named camera"

where can I get it??

thanks a lot!
Reply With Quote

#7 Old 2005-08-14, 11:02

Join Date: Jan 2005
Posts: 148
Location: Bangkok, Thailand
Send a message via MSN to korakotc
korakotc's Avatar
korakotc
Offline
Regular Contributor
Camera module is supported since version 1.1.3.

Please make sure that you use the latest version (1.1.6)
I wrote an example here
http://bigbold.com/snippets/posts/show/397

You could also look in the doc for details.
Reply With Quote

#8 Old 2005-08-14, 13:11

Join Date: Aug 2005
Posts: 5
eugenio23
Offline
Registered User
thanks,

i'll put it all together and see what comes out...

the link you gave me is excellent!
Reply With Quote

#9 Old Re: using python to detect cell id - 2008-07-28, 14:46

Join Date: Jul 2008
Posts: 97
Send a message via Yahoo to SanjayKhuntia
SanjayKhuntia's Avatar
SanjayKhuntia
Offline
Regular Contributor
hi,
can i use Python to get Cell ID and LAC of the Nokia symbian mobile OS9.X without any GPS or MSC help? I want to fetch that info for S60 Nokia phones. will it rreturn back the location info of the device where it is currently in? plz give some reference/code snippets to use python on S60 devices...
thanks..
sanjay
Reply With Quote

#10 Old Re: using python to detect cell id - 2008-07-28, 14:49

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by SanjayKhuntia View Post
hi,
can i use Python to get Cell ID and LAC of the Nokia symbian mobile OS9.X without any GPS or MSC help? I want to fetch that info for S60 Nokia phones. will it rreturn back the location info of the device where it is currently in? plz give some reference/code snippets to use python on S60 devices...
thanks..
sanjay
hi sanjay
first of all i think this your first post in python dibo so a great welcome to you.

now have a look at this
hope this helps

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Last edited by gaba88 : 2008-07-28 at 15:42.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ