Results 1 to 2 of 2

Thread: HOW TO install the Aiko 83D/ZTE 626 modem to Ubuntu and dial with wvdial

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Location
    Brazil
    Beans
    78
    Distro
    Ubuntu 12.04 Precise Pangolin

    HOW TO install the Aiko 83D/ZTE 626 modem to Ubuntu and dial with wvdial

    This HOW TO aims to help connecting the Aiko 83D modem (a.k.a. ZTE MF626) on Ubuntu for usage with operator Vivo (Brazil). Tested version: Ubuntu Desktop Karmic.

    Note: At the appropriate stages of this article, specific reference to the operator Vivo is done so that the reader is able to adapt this solution to his/her needs.

    To start, install usb-modeswitch so that the modem is not recognized as an USB storage device when plugged to the USB port:

    Code:
    sudo apt-get install usb-modeswitch
    Next, configure usb-modeswitch. First, edit the ZTE MF626 configuration on the file usb_modeswitch.conf to reflect the needed changes for the operator Vivo (TargetProduct):

    Code:
    sudo gedit /etc/usb_modeswitch.conf
    Code:
    ########################################################
    
    # ZTE MF628+ (tested version from Telia / Sweden)
    # ZTE MF626
    # ZTE MF636 (aka "Telstra / BigPond 7.2 Mobile Card")
    #
    # Contributor: Joakim Wennergren
    
    
    DefaultVendor=  0x19d2
    DefaultProduct= 0x2000
    
    TargetVendor=   0x19d2
    TargetProduct=  0x0057
    
    # only for reference
    MessageEndpoint=0x01
    
    MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
    
    # if that command doesn't work, try the other ("eject")
    ;MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
    Second, create a file with the below code. Again, note the code “0x0057”, which is a match for Vivo.

    Code:
    Sudo gedit /usr/share/hal/fdi/information/20thirdparty/20-zte-mf626.fdi
    Code:
    <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
    <device>
    <!-- ZTE MF626 HSDPA USB Modem -->
    <match key="@info.parent:usb.vendor_id" int="0x19d2">
    <match key="@info.parent:usb.product_id" int="0x0057">
    <match key="@info.parent:usb.interface.number" int="3">
    <append key="modem.command_sets" type="strlist">GSM-07.07</append>
    <append key="modem.command_sets" type="strlist">GSM-07.05</append>
    <append key="info.capabilities" type="strlist">modem</append>
    </match>
    </match>
    </match>
    </device>
    </deviceinfo>
    Lastly, create rules for the computer to automatically switch on the modem when it is connected to an USB port. Note that this code is independent to the chosen operator:

    Code:
    sudo gedit /etc/udev/rules.d/90-zte.rules
    Code:
    ACTION!="add", GOTO="ZTE_End"
    
    SUBSYSTEM=="usb", SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"
    
    LABEL="ZTE_ZeroCD"
    RUN+="/usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf"
    
    LABEL="ZTE_End"
    Now that usb-modeswitch is installed, it is time to install and configure wvdial:

    Code:
    sudo apt-get install wvdial
    Next, edit wvdial.conf to create the specific dial-in for the modem:

    Code:
    sudo gedit /etc/wvdial.conf
    Code:
    [Dialer 3g]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ISDN = 0
    New PPPD = yes
    Modem = /dev/ttyUSB2
    Baud = 921600
    DialCommand = ATDT
    Check Def Route = on
    FlowControl = Hardware(CRTSCTS)
    Username = vivo
    Password = vivo
    Phone = *99#
    Stupid mode = 1
    Auto Reconnect = on
    Auto DNS = on
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
    Init3 = AT+CGDCONT=1,"IP","zap.vivo.com.br"
    Then, set pppd with the appropriate permissions:

    Code:
    chmod +s /usr/sbin/pppd
    Now, it is advisable to restart the computer and log back in. Then, plug the modem and wait for a few seconds. Its led will firstly turn red, then either green (3G network) or blue (2.5G network), indicating the modem has found the network and it is ready for dialing:

    Code:
    wvdial 3g
    The green/blue led will blink on/off, indicating that the connection is established.

    Note: to avoid execution errors when running wvdial, it is advisable to check the following:

    - Make sure your user is part of the group “dip”.
    - Set up appropriate permissions for pppd, as above.

    References:

    http://www.draisberghof.de/usb_modeswitch/
    http://ubuntuforums.org/showthread.php?t=1005910
    http://ubuntuforums.org/showthread.p...&highlight=zte
    http://ubuntuforums.org/showthread.php?t=1147685
    http://www.guiadohardware.net/tutoriais/3g-linux/
    http://ubuntuforums.org/archive/inde...t-1035950.html
    Last edited by cirobr; January 7th, 2010 at 07:28 PM.

  2. #2
    Join Date
    Feb 2008
    Location
    Brazil
    Beans
    11
    Distro
    Ubuntu

    Smile Re: HOW TO install the Aiko 83D/ZTE 626 modem to Ubuntu and dial with wvdial

    God bless you, man! I've been trying to connect my brother's and aunt's 3G for AGES (really, it's been almost a year) and after almost a dozen tries it was starting to get really frustrating. Cheers!

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
  •