Showing posts with label widcomm. Show all posts
Showing posts with label widcomm. Show all posts

Tuesday, August 4, 2009

Bluetooth Mobile Webcam - A Java & J2me based Project

This project is designed to broadcast live JPEG still images from Java 2 Micro Edition MIDP 2.0 enabled mobile device with camera like Nokia Series 60 v2.0 and Series 60 v3.0 phones over Bluetooth as a transmission medium onto the PC or Laptop. This project is developed in Java and Java 2 Micro Edition, which makes this software platform independent.

All the questions like:

  • How to connect mobile to PC through bluetooth by java ?
  • How to transmit pictures or data from mobile to PC using java/j2me through bluetooth ?
  • How to access mobile information from PC using java/j2me through bluetooth ?
  • What drivers are required to use bluetooth services in java ?
You will get all the answers here. So don't panic friends just wait and watch.






Prerequisites:
  • Bluetooth Enabled PC/Laptop or Bluetooth USB Device
  • One Java Enabled Bluetooth Mobile Phone like Nokia Series 60 v2.0 and Series 60 v3.0 phones
  • Java Development Kit 6 or above - Download it.
  • Java MicroEdition 2.5.2 or above - Download it.
  • BlueCove (bluecove-2.x.x.jar or above) is a JSR-82 J2SE implementation: is used to make our project applicable on any platform. BlueCove is used for the server part i.e. PC to receives images over Bluetooth and J2ME (JSR-82) is used for the client part i.e. the mobile phone. BlueCove currently interfaces with the Mac OS X, WIDCOMM, BlueSoleil and Microsoft Bluetooth stack found in Windows XP SP2 and newer. - Download it.
  • Mac OS X, WIDCOMM, BlueSoleil ,Microsoft Bluetooth stack ( Windows XP SP2 ) or BlueZ which is the Bluetooth stack for Linux. Any one of this must be installed.
  • Netbeans or Eclipse IDE (for advance user who want to add feature to this project)
It consists of two software components:
  • Mobile component that resides on phone and streams still images to PC. (Client part).
  • PC component that receives images over Bluetooth. (Server part)

This project is now in its beta version. So all of you can modify and optimize the code. Some bugs are also their I am working on them. As now a days I am not getting time to enhance the code.
I am not a genius in java that's why you will find little bugs in my code and in the application. So you all are invited to make this project a good one.


Steps:
  1. First ensure that you have java development kit and j2me installed in you PC, otherwise install it.
  2. Second ensure that any bluetooth stack is installed in your PC like WIDCOMM, BlueSoleil ,Microsoft Bluetooth stack or BlueZ.
  3. Place bluecove-2.x.x.jar in both the runtime library extension folder of jre and jdk C:\Program Files\Java\jre1.6.0\lib\ext and C:\Program Files\Java\jdk1.6.0\jre\lib\ext .
  4. Now extract the BlueServer.rar(Server Part).
  5. Server jar file is in dist folder which directly can be executed and the source files are in source folder.
  6. Extract pic_transmit_client.rar(Client Part).
  7. pic_transmit.jar and transmit.jad are there in deployed folder and the source files are in source folder.
  8. Send this pic_transmit.jar and transmit.jad files to you java enabled bluetooth mobile phone and install it.
  9. Start the Server part BlueServer.jar and click the start button.It will wait for the client to connect and transmit Jpeg files.
  10. Now start the bluetransmit application (client part) from the mobile.
  11. Select search from the bluetransmit application (client part) and wait, it will find the server and will connect to the server.It will display server name along with all the bluetooth devices in the surrounding and bluetooth address of the devices respectively in screen.

  12. Connection status in the server application will change to connected.
  13. After that select transmit from the bluetransmit application (client part).
  14. It will start sending the Jpeg image from the mobile to the PC and the images will be stored in c:\ServerBishwajeet folder.
  15. Images will be displayed in the a new window in PC.
  16. Select Stop from mobile when you want to stop. Don't stop it from the server part there is some bug. Which I am trying to remove.
It is a nice application for college projects. So keep developing the code and keep adding new features.



(Read more inside ..)