Python Framework for Symbian Series 60 phones

< 1 2 3 4 5

Tuesday 26 September 2006

Journal

Dear journal :)

After fighting 3 days with the XML libraries I found a solution. It uses cElementtree like previously mentioned. SIS package is available for versions up to S60 2nd edition. Read this thread for more info http://discussion.forum.nokia.com/forum/showthread.php?t=90292.
Download SIS package is here. Or what I advice is to download the project package because it includes sources and different libraries used on the emulator.

To install cElementTree on the emulator (S60 2nd edition):

  • unzip cElementTree-pys60-v1.0.5.zip
  • copy binaries\wins\udeb\CELEMENTTREE.PYD to C:\Symbian\8.0a\S60_2nd_FP2\epoc32\release\wins\udeb\z\system\Libs
  • copy "elementtree" folder to to C:\Symbian\8.0a\S60_2nd_FP2\epoc32\release\wins\udeb\z\system\Libs
  • then test the installation with a little script like:
import cElementTree as et
e=et.fromstring("<hello>world</hello>")
print e.tag, e.text
  • you should get:
...
Version 1.3.1 final
hello world

There is an *untested* alpha release for S60 3rd edition:

Monday 25 September 2006

Journal

I'm having a really bad suprise: NOKIA team kind of forgot to include XML utilities in PyS60 :'( So I've been through painfull researches and I found the following solutions:

  • it is possible to install xmlproc. Advantage: pure python integration so 100% protable. Problem: because it is a pure python integration it will requires a lot of memory and will be very slow. I'm even scared to exceed the memory and freeze the phone. Second problem: I have difficulties to install it on the interpreter, there is no installtion package for the phone. So it makes difficult to port on the phone until I don't find a way to make it work if no other appropriate solution is found.
  • second solution is to install pyexat that use a well known Expat C library (home page). Advantages: works like a dream until S60 2nd edition. Problem: no distribution for emulator which means debuggin everything on the phone and not compatible S60 3rd edition.
  • one track: one guy from NOKIA Forum has ported http://effbot.org/zone/celementtree.htm to 3rd edition and try to release it soon. Questions: is there any built version for phone and emulator up to S60 2nd edition? I'm waiting for an answer but it seams that it would be the best solution to my eyes...

So i'm searching for a solution which could be portable to S60 1st, 2nd and 3rd edition but is it even possible???

Wednesday 20 September 2006

Journal

I've been through difficulties to configure the sdk in order to have one compatible for Carbide and VS at the same time.
To list the divices and show the default one, in a command prompt type:

C:\>devices

To change the default device, in a command prompt type:

C:\>devices -setdefault @S60_2nd_FP2:com.nokia.Series60

Today we almost finished porting the SHA256 module for the phone. It consists in creating a polymorphic dll which as a .pyd extention. I'll put the source available as soon as it's finished.

Monday 18 September 2006

Journal

Following the last meeting, I did some modifications to the documentation. It has now a tree view to make the navigation and a search engine. A compiled HTML version of the doc is also available now.

Last Friday I started with Jouni to look at the SHA-256 C source to port it to the phone. I had the wrong SDK installed on the desktop machine and Visual Studio was missing. So I installed the proper SDK, Visual Studio, Carbide .vs. I will be now able to compile a project.

I need now to finish declaring the Symbian project properly and try to compile it for the phone.

Tuesday 12 September 2006

Journal

Today I have installed and configured quickly a website to keep my engineering journal and the members of the team informed of the thesis work state. Also source code and documentation are available for members of the team.

< 1 2 3 4 5

LEFEVRE Damien
http://www.lfdm.net
contact@lfdm.net