Instructables

PyS60: Remote (via bluetooth) Python console to your Nokia phone (Mac OSX 10.4 Tiger)

Picture of PyS60: Remote (via bluetooth) Python console to your Nokia phone (Mac OSX 10.4 Tiger)
Connect from your Mac over bluetooth to a Python Console running on your Nokia S60 (Series 60) smartphone.

I did it on my Nokia E70, but it should work equally well for all S60v2 and S60v3 phones as well. (E50, E60, E61, E62, E70, E90, n70, n80, n95, 6820, 6822, etc)

Most easily read with instructables all steps on one page view

Credit for this process belongs to Erik Smartt
http://www.eriksmartt.com/blog/archives/55
 
Remove these adsRemove these ads by Signing Up

Step 1: Install python on your phone.

Go to the PyS60 Sourceforge Page and download the newest release of Python for your Nokia Phone. At the time of writing, for my Nokia E70 (Series 60 3rd Edition) that was PythonForS60_1_4_0_3rdEd.sis.

Also install the Python Script Shell (for my E70 the file is: PythonScriptShell_1_4_0_3rdEd.sis )

Step 2: Bluetooth Pair your Phone

Picture of Bluetooth Pair your Phone
Pair your phone with your Mac (if you haven't done so already). If you can't do this, you're going to have trouble programming python me thinks ;)

On your mac, in the Bluetooth System Preferences pane, add your phone as a 'Favorite' so your phone can automatically connect.

On your phone, in the Bluetooth application, set your Mac as "Authorized" so your mac can automatically connect.

Step 3: Create the bluetooth serial port

Picture of Create the bluetooth serial port
3.png
In the Bluetooth System Preferences pane, under the sharing tab:

Click "Add Serial Port Service"
Name it something you'll remember (like 'bt_console').
Change the 'Type' from Modem to 'RS-232'.

Step 4: Connect to the serial port in Terminal

Picture of Connect to the serial port in Terminal
Open the Terminal Application and run the following command:
screen /dev/tty.bt_console 

Changing bt_console if you named the serial port something different.
Leave this window open and switch to your phone for the next step.

Step 5: Open python on the phone

Picture of Open python on the phone
5.jpg
8.jpg
6.jpg
9.jpg
From your phone, launch the Python application.
If you do not see an icon for python, please return to Step 1 and make sure you've installed both Python and the Script Shell.

1. From the Python application, press the left soft key and select 'Bluetooth console'.
2. Select 'Other...'
3. Select your Mac from the list of computers to connect to.
4. Select 'bt_console' from the list of available ports.
5. Set it as the default (so next time you can save yourself some time).

Step 6: Back to the Mac (You're done!)

Picture of Back to the Mac (You're done!)
You should now see the following in your terminal window on your mac.
rsinclair3 years ago
Hi, I'm trying to install Python on my Nokia 2730 Classic and my 2010 MacBook Pro. Help me? I don't understand how I get Python onto my phone.
nice. this helped me. thx
dombeef5 years ago
can you show the picture of it working?