KRZR k1m

From Moto4Lin

Jump to: navigation, search

This guide shows how to connect to your Verizon Motorola KRZR k1m phone on Ubuntu Hardy.

I wrote this guide with the help of the following resources.

Contents

Find your phone's vendor and product ID

First, make sure your phone is disconnected from your computer. Check for your "normal" USB devices using the following command.

ls /sys/bus/usb/devices

This tells you what devices are present while your phone is NOT connected. Now, connect your phone and run the command again. Anything extra that shows up the second time tells you what new devices were added since you last checked - like your phone. Find the new device and cd to that folder. It should look something like /sys/bus/usb/devices/5-1

cd /sys/bus/usb/devices/#-1

Be sure to replace # with the number of the newly added USB device. Now, run some more commands.

cat product
cat idProduct
cat idVendor

Make sure the product lists your phone and write down the product and vendor information. They should be four digit hex numbers. Now, disconnect your phone from your computer.

Convince ubuntu to create a device for your phone

You'll have to run this command to get ubuntu to recognize your phone and create a device for it.

sudo modprobe usbserial vendor=0xVEND product=0xPROD

Be sure to replace VEND and PROD with the codes you wrote down from above. Now, connect your phone and run another command to check to see if your phone was recognized properly.

dmesg | tail

You should see something like this.

[  496.682709] usb 3-2: new full speed USB device using uhci_hcd and address 4
[  496.771079] usb 3-2: configuration #1 chosen from 1 choice
[  496.778375] usbserial_generic 3-2:1.0: generic converter detected
[  496.778546] usb 3-2: generic converter now attached to ttyUSB0
[  496.780940] usbserial_generic 3-2:1.1: generic converter detected
[  496.781059] usb 3-2: generic converter now attached to ttyUSB1

Now, check to make sure the devices are actually there with this command.

ls /dev/ttyUS*

You should see a result like this.

crw-rw---- 1 root dialout 188, 0 2008-05-11 17:03 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 2008-05-11 17:03 /dev/ttyUSB1

Find the AT and P2K vendor and product info from moto4lin

First, run moto4lin as root. Running moto4lin as a normal user does not give it the right permissions to access the USB devices.

sudo moto4lin

Now, go to the preferences menu. In the ACM Device box, type in the following.

/dev/ttyUSB0

Then click the Update List button. Find your phone in the list below and select it. Then click the Set As AT Device button. This will change some of the values in the boxes above. That's ok. Now switch to P2K mode by clicking the Switch to P2K button. Hit Update List again and select your phone. This time, click the Set As P2K Device button. Finally, make note of all four of the vendor/product codes. We'll have to type them in again later because moto4lin cannot save preferences when run as the root user.

Coerce moto4lin to save your preferences

To save your preferences, you have to run moto4lin as a normal user.

moto4lin

Again, go back to the preferences menu and type in the four numbers you wrote down from the previous step. Exit moto4lin. This will save the settings to your user. You can't connect to your phone just yet because moto4lin doesn't have the right permissions as a normal user.

Connect to your phone with moto4lin

So, run moto4lin as root again. This time, moto4lin will remember your settings because you saved the properly in the previous step.

sudo moto4lin

In the bottom log box, moto4lin should tell you it found your phone this time.

[info] Phone is unpluged. Please connect it
[info] Phone pluged as AT

Sure, the first line says it couldn't find your phone, but moto4lin seems to change its mind by the second line. Now you're ready to connect to your phone, so press the big Connect/Disconnect button. You should be rewarded with the following output:

Try to connect
[info] AT phone found
[info] Switching device /dev/ttyUSB0 to P2K mode...
[info] AT E0 answer: OK 
[info] Phone answer: OK 
[info] Phone pluged as P2K
[info] Phone connected as P2K

If you've gotten this far, congratulations! You can now download/upload files from/to your phone!

Personal tools