Using the modem in KDDI phones for mobile Internet connectivity

A 2.4 Mbps connection with a mobile phone

This is related to an earlier blog I wrote about connecting my W41H up. I have recently bought a new W52T and found the setup is identical so I though I would elaborate on my earlier post within the context of a Gentoo install. 

I\'m using wvdial and the 2.6.19-r5 kernel.

Kernel Configuration

Device Drivers-->USB support
        USB Modem (CDC ACM) support
    Device Drivers-->Network device support-->
        All PPP and SLIP/CSLIP Options

Grab wvdial 

emerge -av wvdial

Add new udev rule (Optional Step)

Add the following line to /etc/udev/rules.d/40-kddi.rule 

KERNEL=="ttyACM[0-9]",             NAME="%k", GROUP="dialout",                 OPTIONS="last_rule"

Now reload the udev rules and restart udev: 

udevcontrol reload_rules
udevstart

Configure wvdial

Step One: Plug the phone into the laptop using the cable that came with the phone.

Step Two: On the phone choose "Data Comm/Trans" within the dialog that pops up. If this does not happen you will need to search for the "Data Comm/Trans" option some where under USB setup on your phone.

Step Three: On your Linux box command line type the following: dmesg | grep acm

Look for something similar to this. In particular take note of ttyACMx:

[4294919.967000] cdc_acm 1-1:1.0: ttyACM0: USB ACM device

Step Five: Configure a ppp conection by creating /etc/wvdial.comf with the following contents:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2

Modem Type = USB
Modem ISDN = 0
Password = au
Username = au@au-win.ne.jp
Modem = /dev/ttyACM0
Baud = 460800
Phone = *99**24#

Step Six: Start your wvdial connection by typing wvdial as root on the command line. To end the connection press ctrl+c. The amount of time the connection was up will be shown in the output of the wvdial command.

If you would like to see how many packets you have sent and received you can type ppstat -a whilst the connection is up.

And that\'s it :-)

Regards, Bawdo

tags: evdev, Linux

Tue 27 Feb 2007, 14:20

0 comments

Back