| Reply | « Previous Thread | Next Thread » |
|
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. |
|
yes, that's possible with python.
|
|
ok... could you give me a clue where to start?
![]() i have already downloaded the python sdk... thanks... |
|
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. |
|
thanks!
i'll give it a try... i'll come back if there's any problem. see ya. |
|
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! |
|
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. |
|
thanks,
i'll put it all together and see what comes out... the link you gave me is excellent! ![]() |
|
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 |
| SanjayKhuntia |
| View Public Profile |
| Find all posts by SanjayKhuntia |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |