This work confers an application which makes possible to use a Bluetooth enabled mobile phone to remote control home appliances such electric fan, LEDs and stepper motor, connected to the personal computer. It can also be used to control other computer applications such as multimedia players and facilitates the user while giving presentation on slides. It is a client – server based application which makes use of powerful java technology to achieve its end. The program works on a variety of Bluetooth enabled mobile phone and is compatible with majority of Bluetooth stacks.
Simply speaking, Bluetooth enabled remote control is a remote control for a personal computer. The interesting thing is that the remote control is nothing but your mobile phone. Your mobile phone acts as a remote control for the applications present in your computer. For instance, you can play movies and songs present in your computer with the help of your mobile phone. Infra-red is normally used by a remote control of television. But we use Bluetooth connection as a remote control.Why? Because many mobile phones today contain Bluetooth and similarly many personal laptop and computer are also coming equipped with Bluetooth. Thus instead of using extra hardware required by infra-red remote control, we can use already available Bluetooth hardware. So this gives us a major advantage i.e. No extra Hardware Cost.
The system basically involves communication between a mobile phone and computer application. A computer and a mobile phone can communicate with each other using ports. Similar to two islands which communicate with each other using ship ports or airports. Technically we call them COM ports. Data can be exchanged using ports i.e. port of mobile phone and port of computer. This data is known as commands. When the commands are received from the user’s Mobile Phone the server accepts and produces the desired operation on the Personal Computer. The server will be implemented in J2SE and operations are produced in a variety of ways such as by producing virtual key presses, calling different executable files.
1.Bluetooth Dongle2. Installing Bluetooth drivers 3. Selecting a Device to connect
The “Bluetooth enabled Remote Control” has two components, namely Client Program Server Program
Client program uses Bluetooth API to create Bluetooth connection with the computer. It displays a list of programs on the screen like. MS Office PowerPoint Media Player System Shutdown System Restart General Keys Hardware Coping Files
The “Server Program” has been implemented using J2SE. Interfaces of Server Program: The server has only one interface which is to be used by the user to select the virtual COM port where the Bluetooth serial port server is running.
The commands received from the client will be decoded and the corresponding action will be performed by the server. The server has four Modules namely Blue Alert Dialog W32Util Tray Interface
The commands received from the client will be decoded and the corresponding action will be performed by the server. The server has four classes namely Blue, TrayInterface, W32Util, AlertDi alog. Blue class is the main class of server. This class uses driver “com.sun.comm.Win32Driver” to access various functionalities of the Virtual serial ports. The available COM port list is then read using a separate module of the Blue class. To open a port for reading, on selected COM port an independent module is executed. In this module a module is used for reading command on this port. In order to avoid errors exception handling has been very efficiently used. Errors are reported to the user using class AlertDialog To start reading commands in a stream an object of InputStream class is build by calling getInputStream on an object of SerialPort class. The parameters are set on serial port using setSerialPortParams. The string received on serial port will be passed on to decode module of W32Util class. In the decode module of W32Util class, command is decoded and the desired action is performed.
This is system tray interface of server.
Serial Port Listener Server ( Computer ) Mobile Phone Opening Folders Media Player MS Power point Communicat ions Via Bluetooth System Shutdown General Keys
Media Player ControlsPower Point Controls
Hardware requirements: Processor: ARM or Qual Comm Processor (32 bit). Ram: 128MB or More. Hard Disk: Minimum 200MB. Android Mobile Phone. Software requirements: Android SDK 1.5 or More. Eclipse IDE and Net Beans IDE. Programming language JAVA and XML. Operating System Android (Linux Kernel).
Android is a software stack for mobile devices that includes an operating system, middleware and key applications. Android technology is introduced by Google Inc. in the year Android's mobile operating system is based on a modified version of the Linux kernel. The Android open-source software stack consists of Java applications running on a Dalvik Virtual Machine featuring JIT compilation.
Android can Run Multiple Applications at the Same Time. Android Keeps Information Visible on Your Home Screen. Android Gives Us Better Notifications. Android Lets You Change Your Settings Faster. Android Gives You More Options to Fit Our Budget.
Activities Intents Content Providers Services Broadcast Receivers
Activities are the basic building block of Android. It access starting point of application. Intents are system call for android for taking some action. Content Providers it provides the level of abstraction of all the data use by my application and other application running on phone. Services are android components that can run in back ground without a graphical user interface. Broadcast Receiver application register themselves as a receivers of certain events. When that event occurs system will notify them by calling methods.
The project will be extended as a token for more applications. Complex applications will be handled easily. More number of servers will be controlled. In future application remote control could include the capability to display the personal computer screen on the mobile phone.
Not more than five servers can connect to the Bluetooth Remote Control at the same time. The mobile should be of higher end and should support JAVA and J2ME applications. The user should manually run the J2ME application to run the server program.
In summary, a mobile Remote Control based on Bluetooth was proposed and realized. After the test use of the system by us, we found that the system can improve the way for the users to use their own mobile phone as a remote control for any PC application. The main advantages of the system are its low cost, secured connection and low power consumption.
Herbert Schildt, “The Complete Reference J2SE 5”,Tata McGraw Hill, Sun Microsystems, Inc., (2003), “InputStream (Java 2 Platform SE v1.4.2)”, modified on June 21,2005. Sun Microsystems, Inc, “CommPort”, Modified on July02, 2005, Retrieved on December 26, 2006, from omm/CommPort.htmlhttp://java.sun.com/products/javacomm/reference/api/javax/c omm/CommPort.html. Sun Microsystems, Inc (2003), “java.util(Java 2 Platform SE v1.4.2)”, Modified on June 21, 2005.