Saturday, June 11, 2011

USE mobile phone camera as webcam -- N70, etc s60 v2 v3

We use smartcam to complete this task.

1. Installation/compilation on PC
Almost all the files needed are in the 'release' folder.
SmartCam for linux is made of the usual phone files, a user mode application (smartcam)
and a driver to emulate a webcam (smartcam.ko). The bad news is that drivers can not be
released in binary form anymore, unless your system happens to run the kernel version
used to compile the driver. smartcam.ko was compiled using kernel version 2.6.24-18-generic
If you are not running this version of the kernel you will have to compile the driver yourself.
Just open a shell in the src/driver path and type:
make -C /lib/modules/2.6.24-18-generic/build M=`pwd` modules
In the above command replace /lib/modules/2.6.24-18-generic/build to the path corresponding to
your system. After successfully compiling the driver you should have the file smartcam.ko in the
src/driver folder.
If you want to compile the application as well go to src/app and type:
gcc `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam
2 Installation on phone
Just transfer any of the files SmartCamS603rdEd.SIS, SmartCamS602ndEd.SIS (/usr/share/smartcam/phone_installs/) that
match your phone on your mobile and follow the installation instructions.
3. Running
Before running smartcam, the driver must be loaded in the kernel; if not the PC application will
complain at start time and exit. To load the driver, open a shell as root in src/driver path and type:
/sbin/modprobe videodev
/sbin/insmod smartcam.ko
After this start the application on the PC, start the phone application and connect it to your PC.
You should now see video images on the PC application window.
4. 3rd party applications
SmartCam was tested on Ubuntu 8.04, kernel version 2.6.24-18-generic, bluez-utils 3.30-3.
Note: some earlier bluez-utils versions don't work with SmartCam.
SmartCam works with Kopete, Ekiga, aMsn and gstreamer (launch gstreamer-properties, go to the video
tab, Default Input, and press Test to see if it is supported by gstreamer). Unfortunately it doesn't
work with skype, nor with gstfakevideo for skype.

note: use bluetooth-properties to connect bluetooth with phone, use bluetooth-sendto to send install file to phone
use  hcitool con to list all connection

more information visit

1 comment: