LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Moto4lin W/ Motorole Razr Suse 10.2 (https://www.linuxquestions.org/questions/linux-software-2/moto4lin-w-motorole-razr-suse-10-2-a-522209/)

mastersword 01-23-2007 09:13 PM

Moto4lin W/ Motorole Razr Suse 10.2
 
I'm having a terribly hard time getting this program to work. I've installed moto4lin, and it detects when my phone is plugged in as well as when I unplug it, however it will not connect to my phone in. I've been told I also need to install p2ktest, but for some reason when I try to run it, p2ktest tells me:

p2ktest: error while loading shared libraries: libp2kmoto.0: cannot open shared object file: No such file or directory

All I'm trying to do is edit ringtones and download my pictures. Any help at all would be appreciated. Thanks!

Lenard 01-24-2007 02:18 PM

The device may be wrong, for me the device really is /dev/ttyACM0 maybe this is the problem?

Jan 23 15:22:14 Aspire5000 kernel: cdc_acm 3-3:1.0: ttyACM0: USB ACM device
Jan 23 15:22:14 Aspire5000 kernel: usbcore: registered new interface driver cdc_acm
Jan 23 15:22:14 Aspire5000 kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters

mastersword 01-25-2007 11:11 AM

Would that cause p2ktest to fail with that error message? If so, how do I check? At the risk of sounding like a total noob, what exactly is all this:

Jan 23 15:22:14 Aspire5000 kernel: cdc_acm 3-3:1.0: ttyACM0: USB ACM device
Jan 23 15:22:14 Aspire5000 kernel: usbcore: registered new interface driver cdc_acm
Jan 23 15:22:14 Aspire5000 kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters

and how do I bring it up?

Lenard 01-25-2007 12:28 PM

This is the output from my /var/log/messages file;

Code:

Jan 23 15:22:14 Aspire5000 kernel: cdc_acm 3-3:1.0: ttyACM0: USB ACM device
Jan 23 15:22:14 Aspire5000 kernel: usbcore: registered new interface driver cdc_acm
Jan 23 15:22:14 Aspire5000 kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters

The first line shows that when I attached the cellphone via the USB interface it was recognized as device ttyACM0 (/dev/ttyACM0). You should also see something like this after attaching your cellphone. If not then your missing something, maybe the cdc-acm.ko kernel module. Plug the phone in and take a look at your messages file (as root or equivalent);

tail /var/log/messages

mastersword 01-25-2007 06:12 PM

Ok, here's what I get:

Jan 25 19:08:26 marctop kernel: usb 2-1: new full speed USB device using uhci_hcd and address 4
Jan 25 19:08:26 marctop kernel: usb 2-1: new device found, idVendor=22b8, idProduct=4902
Jan 25 19:08:26 marctop kernel: usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
Jan 25 19:08:26 marctop kernel: usb 2-1: Product: Motorola Phone (V3/P)
Jan 25 19:08:26 marctop kernel: usb 2-1: Manufacturer: Motorola Inc.
Jan 25 19:08:26 marctop kernel: usb 2-1: configuration #1 chosen from 2 choices
Jan 25 19:08:27 marctop kernel: cdc_acm 2-1:1.0: ttyACM0: USB ACM device


I noticed it's not exactly the same as yours, but certain aspects are the same... I have my device set to ttyACM0 in moto4lin, but it still fails. p2ktest still gives me the same error as well.

1dude1 01-25-2007 10:49 PM

well now instead of being ACM it should be hcd like the good logfile says i think. i don't know that much about moto4lin, because when i attach my phone i just plug back in my windows hard drive (eliminates complication) but i can read logfiles.

Lenard 01-26-2007 05:13 AM

Yes sometimes it can be known as a hard drive device, like;

http://moto4lin.sourceforge.net/wiki/Razr_V3i

mastersword 01-28-2007 09:37 PM

Ok, I see the area in the log file you're refering to. What does that mean for me? Should I switch the device to /dev/uhci_hcd?

Also, after checking out that link from Lenard, is it possible to have my phone connect like that? It seems for some reason his is comming up like a scsi hard drive, whereas mine does not. Here is the relevant output from dmesg:

usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: new device found, idVendor=22b8, idProduct=4902
usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: Motorola Phone (V3/P)
usb 2-1: Manufacturer: Motorola Inc.
usb 2-1: configuration #1 chosen from 2 choices
cdc_acm 2-1:1.0: ttyACM0: USB ACM device
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters


Thanks!

Lenard 01-29-2007 05:18 AM

Looks like it is /dev/ttyACM0 just like on my system.

Try starting moto4lin choose Preferences set the ACM device to /dev/yytACM0, switch to PKmode and select your cell phone (USB View), which is what I had to do the first time.

mastersword 01-30-2007 08:11 AM

Gave it a try, I still get the "[error] Unable to connect" message. I still don't understand why p2ktest is giving me errors when I run it from console t though... Wouldn't that be part of this problem potentially?

Lenard 01-30-2007 09:16 AM

Hmmm........ what I see when using moto4lin starting from a xterm session (as root);

# moto4lin
Form1
PhoneMan
New mode: 1
New mode: 0
New mode: 2
doActConnect
doActConnect
P2kProc::doConnect()
doActConnect
Filelist received: 487

The two lines "New mode 1" and "New mode 0" are AT devices which are not good for me. The "New mode 2'" line is when I press the "Switch to P2K" button in Preferences. The next four lines are what happens when I click on the Connect/Disconnect button (main moto4lin menu). The last line "Filelist recieved: 487" is what happens when I press the "Update List" button.

I have no pk2test installed(I'm 64-bit and this does not build correctly), but after switching to PK my device ID's are; idVendor=22b8, idProduct=4901

You might want to try the CVS version.

mastersword 01-30-2007 11:49 AM

I'm unable to get the "New Mode 2" status, here is what I get:

# moto4lin
Form1
PhoneMan
New mode: 1
New mode: 0
New mode: 1
doActConnect
doActConnect
P2kProc::doConnect()

It switched to New Mode : 0 when I hit "swtich to p2k." Afterwards, I hit "Connect/Disconnect" and got the last three lines. Moto4lin then gave me an unable to connect error.

I get identical IDs to you for my phone.

I'll take a look at CVS version, and post my results.

mastersword 01-30-2007 01:09 PM

Ok, I've managed to get my phone detected as P2k by changing the AT values to something incorrect. Now, I actually get a "New Mode: 2" message, but my phone still won't connect. Here's my moto4lin output:

# moto4lin
Form1
PhoneMan
New mode: 1
New mode: 2
doActConnect
doActConnect
P2kProc::doConnect()
(E_openPhone: Unable to set configuration)


Everything up to New Mode: 2 is from the first boot of moto4lin. doActConnect is when I hit the "Connect/Disconnect" button on the main screen, and after that is the error I get.
mo
As for the CVS, it looks like the version of P2kmoto I got off sourceforge hasn't been updated since 2005... Has this project been moved to a place other than http://sourceforge.net/projects/moto4lin ?

mastersword 01-30-2007 03:01 PM

Woah! Seems, I've fixed it! Not quite sure what I did, but the sequence I used to get it to work was as follows:

1) Plug phone in
2) log in as root and start moto4lin
3) Settings, update list, find my phone and click set as p2k
4) Click switch to p2k
5) connect/disconnect
6) update list

Bingo! Everything works. Thanks for all the help :). The only difference here is I switched the values in the settings for the AT section to something invalid so that it would no longer try to connect my phone as AT.

Lenard 01-30-2007 04:46 PM

Very good I'm glad you got it worked out, enjoy.


All times are GMT -5. The time now is 02:53 PM.