installpythons60inanemulator

Install Python for S60 in an Emulator

Sometimes you really need a larger screen...

more tutorial pages

Nokia ships quite a few different emulators for quite a few different phones. Without going into too much detail, here we will present what you need to know to get a good overview.

Download Symbian SDK for C++

First, you will need the S60 Platform SDKs for Symbian OS, for C++...so Download It.

There are alot of versions to choose. For s60 Python, we will need the 2nd edition. Within the 2nd edition, Nokia offers 'feature packs' like FP1, FP2, FP3 and so on. As of 3/2006, FP2 has the most compatiblility range (Nokia 6600, 6620, 6630, 6680, and 7610). FP1 is for nGage and FP3 is for N70 and N90 phones.

Newer stuff, like the N80, runs series 3 stuff. Its pretty cool but kinda a different animal when python is concerned.

Download carbide.c++

In general, your Symbian SDK will be happier with carbide.c++ hooked up to it. You will use carbide.c++ to write and/or compile python extensions as well as other s60 programming. Depending on what's your flavor, pick your download:

Download Python for S60

Python for Nokia is now opensource. Which is really cool. The latest versions are downloadable from SourceForge.

There are many versions there so read your options carefully. Look for "2nd Ed. FP2 SDK" if you are following this tutorial for the 6682. This will install Python for s60 into your existing SDK. Make sure you download both "PythonForS60_X_X_XX_XX.SIS" and "PythonScriptShell.SIS".

You can use Nokia's file manager to install the files or push them via Bluetooth or USB.

Nokia's Python for s60 homepage has several older versions to download which you won't really need.

Configure Emulator

By now, you would have downloaded enough. :) Run your newly installed emulator. Give it a few seconds to start up. Once you see the Nokia menu, go to the Tools menu and select Preferences. In the "Ethernet Settings" tab, scroll down and pick which adaptor to use for TCP/IP traffic. Adjust the IP settings if need be. Restart the emulator.

There is some discussion on how to get the TCP/IP stuff set up in promiscuous mode.

1. Start, c:\Symbian\8.0a\S60_2nd_FP2

If you use SDK 2nd Edition Feature Pack 2, you can connect your emulator to internet easily. Follow the step below:

\epoc32\tools\npacketadmin.exe

2. Choose your adapter from selection menu.

3. Start

4. Set

-> Set the filterring: NDIS_PACKET_TYPE_PROMISCUOUS

OK

Leave this npacketadmin tool open while you interact with internet via emulator.

Read more on the Nokia Forum post about it.

Install Scripts

Hit up Jürgen's tutorial. :) You can put your scripts in this dir:

<C:\Symbian\8.0a\S60_2nd_FP2\epoc32\release\wins\udeb\z\system\APPS\python>

if you used the default install.

Get your XML on

If you are gonna parse some XML in your emulator, you should see the cElementTree in an emulator page.

© Copyright David Ayman Shamma: ayman shamma•gmail com