Mobile TV Recorder

TV Recorder Splash
I got a little jealous about my friend’s new digital video recorder. You know, the set top box that is able to record TV on a harddrive. Therefore I thought that I should create something a bit more interesting so I wouldn’t look so old fashioned with my old VCR :). And this is what I created: Mobile TV Recorder.

This kind of a system has been in my mind for a long time but until recent years the technology has not been mature enough. I have had many situations where I have not been around the house or otherwise near a TV and I remember that an important program is just starting but I’m not able to watch or record it. Now I was able to buy an used TV adapter for my PC for as low as 40 euros (~48$) and I already had my mobile phone and a DSL connection for my PC so I was ready to start building the system.

First I thought that I implement this system as a web service but that turned out to have too much overhead for midlet and transfer part as I would have needed a third party library for SOAP protocol, like kSOAP, that takes up something around 30 kb of memory. Then I found a handy tool from NetBeans IDE called Wireless Connection Wizard. With this I was able to create a servlet and midlet with automaticly created connection to the servlet’s function. Now the midlet is only 10 kb in all including all the graphics.

I was quite amazed as the whole system turned out to be unexpectedly easy to build as for a first working version I only needed to write ~20 lines of code for the server part and the IDE handled the rest.

So how does it work? The mobile client connects to server’s servlet that executes a batch file that starts recording TV with Hauppauge’s WinTV2000 software. Here is a simple diagram of this system.

TV Recorder Diagram

In case you are interested about the system, I have made the source code available under the LGPL license. Please leave a comment if you have eg. any improvement ideas. Check it out.

apps for phones, version 2

apps for phonesBill Colwill from company called apps for phones informed me kindly about the new release of their commercial rapid application development (RAD) tool, apps for phones. The version 2 has two interesting new features compared to previous release: JSR-120 implementation for sending and receiving SMS messages and support for apps for phones Basic language.

The SMS support brings great possibilities for mobile applications. It allows easy system integration and communication between two phones. It allows for example to use existing SMS gateway systems as an integration tool for between company’s internal system and mobile applications. SMS gateway systems also usually include functional invoicing framework so it can also be used as a great alternative for billing your mobile application users (eg. monthly fee). SMS messages could also be used to create a multiplayer games that would communicate game statuses and turns via SMS.

The apps for phones Basic language support points out how different approach the apps for phones team have taken. They have really thought out of the box as they have succesfully implemented a basic language to “Java” application development tool. The basic language’s syntax seems to be quite identical to Microsoft Visual Basic so it is very easy to write and many developers already are very familiar with the language so this reduces the development time for people that aren’t familiar with Java and J2ME.

Continue reading