Program your symbian phone from your computer using Python!

Since python is gaining more and more interest among symbian developers and more and more applications are written in Python. So its almost a necessity to have python in your mobile. As i mentioned  in my previous post PyS60 support programming your symbian s60 phones.

But i know its hard to write programs from your phones. PyS60 have an option called Bluetooth console which is an interactive python interpreter running on your phone that communicates with your computer over a bluetooth connection.

Here i will describe, How to setup PyS60 bluetooth console and Linux!

You  will need at least the following tools:

  • hcitool to scan your mobile device

  • sdptool and sdpd daemon to register services like serial port

  • rfcomm to emulate serial port over bluetooth

  • minicom a serial communication program


Then follow these instructions

I hope you have blutooth adapter connected to your computer else plug-in your bluetooth adapter


Then from the terminal type:


$hciconfig reset


Then check that the device is there


$hcitool dev


Then next step is to register a serial port(use channel 1, that may vary)


$sdptool add --channel=1 SP


Now start listing to the the channel


$rfcomm listen rfcomm1 1


Ok, now pickup your phone and make sure that bluetooth is on then go to your python application and  select the bluetooth console. Select your host from the list.


Now it will establish a connection between your phone and computer.


Next you open a new terminal and write the following command


$minicom -o -D /dev/rfcomm1


Now you are in your phones python console.... Enjoy !


Tested with : NOKIA 5233 and Ubuntu 10.04



1 comment:

  1. i am a successful business owner and father. I got one of these already programmed blank ATM cards that allows me withdraw a maximum of $5,000 daily for 30 days. I am so happy about these cards because I received mine last week and have already used it to get $20,000. Skylink technology is giving out these cards to support people in any kind of financial problem. I must be sincere to you, when i first saw the advert, I believed it to be illegal and a hoax but when I contacted this team, they confirmed to me that although it is illegal, nobody gets caught while using these cards because they have been programmed to disable every communication once inserted into any Automated Teller Machine(ATM). If interested get through to them on mail: skylinktechnes@yahoo.com  or  whatsapp/telegram: +1(213)785-1553  

    ReplyDelete