Posts Tagged ‘serial’
Python, E51 and Sid
I installed python almost immediately after I picked my phone, about six months back. But I forgot all about it! Yesterday, I decided to fix it up for good and start getting my phone do some of my work?
As a first step, I’ve had tremendous success getting python over a bluetooth serial console to work. Of course, sincere thanks to google and other hackers who have tried and tested this method before me. First thing I ever did is to repeat what I did to get my older 6111 to talk to sarge. It is available here. That worked like a piece of cake. I installed a newer python and the python shell using this method.
I tried connecting to python over bluetooth serial console. But I don’t think I ever got it right. So google and I got these links.
http://ramblingfoo.blogspot.com/2007/05/bluetooth-fun-with-my-nokia-6600.html
https://bugs.launchpad.net/ubuntu/+source/bluez-utils/+bug/227429
Both had the most vital information to get started. Here is what I did.
$ sdptool add --channel=4 SP
$ rfcomm listen 1 4
I used 1 because I tried setting my debian to use 0 at startup. Another “fail” attempt that one.
In another terminal,
$ screen /dev/rfcomm1
It had some wierd characters to start, just press enter and a new interactive python prompt appears. I checked to ensure that it is the one on the phone and not on my machine!
Now to try something useful
…