Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old August 11th, 2005   #1
gorkhal
Just Give Me the Beans!
 
gorkhal's Avatar
 
Join Date: Jun 2005
Location: Canada
Beans: 52
HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

This howto's for installing and running moto4lin on ubuntu hoary.

Most of the information reproduced here, for convenience's sake , can be found at the moto4lin's wikipage HERE

moto4lin allows you to access your cell phone's file system under linux. Upload/Download pictures, ringtones, etc. . Its still in alpha, so be careful, but I have been running it without any problems whatsoever. Tried kmobiletools before, but could not get it to install (I'M ON GNOME ).

***Update 1***

There's lots more supported now, I would definitely recommend checking out the Supported Models section at the motor4lin wiki.

Here is the list of 'officially' supported models (moto phones not listed here may also work, try it out):
C350, C350l, C380, C650, V180, V220, V300, V500, V547, V600, E398, E1000

*Update*
List of other models that have been confirmed to work:
V400

If your moto phone works with this app, but its not in the official list, add it to the moto4lin wiki, Supported Models and fill in the USB ID as well. That way everyone gets it.

Moto4lin supports AT and P2K modes on these phones. I have not tested the AT mode as of yet, but it's basically for Modem functionality and GPRS (me thinks), but its the P2K mode that I was interested in, since it lets you access your cell phone's file system.

#Requirements
Install the following...
Code:
~$sudo apt-get install cvs
~$sudo apt-get install libqt3-mt-dev
~$sudo apt-get install zlib1g-dev
~$sudo apt-get install libusb-dev
#Installing moto4lin
We are going to get the moto4lin source from a cvs repository. You might get an error from cvs at this stage, ignore and proceed. Asked for password? Just press Enter.
Code:
~$cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/moto4lin login
~$cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/moto4lin co -P moto4lin
This should download the source into a directory named moto4lin. Now compile the source.
Code:
~$cd moto4lin
~/moto4lin$qmake
~/moto4lin$make
~/moto4lin$sudo make install
Should you receive any compilation errors, you most likely do not have the required libraries, try looking through the error messages to figure out what you are missing. If everything goes ok, you have installed moto4lin successfully.

#Configure moto4lin
Connect YOUR phone to YOUR computer using YOUR usb cable. Thats right YOURs not mine, I am not sharing mine.

Now run moto4lin...
Code:
 ~$sudo moto4lin
You need to run it under root, to access the P2K mode on your phone, at least until its fixed, or someone figures out how to run it as normal user.

In the bottom status bar of the moto4lin window it should say, at least the first time: '[info] Phone pluged as AT'

GoTo: Settings -> Preferences...
Set 'ACM Device' = '/dev/ttyACM0'
Then we need to figure out the following,
'AT Vendor ID',
'AT Product ID',
'P2K Vendor ID',
'P2K Product ID'.

Click 'Update List' -> retrieves a list of the 'AT Vendor ID' and 'AT Product ID' of all your USB devices. Find your cell phone's AT IDs from the list.
(Once you have found it write it down, because an ODD thing is when moto4lin is run under root, it does not save any changes to settings)
Select 'Switch to P2K' -> if it is successful, it should say '[info] Phone pluged as P2K' in the status bar of the main window.
Clicking 'Update List' again will now retrieve the 'P2K Vendor ID' and 'P2K Product ID' of all your USB devices. Write your cell phone's P2K IDs down.

Alternatively you can search HERE for the AT and P2K IDs of your cellphone.

Now quit moto4lin, and run as normal user
Code:
~$moto4lin
Goto Settings -> Preferences and fill in the AT IDs and the P2K IDs.

Quit moto4lin, and the settings will be saved.
So run under root for execution and run as normal user for configuration.

#Running moto4lin
Now run moto4lin as root...
Code:
 ~$sudo moto4lin
Check the current mode:
If its already in P2K mode, click 'Connect' to load up your Motorola file system

If its in AT mode, Goto Settings -> Preferences...Select 'Switch to P2K' then try connecting.

I have attached a screenshot of how it looks like at this stage. If anyone figures how to run moto4lin without root privileges and still be able to access in P2K, do share.

Lots of kudos to the moto4lin guys for coming up with this wonderful application.

Happy experimenting
Attached Images
File Type: jpg Screenshot.jpg (60.0 KB, 2647 views)

Last edited by gorkhal; August 23rd, 2005 at 04:13 PM..
gorkhal is offline   Reply With Quote
Old August 13th, 2005   #2
foxy123
Dark Roasted Ubuntu
 
Join Date: Apr 2005
Beans: 1,129
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

Hi Gorkhal! Thanks a lot for the excellent HOWTO. I tried moto4lin before but failed. Now it works for me!

A couple of points you may want to make clearer in the HOWTO:

Quote:
Originally Posted by gorkhal
#Configure moto4lin
Now run moto4lin...
Code:
 ~$sudo moto4lin
You need to run it under root, to access the P2K mode on your phone, at least until its fixed, or someone figures out how to run it as normal user.

In the bottom status bar of the moto4lin window it should say, at least the first time: '[info] Phone pluged as AT'

GoTo: Settings -> Preferences...
We need to figure out the following,
'AT Vendor ID',
'AT Product ID',
'P2K Vendor ID',
'P2K Product ID'.

Click 'Update List' -> retrieves a list of the 'AT Vendor ID' and 'AT Product ID' of all your USB devices. Find your cell phone's AT IDs from the list.
(Once you have found it write it down, because an ODD thing is when moto4lin is run under root, it does not save any changes to settings)
you should also change 'ACM Device' to '/dev/ttyACM0', as it is said below.

Quote:
#Running moto4lin
Now run moto4lin as root...
Code:
 ~$sudo moto4lin
Goto Settings -> Preferences...Select 'Switch to P2K', only if it is not already in P2K mode. Goto Main Window and click 'Connect/Disconnect'.
To see my files I had to click on Update List button.

Thanks again for your HOWTO!
foxy123 is offline   Reply With Quote
Old August 13th, 2005   #3
az
just this guy, you know.
 
az's Avatar
 
Join Date: Oct 2004
Location: Kingston, On
My beans are hidden!
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

You should request that this be packages for Ubuntu. You can ask on the developmental mailing list,
az is offline   Reply With Quote
Old August 13th, 2005   #4
void_false
Way Too Much Ubuntu
 
void_false's Avatar
 
Join Date: Mar 2005
Location: Middle East
Beans: 259
Send a message via ICQ to void_false
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

WOW that just rox!
Now I need to buy miniusb datacable for my c350. Hell, official CD costs something like 30$
__________________
The simple fact is that KDE is just superior to GNOME in every way possible. (c) clparker
L33T signature
:: My site :: My desktop :: My distro ::
void_false is offline   Reply With Quote
Old August 13th, 2005   #5
foxy123
Dark Roasted Ubuntu
 
Join Date: Apr 2005
Beans: 1,129
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

Has anyone heard anything about C975? It is not listed in the supported models...
foxy123 is offline   Reply With Quote
Old August 13th, 2005   #6
gorkhal
Just Give Me the Beans!
 
gorkhal's Avatar
 
Join Date: Jun 2005
Location: Canada
Beans: 52
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

Good to see it worked for someone too. Thanks for the suggestions foxy123.

Quote:
Originally Posted by foxy123
Has anyone heard anything about C975? It is not listed in the supported models...
You could still try it out....it may work. Since the P2K mode used is supposed to be prevalent in a lot of the motorola phones.

Last edited by gorkhal; August 13th, 2005 at 06:03 PM..
gorkhal is offline   Reply With Quote
Old October 12th, 2005   #7
galder
Spilled the Beans
 
Join Date: Dec 2004
Location: Bilbao, Basque Country
Beans: 14
Ubuntu 6.10 Edgy
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

Thanks for the howto.

I have a Motorola v1050, and it seems that the phone is recognized, because I can get the Vendor ID 22b8 and the product ID 3002, but when I switch to P2k i get this error:

[error] Unable to open device
[error] Check preferences
[error] Unable to connect

Could anyone help me? Any hint?

Thanks in advance!
galder is offline   Reply With Quote
Old January 29th, 2006   #8
steevc
Gee! These Aren't Roasted!
 
Join Date: Jul 2005
Location: Arlesey, UK
Beans: 181
Kubuntu 9.10 Karmic Koala
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

Thanks to this HOWTO I have the software installed. I'm just having trouble connecting to my V220. I set up the AT and P2K values given on the V220 page, but I can't connect. I get

Code:
[info] Phone pluged as AT
Try to connect
[info] AT phone found
[info] Switching device /dev/ttyACM0 to P2K mode...
[error] Unable to connect
[info] Phone is unpluged
If it's an AT phone then should it be switching to P2K?

I initially set up the ACM device as /dev/sda, but got the same result. This is when running as root. When running as a normal user I get even more errors as it cannot retrieve the phone details.

EDIT: I've got it working now. I edited the settings file manually. Now when I run as root it works. I can extract pictures etc. Pretty cool considering Motorola would charge for that facility. The cable for my Canon camera fitted.
__________________
Steve bagofspoons.net
Running on an Athlon X2 4600+ with 2GB on an Asus M2npv-vm plus DVB on PCI, 250GB HD, DVD writer. All in a nice Antec NSK4400 case.

Last edited by steevc; January 29th, 2006 at 12:44 PM..
steevc is offline   Reply With Quote
Old August 4th, 2006   #9
jackhawk28
First Cup of Ubuntu
 
jackhawk28's Avatar
 
Join Date: Aug 2006
Location: St. Louis, MO
Beans: 1
Ubuntu 6.06
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

Quote:
Originally Posted by steevc View Post
EDIT: I've got it working now. I edited the settings file manually. Now when I run as root it works. I can extract pictures etc. Pretty cool considering Motorola would charge for that facility. The cable for my Canon camera fitted.
Where'd you find the settings file?
jackhawk28 is offline   Reply With Quote
Old February 20th, 2006   #10
zero_
First Cup of Ubuntu
 
Join Date: Feb 2006
Beans: 1
Re: HOWTO: Access Motorola phones through USB on Hoary using Moto4Lin

Hi all

i've been crazy all this day

The problem was in the path of the device

here my cfg file of the preference ( in /home/myhome/.qt/moto4linrc )

cfgACMdevice=/dev/ttyACM0
cfgATproduct=3002
cfgATvendor=22b8
cfgAutoConnect=1
cfgP2Kproduct=3001
cfgP2Kvendor=22b8

[filemanager]
cfgAutoExpandDirTree=0
cfgAutoUpdateFileList=1
cfgGoLastFolder=0

see: no spaces and no ' ' in the device path.
ù
Hope to be usefoul for anyone.

Giorgio aka zero_ from italy

Ciao!!!
zero_ is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:12 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry