Find the answer to your Linux question:
Results 1 to 8 of 8
I have a ZTE AC682 (also known as smartfren) USB/CDMA Modem. And service provider is Citycell (Bangladesh). I have used Ubuntu 9.10, 10.10, 12.04, 12.10 (Alpha2). In the first two ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2012
    Posts
    12

    ZTE AC682 Modem not working on Ubuntu 12.04+


    I have a ZTE AC682 (also known as smartfren) USB/CDMA Modem. And service provider is Citycell (Bangladesh).

    I have used Ubuntu 9.10, 10.10, 12.04, 12.10 (Alpha2). In the first two versions a simple:
    "sudo eject /dev/sr1" was enough to eject the device. Then I could connect to internet. But when I came to use 12.04, the above command gives:

    "eject: unable to find or open device for: `/dev/sr1'"


    It has two modes. In the storage mode it has vendor id of 0x19d2 and product id 0xffde. When ejected, the device becomes a modem and the product id becomes 0xffdd.

    In 12.04 and above I checked with lsusb and it never switches to 19d2:ffdd thus making the modem unusable.
    (And I believe this behavior has started from 11.10.)

    Another fact is that I have failed to do this eject in many other latest distros: Puppy, Knoppix etc. But their older versions work just fine. I think it is due to the way new versions of Kernel handle the devices.

    Related Stuff

    The pdf manual accompanying the modem: https://docs.google.com/open?id=0B9WrDtlrEzlSSUxadHdNbk1MREE

    The "ac682_linux_develop_package.zip" file (the above pdf deleted):
    https://docs.google.com/open?id=0B9WrDtlrEzlSQUhzTllSNUhwU3c

    I have asked the question in launchpad also:
    https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/207272

    I have posted it in many sites but found no solution. It would be very helpful if you could give me a solution.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hello and welcome!

    Perhaps you need to look at the usb_modeswitch program. I see it in the Ubuntu sources. Take a look at the man page:

    usb_modeswitch(1) - Linux man page

  3. #3
    Just Joined!
    Join Date
    Nov 2012
    Posts
    12
    Here are some info from the prompt. I am running Ubuntu 12.04.1 from USB. I booted up, plugged in my modem and ran these commands.


    Code:
    ubuntu@ubuntu:~$ uname -a
    Linux ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
    ubuntu@ubuntu:~$ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 13fe:3600 Kingston Technology Company Inc. 
    Bus 001 Device 003: ID 058f:a002 Alcor Micro Corp. 
    Bus 002 Device 002: ID 19d2:ffde ZTE WCDMA Technologies MSM 
    ubuntu@ubuntu:~$ dmesg|tail
    [   59.084895] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   59.105598] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [   59.351496] init: udev-fallback-graphics main process (3374) terminated with status 1
    [   99.635112] usb 2-2: new full-speed USB device number 2 using uhci_hcd
    [   99.802559] scsi6 : usb-storage 2-2:1.0
    [  100.806167] scsi 6:0:0:0: CD-ROM            EVDO     ReV A            7.00 PQ: 0 ANSI: 2
    [  100.819122] sr0: scsi-1 drive
    [  100.819139] cdrom: Uniform CD-ROM driver Revision: 3.20
    [  100.819733] sr 6:0:0:0: Attached scsi CD-ROM sr0
    [  100.820246] sr 6:0:0:0: Attached scsi generic sg2 type 5
    ______________________________________________

    I have already used usb_modeswitch. But no use.

    Here is the output:

    Code:
    ubuntu@ubuntu:~$ usb_modeswitch -v 0x19d2 -p 0xffde -V 0x19d2 -P 0xffdd
    
    Looking for target devices ...
     No devices in target mode or class found
    Looking for default devices ...
       found matching product ID
       adding device
     Found device in default mode, class or configuration (1)
    Accessing device 000 on bus 002 ...
    Getting the current device configuration ...
    Error getting the current configuration (error -1). Assuming configuration 1.
    Using first interface: 0x00
    Using endpoints 0x04 (out) and 0x84 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
     No driver found. Either detached before or never attached
     Could not claim interface (error -1). Skipping device inquiry
    Error: could not get description string "manufacturer"
    Error: could not get description string "product"
    Error: could not get description string "serial number"
    
    USB description data (for identification)
    -------------------------
    Manufacturer: 
         Product: 
      Serial No.: 
    -------------------------
    Warning: no switching method given.
    -> Run lsusb to note any changes. Bye.

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by adnan360 View Post
    I have already used usb_modeswitch. But no use.

    Here is the output:

    Code:
    ubuntu@ubuntu:~$ usb_modeswitch -v 0x19d2 -p 0xffde -V 0x19d2 -P 0xffdd
    Does it make a difference if you run usb_modeswitch as root (i.e., use sudo)?

  5. #5
    Just Joined!
    Join Date
    Nov 2012
    Posts
    12
    @atreyu
    Still no use:

    Code:
    ubuntu@ubuntu:~$ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 13fe:3600 Kingston Technology Company Inc. 
    Bus 001 Device 003: ID 058f:a002 Alcor Micro Corp. 
    Bus 002 Device 002: ID 19d2:ffde ZTE WCDMA Technologies MSM 
    ubuntu@ubuntu:~$ sudo -s
    root@ubuntu:~# usb_modeswitch -v 0x19d2 -p 0xffde -V 0x19d2 -P 0xffdd
    
    Looking for target devices ...
     No devices in target mode or class found
    Looking for default devices ...
       found matching product ID
       adding device
     Found device in default mode, class or configuration (1)
    Accessing device 002 on bus 002 ...
    Getting the current device configuration ...
     OK, got current device configuration (1)
    Using first interface: 0x00
    Using endpoints 0x04 (out) and 0x84 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
     No driver found. Either detached before or never attached
    
    SCSI inquiry data (for identification)
    -------------------------
      Vendor String: 
       Model String: �Y�(x߿��v�
    Revision String: 
    -------------------------
    
    USB description data (for identification)
    -------------------------
    Manufacturer: China TeleCom
         Product: CBP7.0
      Serial No.: ����������
    -------------------------
    Warning: no switching method given.
    -> Run lsusb to note any changes. Bye.
    
    root@ubuntu:~# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 13fe:3600 Kingston Technology Company Inc. 
    Bus 001 Device 003: ID 058f:a002 Alcor Micro Corp. 
    Bus 002 Device 002: ID 19d2:ffde ZTE WCDMA Technologies MSM 
    root@ubuntu:~#

  6. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by adnan360 View Post
    Still no use
    Rats. Okay take a look at this ubuntu bug that describes a similar device:

    https://bugs.launchpad.net/ubuntu/+s...er/+bug/891307

    they mention two things you might want to try:

    1) enabling debugging in the config file for usb_modeswitch

    2) using the comgt utility (no idea what that is/does)

    also, maybe try using the latest Ubuntu (12.10) in Live CD mode, just to see if it works w/the updated kernel/driver/packages.

  7. #7
    Just Joined!
    Join Date
    Nov 2012
    Posts
    12
    Finally!!!
    I was finally able to do the switching!!!

    Manual mounting (udisks) and chmod-ing the usb_modeswitch binary before "eject" has done the trick...

    I got help from: askubuntu.com/questions/182037/usb-modem-could-not-mount-on-12-04

    See here:

    Code:
    ubuntu@ubuntu:~$ sudo -s
    root@ubuntu:~# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 13fe:3600 Kingston Technology Company Inc. 
    Bus 001 Device 003: ID 058f:a002 Alcor Micro Corp. 
    Bus 004 Device 002: ID 0cf3:311d Atheros Communications, Inc. 
    Bus 002 Device 002: ID 19d2:ffde ZTE WCDMA Technologies MSM 
    root@ubuntu:~# chmod -x /usr/sbin/usb_modeswitch
    root@ubuntu:~# udisks --mount /dev/sr0
    Mounted /org/freedesktop/UDisks/devices/sr0 at /media/disk
    root@ubuntu:~# eject /dev/sr0
    root@ubuntu:~# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 13fe:3600 Kingston Technology Company Inc. 
    Bus 001 Device 003: ID 058f:a002 Alcor Micro Corp. 
    Bus 004 Device 002: ID 0cf3:311d Atheros Communications, Inc. 
    Bus 002 Device 003: ID 19d2:ffdd ZTE WCDMA Technologies MSM 
    root@ubuntu:~# chmod +x /usr/sbin/usb_modeswitch
    root@ubuntu:~#

  8. #8
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by adnan360 View Post
    Manual mounting (udisks) and chmod-ing the usb_modeswitch binary before "eject" has done the trick...
    That's just crazy. Hey it works, though! Glad you got it sorted. Will mark this as Solved for you.

Posting Permissions

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