Author Topic: Help me configuring my CDMA modem, Huawei CE682  (Read 3649 times)

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Help me configuring my CDMA modem, Huawei CE682
« on: June 04, 2012, 06:22:57 AM »
Hi everyone, hello from Indonesia.

Recently I installed PCLinuxOS 2012.2 KDE Mini in a dual-boot setup with Windows 7.
Now my internet connection is a mobile wireless CDMA (EVDO) network connected through a USB modem.
It's a Huawei CE682 and the ISP is called SMART (SMARTFREN).

So here's the problem:
When I opened the connection manager and click mobile broadband I didn't see my modem showing up and PCLinuxOS gave some sort of message: Could not find any 3G/UMTS device.
I am at lost and my GNU/Linux skill is somewhat newbie.

Any help is greatly appreciated. Thank you.

Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1589
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #1 on: June 04, 2012, 06:33:11 AM »
Don't know if this will help you or not - but here you go:
http://www.pclinuxos.com/forum/index.php/topic,71649.msg588617.html#msg588617

or - you can try setting it up using kppp

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1589
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #2 on: June 04, 2012, 06:39:05 AM »
With the modem plugged in

Open a terminal and type lsusb (that is a lower case L not I )then press the enter key.

Then copy and paste the output and post it up here .

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #3 on: June 04, 2012, 11:24:50 PM »
Thanks for the page reference you've given me, unfortunately I couldn't find out which tty* my modem is hooked up to, so trying tty 1 to 3 only gave long pause followed by some error message. Perhaps due to invalid tty* that I chosed.

Anyway, here's the lsusb output:

Code: [Select]
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 002 Device 002: ID 201e:1023
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 005 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #4 on: June 05, 2012, 12:08:05 AM »
ID 201e:1023 is the modem. You'll need to install usb_modeswitch and usb_modeswitch-data packages. Beyond that, I'm lost. Do a net search for ID 201e:1023 and you'll find a few posts, almost none of them in English.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #5 on: June 07, 2012, 12:25:32 AM »
Thanks for the pointers. Luckily I understand Bahasa Indonesia and a little bit of Malay.
The references suggests I use wvdial, which is not present in Minime.
And since my only means of internet connection is down I cannot install wvdial.

So, based on those pointers, here’s what I did:

1. Plug-in my USB modem.
The desktop says SMARTFREN with CD picture as background.

2. Find out which on which sr is my modem hooked up to.
I went to PCLinuxOS Control Center and found under USB Mass Storage Device that sr2 is a CDROM.
But the Description is correct that it is an EVDO Rev A device.
So my modem is assigned sr2.
It is also say about the ID, 0x201e 0x1023 just djohnston you said.

3. Ejecting the SR2 CDROM.
As referred in some the links, I went to Terminal and did eject /dev/sr2 but it returned me an error and did not eject.
So I went to Dolphin file manager, right-click on SMARTFREN CDROM and click Eject.
The CDROM was ejected.

4. Back to Terminal, I did lsusb again:

Code: [Select]
Bus 001 Device 003: ID 201e:1022
So the ID has changed from 1023 to 1022 which is meant be.

5. Next I supposed to modprobe the modem.
In Terminal, I keyed in modprobe usbserial vendor=0x201e product=0x1022 which gave me:

Code: [Select]
FATAL: Error inserting usbserial (/lib/modules/2.6.38.8-pclos3.bfs/kernel/drivers/usb/serial/usbserial.ko.gz): Operation not permitted

Apparently I have to "substite user" with "root access" first.
So I typed SU, keyed in the password and I was logged as ROOT.
Then I rerun the modprobe usbserial vendor=0x201e product=0x1022
This time no error, but no confirmation either.

6. Run dmesg | grep tty which gave:

Code: [Select]
console [tty0] enabledserial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07:
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
usb 1-2: generic converter now attached to ttyUSB0
usb 1-2: generic converter now attached to ttyUSB1
usb 1-2: generic converter now attached to ttyUSB2

On which tty my modem is hooked up to? I am lost here.

7. Back to GUI. I Right-click at red "x" sign > "Configure Network" > Choose "Analog modem" > Choose "ttyUSB0" > go through with the wizard > at "Network Configuration" it then says "The system does not seem to be connected to the internet. Try to reconfigure your connection."

8. I plug-off the modem. Restart the system. And redo the things all over again.
Strangely a device called /device/modem shows up during "Configure Network".
So I chosed that device and retry but results were the same, no connection made.

I retry these steps on ttyUSB0, ttyUSB1, ttyUSB2 and /device/modem and no connection was ever made.

Am I missing something?
Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #6 on: June 07, 2012, 01:29:43 AM »

On which tty my modem is hooked up to? I am lost here.


So am I, najor. I have never seen or dealt with a setup like you are describing. And, since I do not speak any Bahasa Indonesia or Malay, it would be a lot like the blind man's description of an elephant.


The references suggests I use wvdial, which is not present in Minime.


You need two packages, gnome-ppp and wvdial, which are in the repositories.


And since my only means of internet connection is down I cannot install wvdial.


A chicken and egg problem. You need to access the internet to get two packages, but your internet connection is not working. But, wait a minute. How are your posting here without an internet connection? There is a way out of your dilemma of being able to access those two packages you need. What you need to do is download the RPMs directly from a repository. I don't know which repository is faster from where you are, and you probably don't, either. Here are the direct links to the rpms from one of the repositories, located in the Netherlands:

http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.main/gnome-ppp-0.3.23-2pclos2007.i586.rpm

http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.main/wvdial-1.61-1pclos2010.i586.rpm

Here's what you need to do. Use a USB thumbdrive or something similar that you can use to transfer files from one computer to another. Plug the USB thumbdrive into the computer you are using to access the internet. Download the gnome-ppp and wvdial files from the links given above. Save them to the USB drive.

Once you have the files on the USB drive, move the drive to the computer you are setting up. Copy the files from the USB drive to somewhere in your home directory. Then open a terminal from your file manager in the directory where you copied the files, or open a terminal and change to the directory where the files are. You'll need root privileges to run the following. In the terminal, enter:

su
rpm -Uvh gnome-ppp-0.3.23-2pclos2007.i586.rpm
rpm -Uvh wvdial-1.61-1pclos2010.i586.rpm
exit


Close the terminal and try to set up the web interface/tty/modem thingy again. There should be a menu entry for gnome-ppp in the Internet section of the PCLinuxOS menu. wvdial is a command line executable, and gnome-ppp is a GUI front end to wvdial. Post back.

« Last Edit: June 07, 2012, 01:33:59 AM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #7 on: June 07, 2012, 06:18:12 AM »
Yes, I accessed the Internet using my Windows pc  :)

So I tried your suggestions, here's the result:

Code: [Select]
[root@localhost Downloads]# rpm -Uvh gnome-ppp-0.3.23-2pclos2007.i586.rpm
error: Failed dependencies:
        wvdial >= 1.54 is needed by gnome-ppp-0.3.23-2pclos2007.i586

[root@localhost Downloads]# rpm -Uvh wvdial-1.61-1pclos2010.i586.rpm
error: Failed dependencies:
        libuniconf.so.4.6 is needed by wvdial-1.61-1pclos2010.i586
        libwvbase.so.4.6 is needed by wvdial-1.61-1pclos2010.i586
        libwvstreams.so.4.6 is needed by wvdial-1.61-1pclos2010.i586
        libwvutils.so.4.6 is needed by wvdial-1.61-1pclos2010.i586

Both returns error which I do not understand, missing files perhaps?
Anyway,  I tried typing wvdial but it returns some message that says wvdial is not available.
Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #8 on: June 07, 2012, 02:53:54 PM »
Okay, we're getting there. One more file for you to download from the link below.

http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.main/libwvstreams4.6-4.6.1-1pclos2010.i586.rpm

Once you've copied that one to the same directory where the previous two are, start again, in this particular order:

su
rpm -Uvh libwvstreams4.6-4.6.1-1pclos2010.i586.rpm
rpm -Uvh wvdial-1.61-1pclos2010.i586.rpm
rpm -Uvh gnome-ppp-0.3.23-2pclos2007.i586.rpm
exit


See if that helps.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #9 on: June 07, 2012, 10:19:26 PM »
So I copy the RPMs, go SU and install the packages:

Code: [Select]
[root@localhost Downloads]# ls
gnome-ppp-0.3.23-2pclos2007.i586.rpm*
libwvstreams4.6-4.6.1-1pclos2010.i586.rpm*
wvdial-1.61-1pclos2010.i586.rpm*
[root@localhost Downloads]# rpm -Uvh libwvstreams4.6-4.6.1-1pclos2010.i586.rpm
Preparing...                                                            ########################################### [100%]
   1:libwvstreams4.6                                                    ########################################### [100%]
[root@localhost Downloads]# rpm -Uvh wvdial-1.61-1pclos2010.i586.rpm
Preparing...                                                            ########################################### [100%]
   1:wvdial                                                             ########################################### [100%]
[root@localhost Downloads]# rpm -Uvh gnome-ppp-0.3.23-2pclos2007.i586.rpm
Preparing...                                                            ########################################### [100%]
   1:gnome-ppp                                                          ########################################### [100%]

Redo the modem finding things until ttyUSB 0, 1 and 2 appears.

Code: [Select]
[root@localhost Downloads]# dmesg | grep tty
console [tty0] enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
usb 2-2: generic converter now attached to ttyUSB0
usb 2-2: generic converter now attached to ttyUSB1
usb 2-2: generic converter now attached to ttyUSB2


Then I ran gnome-ppp and do the Setup.
I click the Detect modem button and it found a modem at ttyUSB2.
So I chosed that, keyed in Username (smart), Password (smart), Phone Number (#777) (the username and password are not user specific, it comes with the carrier) and then I click Connect.
Somethings are going then it stuck at Sending password for a long (over a minute) time.
So I click Cancel.

I made several retries with gnome-ppp with various errors:
No modem found.
Found modem at ttyUSB0 (before it was ttyUSB2).
Found modem at ttyUSB2 (again)

No connection ever made.

In particular, this ttyUSB (ports?) is really puzzling, how come the ports kept changing?
Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #10 on: June 07, 2012, 10:24:52 PM »
Just in case, I enclosed some things from the terminal starting from the first gnome-ppp:

[root@localhost Downloads]# gnome-ppp

(gnome-ppp:4124): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(gnome-ppp:4124): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
WVCONF: /root/.wvdial.conf
GNOME PPP: STDOUT: Editing `/dev/null'.
GNOME PPP: STDERR: Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
GNOME PPP: STDOUT:
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDOUT: Scanning your serial ports for a modem.
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 -- OK
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: China TeleCom
GNOME PPP: STDERR: ttyUSB2<*1>: Speed 9600: AT -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: Max speed is 9600; that should be safe.
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: Modem Port Scan<*1>: S1   S2   S3   
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: China TeleCom
GNOME PPP: STDERR: ttyUSB0<*1>: Speed 9600: AT -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: Max speed is 9600; that should be safe.
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: and failed too at 115200, giving up.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Found a modem on /dev/ttyUSB2, using link /dev/modem in config.
GNOME PPP: STDOUT: Modem configuration written to /dev/null.
GNOME PPP: STDERR: ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
GNOME PPP: STDERR: ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
GNOME PPP: Connecting...
GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!"
GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.61
GNOME PPP: STDERR: --> Cannot get information for serial port.
GNOME PPP: STDERR: --> Initializing modem.
GNOME PPP: STDERR: --> Sending: ATZ
GNOME PPP: STDERR: ATZ
GNOME PPP: STDERR: OK
GNOME PPP: STDERR: --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: OK
GNOME PPP: STDERR: --> Modem initialized.
GNOME PPP: STDERR: --> Please enter password (or empty password to stop):
smart

GNOME PPP: STDERR: Caught signal 2:  Attempting to exit gracefully...
GNOME PPP: Connecting...
GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!"
GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.61
GNOME PPP: STDERR: --> Cannot open /dev/ttyUSB2: Device or resource busy
GNOME PPP: STDERR: --> Cannot open /dev/ttyUSB2: Device or resource busy
GNOME PPP: STDERR: --> Cannot open /dev/ttyUSB2: Device or resource busy
GNOME PPP: Unable to KILL wvdial process!
GNOME PPP: STDOUT: Editing `/dev/null'.
GNOME PPP: STDERR: Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Scanning your serial ports for a modem.
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyUSB2<Info>: Device or resource busy
GNOME PPP: STDERR: Modem Port Scan<*1>: USB2
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: Modem Port Scan<*1>: S1   S2   S3   
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: China TeleCom
GNOME PPP: STDERR: ttyUSB0<*1>: Speed 9600: AT -- OK
GNOME PPP: STDERR: ttyUSB0<*1>: Max speed is 9600; that should be safe.
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: and failed too at 115200, giving up.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Found a modem on /dev/ttyUSB0.
GNOME PPP: STDOUT: Modem configuration written to /dev/null.
GNOME PPP: STDERR: ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
GNOME PPP: Connecting...
GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!"
GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.61
GNOME PPP: STDERR: --> Cannot get information for serial port.
GNOME PPP: STDERR: --> Initializing modem.
GNOME PPP: STDERR: --> Sending: ATZ
GNOME PPP: STDERR: ATZ
GNOME PPP: STDERR: OK
GNOME PPP: STDERR: --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: OK
GNOME PPP: STDERR: --> Modem initialized.
GNOME PPP: STDERR: --> Sending: ATM1L3DT#777
GNOME PPP: STDERR: --> Waiting for carrier.
GNOME PPP: STDERR: ATM1L3DT#777
GNOME PPP: STDERR: CONNECT 3100000
GNOME PPP: STDERR: --> Carrier detected.  Waiting for prompt.
GNOME PPP: STDERR: --> Connected, but carrier signal lost!  Retrying...
GNOME PPP: STDERR: --> Sending: ATM1L3DT#777
GNOME PPP: STDERR: --> Waiting for carrier.
GNOME PPP: STDERR: ~[7f]}#@!}!}!} }3}"}&} } } } }#}%B#}%}'}"}(}"W}0~~[7f]}#@!}!}"} }3}"}&} } } } }#}%B#}%}'}"}(}"o}1~~[7f]}#@!}!}#} }3}"}&} } } } }#}%B#}%}'}"}(}"[08]i~~[7f]}#@!}!}$} }3}"}&} } } } }#}%B#}%}'}"}(}"}?}3~~[7f]}#@!}!}%} }3}"}&} } } } }#}%B#}%}'}"}(}"xk~~[7f]}#@!}!}&} }3}"}&} } } } }#}%B#}%}'}"}(}"@j~~[7f]}#@!}!}'} }3}"}&} } } } }#}%B#}%}'}"}(}"'}2~~[7f]}#@!}!}(} }3}"}&} } } } }#}%B#}%}'}"}(}"[7f]}7~~[7f]}#@!}!})} }3}"}&} } } } }#}%B#}%}'}"}(}"}8o~~[7f]}#@!}!}*} }3}"}&} } } } }#}%B#}%}'}"}(}" n~
GNOME PPP: STDERR: --> Timed out while dialing.  Trying again.
GNOME PPP: STDERR: --> Maximum Attempts Exceeded..Aborting!!
GNOME PPP: STDERR: --> Disconnecting at Fri Jun  8 10:01:22 2012
GNOME PPP: STDOUT: Editing `/dev/null'.
GNOME PPP: STDERR: Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Scanning your serial ports for a modem.
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyUSB2<Info>: Device or resource busy
GNOME PPP: STDERR: Modem Port Scan<*1>: USB2
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: Modem Port Scan<*1>: S1   S2   S3   
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- ~�}#�!}!}%} }3}"}&} } } } }#}%�#}%}'}"}(}"��~
GNOME PPP: STDERR: ttyUSB0<*1>: failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: and failed too at 115200, giving up.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Sorry, no modem was detected!  Is it in use by another program?
GNOME PPP: STDOUT: Did you configure it properly with setserial?
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Please read the FAQ at http://alumnit.ca/wiki/?WvDial
GNOME PPP: STDOUT: Editing `/dev/null'.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Scanning your serial ports for a modem.
GNOME PPP: STDERR: Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyUSB2<Info>: Device or resource busy
GNOME PPP: STDERR: Modem Port Scan<*1>: USB2
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: Modem Port Scan<*1>: S1   S2   S3   
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: and failed too at 115200, giving up.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Sorry, no modem was detected!  Is it in use by another program?
GNOME PPP: STDOUT: Did you configure it properly with setserial?
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Please read the FAQ at http://alumnit.ca/wiki/?WvDial
[root@localhost Downloads]#
[root@localhost Downloads]#
[root@localhost Downloads]# gnome-ppp

(gnome-ppp:9112): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(gnome-ppp:9112): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
WVCONF: /root/.wvdial.conf
GNOME PPP: STDOUT: Editing `/dev/null'.
GNOME PPP: STDERR: Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Scanning your serial ports for a modem.
GNOME PPP: STDOUT:
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: China TeleCom
GNOME PPP: STDERR: ttyUSB2<*1>: Speed 9600: AT -- OK
GNOME PPP: STDERR: ttyUSB2<*1>: Max speed is 9600; that should be safe.
GNOME PPP: STDERR: ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: Modem Port Scan<*1>: S1   S2   S3   
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- ~�}#�!}!}!} }3}"}&} } } } }#}%�#}%}'}"}(}"W}0~
GNOME PPP: STDERR: ttyUSB0<*1>: failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: failed with 9600 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyUSB1<*1>: ATQ0 V1 E1 -- ��[10]
GNOME PPP: STDERR: ttyUSB1<*1>: and failed too at 115200, giving up.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Found a modem on /dev/ttyUSB2, using link /dev/modem in config.
GNOME PPP: STDOUT: Modem configuration written to /dev/null.
GNOME PPP: STDERR: ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
GNOME PPP: Connecting...
GNOME PPP: STDERR: --> Ignoring malformed input line: ";Do NOT edit this file by hand!"
GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.61
GNOME PPP: STDERR: --> Cannot get information for serial port.
GNOME PPP: STDERR: --> Initializing modem.
GNOME PPP: STDERR: --> Sending: ATZ
GNOME PPP: STDERR: ATZ
GNOME PPP: STDERR: OK
GNOME PPP: STDERR: --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: OK
GNOME PPP: STDERR: --> Modem initialized.
GNOME PPP: STDERR: --> Sending: ATM1L3DT#777
GNOME PPP: STDERR: --> Waiting for carrier.
GNOME PPP: STDERR: ATM1L3DT#777
GNOME PPP: STDERR: OK
GNOME PPP: STDERR: ^DSDORMANT:1
GNOME PPP: STDERR: --> Timed out while dialing.  Trying again.
GNOME PPP: STDERR: --> Maximum Attempts Exceeded..Aborting!!
GNOME PPP: STDERR: --> Disconnecting at Fri Jun  8 10:12:44 2012
Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #11 on: June 08, 2012, 04:44:40 PM »

No connection ever made.

In particular, this ttyUSB (ports?) is really puzzling, how come the ports kept changing?


I don't know. I'm really out of my element here, as I have never seen or used the kind of setup your are describing. At least you now have the software installed to try to get it set up. However, I see one big problem right off the bat. Why are you trying to establish an internet connection using the root account? That is a very dangerous practice. You should never have to use the root account to connect to the internet. Period.

Use gnome-ppp from the menu. If you are starting from a terminal in order to have error messages displayed, start it in a terminal from your user account only. If you are being prompted to enter root's password by any process, post all of the terminal output here. Back to the ttyUSB ports, please post output of the following:

ls -l /dev/ttyUSB*
ls -l /dev/modem


1. Are you connecting to the internet from Windows using this same Huawei CE682?
2. Did you see any posts during your research indicating that someone was able to make this work under Linux?
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline luikki

  • Hero Member
  • *****
  • Posts: 1407
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #12 on: June 09, 2012, 02:37:33 AM »
see if this helps:

http://stefanuswiely.blogspot.pt/2012/03/another distro-smartfren-ce682.html

edit:  the link doesn´t open here... so:

Plug the modem, wait device deteced. Modem will detected as CD-ROM.

Eject CD-ROM
$ sudo eject /dev/sr1

Check detected device again
$ lsusb

Bus 006 Device 002: ID 201e:1022
Device detected as modem now (ID 201e:1022)

Create file usb_modeswitch.conf at /etc/ directory for configuration
$ sudo vim /etc/usb_modeswicth.conf

Add this config at the end of file
# SmartFren Haier CE682 (EVDO)
DefaultVendor = 0x201e
DefaultProduct = 0×1022

TargetVendor = 0x201e
TargetProduct = 0×1022

MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"

Create rules file for CE682 modem at /etc/udev/rules.d/99-haier-ce682.rules
$ sudo vim /etc/udev/rules/d/99-haier-ce682.rules

Add this config at file
# SmartFren Haier CE682 (EVDO)
SUBSYSTEM=="usb", SYSFS{idVendor}=="201e",
SYSFS{idProduct}=="1022", RUN+="/usr/sbin/usb_modeswitch –default-vendor 0x201e –default-product 0×1022 –message-content 5553424312345678c00000008000069f030000000000000000000000000000"

Load config to kernel
$ sudo modprobe usbserial vendor=0x201e product=0x1022

Detect modem using wvdial
$ sudo wvdialconf

Setup wvdial config
[Dialer smart]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1
Modem Type = Analog Modem
Command Line = ATDT
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800
« Last Edit: June 09, 2012, 03:30:51 AM by luikki »

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #13 on: June 09, 2012, 11:06:16 PM »
Thanks luikki. Do allow me to reply to djohnston's post first:

Why are you trying to establish an internet connection using the root account? That is a very dangerous practice.

Oooops. :o
In the heat of troubleshooting I forgot to exit the root mode. What a gravely serious mistake. Thanks for pointing this out, djohnston.

For the console output, I thought it would be clearer If I describe the sequence:
First I plug-in the modem
Eject the SMARTFREN CDROM from the Dolphin file manager, this changes the product ID from 1023 to 1022
Go to console, for SU.
Then modprobe usbserial vendor=0x201e product=0x1022
Exit

Now for lsusb -l :

[kopipait@localhost ~]$ ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Jun  9 10:21 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jun  9 10:21 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Jun  9 10:21 /dev/ttyUSB2
[kopipait@localhost ~]$ ls -l /dev/modem
lrwxrwxrwx 1 root root 7 Jun  9  2012 /dev/modem -> ttyUSB2


As for the questions:

1. Are you connecting to the internet from Windows using this same Huawei CE682?

Yes I am.

2. Did you see any posts during your research indicating that someone was able to make this work under Linux?

I must assume that the posters are being successful in what they are doing, despite there are also comments of other users who follow their guides could not deliver the same result.
Guides are being given without explaining how a device could be assigned sr(0,1,2) or which ttyUSB(0,1,2) and so on.
No explanation of how the system could arrive with those parameters.
I must say, I have my doubts.

A poster suggests editing /etc/usb_modeswitch.conf with some parameters, it doesn't work.
Other poster suggests a set of different parameters, it seems to work.
But then an admin in usb_modeswitch forum strongly suggests that there should not be any configuration on /etc/usb_modeswitch.conf.

One suggests the usage of modprobe -usbserial but other suggests -usbserial should not be used on high-speed 3G devices without giving any solutions at all.

I got a mixture of impressions here...

In addition to that, my limited knowledge of GNU/Linux is also a barrier; it is hard for me to understand what are those technical jargons supposed to mean. Which led me to reading many documents and even more in relevance to that. Which is a good learning.
I must admit, without good narrative and clear examples it is hard for me to understand those documents.
For example, reading the KPPP handbook I found that it has a Wizard button which can guide you to setup a connection but when I opened KPPP inside PCLinuxOS, the button is not even there.

So, the challenge is great.

Anyway, I made some more experiments, this time involving usb_modeswitch, - not being succesful of course!  :D - but who knows if this can lead to some good.

Here's the console output:

[root@localhost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 201e:1023 
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 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 125f:c82a A-DATA Technology Co., Ltd.
[root@localhost ~]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.

[root@localhost ~]# cat /etc/usb_modeswitch.conf
########################################################
# /etc/usb_modeswitch.conf
#
# Smart Haier CE682 (EVDO)
#

DefaultVendor=0x201e
DefaultProduct=0x1022

TargetVendor=0x201e
TargetProduct=0x1022

#MessageContent="5553424312345678000000000000061e000000000000000000000000000000"[root@localhost ~]# kwrite /etc/usb_modeswitch.conf                             
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
[root@localhost ~]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode, class or configuration (1)
Accessing device 004 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x04 (out) and 0x84 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("dummy")
 OK, driver "dummy" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: CDROM 
   Model String: EVDO ReV A     
Revision String: 7.00
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: China TeleCom
     Product: CBP7.1
  Serial No.: ����������
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

[root@localhost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 201e:1023 
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 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 125f:c82a A-DATA Technology Co., Ltd.
[root@localhost ~]# eject /dev/sr2
eject: unable to find or open device for: `/dev/sr2'
[root@localhost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 201e:1023 
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 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 125f:c82a A-DATA Technology Co., Ltd.
[root@localhost ~]# usb_modeswitch

Usage: usb_modeswitch [-hvpVPmMrndHSOGATRIQWDiua] [-c filename]

 -h, --help                    this help
 -e, --version                 print version information and exit
 -v, --default-vendor NUM      vendor ID of original mode (mandatory)
 -p, --default-product NUM     product ID of original mode (mandatory)
 -V, --target-vendor NUM       target mode vendor ID (optional)
 -P, --target-product NUM      target mode product ID (optional)
 -C, --target-class NUM        target mode device class (optional)
 -m, --message-endpoint NUM    direct the message transfer there (optional)
 -M, --message-content <msg>   message to send (hex number as string)
 -2 <msg>, -3 <msg>            additional messages to send (-n recommended)
 -n, --need-response           read response to the message transfer (CSW)
 -r, --response-endpoint NUM   read response from there (optional)
 -d, --detach-only             detach the active driver, no further action
 -H, --huawei-mode             apply a special procedure
 -S, --sierra-mode             apply a special procedure
 -O, --sony-mode               apply a special procedure
 -G, --gct-mode                apply a special procedure
 -N, --sequans-mode            apply a special procedure
 -A, --mobileaction-mode       apply a special procedure
 -T, --kobil-mode              apply a special procedure
 -R, --reset-usb               reset the device after all other actions
 -Q, --quiet                   don't show progress or error messages
 -W, --verbose                 print all settings and debug output
 -D, --sysmode                 specific result and syslog message
 -s, --success <seconds>       switching result check with timeout
 -I, --no-inquire              do not get SCSI attributes (default on)

 -c, --config-file <filename>  load configuration from file

 -i, --interface NUM           select initial USB interface (default 0)
 -u, --configuration NUM       select USB configuration
 -a, --altsetting NUM          select alternative USB interface setting


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.1.8 (C) Josua Dietze 2011
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

[root@localhost ~]# cat /etc/usb_modeswitch.conf
########################################################
# /etc/usb_modeswitch.conf
#
# Smart Haier CE682 (EVDO)
#

DefaultVendor=0x201e
DefaultProduct=0x1023

TargetVendor=0x201e
TargetProduct=0x1022

#MessageContent="5553424312345678000000000000061e000000000000000000000000000000"[root@localhost ~]# kwrite /etc/usb_modeswitch.conf
[root@localhost ~]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode, class or configuration (1)
Accessing device 005 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x04 (out) and 0x84 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("dummy")
 OK, driver "dummy" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: CDROM 
   Model String: EVDO ReV A     
Revision String: 7.00
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: China TeleCom
     Product: CBP7.1
  Serial No.: ����������
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x04 for message sending ...
Trying to send message 1 to endpoint 0x04 ...
 OK, message successfully sent
Reading the response to message 1 (CSW) ...
 OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x04 ...
 OK, message successfully sent
Reading the response to message 2 (CSW) ...
 OK, response successfully read (13 bytes).
Resetting response endpoint 0x84
 Could not reset endpoint (probably harmless): -34
Resetting message endpoint 0x04
 Could not reset endpoint (probably harmless): -34
 Device is gone, skipping any further commands

Checking for mode switch (max. 20 times, once per second) ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...

Found target device, now opening
 Found correct target device

Mode switch succeeded. Bye.

[root@localhost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 201e:1022 
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 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 125f:c82a A-DATA Technology Co., Ltd.
[root@localhost ~]# ls -l /dev/ttyUSB*
ls: cannot access /dev/ttyUSB*: No such file or directory
[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.61
--> Warning: section [Dialer Defaults] does not exist in wvdial.conf.
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
[root@localhost ~]# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3   


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial
[root@localhost ~]# modprobe
Usage: modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] [-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
[root@localhost ~]# modprobe usbserial vendor=0x201e product=0x1022
[root@localhost ~]# exit
logout
There are stopped jobs.
[root@localhost ~]# exit
logout
[kopipait@localhost ~]$ ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Jun  9 13:50 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jun  9 13:50 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Jun  9 13:50 /dev/ttyUSB2
[kopipait@localhost ~]$ ls -l /dev/modem
lrwxrwxrwx 1 root root 7 Jun  9  2012 /dev/modem -> ttyUSB2
[kopipait@localhost ~]$ wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
ttyUSB2<Info>: Device or resource busy
Modem Port Scan<*1>: USB2
ttyS0<Info>: Device or resource busy
Modem Port Scan<*1>: S0   
ttyS1<Info>: Device or resource busy
Modem Port Scan<*1>: S1   
ttyS2<Info>: Device or resource busy
Modem Port Scan<*1>: S2   
ttyS3<Info>: Device or resource busy
Modem Port Scan<*1>: S3   
ttyUSB0<Info>: Device or resource busy
Modem Port Scan<*1>: USB0
ttyUSB1<Info>: Device or resource busy
Modem Port Scan<*1>: USB1


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial
[kopipait@localhost ~]$ wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
ttyUSB2<Info>: Device or resource busy
Modem Port Scan<*1>: USB2
ttyS0<Info>: Device or resource busy
Modem Port Scan<*1>: S0   
ttyS1<Info>: Device or resource busy
Modem Port Scan<*1>: S1   
ttyS2<Info>: Device or resource busy
Modem Port Scan<*1>: S2   
ttyS3<Info>: Device or resource busy
Modem Port Scan<*1>: S3   
ttyUSB0<Info>: Device or resource busy
Modem Port Scan<*1>: USB0
ttyUSB1<Info>: Device or resource busy
Modem Port Scan<*1>: USB1


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial
[kopipait@localhost ~]$ gnome-ppp

(gnome-ppp:4459): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(gnome-ppp:4459): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
WVCONF: /home/kopipait/.wvdial.conf
GNOME PPP: STDOUT: Editing `/dev/null'.
GNOME PPP: STDERR: Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyUSB2<Info>: Device or resource busy
GNOME PPP: STDOUT: Scanning your serial ports for a modem.
GNOME PPP: STDERR: Modem Port Scan<*1>: USB2
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyS0<Info>: Device or resource busy
GNOME PPP: STDOUT:
GNOME PPP: STDERR: Modem Port Scan<*1>: S0   
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyS1<Info>: Device or resource busy
GNOME PPP: STDOUT: Sorry, no modem was detected!  Is it in use by another program?
GNOME PPP: STDERR: Modem Port Scan<*1>: S1   
GNOME PPP: STDOUT: Did you configure it properly with setserial?
GNOME PPP: STDERR: ttyS2<Info>: Device or resource busy
GNOME PPP: STDOUT:
GNOME PPP: STDERR: Modem Port Scan<*1>: S2   
GNOME PPP: STDOUT: Please read the FAQ at http://alumnit.ca/wiki/?WvDial
GNOME PPP: STDERR: ttyS3<Info>: Device or resource busy
GNOME PPP: STDERR: Modem Port Scan<*1>: S3   
GNOME PPP: STDERR: ttyUSB0<Info>: Device or resource busy
GNOME PPP: STDERR: Modem Port Scan<*1>: USB0
GNOME PPP: STDERR: ttyUSB1<Info>: Device or resource busy
GNOME PPP: STDERR: Modem Port Scan<*1>: USB1
[kopipait@localhost ~]$ dmesg | grep tty
console [tty0] enabled

serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
usb 1-2: generic converter now attached to ttyUSB0
usb 1-2: generic converter now attached to ttyUSB1
usb 1-2: generic converter now attached to ttyUSB2
[kopipait@localhost ~]$ dmesg | grep disconnect
usb 1-2: USB disconnect, address 2
usb 1-2: USB disconnect, address 3
usb 1-2: USB disconnect, address 4
usb 1-2: USB disconnect, address 5
[kopipait@localhost ~]$ wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
ttyUSB2<Info>: Device or resource busy
Modem Port Scan<*1>: USB2
ttyS0<Info>: Device or resource busy
Modem Port Scan<*1>: S0
ttyS1<Info>: Device or resource busy
Modem Port Scan<*1>: S1
ttyS2<Info>: Device or resource busy
Modem Port Scan<*1>: S2
ttyS3<Info>: Device or resource busy
Modem Port Scan<*1>: S3
ttyUSB0<Info>: Device or resource busy
Modem Port Scan<*1>: USB0
ttyUSB1<Info>: Device or resource busy
Modem Port Scan<*1>: USB1


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial


-- end of console output --

Back to luikki, the URL you've given me also gave me "Sorry, the page you were looking for in this blog does not exist. "
Thankfully you have for pasted the content, I will try it right away and will post back the result!
Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB

Offline najor

  • Jr. Member
  • **
  • Posts: 11
Re: Help me configuring my CDMA modem, Huawei CE682
« Reply #14 on: June 10, 2012, 06:25:14 AM »
I was just finished trying what luikki suggests, here it is.

Since sudo does not exist in PCLinuxOS realm, any references to sudo is replaced with su.

Plug the modem in, wait for the device to be deteced (as CD-ROM)

Eject CD-ROM
$ SU
$ eject /dev/sr2

My modem happens to be detected as sr2
Btw, eject sometimes failed, when that happens I try to eject from Dolphin file manager instead.

Check detected device again
$ lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 201e:1022
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 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 125f:c82a A-DATA Technology Co., Ltd.


So the device ID has changed to 201e:1022

Create file usb_modeswitch.conf at /etc/ directory for configuration
$ kwrite /etc/usb_modeswitch.conf

Add these lines at the end of file:

# SmartFren Haier CE682 (EVDO)
DefaultVendor = 0x201e
DefaultProduct = 0×1022

TargetVendor = 0x201e
TargetProduct = 0×1022

MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"


Which becomes:

# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script "usb_modeswitch_dispatcher"
# in /usr/sbin
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
# Everything else counts as "disable"


# Disable automatic mode switching globally (e.g. to access the original
# install storage)

DisableSwitching=0


# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>" (and probably others)

EnableLogging=0

# SmartFren Haier CE682 (EVDO)
DefaultVendor = 0x201e
DefaultProduct = 0×1022

TargetVendor = 0x201e
TargetProduct = 0×1022

MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"



Create rules file for CE682 modem at /etc/udev/rules.d/99-haier-ce682.rules
$ kwrite /etc/udev/rules/d/99-haier-ce682.rules

The system disallow me to create this file.
So I cd into /etc/udev/rules/d/ then I copy a file within /etc/udev/rules/d/ and rename it to 99-haier-ce682.rules.

From there I proceed editing the file and adding these lines:

# SmartFren Haier CE682 (EVDO)
SUBSYSTEM=="usb", SYSFS{idVendor}=="201e",
SYSFS{idProduct}=="1022", RUN+="/usr/sbin/usb_modeswitch ?default-vendor 0x201e ?default-product 0×1022 ?message-content 5553424312345678c00000008000069f030000000000000000000000000000"


Load config to kernel
$ modprobe usbserial vendor=0x201e product=0x1022

Detect modem using wvdial
$ wvdialconf

Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: China TeleCom
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: 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 -- Manufacturer: +GMI: China TeleCom
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; 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: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB2, using link /dev/modem in config.
Modem configuration written to /etc/wvdial.conf.
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"


According to wvdialconfig, a modem is found on /dev/ttyUSB2

Setup wvdial config
$ kwrite /etc/wvdial.conf

I add these lines:

[Dialer smart]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1
Modem Type = Analog Modem
Command Line = ATDT
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800


Which then becomes:

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone = <Target Phone Number>
ISDN = 0
; Username = <Your Login Name>
Init1 = ATZ
; Password = <Your Password>
Modem = /dev/modem
Baud = 9600

[Dialer smart]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1
Modem Type = Analog Modem
Command Line = ATDT
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB2
Username = smart
Password = smart
Baud = 460800


I made an adjustment from ttyUSB0 to ttyUSB2 in extent to wvdialconfig detection

$ exit

Then I did

$ wvdial smart
--> WvDial: Internet dialer version 1.61
--> 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
OK
CONNECT 3100000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Jun 10 16:55:58 2012
--> Pid of pppd: 4738
--> Using interface ppp0
--> pppd: Connect: ppp0 <--> /dev/ttyUSB2
--> pppd: Serial line is looped back.
--> pppd: Connection terminated.
--> Disconnecting at Sun Jun 10 16:56:02 2012
--> The PPP daemon has died: Loopback detected (exit code = 17)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 17)


No connection made. It should work, but it is not.

Out of options, I made a shot in the dark by re-editing /etc/wvdial.conf.
This time I preserve the ttyUSB0 and name the section smart0.
Here's what I add to /etc/wvdial.conf:

[Dialer smart0]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1
Modem Type = Analog Modem
Command Line = ATDT
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800


Then I retry:
$ wvdial smart0

Does not work.

--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.


So I restart my PC.

Re-plug, eject, modprobe and
$ wvdial smart 0

And ... connection made!

The speed is rather slow at around 60kB/s this device in Windows would give around 200kB/s.
So it's a significant performance drop.

After browsing around little I figure I have to try to disconnect and reconnect to make sure the configuration is good.

I try to disconnect the connection with Ctrl^C.

And retry the connection:
$ wvdial smart0

This time I see a lot of garbage from ---> Sending: ATZ
Ended with Modem not responding.

I try again with smart:
$ wvdial smart

Now I got a long pause at "^DSDORMANT:1" and wvdial keep retrying.
This process has been going for over 5 minutes without any hint of a successful connection, so I cancel it.

At the very least, it is possible to make a connection albeit the complexity.

Which brought me to some questions...

In usb_modeswitch.conf, I noticed that the DefaultProduct and TargetProduct have the same value of 0×1022.
I thought usb_modeswitch meant to "switch" a device mode from CD-ROM (0x1023) to MODEM (0x1022)?

From ls -l /dev/modem and wvdialconf output it is very obvious that a modem is found at ttyUSB2.
But that doesn't work, instead a ttyUSB0 could deliver albeit is not detected by the system.

Now that there is a successful connection can be made, there has to be a way to automate this whole process so that connection can be made easier.
I hope I am not too early to expect this.

Here are the whole console outputs (including the mistyped commands) : :)

[kopipait@localhost ~]$ su
Password:
[root@localhost ~]# eject /dev/sr2
[root@localhost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 201e:1022  
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 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 125f:c82a A-DATA Technology Co., Ltd.
[root@localhost ~]# kwrite /etc/usb_modeswicth.conf
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
[root@localhost ~]# kwrite /etc/usb_modeswitch.conf
[root@localhost ~]# kwrite /etc/udev/rules/d/99-haier-ce682.rules
[root@localhost ~]# modprobe usbserial vendor=0x201e product=0x1022
[root@localhost ~]# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: Scanning ttyUSB2 first, /dev/modem is a link to it.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: China TeleCom
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: 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 -- Manufacturer: +GMI: China TeleCom
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; 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: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB2, using link /dev/modem in config.
Modem configuration written to /etc/wvdial.conf.
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
[root@localhost ~]# kwrite /etc/wvdial.conf
[root@localhost ~]#

Here's the output of the other attempt after a restart:

[kopipait@localhost ~]$ su
Password:
[root@localhost ~]# eject /dev/sr2
[root@localhost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 201e:1022  
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 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 125f:c82a A-DATA Technology Co., Ltd.
[root@localhost ~]# modprobe usbserial vendor=0x201e product=0x1022

[root@localhost ~]# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Jun 10 17:31 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jun 10 17:31 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Jun 10 17:31 /dev/ttyUSB2
[root@localhost ~]# ls -l /dev/modem
lrwxrwxrwx 1 root root 7 Jun 11  2012 /dev/modem -> ttyUSB2
[root@localhost ~]# exit
logout

[kopipait@localhost ~]$ wvdial smart0
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: 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 3100000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Jun 10 17:32:43 2012
--> Pid of pppd: 2975
--> Using interface ppp0
--> pppd: Connect: ppp0 <--> /dev/ttyUSB0
--> pppd: CHAP authentication succeeded
--> pppd: CHAP authentication succeeded
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> local  IP address 10.189.170.16
--> remote IP address 10.17.95.19
--> primary   DNS address 10.17.3.244
--> secondary DNS address 10.17.3.245
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: CCP: timeout sending Config-Requests
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: Received bad configure-rej:  12 06 00 00 00 00 1a 04 78 00 18 04 78 00 15 03 2f
--> pppd: CCP: timeout sending Config-Requests

^CCaught signal 2:  Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 8.9 minutes.
--> pppd: Sent 737530 bytes, received 7203463 bytes.
--> pppd: Connection terminated.
--> Disconnecting at Sun Jun 10 17:41:34 2012

[kopipait@localhost ~]$ wvdial smart0
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
~[7f]}#@!}!}!} }3}"}&} } } } }#}%B#}%}'}"}(}"W}0~~[7f]}#@!}!}"} }3}"}&} } } } }#}%B#}%}'}"}(}"o}1~~[7f]}#@!}!}#} }3}"}&} } } } }#}%B#}%}'}"}(}"[08]i~~[7f]}#@!}!}$} }3}"}&} } } } }#}%B#}%}'}"}(}"}?}3~~[7f]}#@!}!}%} }3}"}&} } } } }#}%B#}%}'}"}(}"xk~~[7f]}#@!}!}&} }3}"}&} } } } }#}%B#}%}'}"}(}"@j~~[7f]}#@!}!}'} }3}"}&} } } } }#}%B#}%}'}"}(}"'}2~~[7f]}#@!}!}(} }3}"}&} } } } }#}%B#}%}'}"}(}"[7f]}7~~[7f]}#@!}!})} }3}"}&} } } } }#}%B#}%}'}"}(}"}8o~~[7f]}#@!}!}*} }3}"}&} } } } }#}%B#}%}'}"}(}" n~
--> Sending: ATQ0
--> Re-Sending: ATZ
~[7f]}#@!}!}!} }3}"}&} } } } }#}%B#}%}'}"}(}"W}0~~[7f]}#@!}!}"} }3}"}&} } } } }#}%B#}%}'}"}(}"o}1~~[7f]}#@!}!}#} }3}"}&} } } } }#}%B#}%}'}"}(}"[08]i~~[7f]}#@!}!}$} }3}"}&} } } } }#}%B#}%}'}"}(}"}?}3~~[7f]}#@!}!}%} }3}"}&} } } } }#}%B#}%}'}"}(}"xk~~[7f]}#@!}!}&} }3}"}&} } } } }#}%B#}%}'}"}(}"@j~~[7f]}#@!}!}'} }3}"}&} } } } }#}%B#}%}'}"}(}"'}2~~[7f]}#@!}!}(} }3}"}&} } } } }#}%B#}%}'}"}(}"[7f]}7~~[7f]}#@!}!})} }3}"}&} } } } }#}%B#}%}'}"}(}"}8o~~[7f]}#@!}!}*} }3}"}&} } } } }#}%B#}%}'}"}(}" n~
--> Modem not responding.
[kopipait@localhost ~]$ wvdial smart
--> WvDial: Internet dialer version 1.61
--> 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
OK
^DSDORMANT:1
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
OK
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
OK
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.

ATDT#777
OK
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
OK
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
OK
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.

ATDT#777
OK
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
OK
--> Timed out while dialing.  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.

^CCaught signal 2:  Attempting to exit gracefully...
--> Disconnecting at Sun Jun 10 17:59:51 2012

Intel Pentium E--2180, Gigabyte G31M-ES2L, 4GB RAM, AMD Radeon HD 6570 1GB