Saturday, May 15, 2010

Reliance broadband+ ZTE-AC2726 on linux (Ubuntu-9.04 karmic koala)

I managed to install reliance broadband+ ZTE AC2726 on ubuntu 9.04.

Here are the steps:

Insert the modem into USB interface and see if its detected. You should see something like this in dmesg:

$ dmesg
[22882.972130] usb 3-2: new full speed USB device using uhci_hcd and address 16
[22883.128910] usb 3-2: configuration #1 chosen from 1 choice
[22883.131004] scsi10 : SCSI emulation for USB Mass Storage devices
[22883.131239] usb-storage: device found at 16
[22883.131244] usb-storage: waiting for device to settle before scanning
[22888.130780] usb-storage: device scan complete
[22888.133718] scsi 10:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
[22888.136787] scsi 10:0:0:1: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
[22888.170799] sr1: scsi-1 drive
[22888.171045] sr 10:0:0:0: Attached scsi CD-ROM sr1
[22888.171180] sr 10:0:0:0: Attached scsi generic sg2 type 5
[22888.171403] sd 10:0:0:1: Attached scsi generic sg3 type 0
[22888.191688] sd 10:0:0:1: [sdb] Attached SCSI removable disk
[22889.655795] ISO 9660 Extensions: Microsoft Joliet Level 3
[22889.663783] ISOFS: changing to secondary root


Use lsusb to get its vendor:product id
$ sudo lsusb
Bus 003 Device 016: ID 19d2:fff5 ONDA Communication S.p.A.

19d2:fff5 is the vendor:product id.There are other varients which have 19d2:fff6 as a vendor:product id.

This means that the device is detected as a storage. We need it to be detected as modem. There is a command called usb-modeswitch to achieve this. Install it using the following command:

$ sudo apt-get install usb-modeswitch

Using the vendorid and productid, fire the following command:

$ sudo usb_modeswitch -v 0x19d2 -p 0xfff5 -M "5553424312345678c00000008000069f030000000000000000000000000000"

The above command should not fail and it should display the following things:
$ lsusb
Bus 003 Device 023: ID 19d2:fff1 ONDA Communication S.p.A.

$ modprobe usbserial vendor=0x19d2 product=0xfff1


Copy paste the following items in your /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyUSB0 ; modify based on the results of your dmesg
Phone = #777
Idle Seconds = 300
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 460800
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = "10-digit-modem-mobile-number"
Password = "10-digit-modem-mobile-number"

Now the last step:

$ sudo wvdial

और आप इन्टरनेट से जुड़ चुके है। There you are connected to internet.