Gentoo Forums
Gentoo Forums
Quick Search: in
Are there any nice tools to work with motorola phones
View unanswered posts
View posts from last 24 hours

rackathon
Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Bepcyc
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 130
Location: Moscow, Russia

PostPosted: Sat Jan 15, 2005 5:00 pm    Post subject: Are there any nice tools to work with motorola phones Reply with quote

I have a Motorola E398 mobile phone.
In windoze I have such a nice programs like P2Ktools, P2Kman, P2KSeem and others P2K*. Are there any ports of this programs? Or any programs with similiar functionality. I want a program that lets me hack Seems, Flex and other cool stuff of my phone ;))

The best tool I found is kmobiletools, it's nice but there's nothing I can hack in my phone with it.

Any suggestions?
Back to top
View user's profile Send private message
dion
n00b
n00b


Joined: 26 Feb 2005
Posts: 1

PostPosted: Sat Feb 26, 2005 6:49 pm    Post subject: Reply with quote

Try http://sourceforge.net/projects/moto4lin/
Back to top
View user's profile Send private message
merlinux
n00b
n00b


Joined: 12 Apr 2005
Posts: 45

PostPosted: Thu Apr 14, 2005 5:46 pm    Post subject: Reply with quote

i have a trouble with p2kmoto libraries ->p2ktest: error while loading shared libraries: libp2kmoto.0: cannot open shared object file: No such file or directory

i have downloaded moto4lin and p2kmoto.
I try compile first moto4lin....it runs but cannot connect with my phone (motorola c385) .
Then i compile p2kmoto thinking is needed by moto4lin , but comes out the previous error message! :cry:

Any idea?

P.S.

I 've tryed kmobiletools and it works fine , but i can' manage mp3,images, etc....only i can handle numbers and address book :cry:
Back to top
View user's profile Send private message
Sashman
n00b
n00b


Joined: 06 Apr 2004
Posts: 66

PostPosted: Tue Apr 19, 2005 12:34 pm    Post subject: Reply with quote

How did you get it working with kmobiletools?
I don't know which device it ist.

BTW with moto4lin and p2kmoto I have the same problems!
Back to top
View user's profile Send private message
Sashman
n00b
n00b


Joined: 06 Apr 2004
Posts: 66

PostPosted: Tue Apr 19, 2005 5:20 pm    Post subject: Reply with quote

Well now it is working and I'm happy!
Now I can edit the files of my Motorola RAZR V3 directly.

I had two problems to solve and the first one was the above mentioned shared library problem. The make install order copies the p2k-libraries to /usr/local/lib but the files have to be copied to /usr/lib.

If you try p2ktest as root the programm will print out all files on your phone.

The second problem was the program moto4lin. I tried everything as user but nothing worked so I tried as root and it is going well.
First thing to do is setting the device-path. When you plug the phone hotplug and udev should create a device named "/dev/ttyACM0" (naturally the kernel-module "cdc_acm" must be present, you can find it in the USB-Section of the kernel-configuration).
To make the connection first start moto4lin as root (If you can make it run as user please post how you did it).
Then plug the phone. The message "[info] Phone pluged as AT" should appear (if it doesn't retry it and/or check your syslog if the connection was succesful).
Now you have to open the preferences dialog. Click on "Switch to P2K" and wait some secs. The messages "Phone is unpluged." and "Phone is pluged as P2K" should appear.
Now click "OK" and "Connect/Disconnect". If the message "Phone is busy" appears retry it at least twice. Then you can update the file list and enjoy browsing your phone.

The reason for not being able to browse my phone as user are the user rights of the ttyACM0 device. I'm using udev and this system changes them automatically and I did not find out yet how to prevent this or how to make it change them like I want.
I hope all Motorola cell-phone owners will love this little description.
Back to top
View user's profile Send private message
merlinux
n00b
n00b


Joined: 12 Apr 2005
Posts: 45

PostPosted: Wed Apr 20, 2005 6:14 pm    Post subject: Reply with quote

yeah!!!
Thank you Sashman! moto4lin works! :D
Unfortunetly p2kmoto doesn't work....i recompiled it with --libdir=/usr/lib , but nothig to do! :cry:
Anyway moto4lin works and i have the same permission problem you have.
I tried #chmod a+rw /dev/ttyACM0 but doesn't work with win4lin as user.
(With kmobiletools ,instead, it is necessary to access to the phone)

But now is there another problem...how to transfer files into the phone?
I tried to update a file but moto4lin said "[error] Unable to upload files" ...why? :(

What do you think about?

thanks for your help

P.S.
sorry for my english
Back to top
View user's profile Send private message
merlinux
n00b
n00b


Joined: 12 Apr 2005
Posts: 45

PostPosted: Wed Apr 20, 2005 6:45 pm    Post subject: Reply with quote

Sorry!
I solved my last problem....i forgot to update the list!
Now everything works!
I think that now the only question is how to use moto4lin as user!

Bye
Back to top
View user's profile Send private message
Sashman
n00b
n00b


Joined: 06 Apr 2004
Posts: 66

PostPosted: Sat Apr 23, 2005 9:12 am    Post subject: Reply with quote

Nice that it worked for you!
I found out that you don't have to switch to P2K manually. When it shows "phone connected as AT" you can simply click "connect/disconnect" and moto4lin switches to P2K automatically.

I will look again at the udev-manual to solve the user-right problem and I post here if I find out.
Do you know how to work out seems?
I found a nice manual for this. It describes Windows programs but the adjustments you perform are the same.
You can find it right here: http://www.xlr8.us/hofo/

With seem-editing you can unlock hidden features or unbrand your phone without flashing or flexing it.
Back to top
View user's profile Send private message
Sashman
n00b
n00b


Joined: 06 Apr 2004
Posts: 66

PostPosted: Mon Apr 25, 2005 3:27 am    Post subject: Reply with quote

Well, I managed to get kmobiletools working with changing the user and group assignment of /dev/ttyACM0 to myself and tty instead of root root. (I think root tty would also have worked)
I had to add a line to my /dev/udev/permissions.d/50-udev.permissions

Code:

# console devices
console:root:tty:0600
tty:root:tty:0666

ttyACM?:sascha:tty:0770

tty[0-9]*:root:tty:0660
vc/[0-9]*:root:tty:0660


Moto4lin does not work, but I think I know why. The program tries to read the device-information of all USB-devices attached to the system (the list at the bottom of the preferences windows). But this list seems to be unreadable by ordinary users. P2ktest has the same problem!

We have to make the usb-device list readable by users und we should be able to test this with p2ktest.
Any ideas?

Ah, and I have a question about kmobiletools, how do I get special characters transfered correctly? I live in Germany and the German special characters are shown incorrectly in kmobiletools after downloading (SMS and phonebook). I tried out all coding options in the preferences.

Before I forget, I have written a short installation guide and manual for moto4lin, but it is in German. Feel free to try it: Link
Back to top
View user's profile Send private message
provicemo
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 201
Location: Detroit, MI

PostPosted: Sat Apr 30, 2005 3:09 pm    Post subject: Reply with quote

I have to say, I found this thread and its awesome.
I had been trying to get my v220 to work for sometime now, just found out about moto4lin.

I still have permission issues as user getting it to work, have you made any progress?
Back to top
View user's profile Send private message
wskellenger
n00b
n00b


Joined: 30 Nov 2003
Posts: 51

PostPosted: Sun May 01, 2005 7:08 pm    Post subject: IMPORTANT ADDITION Reply with quote

Great thread, thanks for the help.

I was still running into problems here with my Motorola V188.

If you're seeing this in your dmesg output:

Code:

usb 2-1: new full speed USB device using uhci_hcd and address 15
usb 2-1: device descriptor read/64, error -71
usb 2-1: device descriptor read/64, error -71
usb 2-1: new full speed USB device using uhci_hcd and address 16
cdc_acm 2-1:1.0: ttyACM0: USB ACM device


Check the following:

Code:

bash-2.05b# cat /sys/module/usbcore/parameters/old_scheme_first
N


If you see "N" as above, change it to "Y" like so:

Code:

bash-2.05b# echo Y > /sys/module/usbcore/parameters/old_scheme_first
bash-2.05b# cat /sys/module/usbcore/parameters/old_scheme_first
Y


I was successfully able to run p2ktest after this change. (unplugged phone and plugged it in again)


Last edited by wskellenger on Tue May 03, 2005 6:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
provicemo
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 201
Location: Detroit, MI

PostPosted: Mon May 02, 2005 1:17 pm    Post subject: Reply with quote

Whenever i try to run p2ktest as user I get this is dmesg, it removes the device
Code:
usb 1-3: USB disconnect, address 104
usb 1-3: new full speed USB device using ohci_hcd and address 105
usb 1-3: config 1 has an invalid interface number: 5 but max is 2
usb 1-3: config 1 has an invalid interface number: 6 but max is 2
usb 1-3: config 1 has an invalid interface number: 8 but max is 2
usb 1-3: config 1 has no interface number 0
usb 1-3: config 1 has no interface number 1
usb 1-3: config 1 has no interface number 2

works fine as root.

Also my device list when I run p2ktest as user is empty
Code:
0000:0000: [] []
04e8:324c: [] []
0000:0000: [] []
22b8:4902: [] []
045e:0039: [] []
046d:c505: [] []
0000:0000: [] []
Switching to P2K...
P2k Phone found


but as root
Code:
0000:0000: [Linux 2.6.11-ck3 ehci_hcd] [nVidia Corporation nForce2 USB Controller]
04e8:324c: [Samsung Electronics Co., Ltd.] [Samsung ML-1740 Series]
0000:0000: [Linux 2.6.11-ck3 ohci_hcd] [nVidia Corporation nForce2 USB Controller (#2)]
22b8:4902: [Motorola Inc.] [Motorola Phone (V220)]
045e:0039: [Microsoft] [Microsoft 5-Button Mouse with IntelliEye(TM)]
046d:c505: [Logitech] [USB Receiver]
0000:0000: [Linux 2.6.11-ck3 ohci_hcd] [nVidia Corporation nForce2 USB Controller]
Switching to P2K...
P2k Phone found


Leads to believe its definately a permission thing
Back to top
View user's profile Send private message
wskellenger
n00b
n00b


Joined: 30 Nov 2003
Posts: 51

PostPosted: Tue May 03, 2005 6:43 pm    Post subject: Permissions Reply with quote

provicemo: I'm in Detroit too. :)

At any rate, you do have permissions issues it seems.

Are you using a 2.6 kernel or 2.4? I'm using 2.6.11 at the moment, and in order to run moto4lin as user you might need to do the following (as root of course):

1. Add your user name to the "tty" group in /etc/groups
2. logout, login again
3. chown your motorola device to root:tty
Code:
bash$ chown root:tty /dev/ttyACM0


And try it at this point... If it still doesn't work, then:

4. chmod the motorola device as 777
Code:
bash$ chmod 777 /dev/ttyACM0


Strange thing is that when I changed the scheme as I mentioned in my last post, I did not see a /dev/ttyACM0 anymore. Apparently this naming convention is part of the new scheme? No idea. However, I DID see something like /proc/bus/usb/002/0xx (where xx was given in dmesg) or something similar. I used this as the device (changing permissions as above) in moto4lin, which worked for me.

Of course, if you don't want to go through all of this, you might even try just:

Code:
bash$ chown provicemo:users /dev/ttyACM0
Back to top
View user's profile Send private message
TylerD
n00b
n00b


Joined: 02 Aug 2005
Posts: 1
Location: Argentina

PostPosted: Tue Aug 02, 2005 8:50 pm    Post subject: can't connect :( Reply with quote

first...I apologize for my english...now, my problem... well..moto4lin detect my phone, its all fine, but just cant connect! i dont know why, i`ve got a motorola c650. i can manipulate it with kmobiletools...but not in moto4lin, if anyone can help me...i`ll really apreacite it.
Back to top
View user's profile Send private message
matttions
Guru
Guru


Joined: 19 Jul 2004
Posts: 338

PostPosted: Thu Aug 11, 2005 7:40 am    Post subject: Reply with quote

Hi guys ..
Everything it's quite ok here.

Well first of all my phone is Motorola C650.

@wskellenger: Your way to fix permission just work :) Tested on my gentoo .

What I can do with this phone:

1) I can syncronize my KDE address book with kmobiletools. It just work after fix the device.
2) I can send message by gnome-phone-manager.
3) I can transfer files with moto4lin in a very simple way :)

What I'm trying to achieve :

1) Syncronize Evolution Adress book with multisync [of course, I'm Mozilla user [Firefox-Thunderbird, but I'm a gnome user too so ... evo is my second choice if it works, maybe I switcht.]
2) try to syncronize with Thunderbird [It would be really pleasent]
3) Get the pop-up window from gnome-phone-manager when the sms arrived.

Basically

[works]
Moto4lin --> File transfer
Kmobiletools --> Sync [only against KDE addressbook ...]
Gnome-phone-manager --> Just write your message with keybord instead with phone... anything more for now ...]

[need test]
Multisync --> Evolution address book
_________________
gentoo ... l'unico pinguino da corsa
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Sun Aug 28, 2005 2:22 pm    Post subject: Reply with quote

hi fella's :)


thanks for pointing all the pointers!!! they really helped me to browse my phone from my linux desktop :)
However, I'm left with one tiny problem!

I can upload just fine, but I can't creat any dirs with moto4lin...
I'm actually just trying to upload a few new skins to my brand new cellphone (RAZR V3 black), but in order for the cellphone to recognize the skins, the files need to be in a dir with the exact same name...

As I'm not runnin any kde or gnome atm (just plain old regular fvwm here :p), I'm not sure which package will be able to do what I want to achieve...


Could anyone help me with this ?


TIA, and sorry for hijacking the thread, but I didn't want to make a new one just for this minor problem :)
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 13 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Sun Sep 11, 2005 1:28 am    Post subject: Reply with quote

I'm having lots of issues with moto4lin - can't get it to connect to any of my phones (v551, v220). Left to simply AT mode (which it seems to far prefer), it just comes back as, "Unable to connect". If everything's set up the way it starts, it recognizes P2K mode, then jumps right to AT mode and never leaves. Clicking on the "Switch to P2K" button does nothing - just sits there and rots on my screen. By following the fake-out (changing AT values to something like 'ffff') method, I'm able to get it to recognize the phone as being connected in P2K mode, but attempts to connect immediately end up with the following message:
Code:

doActConnect
doActConnect
P2kProc::doConnect()
(E_openPhone: Unable to claim the interface)

The following also comes out on dmesg at the same time, one pair for every time I click the "Connect/Disconnect" button.
Code:

usb 2-1.4: usbfs: interface 0 claimed while 'moto4lin' sets config #1
usb 2-1.4: usbfs: interface 1 claimed while 'moto4lin' sets config #1

Unfortunately, the only sites I can find discussing that specific issue are in Russian, and I can't read them. :( I'm doing this all as root - I'll try to play with permissions later, but my primary concern is getting this up and running in the first place.

Downloading, compiling and running p2ktest provides the following output:
Code:

[root@bozo ~] p2ktest
P2k Test
Device list:
22b8:4902: [Motorola Inc.] [Motorola Phone (V220)]
05e3:0604: [] [USB Hub]
06a3:1009: [SAITEK] [Saitek Action Pad]
5543:0003: [UC-LOGIC] [Tablet WP4030U]
05e3:0604: [] [USB Hub]
0000:0000: [Linux 2.6.12-gentoo-r9 uhci_hcd] [VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)]
051d:0002: [APC] [Back-UPS ES 500 FW:801.e5.D USB FW:e5]
045e:0039: [Microsoft] [Microsoft 5-Button Mouse with IntelliEye(TM)]
0000:0000: [Linux 2.6.12-gentoo-r9 uhci_hcd] [VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller]
Switching to P2K...
P2k Phone found

(E_p2k_openPhone.-1: no p2k phone)
(E_p2k_sendControl.-6: no connection)
(E_p2k_getPhoneName.-14: E001)
Can not get phone model
(E_p2k_sendControl.-6: no connection)
(E_p2k_getDriveName.-14: E001)
Can not get drive name
(E_p2k_sendControl.-6: no connection)
(E_p2k_freeSpace.-14: E001)
Can not get free space(E_p2k_sendControl.-6: no connection)
(E_p2k_fileCount.-14: E001)
Can not get file count(E_p2k_sendControl.-6: no connection)
(E_p2k_fileCount.-14: E001)
(E_p2k_fileList.-14: E000)
[root@bozo ~]

Help!!! Surely there's something I'm doing wrong at 1:30 in the morning, but this is the witching hour for coders - when the best things get done.
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 13 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Sun Sep 11, 2005 8:17 am    Post subject: Reply with quote

All right, post-reboot and doing an rmmod of cdc-acm every time I unplug the phone, I'm able to get p2ktest working. However, moto4lin still says "unable to claim the interface" when I try to connect. What gives?
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 13 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Sun Sep 11, 2005 8:53 pm    Post subject: Reply with quote

Figured it all out finally -

= Downloaded the CVS version (got rid of the "Unable to claim the interface" error - it's been commented out for some reason)
= P2k product ID needs to be 4901, not 4902 (one less than AT version)

I think that's about it - I think there were still a couple of brain-dead items I changed in the source, like changing his default '/dev/usb/acm/0' to '/dev/ttyACM0' and such. Other than that, it pretty much works as expected.

To reiterate - version 0.3 that's in Portage doesn't work, at least for me. Go grab the CVS version - 0.3 was released months ago, but most of the files have been updated since then, but mostly before last month.
Back to top
View user's profile Send private message
bouh
n00b
n00b


Joined: 21 Sep 2003
Posts: 8

PostPosted: Fri Sep 23, 2005 6:50 pm    Post subject: Reply with quote

One thing you can try with the moto4lin in portage is
Code:
chmod +s /usr/bin/moto4lin


Of course fix the perm of /dev/ttyACM0 etc...

for me normal user work whit that thing.

thx Sashman and others for the quick howto ;)
Back to top
View user's profile Send private message
NZLemming
n00b
n00b


Joined: 03 Apr 2005
Posts: 28
Location: Madrid, Spain

PostPosted: Sat Sep 24, 2005 6:55 am    Post subject: Reply with quote

I noticed the other day that Motorola seems to be basing its new phones on Linux! Be interesting to see how they come out.... A bit of guff here.
Back to top
View user's profile Send private message
wurzelholz
n00b
n00b


Joined: 28 Sep 2005
Posts: 1

PostPosted: Wed Sep 28, 2005 10:47 am    Post subject: Reply with quote

I figured out that my motorola data cable needs support for usb-serial. I compiled usbserial and pl2303 modules (which is support for usb-serial and prolifik data cable), the rest is done automatically. Dmesg tells me now that an ACM device is found, and p2ktest and moto4lin work perfect. Before that I got the above metnioned errors in dmesg when connecting the phone.
I suppose its an issue with different types of data cables/connecting types.
Perhaps someone is still interested in this topic and has the same problems which could be solved by compiling those modules.
Back to top
View user's profile Send private message
Ragnarok0mega
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2004
Posts: 145

PostPosted: Thu Sep 29, 2005 6:20 pm    Post subject: Reply with quote

hey guys, im trying to use moto4lin, when i plug my phone it it says phone plugged as AT. but when i try to connect it says it cant connect. i looked at the term and it says
Code:
New mode: 1
doActConnect
doActConnect
P2kProc::doConnect()
sh: /dev/usb/acm/0: No such file or directory
i looked and instead of /dev/usb/acm i have /dev/usb/lp0 i tried that but it says the device or resource is busy. anyone have any idea how i can get around this?
Back to top
View user's profile Send private message
andy753421
n00b
n00b


Joined: 10 Dec 2004
Posts: 16

PostPosted: Thu Oct 20, 2005 10:18 pm    Post subject: Reply with quote

I've having some problems as well. I have a motorola v180. When I plug it in I get the device /dev/ttyACM0 to show up, but there's nothing in /prob/bus/usb
If I run p2ktest it says
Code:

P2k Test
Device list:
No phone found.

moto4lin says [info] Phone is unpluged. Please connect it.
When i run dmesg after pluggin it in it says
Code:

usb 4-1: new full speed USB device using uhci_hcd and address 12
usb 4-1: device not accepting address 12, error -71
usb 4-1: new full speed USB device using uhci_hcd and address 13
usb 4-1: device not accepting address 13, error -71
usb 4-1: new full speed USB device using uhci_hcd and address 14
cdc_acm 4-1:1.0: ttyACM0: USB ACM device

lsmod | grep usb gives
Code:

usbserial              30184  2 pl2303,safe_serial
usbhid                 36576  0
usb_storage            33924  0
usbcore               123580  10 pl2303,safe_serial,usbserial,cdc_acm,uhci_hcd,ehci_hcd,usbhid,usb_storage,ndiswrapper

I've also changed /sys/module/usbcore/parameters/old_scheme_first to 'Y'

I can think of anytihing else that would be going wrong..
I have a somewhat minimal kernel so if there's something that's commonly included I might have taken it out :/
Back to top
View user's profile Send private message
H-Dragon
Guru
Guru


Joined: 22 Oct 2002
Posts: 547

PostPosted: Fri Oct 21, 2005 3:24 pm    Post subject: Reply with quote

similar problem here.....

-updated the "whatever-stuff" to "Y"
-changed "+s" to moto4lin
-changed the default in moto4line to /dev/ttyACM0 (which exists)
-changed the permission of ttyACM0 to root:tty

but as "su" i cant get the phone to connect. i can see it being recognized but whenever
i tell moto4lin to connect, it disconnects my phone (or at least it gives me that message.)

Code:
moto4lin
Form1
PhoneMan
New mode: 1
doActConnect
doActConnect
P2kProc::doConnect()
New mode: 0
here i changed the preferences in moto4lin (clicked on my razr v3 phone and told the program
to use it as at and p2k
Code:

New mode: 1
doActConnect
doActConnect
P2kProc::doConnect()

it kicks me out with the message "error: Unable to connect".


:cry:
_________________
WEBSITE
Do not meddle with the affairs of Dragons, for you are crunchy and tasty with ketchup!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum