Configure Citycell Zoom ZTE CDMA USB Modem in Ubuntu & Fedora


Few months ago, I configured citycell zoom in my friend’s pc. That was Huawei modem and was much easy to configure. First tried to detect modem using wvdialconf in the terminal. Then just edited wvdial.conf file (/etc/wvdial.conf) with the detected path and after dialing wvdial cdma in the terminal it was successfully connected.

But recently in the eid vacation when i was in chittagong, i’ve bought citycell zoom with ZTE usb modem for using internet there. It was very much easy to setup and connect to internet in windows XP but failed to do so in ubuntu. First i tried to detect modem using wvdialconf. But It was showing a msg like failed to detect modem. then tried to grep tty using dmesg | grep tty but failed again, then tried to view modem using cat /proc/bus/usb/devices. But i haven’t found anything like devices in cat /proc/bus/usb/devices directory.

Anyway, Here is what you have to do to detect ZTE usb modem.

In ubuntu, you have to uncomment few lines to explore devices directory. So edit mountdevsubfs.sh file. ( ** No need to do this in fedora core, it will automatically detect devices in /proc/bus/usb/ directory)

sudo gedit /etc/init.d/mountdevsubfs.sh

and uncomment following lines from this file.

# Magic to make /proc/bus/usb work
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb

Now start the service

/etc/init.d/mountdevsubfs.sh start and reboot your pc.

Then check if the USB device is detected properly
cat /proc/bus/usb/devices

Try to find some output like this

T:  Bus=07 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 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
C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
E:  Ad=8a(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=0b(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

Now probe for this USB device
modprobe usbserial vendor=0×19d2 product=0×fffd

You are done!!

Now run wvdialconf in the terminal Or you can edit /etc/wvdial.conf file and paste these following lines.

[Modem0]
Modem = /dev/ttyUSB0
Baud = 230400
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)
[Dialer cdma]
Username = waps
Password = waps
Phone = #777
Stupid Mode = 1
Inherits = Modem0

Now you can connect to internet by applying the following command in terminal.

wvdial cdma

Using the same procedure, i’ve configured this modem in my office (fedora) also.

Thats it! Enjoy. :)

Note: For Ubuntu intrepid 8.10 and Ubuntu 9.04 jaunty jackalope, Please see my comments, i hope that will help you to connect to Internet

, , ,

  1. #1 by Newaz - October 24th, 2008 at 10:13

    bro, I’ve been using citycell zoom ZTE modem for last 20 days…n I’m facing a wierd problem….my PC gets restarted itself automatically after 30/40 minutes interval whn I’m connected online!!! I reinstalled ma operating system (XP)and observed everything goes fine if I’m not connected! why is this happening??plz help me out…

  2. #2 by shabuz - October 26th, 2008 at 04:16

    If your pc is infected then only formatting one drive and installing OS is not enough :). To confirm avoiding virus/spyware infection you need to format all the drives, then install OS. :(
    Anyway, no need to do this now :) Seems to me, u r having spyware problem :-s Do you have updated anti-virus installed in your pc?

    You need to download few things (use any other pc for this) if you are using mcafee then Download and setup latest super dat of Mcafee (sdat 5415 may be the recent one) and download any reliable anti-spyware software and check your pc or setup HijackThis to your pc and see the log and then remove unwanted applications from there.

    Following link can be helpful for you.

    http://forums.afterdawn.com/thread_view.cfm/709133

  3. #3 by Dmitry - October 29th, 2008 at 12:53

    Спасибо за информация, будем знать :)

  4. #4 by Harun - October 31st, 2008 at 13:24

    I am facing same problem. Recently I installed ubuntu. I want to setup zoom internet in this OS. I am using Alcatel Music set. For your information, I am very much new in linux. Please help me.

  5. #5 by shabuz - November 2nd, 2008 at 04:33

    @ Harun
    Connect ur device with usb port. Then try to detect modem. Open a terminal and type
    sudo wvdialconf
    It will automatically detect your modem. See the file located in /etc/ directory. to do this, type
    sudo gedit /etc/wvdial.conf
    You will see whether your modem is detected successfully or not. If detected then just type
    sudo wvdial cdma

    You will be connected :)
    But if wvdialconf can’t detect your modem properly. then please read my post and follow the instructions.

  6. #6 by alishamsher - November 9th, 2008 at 17:40

    hi everyone. thanks for the post. i am a new ububtu user & tried the above method to detect my ZTE usb cdma modem. evyrything was ok except the line
    I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
    where my OS shows
    I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=[none].
    that is it can’t find the device driver. would u please help me how can i find that device driver. thank u again

  7. #7 by alishamsher - November 9th, 2008 at 17:46

    actually my OS detects the ZTE cdma modem but it cant find the device drive.
    any idea. please help

  8. #8 by shabuz - November 10th, 2008 at 06:31

    @ Alishamsher

    First tell me few things,

    1. What version of ubuntu you are using? Gutsi, Hardy or Intrepid?
    2. what’s the output of wvdialconf. please type sudo wvdialconf
    3. you said, your OS can detect ZTE cdma modem. what’s the output of
    sudo cat /proc/bus/usb/devices?

  9. #9 by alishamsher - November 11th, 2008 at 14:53

    1.ubuntu 8.04 hardy heron

  10. #10 by alishamsher - November 11th, 2008 at 15:00

    output of sudo cat /proc/bus/usb/devices?
    T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 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
    C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA
    I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
    E: Ad=8a(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=0b(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=05(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

  11. #11 by alishamsher - November 11th, 2008 at 15:04

    output of wvdialconf.
    Scanning your serial ports for a modem.
    ttyS0: ATQ0 V1 E1 — failed with 2400 baud,
    next try: 9600 baud
    ttyS0: ATQ0 V1 E1 — failed with 9600 baud,
    next try: 115200 baud
    ttyS0: ATQ0 V1 E1 — and failed too at 115200,
    giving up.
    Modem Port Scan: S1 S2 S3
    Sorry, no modem was detected!
    Is it in use by another program?
    Did you configure it properly with setserial?

  12. #12 by shabuz - November 12th, 2008 at 04:18

    ok, got it. wvdialconf wasn’t able to detect you modem. you have to prob your device. to do this, type
    sudo modprobe usbserial vendor=0×19d2 product=0×fffd
    then type
    sudo wvdialconf

    and finally dial
    wvdial cdma

    I hope you are connected.
    if not connected then you can edit /etc/wvdial.conf file and paste these following lines.to edit type
    sudo gedit /etc/wvdial.conf
    and paste following lines to the file and save it.
    [Modem0]
    Modem = /dev/ttyUSB0
    Baud = 230400
    SetVolume = 0
    Dial Command = ATDT
    Init1 = ATZ
    FlowControl = Hardware (CRTSCTS)
    [Dialer cdma]
    Username = waps
    Password = waps
    Phone = #777
    Stupid Mode = 1
    Inherits = Modem0

    Now dial again. type sudo wvdial cdma
    hope, this will help

  13. #13 by suresh - December 14th, 2008 at 13:00

    Hi

    It was useful to me…

    suresh

  14. #14 by arifeen - December 15th, 2008 at 17:46

    @ Shabuz vai, the post was very helpful. But I am having some problems after doing all these. Could you please help me?

    This is what I see after trying to dial:

    wvdial cdma

    –> WvDial: Internet dialer version 1.60

    –> Cannot get information for serial port.

    –> Initializing modem.

    –> Sending: ATZ
    ATZ
    OK

    –> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK

    –> Modem initialized.

    –> Sending: ATDT#777

    –> Waiting for carrier.
    ATDT#777

    CONNECT

    –> Carrier detected. Starting PPP immediately.

    –> Starting pppd at Tue Dec 16 05:20:33 2008

    –> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied

    –>
    –> PAP (Password Authentication Protocol) may be flaky.

    –> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied

    –>
    –> CHAP (Challenge Handshake) may be flaky.

    –> Pid of pppd: 5821

    –> Using interface ppp0

    –> Disconnecting at Tue Dec 16 05:20:39 2008

    –> The PPP daemon has died: Authentication error.

    –> We failed to authenticate ourselves to the peer.

    –> Maybe bad account or password? (exit code = 19)

    –> man pppd explains pppd error codes in more detail.

    –> I guess that’s it for now, exiting
    –> The PPP daemon has died. (exit code = 19)

  15. #15 by shabuz - December 17th, 2008 at 17:50

    @arifeen
    Permission denied!!?? use sudo for dialing..
    example: sudo wvdial cdma
    What’s your OS? ubuntu (hardy heron)? make sure modem detection path is ok and you probed it correctly..

  16. #16 by Ashif - February 5th, 2009 at 10:40

    Shabuz vai,

    i want to use two os. One is windows xp and another is Linux(CentOS 5.2).
    i have a citycell zoom ZTE cdma modem.in this case am i able to use this modem both two os one after another? and please give me a instruction, how to enable this modem in CentOS 5.2?

  17. #17 by Ashif - February 6th, 2009 at 06:31

    Shabuz vi,

    i configure zte modem according to ur instruction.
    1.cat /proc/bus/usb/devices……can not detect modem and os is centos 5.2 version.
    2.wvdial cdma …then show the message
    Wvdial : Internet dialer version 1.54.0
    can not open /dev/ttyUSB0: No such a file or directory.
    would u please help me how can i successful.
    plz help

  18. #18 by shabuz - February 8th, 2009 at 04:07

    @ Ashif

    centOS? i haven’t tested in centOS though it should work there too. ok. i’ll try to configure and let you know. (i’m extreme busy this week but i’ll try to update)

  19. #19 by admin - May 9th, 2009 at 21:15

    In ubuntu 8.10 you will notice that it’s unable to detect devices in /proc/bus/usb directory. That means its not mounting the usb device so what you have to do is

    connect your modem then mount the usb. to do this type

    mount -t usbfs none /proc/bus/usb

    Now check if the USB device is detected properly
    cat /proc/bus/usb/devices

    Then everything is same.. follow the process as i wrote earlier (dont bother with mountdevsubfs.sh.sh file if you are using ubuntu 8.10).

    Good luck :)

  20. #20 by Gesun Azad - May 12th, 2009 at 16:55

    hey I’m using 9.04 nd could you send me the settings to my e-mail address (gesunazad@hotmail.co.uk) nd i heard theres a application called whine or sth like dat that lets u run .exe files on ubuntu. Is it true?

  21. #21 by admin - May 12th, 2009 at 21:56

    Ya true…. using wine you can run .exe file in Linux. to do this, you have to install wine ( Personally I don’t like the idea of using wine in linux and wine doesn’t work properly also) ;)

    Anyway, in ubuntu 9.04 jaunty, first you have to install wvdial (as wvdial wasn’t shipped with this version as a built in package)

    then open menu.lst file (you’ll find this file in /boot/grub/ directory) and after kernel information add this following line and save the file

    usbserial.vendor=0×19d2 usbserial.product=0xfffd

    Now edit wvdial.conf with proper info (instruction given in the main post) , You’ll be connected.

  22. #22 by Ove - May 15th, 2009 at 10:34

    I’m new in this(LInux) world.How can I configoure alcatel(modem from citycell zoom) on Fadora9.please Help me out.

  23. #23 by jamal - June 11th, 2009 at 15:49

    Bro, your blog helps me much. Thanks.
    In your last post about configuring ZTE modem in 9.04 there may be a slip of hand in usbserial.vendor=0(×)19d2 usbserial.product=0xfffd point. It may confuse a new user if s/he use it by copy & paste. thanks again.
    I am very interested in algorithm and programming. What should i start first?
    Thanks.

  24. #24 by TUHIN - July 29th, 2009 at 01:50

    I HAVE PROBLEM MY
    ZTE HSDPA USB MODEM .
    I Cnt CONF:CITYCELL ZOOM
    PLS HELP ME

(will not be published)