Cell Phone + Bluetooth = Webcam!

wireless webcam

While I’m posting the instructions specifically for Linux boxes, a little perseverance should have you running it on any box that’s supported! What you’ll need is:

1. A Linux/Windows Box
2. A Symbian/Android/Windows Mobile 6 Phone
3. The Smartcam DEB
4. The Smartcam Source
5. The file for your cell phone, you can select the one you need from here
6. The Smartcam Kernel Module Patch

Get It Running:

1. Install the Smartcam DEB (a simple double-click should work in most cases)
2. Extract the source tarball to its own folder; a Right-click -> “Extract Here” should work.
3. Copy the downloaded patch to the driver_src directory.
4. Open up a terminal and run these commands (the pingu@pingu:~$ should resemble your own prompt):

  • pingu@pingu:~$ cd /path/to/the_extracted_smartcam_source/
  • pingu@pingu:/opt/smartcam$ cd driver_src
  • pingu@pingu:/opt/smartcam/driver_src/$ patch -p0 < smartcam.patch
  • pingu@pingu:/opt/smartcam/driver_src/$ sudo make -C /lib/modules/`uname -r`/build M=`pwd`
  • pingu@pingu:/opt/smartcam/driver_src/$ sudo modprobe videodev
  • pingu@pingu:/opt/smartcam/driver_src/$ sudo insmod smartcam.ko

5. Start Smartcam!

Known Issues:

1. The patch -p0 < smartcam.patch command fails with some weird error:
You may not have the “patch” program installed. A simple sudo apt-get install patch should do the trick.

2. The sudo make -C /lib/modules/`uname -r`/build M=`pwd` command fails after barfing all over my terminal:
You probably don’t have a number of dependencies installed to compile kernel modules. While I could tell you to install every build tool possible and ensure you get past this block, it really doesn’t make sense. Take a closer look at the output on your terminal and note down statements that indicate specific programs not available. Then just run a sudo apt-get install and give it another go! If all else fails, Google! Dependency problems crop up all the time.

3. The installation worked but Smartcam just doesn’t show up:

  • You need to run the two commands sudo modprobe videodev and sudo insmod smartcam.ko every time you intend to start Smartcam. This loads the kernel modules into memory for the current session, so you need not re-run the commands once you’ve done that for your current session.
  • You’ll need to switch on the bluetooth on your computer before you start Smartcam!

One response to “Cell Phone + Bluetooth = Webcam!

  1. I do patch -p0 < smartcam.patch and i recive:

    (Stripping trailing CRs from patch.)
    patching file b/driver_src/smartcam.c
    Hunk #1 FAILED at 242.
    Hunk #2 FAILED at 538.
    Hunk #3 FAILED at 553.
    Hunk #4 FAILED at 562.
    patch unexpectedly ends in middle of line
    Hunk #5 FAILED at 594.
    5 out of 5 hunks FAILED — saving rejects to file b/driver_src/smartcam.c.rej

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s