Mobiluck On S60 3rd Edition

I noticed on Darla's blog that there is now a version of Mobiluck for S60 3rd edition devices like the Nokia N93.

I used to run this on an older S60 device and wondered how it worked. If you've never come across it it's a sort of bluetooth messaging / bluejacking peice of software.

Now I've got it installed on my Nokia N93, I decided to see if I could work out how it works. As it's a proprietry peice of software I've not been able to find any documentation on it.

Now, I know it uses Bluetooth, so that means it must be either an RFCOMM or L2CAP service.

My first approach was to write a service scanner using Python and the PyBluez package to see if Mobiluck was kind enough to advertise it's presense this way.

The code for this can be found elsewhere in this blog.

There are plenty of services on offer, but nothing specifically for Mobiluck.

The next approach is to write a basic RFCOMM server. A rough anology on the difference between RFCOMM and L2CAP is that RFCOMM is built on L2CAP rather like TCP is built on UDP. RFCOMM is reliable, where is L2CAP is a datagram based protocol.

Using RFCOMM there are only 30 ports available for me to use, so I decided to write a script that using 30 Python threads, one for each port, that would listen and report any connections. Once I had this running, I set Mobiluck to scan. Unfortunately nothing was returned. This may be because Mobiluck only scans for mobiles and so ignored my computer, but it could also mean that it wasn't using RFCOMM during the scan.

This just leaves L2CAP. Unfortunately at present PyBluez doesn't offer L2CAP sockets on Windows machines and I don't have a Linux machine anymore to test with. This will need a new approach.

At present I'm thinking of writing a bit of Java Micro Edition code to create servers on the mobile phone that is running Mobiluck. If I am correct, if Mobiluck is running I won't be able to create a server on that port so I can narrow down the ports I need to write a scanner on. This may have to be on another mobile phone.

Stay tuned to see what results I get using this approach.

Entered: 2007-08-06 22:33:41
Modified: 2007-08-06 22:41:54

Rob's Other Blog Entries

See other blog entries for August 2007, or an index of all blog entries.