NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
Home / News / Linux / Other Tips, Tricks and Tutorials

Other Tips, Tricks and Tutorials


Access Your Mobile Phone Through USB Cable

Manage files on your mobile phone memory and card.

By Mihai Marinof, Linux Editor

7th of February 2007, 09:44 GMT

Adjust text size:


OBEX (abbreviation of OBject EXchange, also termed IrOBEX) is a communications protocol that facilitates the exchange of binary objects between devices. It is maintained by the Infrared Data Association, but has also been adopted by the Bluetooth Special Interest Group and the SyncML wing of the Open Mobile Alliance (OMA).

OpenOBEX is an open source implementation of the Object Exchange (OBEX) protocol. This protocol is optimized for ad-hoc wireless links and can be used to exchange all kinds of objects like files, pictures, calendar entries (vCal) and business cards (vCard). OpenOBEX supports the following links:
■ IrDA
■ Bluetooth
■ USB
For a list of supported devices, click HERE and select your phone manufacturer from the left menu. If you found your phone model on the list, you may carry on with this guide.

Installing OpenOBEX

To manage files on your mobile phone, you'll need two applications: OpenOBEX and ObexFTP. You can either try to install it using your package manager (yum, apt-get etc) or, download the sources from Softpedia: OpenOBEX and ObexFTP.

If you decide to install them from sources, you will need to have the following packages installed on your system: gcc make automake1.4 autoconf libusb-dev libtool.

Finally, follow these steps:
OpenOBEX:
CODE
$ mkdir ~/usbobex
$ tar xfz openobex-1.3.tar.gz
$ cd openobex-1.3
$ ./configure --prefix=$HOME/usbobex --enable-apps
$ make
$ make install

ObexFTP
CODE
$ bzip2 -cd obexftp-0.20.tar.bz2 | tar xf -
$ cd obexftp-0.20
$ ./configure
$ make
$ sudo make instal

Set UDEV permissions

- Open a terminal and type lsusb.
- Look for a line similar to this:
Bus 001 Device 005: ID 0421:0428 Nokia Mobile Phones
- In this example, 0421 is the VendorID, while 0428 is the ProductID.
- Add the following line to /etc/udev/rules.d/40-permissions.rules in Ubuntu:
BUS=="usb", SYSFS{idVendor}=="VendorID", SYSFS{idProduct}=="ProductID", GROUP="plugdev", USER="yourUserName"
- Replace VendorID, ProductID and yourUserName with the correct values.

Using ObexFTP

- Open a terminal and type:
CODE
$ ~/usbobex/bin/obex_test -u

Your should see something like:
CODE
Using USB transport, querying available interfaces
Interface 0: Nokia Nokia 6230i (null)
Interface 1: Nokia Nokia 6230i (null)
Interface 2: Nokia Nokia 6230i (null)

Listing directories:
(Run command as normal user with Ubuntu and as root with everything else)

CODE
$ obexftp -u 1 -l
-u 1 connects to interface 1, while -l will list directories and files in the root directory.

Downloading files

Let's say we want to get 011.mp3 from the Music files directory:
CODE
$ obexftp -u 1 -c 'Music files' -g 011.mp3

Uploading files

To upload file.txt from Desktop to Documents directory on the phone:
CODE
$ obexftp -u 1 -c 'Documents' -p path/to/Desktop/file.txt


Rating:
Good (3.6/5) 5 vote(s) so far    

Read by 6,035 user(s) | Add comment | Link to this article
Subscribe to news | Print article | Send to friend

© Copyright 2001-2008 Softpedia
Contact:

 

 

SEARCH THE NEWS ARCHIVE :




Today's News
| Yesterday's News | News Archive


MORE RELATED ARTICLES:


Secure Your System with Firestarter

Create a LAN Repository with Apt-Cacher

Manage Several Desktops with One Keyboard

Mounting Remote Directories through SSH

GNU Screen Tutorial

Creating a Local Update Repository for FC6

Wolfenstein: Enemy Territory Server Setup

How to Setup an Encrypted Filesystem

Grant Root Privileges to Regular Users

User opinions:

No user comments yet.
Be the first to express your opinion using the form below!

Share your opinion:

Your Name:
Your Email Address:
(will not be used for commercial purposes)
Solve this to prove you're not a bot: =
Your review/opinion:

 






SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM