Sunday, June 24, 2007

Eureka !!! Connecting to m1 3g vodafone modem in fedora7

Finally I managed to get my m1 3gsm modem working with my vaio fedora 7. This is the procedure I used for got it working.
My system is: Linux 2.6.21-1.3194.fc7 (fedora 7)
Wvdial version : WvDial 1.54.0

1) Create the following wvdial.conf
[Dialer Defaults]
Phone = *99#
Username = ppp@aplus.at
Password = ppp
Stupid Mode = 1
Dial Command = ATDT

[Dialer pin]

Init2 = AT+CPIN=5623

[Dialer A1]
Modem = /dev/ttyUSB0
Baud = 460800
Init3 = at+cgdcont=1,"ip","sunsurf"
ISDN = 0
Modem Type = Analog Modem


2) Then connect your vodafone mobile usb modem. (HUAWEI)
3) Wait till it is detected properly. (You can see logs from /var/log/messages)
4) Try to connect using wvdial.
wvdial --config wvdial.conf A1

For me it fails always like this
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.


4) Don't worry about that. Apply the following commands
modprobe uhci_hcd ehci_hcd ppp
modprobe usbserial vendor=0x12d1 product=0x1003
rmmod usb-storage


5) Now remove the usb modem again and plug in back.
6) Wait till it is detected and try the following command again.
wvdial --config wvdial.conf A1

This time you should be able to shout "Eureka!!".
You should get the following message

[root@localhost linux-scripts]# wvdial --config wvdial.conf A1
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: at+cgdcont=1,"ip","sunsurf"
at+cgdcont=1,"ip","sunsurf"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Jun 24 11:03:33 2007
--> pid of pppd: 5255
--> Using interface ppp0
--> local IP address 172.22.33.177
--> remote IP address 10.64.64.64
--> primary DNS address 10.11.12.13
--> secondary DNS address 10.11.12.14


Sorry I forgot one thing, You have to be a super user for doing this.

Hope you succeed on this. Else try plug it in back. It will work for sure.

Cheers!
References
1) Linux HSDPA Modem Huawai E220 with Gentoo (Provider: Ausrian A1) - QuirxiPedia
2) Vodafone 3G (UMTS) Howto

No comments: