PDA

View Full Version : How to run Zain, Canar & Sudani modems in Ubuntu


zero-n
September 20th, 2010, 09:20 AM
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)


================================================US B 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

moeyas
October 10th, 2010, 02:02 PM
really nice topic zero-n,
thanks a lot fore your help
i have zain wm500, and i solved by installing ndiswrapper , then get the driver from my windows>program files> zain>driver> bssmd.inf & bsser.inf installed by the ndiswrapper from system>administration>windows wireless driver , then configure the connection through mobile wireless>add>>>>>>>>>>>> then follow up the steps . note at the APN YOU SHOULD WRITE PPP
BTW I AM USING THE UBUNTO 10.10 RC
I AM SO GLAD TO FIND YOU SHABAB
C U ALL :P

zero-n
October 10th, 2010, 05:54 PM
Thanks moeyas (http://ubuntuforums.org/member.php?u=1159427)

if you have experience with another modem (USB,PCMCIA)you can send how you manage to connect with Ubuntu in the post or email it to me, so manage to complete this guide to provide an easy to follow guide.

Salam

yasir.elsharif
November 24th, 2010, 02:42 AM
Thanks zero-n (http://ubuntuforums.org/member.php?u=762650),
As usual you are amazing, very well covered topic and very organized.
I just have a small question I would be very happy if you could help me on.
How to make a voice phone call using the zain modem or any modem, especially the usb ones, the way their own programs do that on windows. "their program let you make a call and send requests like *888# for checking credit"
Thanx in advance

zero-n
November 24th, 2010, 08:54 AM
Thanks

I have tried to do this but till now it didn't work, but i am still trying if you find out how to do it let me :)

i hope that you can help me to complete this guide too.

معاذ ابن السودان
December 7th, 2010, 02:23 PM
هذا والله افضل شرح ان شفت عن شرح تعريف سوداني في ابنتو والله انا معجب جدا بهذا العمل المتق ن والشامل لكل اتواع الاتصال بالنت في السودان وصدق المثل القائل اماحك جلدك مثل ظفرك
جزاكم الله خيرا[/size]

Dagash
December 11th, 2010, 06:18 AM
for Zain's WM500 USB modem

firstly , what exactly you write in the APN_USER & APN_PASS spaces ....??

i wrote APN_USER & APN_PASS .. then complete the instructions and get the code :

WM500 connected to Zain SDN (63401)
....
then again sakis3g appeare a window that want to choose an action for sakis3g script follow . what i should decide ? and after that how can i connect to the internet ?

zero-n
December 11th, 2010, 06:52 AM
hi Dagash (http://ubuntuforums.org/member.php?u=1182595),
& welcome to Ubuntu forums.


WM500 connected to Zain SDN (63401)means that your are now connected to the network, & sakis3g should show window that enables you to disconnect as i remember (i don't have a WM500 modem).

have you open your browser and checked if the internet is connected or not :D.

zazlox
December 13th, 2010, 07:53 PM
Thanks a lot for sharing , useful topic

Allah bless you and reward you as well

toloykhan
August 11th, 2011, 09:57 PM
hello there
I just wana to add the newer zain connect GUI for linux .. it is just like the one for windows and very easy to install ...
first download the file below :

http://www.4shared.com/file/p8ovWezb/zain_linux.html


then from your terminal change the directory with the "cd" command to the downloaded linux directory
cd "path to source directory"
then
type in the terminal : ./install
and all will go fine
when finsh close the terminal and go to your desktop and enjoy the zain connect GUI.

sorry I use your threat to post this zero-n, I don't wanna distruct users between threats.
regards

zero-n
August 12th, 2011, 04:27 AM
Hi toloykhan (http://ubuntuforums.org/member.php?u=1054960),

Thanks for your contribution.

I need to know what modem models are supported by this application. ;)

toloykhan
August 12th, 2011, 04:07 PM
HI zero-n
I had just bought zain connect Hawawi E77 and found that files in it. but I think all Hawawi other modems are supported like E220, E169 and E1690. But as I mentioned above I used E77 and it work just fine.

zero-n
August 12th, 2011, 05:49 PM
Thanks toloykhan (http://ubuntuforums.org/member.php?u=1054960)

I've added a post included your package and another package for Sudani mDSL you can check it from here (http://ubuntuforums.org/showthread.php?t=1823480).

Salam.