September 29, 2005

Python and Linux: Hacking

Posted at September 29, 2005 11:28 AM in Symbian .
A mobile phone is a cool gadget to play with, especially when [the author] can run [the authors] favourite programming language (no prize for guessing what it is!) on it! That was the logic which made [the author] purchase a Nokia Series 60 smartphone, the N-Gage QD. This article describes a few experiments [the author] did with the mobile - like setting up Bluetooth communication links, writing Python/C code and emulating serial ports.

This has some fun and easy snippets of things to do. This one is particularly interesting -- making it much easier to enter some Python:

Once you get the serial port emulation working, there is another interesting hack to explore. The Nokia Python distribution comes with a program called `btconsole.py'. On one console of your Linux machine, run the command:

rfcomm listen /dev/rfcomm0


Now run `btconsole.py' on the phone. You will see that after a few seconds, `rfcomm' will respond with a `connected' message. Once you get this message, take another console and run:

minicom -m


What do you see on the screen? A Python interactive interpreter prompt! You can now type in Python code snippets and execute them on the phone on-the-fly! Isn't that cool?

Read more here:

Hack a Mobile Phone with Linux and Python

Trackback

You can ping this entry by using http://www.mamlambo.com/mt/mt-tb.cgi/569 .

Comments

How can this hack work without the obex pushing
please give us detail describtion about the software
used in the nokia smartphone .

I passed my redhat exam in linux but it is even difficult for me to understand the hacking process because of lack of knowledge on the software used in the mobile.

Posted by Nischal at December 6, 2005 04:07 AM

Post a comment










Remember personal info?