Sep 19, 2008

Transfer files to phone internal memory


I think, that may help you :D

This How-To will might works with many NOKIA Mobile Phone, especially for Nokia 3230, 6670, 6680, 6682 e 7610, 6120, Sony Ericsson Z1010, LG U8110/8120.
However I wrote this How-To after configuring correctly my new NOKIA 6120 on Ubuntu Gutsy 7.10. So, this how-to is intended for people that runs Ubuntu Gutsy and have NOKIA 6120 Mobile Phone.


I'm not responsable for any damage on your Mobile Phone derived from this how-to! However my Nokia 6120 works well on Ubuntu Gutsy 7.10

You can apply this howto only if you use USB Data Cable included in your Nokia 6120.
Why USB and not BlueTooth?
USB Data Cable is included on your NOKIA 6120 Package and not require that you buy additional bluetooth device for your Linux PC. USB Data Cable transfers file faster than BlueTooth.
Why use Software if you can use Micro SD card reader on your Linux PC?
Yes, you can use Micro SD card reader device for your Linux PC, but you can't read your Nokia internal Memory. So, is necessary that you run a software to manage your Nokia 6120 Internal Memory.

First of all, we have to grant access for Mobile Phone to "dialout" group.

sudo gedit /etc/udev/rules.d/40-permissions.rules

Now we have to add to the end of file:

# NOKIA 6120
BUS=="usb", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="002f", GROUP="dialout"

where 0421 and 002f could be different depending on your Mobile Phone.
To check your idVendor and idProduct, we have to type on terminal

Bus 003 Device 009: ID 0421:002f Nokia Mobile Phones

Now, we have to reload udev permission file:

sudo /etc/init.d/udev restart

We have to add our username on group "dialout"

gpasswd -a username dialout

All basics configurations for USB Data Cable are completed. We can start installation of obexftp and obextool GUI. Obextool GUI is written for tk graphic library, so GUI not have a good design as GTK.

sudo apt-get install openobex-apps libopenobex1 obexftp obextool

If you want start obextool from terminal we have to type for the first time:

export OBEXCMD="obexftp -t /dev/ttyACM0 -u 1"

or, we can start it simply by typing:

obextool --obexcmd "obexftp -t /dev/ttyACM0 -u 1"

When we start Obextool we can see this error message:

It seems, that your device does not support the memory status feature.
Memory status will be disabled

To solve this problem we have to set some values on obextool.cfg:

sudo gedit /etc/obextool.cfg

set ObexConfig(config,memstatus) 0
set ObexConfig(config,filemove) 0

Another error message that we can see is:

FIle '/FileName/' could not be uploaded to 'E:/Path'!
Please check your file permissions.

To solve it:

sudo gedit /etc/obextool.cfg

set ObexConfig(config,dir_slash) 1

Good Job! Now your Mobile Phone works well in Ubuntu Gutsy with ObexTool.
If we want add it as Desktop Entry:

sudo gedit /usr/share/applications/obextool.desktop

[Desktop Entry]
Exec=/usr/bin/obextool --obexcmd "obexftp -t /dev/ttyACM0 -u 1"
Comment=Browser your Mobile Phone

So, you can find it in your Gnome Panel over: "Applications" -> "Accessories" -> Obextool

Feel free to comment this post if you find problems.

Reblog this post [with Zemanta]