How to access S60 resources from WRT or FlashLite using PyS60

New languages for mobile application development, such Flash Lite and WRT can’t access device native resources. An approach that fixes this problem is the development of a access layer which must be between device and mobile application (Flash Lite or WRT). This access layer can be developed in any program language that have native access to the device.

The figure below shows how this layer works.

[[Image:ServerPython_layers.png]]

The S60ServerPython is a Mobile Web Server and works like the access layer previously showed. This is a extensible framework write in Python language and running locally in the device. This server gives access to the resources of S60 platform through HTTP-GET requests (Like a REST Web Service). The developer has to do a bind between one URL and one method of MyServer class, and starts the server in a specific port. After the bind process is finished and the server has been started the developer can access resources of S60 platform from your Flash Lite or WRT mobile application.

Step-by-step guide to install and use:
* Download and install PyS60 to the device; * Copy the S60ServerPython code to the device; * Execute the MyServer class in the Python’s shell; * Start the application which uses the intended resource (Flash Lite or WRT)

This is just an application to show you how to developing an access layer to S60 platform. To use in enterprise applications or for final users, it should be interesting the developer automate the cited tasks in a .SIS file.

The developer can easily include new methods into the S60ServerPython, being necessary just a bit of knowledge in the Python language. Below is showed the steps necessaries to make this task.

Implement a method ‘method_x’ in the MyServer class of located in MyServer.py file.

It imposed just one restriction to the new method structure. The method MUST receive a map representing the passed parameters of the URL.

Execute the method server.addCallBack(’url_to_x’, method_x)

With just that the developer of a Flash Lit or WRT application can invoke the ‘method_x’ of MyServer class through the URL ”http://127.0.0.1:<chosen_port>/url_to_x”

Click [http://embedded.ufcg.edu.br/~ivocalado/ServerPython.tar.gz] to download the S60ServerPython code.

Created by Ivo Calado (ivocalado [at] embedded [dot] ufcg [dot] edu [dot] br)



Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.

Post Info

This entry was posted on Sunday, September 7th, 2008 and is filed under Insurance.

You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



Previous Post: Nokia: Q3 2008 market share may drop »
Next Post: Pixelmator puts new shortcuts in 1.2.3, pitches 1.3 Tempo beta »

Read More

Related Reading:



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

You must be logged in to post a comment.

How to access S60 resources from WRT or FlashLite using PyS60

New languages for mobile application development, such Flash Lite and WRT can’t access device native resources. An approach that fixes this problem is the development of a access layer which must be between device and mobile application (Flash Lite or WRT). This access layer can be developed in any program language that have native access to the device.
The figure below shows how this layer works.

The S60ServerPython is a Mobile Web Server and works like the access layer previously showed. This is a extensible framework write in Python language and running locally in the device. This server gives access to the resources of S60 platform through HTTP-GET requests (Like a REST Web Service). The developer has to do a bind between one URL and one method of MyServer class, and starts the server in a specific port. After the bind process is finished and the server has been started the developer can access resources of S60 platform from your Flash Lite or WRT mobile application.

Step-by-step guide to install and use:

* Download and install PyS60 to the device;
* Copy the S60ServerPython code to the device;
* Execute the MyServer class in the Python’s shell;
* Start the application which uses the intended resource (Flash Lite or WRT)

This is just an application to show you how to developing an access layer to S60 platform. To use in enterprise applications or for final users, it should be interesting the developer automate the cited tasks in a .SIS file.
The developer can easily include new methods into the S60ServerPython, being necessary just a bit of knowledge in the Python language. Below is showed the steps necessaries to make this task.
Implement a method ‘method_x’ in the MyServer class of located in MyServer.py file.
It imposed just one restriction to the new method structure. The method MUST receive a map representing the passed parameters of the URL.
Execute the method server.addCallBack(’url_to_x’, method_x)
With just that the developer of a Flash Lit or WRT application can invoke the ‘method_x’ of MyServer class through the URL http://127.0.0.1:<chosen_port>/url_to_x
Click [1] to download the S60ServerPython code.

Created by Ivo Calado (ivocalado [at] embedded [dot] ufcg [dot] edu [dot] br)



Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.

Post Info

This entry was posted on Sunday, September 7th, 2008 and is filed under Blogroll.

You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



Previous Post: Israeli diggers uncover parts of ancient wall »
Next Post: TSS001089 - Canceling an asynchronous silent uninstallation takes a long time »

Read More

Related Reading:



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

You must be logged in to post a comment.

edwan