ZTE (Smartfren) AC682 Modem does not eject in Ubuntu 12.04

Asked by Adnan Shameem on 2012-08-30

I have a ZTE AC 682, which is a CDMA 1X Modem. 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.

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. But when I came to use 12.04, the above command gives:

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

The modem has a pdf file (in storage mode) which states the steps of modem installation. (Download: https://docs.google.com/open?id=0B9WrDtlrEzlSSUxadHdNbk1MREE ) It was made for 10.04. But It worked on 10.10. I have searched the web and probably the modem stopped ejecting from version 11.10, because there are no tutorials for connecting the device in 11.10 and later. And if there are, the steps don't work.

This is not only in Ubuntu, it is also happening with all the recent linux distros. I have seen similar posts in the Ubuntu forum, but nobody could provide a solution that works. I have also tried usb_modeswitch as well, but no luck there. Now I am tired and want a solution badly.

The modem works fine with Windows XP, Vista and 7. Is my modem "outdated" for a modern OS?

( Country: Bangladesh
Internet Service Provider: Citycell )

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Last query:
2012-08-31
Last reply:
2012-09-15

You don't need to eject the storage, you just need a udev rule to make it run as a modem. Can you give the output of:

lsb_release -a; uname -a; lsusb

Thanks

Adnan Shameem (needadnan) said : #2

Ok, I have booted to Ubuntu (from USB device), insterted the modem, then ran the commands. And here's the output:

ubuntu@ubuntu:~$ lsb_release -a; uname -a; lsusb
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
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 003: ID 14cd:125c Super Top
Bus 001 Device 004: ID 058f:a002 Alcor Micro Corp.
Bus 002 Device 002: ID 15d9:0a37 Trust International B.V. Mouse
Bus 004 Device 002: ID 0cf3:311d Atheros Communications, Inc.
Bus 002 Device 003: ID 19d2:ffde ZTE WCDMA Technologies MSM

Have you tried:

echo "options usbserial vendor=0x19d2 product=0xffde" | sudo tee /etc/modprobe.d/usbserial.conf > /dev/null
echo "usbserial" | sudo tee -a /etc/modules

Reboot to test

Adnan Shameem (needadnan) said : #5

@actionparsnip

Ok, I am trying. But what would the commands do? Will it modify the behavior of modprobe? How do I proceed then?

I have already tried the tutorial you linked. But the eject command does not work. ... I am more comfortable with the accompanying pdf manual.

It makes the default behaviour use the options given rather than none which is default. Do the 2 commands make the modem work ok?

Adnan Shameem (needadnan) said : #7

I have followed the direction given in the pdf file.
The pppd call gives an error:

root@ubuntu:~/zoom/modem_on# pppd call cdmadialer &
[1] 6585
root@ubuntu:~/zoom/modem_on# pppd: In file /etc/ppp/peers/cdmadialer: unrecognized option '/dev/ttyUSB0'

[1]+ Exit 2 pppd call cdmadialer

Note:
I have used
modprobe usbserial vendor=0x19D2 product=0xFFDE

Instead of:
modprobe usbserial vendor=0x19D2 product=0xFFDD

would the storage mode (0xFFDE) would work as a modem? I am a bit confused.

Let me share another thing. In 10.04 and earlier versions, as the pdf screenshot shows, after inserting the modem an icon in the desktop labelled "Zoom" would appear. But when I installed 10.10 on my computer I did not see that icon appear. I had to manually run "sudo eject /dev/sr1" to eject the device.

PDF Manual:
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

Adnan Shameem (needadnan) said : #8

To further help in solving the problem, here is my "dmesg | tail":
http://dl.dropbox.com/u/6459514/dmesg_tail_5692.txt

I see that the device is not mounted ... to ttyUSB0 or something.

And what about the udev rule that you were talking about?

Launchpad Janitor (janitor) said : #9

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Adnan Shameem (needadnan) said : #10

Finally!!!
I was finally able to do the switching!!!
After switching, I could follow the manual and connect!!

It seems that I had to temporarily disable "usb_modeswitch" executable (chmod). So it is definately a bug of usb-modeswitch. And this is on my notebook (no cd-rom) so I mounted & ejected /dev/sr0.

I tried only in Ubuntu 12.04.1. Others are likely to work.

See here:

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:~#