30th September, 2008

Remote control winamp from your Nokia N95   

Posted in programming, random | by eitama |



Hello folks,
Recently I bought a dell inspiron 1520 laptop, Life was good, everything was working great!!!
Till one day – My room mate, bought a Dell XPS 1530M laptop,
If it was not enough that he has GDDR3 memory and I have GDDR2, he also received a little dell remote that fits inside the
express card socket on the side – This remote also worked on my computer.
So I went to ebay and got me a remote as well!
But I still had to top the GDDR3 superiority his laptop had, in one way or another.
So I decided i want to be able to control my winamp from my N95 via bluetooth.

The result was pretty nice (:

A Server program written in TCL which listens for tcp connections and bluetooth serial connections,
the server generates playlists when it starts according to the music folder structure on the computer,
and allows the user to load playlists and control winamp from the phone over internet, WiFi and bluetooth.

A Client python program sitting on your phone that acts as a remote.

The program requires a few steps to get going so if you really want it to work on your phone
(symbian s60 v3) you will need to put some effort in preparing the needed prerequisites.

  1. Install TCL on your computer from Activestate
  2. Extract twapi.zip to your c:/tcl/lib/twapi (or any other /tcl/lib/twapi folder)
  3. Install python for s60, and python shell for s60 on your phone.
  4. On your phone, Create a folder in your memory card called IMG inside Python
    This will look like /memorycard/Python/IMG
    Extract all these Images to this folder, so they will all be inside /python/IMG/
  5. Copy this python file to your phone.
  6. On your computer, Create a bluetooth com (serial port)
    consult your bluetooth manual on doing so.
  7. Put this inside a folder, extract it and run hotkeys.tcl – This is the server side application that should always run on your computer.
    (Run it with wish/wish84/wish85)
  8. If an error message pops, read it – and follow the instructions until they stop popping – they do not pop for no reason!!!
  9. After all is set, run the remotebt3.py in the interactive python interpeter on your s60 phone.
  10. Choose a connection method, if you choose Bluetooth, be sure to have a paring to your computer already set.
  11. If you choose TCP, make sure you have a wifi with DHCP and no firewall is blocking hotkeys.tcl which on default listenes on tcp port 9090 for new connections.
  12. If you get connected a green box will appear with the connection method, now for a few stuff you can do :
    • Press 2 for a menu of things you can do.
      They are pretty easy to understand – the only one which needs some clearing is :
      Rebuild m3u list – this one recreates your m3u files from your music folder configured inside hotkeys.conf
    • press 8 to select a playlist from the ones generated by hotkeys on your computer.
    • press SEND to connect in a different connection way (bluetooth/wireless/internet)
    • Pressing 3 times on W will open/close winamp.

Feel free to change / Distribute / do anything with the tcl and python code,
“Clamp” is a free tool downloaded from the internet, and all right about this cool tool is kept for it’s original creator
I am just using it – I did not create it.

I know the install prcedure is not fun,
but i did not have time to study nokia .sis creation and making a nice installer for windows
if you feel these are lacking – Create them!
For questions, contact me at eitamaa (at) gmail (dot) com.

(Have I topped the GDDR3 or not??)

Cheers,



There are currently 4 responses to “Remote control winamp from your Nokia N95”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On September 30th, 2008, evilbitz said:

    RemoteBT is really cool, I’m using it over wifi and can control winamp from 30 feet away! But that meant I had to install TCL on my dell XPS ;-)

    Wrapping things up and using an installer can simplify things, I think a lot of people will want to download it, since it is really great. I guess you know that but you can use tcl2exe and py2sis.

    btw, LMAO #8!

  2. 2 On September 30th, 2008, eitama said:

    Sadly, py2sis doesn’t rid you the need for python for s60 on the phone!!! it just gives you the option to start the application on the phone with it’s own shortcut and it’s own icon. I have done it…
    Not worth the hassle for every change i make.

    For the TCL, Yes I can make it exe.
    Maybe some day (:

  3. 3 On April 30th, 2009, Gökhan said:

    u say in the 5.th clause “Copy this python file to your phone.”But there is no pyton file attached there,am I wrong?

  4. 4 On June 30th, 2009, eitama said:

    Gökhan,
    You are wrong, but it’s not your fault. (ill reference it).

    The .py file is inside the zip file in clause 7.

    It’s called RemoteBT3.py

    BTW, there are some solutions on the net which rely on http, to do the same.
    But I enjoy being able to insert custom commands to my scripts and control VLC or any other thing using my phone. I even managed to play World of warcraft on my 37″ LCD with my N95 as the controller (:

Leave a Reply

You must be logged in to post a comment.

Top »
"If you can't join them, beat them!"
Search Evilbitz: