zero-n
September 20th, 2010, 02:20 PM
This guide is not a full guide yet it will be by your help ;)
This guide is intended to be a full guide for USB,PCMCIA & phone modems for all Internet service provider in Sudan.
I don't have all kinds of different modems :???: , so if someone is interested to complete this guide with me He/She is welcome.
For Ubuntu 10.10:
usb_modeswitch is installed by default with the new Ubuntu release ( maverick meerkat ) so you can escape usb_modeswitch installation part.
Note:
For this guide i am using:
- Ubuntu 10.04 LTS.
- usb-modeswitch (http://www.draisberghof.de/usb_modeswitch/)
- sakis3g (http://www.sakis3g.org/).
Installing usb-modeswitch:
check this (http://ubuntuforums.org/showthread.php?p=9867386#post9867386) guide.
Installing sakis3g:
check this (http://ubuntuforums.org/showthread.php?p=9879795#post9879795) guide.
Update 12/08/2011:
GUI tools for Zain Connect and Sudani mDSL. (http://ubuntuforums.org/showthread.php?p=11143885#post11143885)
================================================
USB Modems
================================================
==========================
1- Zain's Huawei E1692 USB modem:
==========================
http://www.gambinoshop.it/shop/images/pccard_e1692.jpg
Zain Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for Huawei E1692 USB modem:
sudo gedit /etc/usb_modeswitch.d/12d1:1446
2- Paste the following lines & save the file:
#---------------------
# Zain's Huawei E1692:
#---------------------
DisableSwitching=0
EnableLogging=0
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x140c
MessageContent="55534243000000000000000000000011060000000000000000 000000000000"
CheckSuccess=5
3- Reboot your system
Zain Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
ttyUSB0<Info>: Device or resource busy
Modem Port Scan<*1>: USB0
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB2.
Modem configuration written to /etc/wvdial.conf.
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter any username & password as you like Zain connection have not username & password but wvdial will not accept blank user & password fields so we need to add another option which is Stupid Mode = 1 & the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
New PPPD = yes
Modem = /dev/ttyUSB2
Username = zain
Password = zain
Baud = 9600
Note: ttyUSB2 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Zain Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
2- Zain's WM500 USB modem:
==========================
http://i56.tinypic.com/142sp4y.jpg
Zain Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for WM500 USB modem:
sudo gedit /etc/usb_modeswitch.d/05c6:f000
2- Paste the following lines & save the file:
#------------------------
# Zain's WM500 USB modem:
#------------------------
DefaultVendor= 0x05c6
DefaultProduct= 0xf000
TargetVendor= 0x05c6
TargetProduct= 0x9000
CheckSuccess=20
MessageContent="5553424312345678000000000000061b000000020000000000 000000000000"
3- Make a shell script for loading specific modules need for the modem:
sudo gedit /etc/init.d/wm500
4-paste the following & save the file:
#!/bin/sh
modprobe -v option
sleep 2
echo "0x05c6 0x9000" >/sys/bus/usb-serial/drivers/option1/new_id
5- Give the script execution permission:
sudo chmod +x /etc/init.d/wm500
6- Reboot you system.
Zain Part 2&3: (Editing connection information + connect & disconnect)
I have tried to use wvdialconf without any luck it gave me this result:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- ERROR
ttyUSB1<*1>: ATQ0 V1 E1 &C1 -- ERROR
ttyUSB1<*1>: ATQ0 V1 E1 &D2 -- ERROR
ttyUSB1<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: Alpha
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &C1 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &D2 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: Alpha
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 +FCLASS=0"
Notice:
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &C1 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &D2 -- ERROR
& wvdial won't run successfully because of these errors.
so we need to use another tool Sakis3G.
1- Install sakis3g using this (http://ubuntuforums.org/showthread.php?t=1580427) guide or any other guide.
2- From your terminal run sakis3g:
sudo sakis3g
3- From sagis3g menu select Connect with 3G & enter your PIN number normally it's 0000.
4- Select Reported by your modem (INTERNET).
5- Zain uses blank username & password but leave username field empty this will lead to close connection attempt & going back to sakis3g main window so enter APN_USER
as your username & APN_PASS as your password.
Now if everything is ok you will see a message box contains:
WM500 connected to Zain SDN (63401)
==========================
3- Zain's Huwaei E220 USB modem:
==========================
http://i52.tinypic.com/dmy495.jpg
Zain Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for Huawei E220 USB modem:
sudo gedit /etc/usb_modeswitch.d/12d1:1003
2- Paste the following lines & save the file:
#------------------------------------------------
# Zain's Huawei E220, E230, E270, E870 USB modem:
#------------------------------------------------
DefaultVendor= 0x12d1
DefaultProduct=0x1003
TargetClass=0xff
CheckSuccess=20
HuaweiMode=1
3- Reboot you system.
Zain Part 2: (Editing connection)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter any username & password as you like Zain connection have not username & password but wvdial will not accept blank user & password fields so we need to add another option which is Stupid Mode = 1 & the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
New PPPD = yes
Modem = /dev/ttyUSB0
Username = zain
Password = zain
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Zain Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==============================
4- Canar's C-motech CNU-680 USB modem:
==============================
http://1.bp.blogspot.com/_SzZlNc2uTO0/S9PHPZr6HEI/AAAAAAAABak/og80q2c1P0w/s320/C-motech+CNU-680.JPG
Canar Part 1: (defining the modem)
1- Add a udev rules for the modem:
sudo gedit /etc/udev/rules.d/85-cmotech-qtmodem.rules
2- Paste the following lines & save the file:
# C-motech CNU-680 modem inserted before rdevchg
ACTION=="add", KERNEL=="sg*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="6803", RUN+="/usr/bin/cmotech-qtmodem-in -26627"
# C-motech CNU-680A modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p680A*", SYMLINK+="cmotechdata"
# C-motech CNU-680A modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p680A*", SYMLINK+="cmotechdata"
# C-motech CNU-680A modem inserted after rdevchg
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="680a", RUN+="/usr/bin/cmotech-qtmodem-in 26634"
# C-motech CNU-680A modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/680a/0", RUN+="/usr/bin/cmotech-qtmodem-out 26634"
# C-motech CNU-680 modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p6803*", SYMLINK+="cmotechdata"
# C-motech CNU-680 modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="00", ATTRS{modalias}=="usb:v16D8p6803*", SYMLINK+="cmotechdata"
# C-motech CNU-680 modem dm interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p6803*", SYMLINK+="cmotechdm"
# C-motech CNU-680 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="6803", RUN+="/usr/bin/cmotech-qtmodem-in 26627"
# C-motech CNU-680 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/6803/0", RUN+="/usr/bin/cmotech-qtmodem-out 26627"
# C-motech CNU-550 modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p5543*", SYMLINK+="cmotechdata"
# C-motech CNU-550 modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p5543*", SYMLINK+="cmotechdata"
# C-motech CNU-550 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="5543", RUN+="/usr/bin/cmotech-qtmodem-in 21827"
# C-motech CNU-550 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/5543/0", RUN+="/usr/bin/cmotech-qtmodem-out 21827"
# C-motech CNM-650 modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p6533*", SYMLINK+="cmotechdata"
# C-motech CNM-650 modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p6533*", SYMLINK+="cmotechdata"
# C-motech CNM-650 modem dm interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="03", ATTRS{modalias}=="usb:v16D8p6533*", SYMLINK+="cmotechdm"
# C-motech CNM-650 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="6533", RUN+="/usr/bin/cmotech-qtmodem-in 25907"
# C-motech CNM-650 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/6533/0", RUN+="/usr/bin/cmotech-qtmodem-out 25907"
# C-motech CGU628 modem inserted before rdevchg
ACTION=="add", KERNEL=="sg*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="628a", RUN+="/usr/bin/cmotech-qtmodem-in 25226"
# C-motech CGU628 modem data interface
KERNEL=="tty[AU]*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="00", ATTRS{modalias}=="usb:v16D8p628a*", SYMLINK+="cmotechdata"
# C-motech CGU628 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="628a", RUN+="/usr/bin/cmotech-qtmodem-in 25226"
# C-motech CGU628 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/628a/0", RUN+="/usr/bin/cmotech-qtmodem-out 25226"
3- Make a shell script for loading specific modules need for the modem:
sudo gedit /etc/init.d/cmotech
4- paste the following:
#!/bin/sh
case "$1" in
start)
modprobe sg
modprobe usb-storage
modprobe cdc_acm
modprobe option
echo -n "0x16d8 0x6803" > /sys/bus/usb-serial/drivers/option1/new_id
echo -n "0x16d8 0x680a" > /sys/bus/usb-serial/drivers/option1/new_id
echo -n "0x16d8 0x6533" > /sys/bus/usb-serial/drivers/option1/new_id
echo -n "0x16d8 0x5543" > /sys/bus/usb-serial/drivers/option1/new_id
;;
esac
5- Give the script execution permission:
sudo chmod +x /etc/init.d/cmotech
6- Reboot you system.
Canar Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: C-MOTECH Co., Ltd.
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: USB2
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
add your username,password & phone number ( #777 )
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
ISDN = 0
Modem Type = Analog Modem
Phone = #777
Modem = /dev/ttyUSB0
Username = *******@canar.go
Carrier Check = no
Password = ********
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Canar Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
5- Sudani's ZTE AC8700 USB modem:
==========================
http://www.ztemt.com.cn/ennewzte/uploadimages/1199886659638.jpg
Sudani Part 1: (defining the modem)
No need for defining cause the device will be recognized as a modem, no CD or USB storage included.
Sudani Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: USB2
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
add sudani as your username & password, the phone number is #777
[Dialer Defaults]
Modem = /dev/ttyUSB0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Phone = #777
New PPPD = yes
ISDN = 0
Username = sudani
Password = sudani
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Sudani Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
6- Sudani's ZTE AC2726 USB modem:
==========================
http://image.ec21.com/image/mai8crystal/simg_GC03982061_CA03982214/ZTE_AC2726_Modem.jpg
Sudani Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for ZTE AC2726 USB modem:
sudo gedit /etc/usb_modeswitch.d/19d2:fff5
2- Paste the following lines & save the file:
#-------------------
# Zain's ZTE AC2726:
#-------------------
DefaultVendor= 0x19d2
DefaultProduct=0xfff5
TargetVendor= 0x19d2
TargetProductList="fff1,ffff"
MessageContent="5553424312345678c00000008000069f030000000000000000 000000000000"
CheckSuccess=20
3- Reboot your system
Sudani Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter sudani as the username , sudani as the password & #777 as the phone number the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Modem = /dev/ttyUSB0
Username = sudani
Password = sudani
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Sudani Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
7- Sudani's Huawei E1750 USB modem:
==========================
No picture cause forum rules allows you to include 8 pictures only in one post but you can use the following link to see the picture:
http://i51.tinypic.com/f9o1y.jpg
Sudani Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for Huawei E1750 USB modem:
sudo gedit /etc/usb_modeswitch.d/12d1:1446
2- Paste the following lines & save the file:
#----------------------------
# Sudani's Huawei E1750 :
#----------------------------
DefaultVendor= 0x12d1
DefaultProduct=0x1446
TargetVendor= 0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,14ac"
CheckSuccess=20
MessageContent="55534243123456780000000000000011060000000000000000 000000000000"
3- Reboot your system
Sudani Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter sudani as the username , sudani as the password & *99# as the phone number the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = sudani
Password = sudani
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Sudani Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
This guide is intended to be a full guide for USB,PCMCIA & phone modems for all Internet service provider in Sudan.
I don't have all kinds of different modems :???: , so if someone is interested to complete this guide with me He/She is welcome.
For Ubuntu 10.10:
usb_modeswitch is installed by default with the new Ubuntu release ( maverick meerkat ) so you can escape usb_modeswitch installation part.
Note:
For this guide i am using:
- Ubuntu 10.04 LTS.
- usb-modeswitch (http://www.draisberghof.de/usb_modeswitch/)
- sakis3g (http://www.sakis3g.org/).
Installing usb-modeswitch:
check this (http://ubuntuforums.org/showthread.php?p=9867386#post9867386) guide.
Installing sakis3g:
check this (http://ubuntuforums.org/showthread.php?p=9879795#post9879795) guide.
Update 12/08/2011:
GUI tools for Zain Connect and Sudani mDSL. (http://ubuntuforums.org/showthread.php?p=11143885#post11143885)
================================================
USB Modems
================================================
==========================
1- Zain's Huawei E1692 USB modem:
==========================
http://www.gambinoshop.it/shop/images/pccard_e1692.jpg
Zain Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for Huawei E1692 USB modem:
sudo gedit /etc/usb_modeswitch.d/12d1:1446
2- Paste the following lines & save the file:
#---------------------
# Zain's Huawei E1692:
#---------------------
DisableSwitching=0
EnableLogging=0
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x140c
MessageContent="55534243000000000000000000000011060000000000000000 000000000000"
CheckSuccess=5
3- Reboot your system
Zain Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
ttyUSB0<Info>: Device or resource busy
Modem Port Scan<*1>: USB0
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB2.
Modem configuration written to /etc/wvdial.conf.
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter any username & password as you like Zain connection have not username & password but wvdial will not accept blank user & password fields so we need to add another option which is Stupid Mode = 1 & the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
New PPPD = yes
Modem = /dev/ttyUSB2
Username = zain
Password = zain
Baud = 9600
Note: ttyUSB2 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Zain Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
2- Zain's WM500 USB modem:
==========================
http://i56.tinypic.com/142sp4y.jpg
Zain Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for WM500 USB modem:
sudo gedit /etc/usb_modeswitch.d/05c6:f000
2- Paste the following lines & save the file:
#------------------------
# Zain's WM500 USB modem:
#------------------------
DefaultVendor= 0x05c6
DefaultProduct= 0xf000
TargetVendor= 0x05c6
TargetProduct= 0x9000
CheckSuccess=20
MessageContent="5553424312345678000000000000061b000000020000000000 000000000000"
3- Make a shell script for loading specific modules need for the modem:
sudo gedit /etc/init.d/wm500
4-paste the following & save the file:
#!/bin/sh
modprobe -v option
sleep 2
echo "0x05c6 0x9000" >/sys/bus/usb-serial/drivers/option1/new_id
5- Give the script execution permission:
sudo chmod +x /etc/init.d/wm500
6- Reboot you system.
Zain Part 2&3: (Editing connection information + connect & disconnect)
I have tried to use wvdialconf without any luck it gave me this result:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- ERROR
ttyUSB1<*1>: ATQ0 V1 E1 &C1 -- ERROR
ttyUSB1<*1>: ATQ0 V1 E1 &D2 -- ERROR
ttyUSB1<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: Alpha
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &C1 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &D2 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: Alpha
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 +FCLASS=0"
Notice:
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &C1 -- ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &D2 -- ERROR
& wvdial won't run successfully because of these errors.
so we need to use another tool Sakis3G.
1- Install sakis3g using this (http://ubuntuforums.org/showthread.php?t=1580427) guide or any other guide.
2- From your terminal run sakis3g:
sudo sakis3g
3- From sagis3g menu select Connect with 3G & enter your PIN number normally it's 0000.
4- Select Reported by your modem (INTERNET).
5- Zain uses blank username & password but leave username field empty this will lead to close connection attempt & going back to sakis3g main window so enter APN_USER
as your username & APN_PASS as your password.
Now if everything is ok you will see a message box contains:
WM500 connected to Zain SDN (63401)
==========================
3- Zain's Huwaei E220 USB modem:
==========================
http://i52.tinypic.com/dmy495.jpg
Zain Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for Huawei E220 USB modem:
sudo gedit /etc/usb_modeswitch.d/12d1:1003
2- Paste the following lines & save the file:
#------------------------------------------------
# Zain's Huawei E220, E230, E270, E870 USB modem:
#------------------------------------------------
DefaultVendor= 0x12d1
DefaultProduct=0x1003
TargetClass=0xff
CheckSuccess=20
HuaweiMode=1
3- Reboot you system.
Zain Part 2: (Editing connection)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter any username & password as you like Zain connection have not username & password but wvdial will not accept blank user & password fields so we need to add another option which is Stupid Mode = 1 & the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
New PPPD = yes
Modem = /dev/ttyUSB0
Username = zain
Password = zain
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Zain Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==============================
4- Canar's C-motech CNU-680 USB modem:
==============================
http://1.bp.blogspot.com/_SzZlNc2uTO0/S9PHPZr6HEI/AAAAAAAABak/og80q2c1P0w/s320/C-motech+CNU-680.JPG
Canar Part 1: (defining the modem)
1- Add a udev rules for the modem:
sudo gedit /etc/udev/rules.d/85-cmotech-qtmodem.rules
2- Paste the following lines & save the file:
# C-motech CNU-680 modem inserted before rdevchg
ACTION=="add", KERNEL=="sg*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="6803", RUN+="/usr/bin/cmotech-qtmodem-in -26627"
# C-motech CNU-680A modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p680A*", SYMLINK+="cmotechdata"
# C-motech CNU-680A modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p680A*", SYMLINK+="cmotechdata"
# C-motech CNU-680A modem inserted after rdevchg
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="680a", RUN+="/usr/bin/cmotech-qtmodem-in 26634"
# C-motech CNU-680A modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/680a/0", RUN+="/usr/bin/cmotech-qtmodem-out 26634"
# C-motech CNU-680 modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p6803*", SYMLINK+="cmotechdata"
# C-motech CNU-680 modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="00", ATTRS{modalias}=="usb:v16D8p6803*", SYMLINK+="cmotechdata"
# C-motech CNU-680 modem dm interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p6803*", SYMLINK+="cmotechdm"
# C-motech CNU-680 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="6803", RUN+="/usr/bin/cmotech-qtmodem-in 26627"
# C-motech CNU-680 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/6803/0", RUN+="/usr/bin/cmotech-qtmodem-out 26627"
# C-motech CNU-550 modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p5543*", SYMLINK+="cmotechdata"
# C-motech CNU-550 modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p5543*", SYMLINK+="cmotechdata"
# C-motech CNU-550 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="5543", RUN+="/usr/bin/cmotech-qtmodem-in 21827"
# C-motech CNU-550 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/5543/0", RUN+="/usr/bin/cmotech-qtmodem-out 21827"
# C-motech CNM-650 modem data interface
KERNEL=="ttyACM*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v16D8p6533*", SYMLINK+="cmotechdata"
# C-motech CNM-650 modem data interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="01", ATTRS{modalias}=="usb:v16D8p6533*", SYMLINK+="cmotechdata"
# C-motech CNM-650 modem dm interface
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="03", ATTRS{modalias}=="usb:v16D8p6533*", SYMLINK+="cmotechdm"
# C-motech CNM-650 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="6533", RUN+="/usr/bin/cmotech-qtmodem-in 25907"
# C-motech CNM-650 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/6533/0", RUN+="/usr/bin/cmotech-qtmodem-out 25907"
# C-motech CGU628 modem inserted before rdevchg
ACTION=="add", KERNEL=="sg*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="628a", RUN+="/usr/bin/cmotech-qtmodem-in 25226"
# C-motech CGU628 modem data interface
KERNEL=="tty[AU]*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="00", ATTRS{modalias}=="usb:v16D8p628a*", SYMLINK+="cmotechdata"
# C-motech CGU628 modem inserted
ACTION=="add", KERNEL=="tty*", SUBSYSTEMS=="usb", SYSFS{idVendor}=="16d8", SYSFS{idProduct}=="628a", RUN+="/usr/bin/cmotech-qtmodem-in 25226"
# C-motech CGU628 modem removed
ACTION=="remove", SUBSYSTEMS=="usb", ENV{PRODUCT}=="16d8/628a/0", RUN+="/usr/bin/cmotech-qtmodem-out 25226"
3- Make a shell script for loading specific modules need for the modem:
sudo gedit /etc/init.d/cmotech
4- paste the following:
#!/bin/sh
case "$1" in
start)
modprobe sg
modprobe usb-storage
modprobe cdc_acm
modprobe option
echo -n "0x16d8 0x6803" > /sys/bus/usb-serial/drivers/option1/new_id
echo -n "0x16d8 0x680a" > /sys/bus/usb-serial/drivers/option1/new_id
echo -n "0x16d8 0x6533" > /sys/bus/usb-serial/drivers/option1/new_id
echo -n "0x16d8 0x5543" > /sys/bus/usb-serial/drivers/option1/new_id
;;
esac
5- Give the script execution permission:
sudo chmod +x /etc/init.d/cmotech
6- Reboot you system.
Canar Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: C-MOTECH Co., Ltd.
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: USB2
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
add your username,password & phone number ( #777 )
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
ISDN = 0
Modem Type = Analog Modem
Phone = #777
Modem = /dev/ttyUSB0
Username = *******@canar.go
Carrier Check = no
Password = ********
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Canar Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
5- Sudani's ZTE AC8700 USB modem:
==========================
http://www.ztemt.com.cn/ennewzte/uploadimages/1199886659638.jpg
Sudani Part 1: (defining the modem)
No need for defining cause the device will be recognized as a modem, no CD or USB storage included.
Sudani Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: USB2
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
add sudani as your username & password, the phone number is #777
[Dialer Defaults]
Modem = /dev/ttyUSB0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Phone = #777
New PPPD = yes
ISDN = 0
Username = sudani
Password = sudani
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Sudani Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
6- Sudani's ZTE AC2726 USB modem:
==========================
http://image.ec21.com/image/mai8crystal/simg_GC03982061_CA03982214/ZTE_AC2726_Modem.jpg
Sudani Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for ZTE AC2726 USB modem:
sudo gedit /etc/usb_modeswitch.d/19d2:fff5
2- Paste the following lines & save the file:
#-------------------
# Zain's ZTE AC2726:
#-------------------
DefaultVendor= 0x19d2
DefaultProduct=0xfff5
TargetVendor= 0x19d2
TargetProductList="fff1,ffff"
MessageContent="5553424312345678c00000008000069f030000000000000000 000000000000"
CheckSuccess=20
3- Reboot your system
Sudani Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter sudani as the username , sudani as the password & #777 as the phone number the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Modem = /dev/ttyUSB0
Username = sudani
Password = sudani
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Sudani Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C
==========================
7- Sudani's Huawei E1750 USB modem:
==========================
No picture cause forum rules allows you to include 8 pictures only in one post but you can use the following link to see the picture:
http://i51.tinypic.com/f9o1y.jpg
Sudani Part 1: (defining the modem)
1- Add a configuration usb_modeswitch file for Huawei E1750 USB modem:
sudo gedit /etc/usb_modeswitch.d/12d1:1446
2- Paste the following lines & save the file:
#----------------------------
# Sudani's Huawei E1750 :
#----------------------------
DefaultVendor= 0x12d1
DefaultProduct=0x1446
TargetVendor= 0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,14ac"
CheckSuccess=20
MessageContent="55534243123456780000000000000011060000000000000000 000000000000"
3- Reboot your system
Sudani Part 2: (Editing connection information)
You can use your preferable program, i will use wvdial , check this (http://ubuntuforums.org/showthread.php?p=8523823#post8523823) guide for installing wvdial.
1- Run wvdial configuration tool:
sudo wvdialconf
You see output like this:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
2- Edit wvdial.conf:
sudo gedit /etc/wvdial.conf
enter sudani as the username , sudani as the password & *99# as the phone number the file will be:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = sudani
Password = sudani
Baud = 9600
Note: ttyUSB0 is my modem this value may differ in your system (wvdialconf will add it automatically so never try to change it).
Sudani Part 3: (connect & disconnect)
connect:
sudo wvdial
disconnect:
press Ctrl+C