OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
z_mentor
post Oct 30 2005, 08:21 AM
Post #1





Group: Members
Posts: 15
Joined: 24-April 05
Member No.: 6,981



This is a mini HOWTO regarding connecting to the internet using either GPRS or Data calling through a Nokia mobile phone, a DKU-2 usb cable (the one provided with newer Nokia phone models) and Zaurus SL-C3000 (it might work for other mobile phones and/or SL-C3100).

The reason for all this is battery consumption both for the mobile phone and the Zaurus (as using bluetooth quickly drains power from both devices).

I have tested it with Nokia 6230, Nokia 6680 and Nokia 9500 Communicator and it is working fine with all of them. My guess is that it should work with most Nokia mobile phones.

I used the patches for acm.c from the kernel 2.4.23 and a small modification. Many thanks to all the hard working people who are developing the kernel.


First of all we must make sure that the needed devices are created at boot time.

Download the attached file and then as root:

1. Copy the file acm_devices into /etc/rc.d/init.d/

2. # chmod 775 /etc/rc.d/init.d/acm_devices

3. # ln -s /etc/rc.d/init.d/acm_devices /etc/rc.d/rc5.d/S99acm_devices

4. In order to create the devices for the first time either reboot the Zaurus or

# cd /etc/rc.d/init.d
# ./acm_devices


Now we will use the modified kernel module acm-nokia.o:


1. Copy the file acm-nokia.o into /lib/modules/2.4.20/kernel/drivers/usb/

2. # depmod -a

3. Plug in your mobile phone using the USB cable.

4. If you run lsmod you should see acm and acm-nokia loaded and if you run dmesg you should see a line saying

ttyACM0: USB ACM device

5. If you want to be absolutely sure that it worked, download minicom from: http://www.elsix.org/index.php?w=project&p=923 (direct link: http://users.adelphia.net/~dyson/zaurus/minicom_2.1.tar.gz) and follow the instructions: http://users.adelphia.net/~dyson/zaurus/minicom.txt for installing it.After its installation edit the file /etc/minirc.dfl and replace on the second line whatever device there is with /dev/ttyACM0. Run minicom. It should initialize the modem-mobile phone and if you type ati3 you should get the model of your phone.


Now comes the last part: the internet connection itself.


1. Create one new IRDA connection from Settings --> Network or use an existing one. (for GPRS instructions look here: http://www.oesf.org/forums/index.php?showtopic=9837)

2. We now have to modify it so that it looks for the new modem /dev/ttyACM0. Find a file in /etc/ppp/peers/IRDA******* (where * are random digits) and edit it

Insert a new line with:

/dev/ttyACM0

And also just to make sure, go to the line which starts with connect '/usr/sbin/chat and delete the portion which says:

ABORT "NO CARRIER" ABORT "NO DIALTONE"


You should now be able to browse the internet.


If you can get connected but cannot view web sites,

check /etc/resolv.conf

and make sure it looks like this:

# Domain name searches will fail until you point this to a real DNS server.
nameserver 149.254.1.14
nameserver 149.254.1.15

(where the ip addresses 149.254.1.14 and 149.254.1.15 are your provider's DNS servers)


Good luck with your efforts.

Please report back if you are successful (don't forget to include your mobile phone brand and model) so that others can benefit.
Attached File(s)
Attached File  acm_nokia.tar.gz ( 10.79K ) Number of downloads: 48
 
Go to the top of the page
 
+Quote Post
Scot
post Oct 31 2005, 09:58 PM
Post #2





Group: Members
Posts: 39
Joined: 8-April 05
Member No.: 6,827



Ive got a 9500 on order, so hopefully will get to try this soon. Thanks!

scot
Go to the top of the page
 
+Quote Post
jpmatrix
post Nov 6 2005, 10:28 AM
Post #3





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



yeah! i'll try your method asap!
connexion is now working with my SLC3000 and Nokia 6630 via bluetooth
Go to the top of the page
 
+Quote Post
jpmatrix
post Nov 7 2005, 01:22 PM
Post #4





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



you know what ? i'm happy :-)

z_mentor, it works comme un charme !!!
i've just succeed with my SL-C3000 and Nokia 6630 ! no problem at all !!

thanks again and again!!

(i'm writing right now with the Z via Orange France UMTS ;-)
Go to the top of the page
 
+Quote Post
z_mentor
post Nov 8 2005, 02:52 AM
Post #5





Group: Members
Posts: 15
Joined: 24-April 05
Member No.: 6,981



I am extremely happy to hear that it worked for you :-)
Go to the top of the page
 
+Quote Post
rohanoberoi
post Nov 15 2005, 05:51 AM
Post #6





Group: Members
Posts: 22
Joined: 30-December 04
Member No.: 6,065



Any idea what might be needed to get this to work with a Panasonic cell phone with USB data cable?
Go to the top of the page
 
+Quote Post
z_mentor
post Nov 17 2005, 02:30 PM
Post #7





Group: Members
Posts: 15
Joined: 24-April 05
Member No.: 6,981



Please state the exact Pananasonic cell phone model and the usb data cable model so that I can look it up.

It is also important to plug the cell phone to your Zaurus and post here the output of the commands

dmesg

and

cat /proc/bus/usb/devices

If you can't do it from the Zaurus, you can always try plugging the cell phone to a pc with linux installed and try the same commands.

I am waiting for your results so that I can modify the module and make it work for you :-)
Go to the top of the page
 
+Quote Post
rohanoberoi
post Dec 23 2005, 06:49 AM
Post #8





Group: Members
Posts: 22
Joined: 30-December 04
Member No.: 6,065



Thanks for the information. I thought I would reply when I had tried your suggestions but the phone arrived without the USB cable included and I'm still trying to get my hands on it. Will post when I have it.

The exact model of the phone is VS7.

More when I have the cable.

All the best

QUOTE(z_mentor @ Nov 17 2005, 10:30 PM)
Please state the exact Pananasonic cell phone model and the usb data cable model so that I can look it up.

It is also important to plug the cell phone to your Zaurus and post here the output of the commands

dmesg

and

cat /proc/bus/usb/devices

If you can't do it from the Zaurus, you can always try plugging the cell phone to a pc with linux installed and try the same commands.

I am waiting for your results so that I can modify the module and make it work for you :-)
*
Go to the top of the page
 
+Quote Post
juzzam
post Jan 19 2006, 05:27 PM
Post #9





Group: Members
Posts: 1
Joined: 19-January 06
Member No.: 8,957



The /sbin/depmod step didn't work for me. This is the error I get:

[root@bobpete sbin]# ./depmod -a
depmod: ELF file /lib/modules/2.4.21-27.0.4.EL/kernel/drivers/usb/acm-nokia.o not for this architecture

I'm running Redhat enterprise edition. I have to run this version for work. The reason I'm trying to set this up is because I'm a consultant and the crappy wireless that most hotels provide is enough to drive one mad.

Thanks in advance,
Juzzam
Go to the top of the page
 
+Quote Post
drnick
post Jan 19 2006, 06:16 PM
Post #10





Group: Members
Posts: 74
Joined: 6-November 04
Member No.: 5,361



QUOTE(rohanoberoi @ Dec 23 2005, 02:49 PM)
Thanks for the information.  I thought I would reply when I had tried your suggestions but the phone arrived without the USB cable included and I'm still trying to get my hands on it.  Will post when I have it.

The exact model of the phone is VS7.

More when I have the cable.

All the best

QUOTE(z_mentor @ Nov 17 2005, 10:30 PM)
Please state the exact Pananasonic cell phone model and the usb data cable model so that I can look it up.

It is also important to plug the cell phone to your Zaurus and post here the output of the commands

dmesg

and

cat /proc/bus/usb/devices

If you can't do it from the Zaurus, you can always try plugging the cell phone to a pc with linux installed and try the same commands.

I am waiting for your results so that I can modify the module and make it work for you :-)
*

*




most USB data cables for phone are really USB->serial devices. To allow linux to see the serial bridge you will need usb->serial kernel modules. For the c3000 w/ sharp compat rom you will need the drivers from http://www.enm.bris.ac.uk/teaching/enjmr/Zaurus_SL-C3000/ AFAIK these are already included in PDAX.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th December 2014 - 02:49 AM