piątek, 5 marca 2010

o2 Prepaid ZTE MF100 @Gentoo

Well, I cannot live without Internet... So the first thing I did in Paderborn was to search for any Internet provider -- thus I found o2 prepaid offer pretty enough to try. It tooks me last 3 days...

Let's begin.
Forget about windows stuff -- the stick will work (sometimes), the software sucks, it differs from the included handbook, and you will get your hair off trying to figure out how it really works.

Let's try Ubuntu. First of all, the stick is recognized as a cd-rom (surprise!). After searching a lot, you can find usb_modeswitch utilty. Don't use it. You don't have to. Just eject (not unmount) the device. After a few seconds, you will see modem connection configuration screen. You run it by 4-click method, put the pin code and pray -- yes, I manage it to work only once. Surprised?

Now the funny thing. I don't want to use Ubuntu. And Windows XP on my VirtualBox at all. So I needed to find a way to connect with this o2 stick on my Gentoo box.

I don't want to describe step by step configuration -- you will find a lot of similar solutions on the web. Let me describe only some specific things:

1) using wvdial I have:

[Dialer o2]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = ;
Init1 = ATZ
Password = ;
Modem = /dev/ttyUSB2
Baud = 9600
Stupid Mode = 1

[Dialer pin]
Init3 = At+CPIN=[yourpin]
Modem = /dev/ttyUSB2

2) steps to connect to the Internet:
- put your stick in
- wait
- try to eject proper device: /dev/sr0 or so
- wait, in a few seconds the modem will appear
- now run wvdial pin to unlock the modem
- wait for green light from the modem
- try wvdial o2

If success, the modem will connect, ppp0 will get dns servers etc. etc.

You don't need to even edit /etc/conf.d/net etc. Just use wvdial.

For those who want to digg deeper: the device is ZTE MF100, with lsusb it is recognized as 19d2:2000, and after eject: 19d2:0031.

Now I need to create a script to do all the stuff automagically:)

Brak komentarzy:

Prześlij komentarz