Author Topic: Howto: Dialup/gprs Via Usb And Nokia Mobile Phones  (Read 5093 times)

z_mentor

  • Newbie
  • *
  • Posts: 15
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« on: October 30, 2005, 11:21:31 am »
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: https://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.
« Last Edit: November 17, 2005, 05:31:47 pm by z_mentor »

Scot

  • Newbie
  • *
  • Posts: 39
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #1 on: November 01, 2005, 12:58:03 am »
Ive got a 9500 on order, so hopefully will get to try this soon. Thanks!

scot

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #2 on: November 06, 2005, 01:28:22 pm »
yeah! i'll try your method asap!
connexion is now working with my SLC3000 and Nokia 6630 via bluetooth
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #3 on: November 07, 2005, 04:22:36 pm »
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 ;-)
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

z_mentor

  • Newbie
  • *
  • Posts: 15
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #4 on: November 08, 2005, 05:52:24 am »
I am extremely happy to hear that it worked for you :-)

rohanoberoi

  • Newbie
  • *
  • Posts: 22
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #5 on: November 15, 2005, 08:51:48 am »
Any idea what might be needed to get this to work with a Panasonic cell phone with USB data cable?
SL-C1000 Sharp ROM

z_mentor

  • Newbie
  • *
  • Posts: 15
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #6 on: November 17, 2005, 05:30:12 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 :-)

rohanoberoi

  • Newbie
  • *
  • Posts: 22
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #7 on: December 23, 2005, 09:49:56 am »
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
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 :-)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104095\"][{POST_SNAPBACK}][/a][/div]
SL-C1000 Sharp ROM

juzzam

  • Newbie
  • *
  • Posts: 1
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #8 on: January 19, 2006, 08:27:49 pm »
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

drnick

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Howto: Dialup/gprs Via Usb And Nokia Mobile Phones
« Reply #9 on: January 19, 2006, 09:16:00 pm »
Quote
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
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 :-)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108217\"][{POST_SNAPBACK}][/a][/div]


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 [a href=\"http://www.enm.bris.ac.uk/teaching/enjmr/Zaurus_SL-C3000/]http://www.enm.bris.ac.uk/teaching/enjmr/Zaurus_SL-C3000/[/url] AFAIK these are already included in PDAX.
Current Toshiba Libretto U100 Owner
Previous SL-C3000 Owner
Waiting for next Z.  Will still hang out here to offer help when I can.