Tuesday, December 11, 2007

Reliance ZTE CDMA 1X MG880 working with Ubuntu Linux 7.10 (Gutsy) on HP Pavilion dv6000 lappy

  1. Plug in the smart looking black little thingie in a USB slot. dmesg should give weird message like this:
    [37246.516000] usb 2-1: new full speed USB device using uhci_hcd and address 15
    [37246.640000] usb 2-1: device descriptor read/64, error -71
    [37246.864000] usb 2-1: device descriptor read/64, error -71
    [37247.080000] usb 2-1: new full speed USB device using uhci_hcd and address 16
    [37247.200000] usb 2-1: device descriptor read/64, error -71
    [37247.424000] usb 2-1: device descriptor read/64, error -71
    [37247.640000] usb 2-1: new full speed USB device using uhci_hcd and address 17
    [37248.048000] usb 2-1: device not accepting address 17, error -71
    [37248.536000] usb 2-1: new full speed USB device using uhci_hcd and address 19
    [37248.760000] usb 2-1: configuration #1 chosen from 1 choice


  2. Don't worry. Just execute the following command and look for ZTE in the output:
    $ cat/proc/bus/usb/devices
    [...]
    T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 19 Spd=12 MxCh= 0
    D: Ver= 1.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
    P: Vendor=19d2 ProdID=fffd Rev= 0.00
    S: Manufacturer=ZTE, Incorporated
    S: Product=ZTE CDMA Tech
    [...]

  3. Look for the Vendor ID and Product ID (in bold above). Issue the following command:
    $ sudo modprobe usbserial vendor=0x19d2 product=0xfffd

    A dmesg should give you similar looking output at the end:
    [38360.764000] usbcore: registered new interface driver usbserial
    [38360.764000] drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
    [38360.940000] usbserial_generic 2-1:1.0: generic converter detected
    [38360.940000] usb 2-1: generic converter now attached to ttyUSB0
    [38360.940000] usbserial_generic 2-1:1.1: generic converter detected
    [38360.940000] usb 2-1: generic converter now attached to ttyUSB1
    [38360.940000] usbserial_generic 2-1:1.2: generic converter detected
    [38360.940000] usb 2-1: generic converter now attached to ttyUSB2
    [38360.940000] usbcore: registered new interface driver usbserial_generic
    [38360.940000] drivers/usb/serial/usb-serial.c: USB Serial Driver core

  4. Now run a wvdialconf:
    $ sudo wvdialconf
    Editing `/etc/wvdial.conf'.

    Scanning your serial ports for a modem.

    Modem Port Scan<*1>: S0 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 -- ZTEiT, Incorporated
    ttyUSB0<*1>: Speed 4800: AT -- OK
    ttyUSB0<*1>: Speed 9600: AT -- OK
    ttyUSB0<*1>: Speed 19200: AT -- OK
    ttyUSB0<*1>: Speed 38400: AT -- OK
    ttyUSB0<*1>: Speed 57600: AT -- OK
    ttyUSB0<*1>: Speed 115200: AT -- OK
    ttyUSB0<*1>: Speed 230400: AT -- OK
    ttyUSB0<*1>: Speed 460800: AT -- OK
    ttyUSB0<*1>: Max speed is 460800; 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: 115200 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: 115200 baud
    ttyUSB2<*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: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

  5. Finally edit /etc/wvdial.conf to make sure it looks like the following. "Stupid Mode = 1" line was required for the older Reliance data cards, may not be needed for all cards:

    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    Phone = #777
    Username = 9381517093
    Password = 9381517093
    ISDN = 0
    SetVolume = 0
    FlowControl = Hardware (CRTSCTS)
    Modem = /dev/ttyUSB0
    Dial Command = ATDT
    Baud = 460800
    Stupid Mode = 1
Short "/etc/wvdial.conf" that worked for me on HP Pavilion dv6000 laptop is here;

[Dialer Defaults]
Init1 = ATZ
Phone = #777
Username = 9381517093
Password = 9381517093
Modem = /dev/ttyUSB0
Baud = 460800
Stupid Mode = 1


Note: Troubleshoot with Reliance ZTE MC315+ ?

Ref: http://nandz.blogspot.com/2007/11/how-to-get-reliance-zte-mg880-working.html

Labels: