Saturday, July 21, 2012

ZTE MF190B on OpenSUSE 12.1

Create following two files in given paths  and that will do 

1) vim /etc/udev/rules.d/40-usb_modeswitch.rules
# ZTE MF190B 19d2:0146#
#disable cdrom
ACTION=="add", SUBSYSTEMS=="scsi", DRIVERS=="sr", ATTRS{manufacturer}=="ZTE", RUN:=""
#disable handeled by network manager
ATTRS{idVendor}=="19d2", ENV{ID_MM_DEVICE_IGNORE}="1"
#change usb mode
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0146", RUN+="/lib/udev/usb_modeswitch '%b/%k'"
#starting wvdial if you are using wvdial else comment this line
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0143", RUN+="/usr/bin/wvdial'"

2) vim /usr/share/usb_modeswitch/19d2:0146

#ZTE MF190B 19d2:0146#

DefaultVendor = 0x19d2
DefaultProduct = 0x0146

TargetVendor = 0x19d2
TargetProduct = 0x0143

3)This step is if you are using wvdial: sample /etc/wvdial.conf (for mobitel Sri Lanka)
[Dialer Defaults]
Init1 = ATZ
Stupid Mode = 1
Password = null
Phone = *99#
Modem Type = USB Modem
Check DNS = off
Dial Command = ATDT
Modem = /dev/ttyACM0
Init = AT+CGDCONT=1,"IP","mobitel3g"
Init1 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Username = null
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Auto Reconnect = off
Baud = 460800
Auto DNS = Off
dns1 =
Check Def Route = 1

NOTE: modify 'Phone' and 'Init' of wvdial.conf to match your providers configuration

No comments:

Post a Comment