Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: How to run Zain, Canar & Sudani modems in Ubuntu

  1. #1
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    How to run Zain, Canar & Sudani modems in Ubuntu

    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
    - sakis3g.

    Installing usb-modeswitch:
    check this guide.

    Installing sakis3g:
    check this guide.

    Update 12/08/2011:

    GUI tools for Zain Connect and Sudani mDSL.


    ================================================
    USB Modems
    ================================================





    ==========================
    1- Zain's Huawei E1692 USB modem
    :
    ======================
    ====

    Code:
    Zain Part 1: (defining the modem)
    1- Add a configuration usb_modeswitch file for Huawei E1692 USB modem:
    
    Code:
    sudo gedit /etc/usb_modeswitch.d/12d1:1446
    2- Paste the following lines & save the file:
    Code:
    #---------------------
    # Zain's Huawei E1692:
    #---------------------
    
    DisableSwitching=0
    EnableLogging=0
    
    DefaultVendor=  0x12d1
    DefaultProduct= 0x1446
    
    TargetVendor=   0x12d1
    TargetProduct=  0x140c
    
    MessageContent="55534243000000000000000000000011060000000000000000000000000000"
    
    CheckSuccess=5
    3- Reboot your system Zain Part 2: (Editing connection information) You can use your preferable program, i will use wvdial , check this guide for installing wvdial. 1- Run wvdial configuration tool:
    Code:
    sudo wvdialconf
    You see output like this:
    Code:
    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:
    Code:
    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:
    Code:
    [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:
    Code:
    sudo wvdial
    disconnect:
    Code:
    press Ctrl+C
    ==========================
    2- Zain's WM500 USB modem
    :
    ======================
    ====

    Code:
    Zain Part 1: (defining the modem)
    1- Add a configuration usb_modeswitch file for WM500 USB modem:
    
    Code:
    sudo gedit /etc/usb_modeswitch.d/05c6:f000
    2- Paste the following lines & save the file:
    Code:
    #------------------------
    # Zain's WM500 USB modem:
    #------------------------
    
    DefaultVendor=  0x05c6
    DefaultProduct= 0xf000
    
    TargetVendor=   0x05c6
    TargetProduct=  0x9000
    
    CheckSuccess=20
    
    MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
    3- Make a shell script for loading specific modules need for the modem:
    Code:
    sudo gedit /etc/init.d/wm500
    4-paste the following & save the file:
    Code:
    #!/bin/sh
    modprobe -v option
    sleep 2
    echo "0x05c6 0x9000" >/sys/bus/usb-serial/drivers/option1/new_id
    5- Give the script execution permission:
    Code:
    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:
    Code:
    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 guide or any other guide. 2- From your terminal run sakis3g:
    Code:
    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:
    Code:
    WM500  connected to Zain SDN (63401)
    ==========================
    3- Zain's Huwaei E220 USB modem
    :
    ======================
    ====

    Code:
    Zain Part 1: (defining the modem)
    1- Add a configuration usb_modeswitch file for Huawei E220 USB modem:
    
    Code:
    sudo gedit /etc/usb_modeswitch.d/12d1:1003
    2- Paste the following lines & save the file:
    Code:
    #------------------------------------------------
    # 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 guide for installing wvdial. 1- Run wvdial configuration tool:
    Code:
    sudo wvdialconf
    You see output like this:
    Code:
    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:
    Code:
    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:
    Code:
    [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:
    Code:
    sudo wvdial
    disconnect:
    Code:
    press Ctrl+C
    ==============================
    4- Canar's C-motech CNU-680 USB modem
    :
    =======================
    =======

    Code:
    Canar Part 1: (defining the modem)
    1- Add a udev rules for the modem:
    
    Code:
    sudo gedit /etc/udev/rules.d/85-cmotech-qtmodem.rules
    2- Paste the following lines & save the file:
    Code:
    # 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:
    Code:
    sudo gedit /etc/init.d/cmotech
    4- paste the following:
    Code:
    #!/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:
    Code:
    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 guide for installing wvdial. 1- Run wvdial configuration tool:
    Code:
    sudo wvdialconf
    You see output like this:
    Code:
    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:
    Code:
    sudo gedit /etc/wvdial.conf
    add your username,password & phone number ( #777 )
    Code:
    [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:
    Code:
    sudo wvdial
    disconnect:
    Code:
    press Ctrl+C
    ==========================
    5- Sudani's ZTE AC8700 USB modem
    :
    =======================
    ===

    Code:
    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 guide for installing wvdial.
    
    1- Run wvdial configuration tool:
    
    Code:
    sudo wvdialconf
    You see output like this:
    Code:
    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:
    Code:
    sudo gedit /etc/wvdial.conf
    add sudani as your username & password, the phone number is #777
    Code:
    [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:
    Code:
    sudo wvdial
    disconnect:
    Code:
    press Ctrl+C
    ==========================
    6- Sudani's ZTE AC2726 USB modem
    :
    ======================
    ====

    Code:
    Sudani Part 1: (defining the modem)
    1- Add a configuration usb_modeswitch file for ZTE AC2726 USB modem:
    
    Code:
    sudo gedit /etc/usb_modeswitch.d/19d2:fff5
    2- Paste the following lines & save the file:
    Code:
    #-------------------
    # Zain's ZTE AC2726:
    #-------------------
    
    DefaultVendor= 0x19d2
    DefaultProduct=0xfff5
    
    TargetVendor=  0x19d2
    TargetProductList="fff1,ffff"
    
    MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"
    
    CheckSuccess=20
    3- Reboot your system Sudani Part 2: (Editing connection information) You can use your preferable program, i will use wvdial , check this guide for installing wvdial. 1- Run wvdial configuration tool:
    Code:
    sudo wvdialconf
    You see output like this:
    Code:
    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:
    Code:
    sudo gedit /etc/wvdial.conf
    enter sudani as the username , sudani as the password & #777 as the phone number the file will be:
    Code:
    [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:
    Code:
    sudo wvdial
    disconnect:
    Code:
    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
    Code:
    Sudani Part 1: (defining the modem)
    1- Add a configuration usb_modeswitch file for Huawei E1750 USB modem:
    
    Code:
    sudo gedit /etc/usb_modeswitch.d/12d1:1446
    2- Paste the following lines & save the file:
    Code:
    #----------------------------
    # Sudani's Huawei E1750 :
    #----------------------------
    
    DefaultVendor= 0x12d1
    DefaultProduct=0x1446
    
    TargetVendor=  0x12d1
    TargetProductList="1001,1406,140b,140c,1412,141b,14ac"
    
    CheckSuccess=20
    
    MessageContent="55534243123456780000000000000011060000000000000000000000000000"
    3- Reboot your system Sudani Part 2: (Editing connection information) You can use your preferable program, i will use wvdial , check this guide for installing wvdial. 1- Run wvdial configuration tool:
    Code:
    sudo wvdialconf
    You see output like this:
    Code:
    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:
    Code:
    sudo gedit /etc/wvdial.conf
    enter sudani as the username , sudani as the password & *99# as the phone number the file will be:
    Code:
    [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:
    Code:
    sudo wvdial
    disconnect:
    Code:
    press Ctrl+C
    Last edited by zero-n; August 12th, 2011 at 10:23 AM. Reason: Add GUI tool link

  2. #2
    Join Date
    Oct 2010
    Location
    BAHRY
    Beans
    1
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    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

  3. #3
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    Thanks moeyas

    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

  4. #4
    Join Date
    Dec 2008
    Location
    Abu Dhabi, UAE
    Beans
    50
    Distro
    Ubuntu

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    Thanks zero-n,
    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

  5. #5
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    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.

  6. #6

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    هذا والله افضل شرح ان شفت عن شرح تعريف سوداني في ابنتو والله انا معجب جدا بهذا العمل المتق ن والشامل لكل اتواع الاتصال بالنت في السودان وصدق المثل القائل ا[bماحك جلدك مثل ظفرك
    جزاكم الله خيرا
    [/b]

  7. #7
    Join Date
    Nov 2010
    Beans
    3

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    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 ?

  8. #8
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    hi Dagash,
    & welcome to Ubuntu forums.


    Code:
    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 .

  9. #9
    Join Date
    Dec 2009
    Location
    morocco
    Beans
    40
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    Thanks a lot for sharing , useful topic

    Allah bless you and reward you as well

  10. #10
    Join Date
    Apr 2010
    Location
    sudan
    Beans
    25
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to run Zain, Canar & Sudani modems in Ubuntu

    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

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •