wvdial problem for 3G USB modules

Asked by Wei

When I use the wvdial by Huawei USB CDMA EM660 module in my embedded device, error is as below

# sudo wvdial
--> 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.
wvdial: utils/wvtask.cc:198: WvTaskMan::WvTaskMan(): Assertion `getcontext(&get_stack_return) == 0' failed.

Aborted

I do apt-get install libc6-dev, which is still not userful.

But If I do the same procedure in the Desktop Ubuntu 9.10
$ sudo wvdial
--> 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. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Tue May 25 10:35:12 2010
--> Pid of pppd: 3598
--> Using interface ppp0
--> pppd: (�s[08]@�s[08]
--> pppd: (�s[08]@�s[08]
--> pppd: (�s[08]@�s[08]
--> pppd: (�s[08]@�s[08]
--> local IP address 75.208.166.141
--> pppd: (�s[08]@�s[08]
--> remote IP address 66.174.216.64
--> pppd: (�s[08]@�s[08]
--> primary DNS address 66.174.92.14
--> pppd: (�s[08]@�s[08]
--> secondary DNS address 69.78.96.14
--> pppd: (�s[08]@�s[08]

I don't know which library I have missing? Thanks

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vitaliy Kulikov (slonua) said :
#1

just quick question ... why r using wvdial !? network-manager must work perfectly =).

could u provide output

$ lsusb

Revision history for this message
Wei (trojanwei) said :
#2

my NM is also not working too.

# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 011: ID 12d1:1404 Huawei Technologies Co., Ltd.
Bus 001 Device 010: ID 050d:706a Belkin Components
Bus 001 Device 009: ID 0b95:7720 ASIX Electronics Corp. AX88772
Bus 001 Device 008: ID 050d:0706 Belkin Components
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Revision history for this message
Wei (trojanwei) said :
#3

when the USB modem is plugined, the message as follows

 5197.810000] usb 1-1.4.2: new full speed USB device using tegra-ehci and addr2
[ 5197.850000] usb 1-1.4.2: New USB device found, idVendor=12d1, idProduct=1404
[ 5197.860000] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNum4
[ 5197.880000] usb 1-1.4.2: Product: HUAWEI Mobile
[ 5197.890000] usb 1-1.4.2: Manufacturer: HUA�WEI TECHNOLOGIES
[ 5197.900000] usb 1-1.4.2: SerialNumber: �������������������
[ 5197.910000] usb 1-1.4.2: configuration #1 chosen from 1 choice
[ 5197.940000] usb-storage: probe of 1-1.4.2:1.0 failed with error -5
[ 5197.960000] option 1-1.4.2:1.0: GSM modem (1-port) converter detected
[ 5197.970000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 5197.990000] usb-storage: probe of 1-1.4.2:1.1 failed with error -5
[ 5198.000000] option 1-1.4.2:1.1: GSM modem (1-port) converter detected
[ 5198.010000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 5198.030000] usb-storage: probe of 1-1.4.2:1.2 failed with error -5
[ 5198.040000] option 1-1.4.2:1.2: GSM modem (1-port) converter detected
[ 5198.050000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 5198.070000] usb-storage: probe of 1-1.4.2:1.3 failed with error -5
[ 5198.080000] option 1-1.4.2:1.3: GSM modem (1-port) converter detected
[ 5198.090000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB3

Revision history for this message
Wei (trojanwei) said :
#4

The information is enough or not?

Revision history for this message
Vitaliy Kulikov (slonua) said :
#5

try this

$ sudo modprobe -r option
$ sudo modprobe -r usbserial
$ sudo modprobe usbserial vendor=0×12d1 product=0×1404

and then “safely remove drive” on the mobile connect drive. works, but you have to do it every time, and the usbserial, option and vendor/prod id may change if other usb-peripherals are connected.

but, it's strange for me that ur modem string is
"Huawei Technologies Co., Ltd.", but not "Huawei Technologies Co., Ltd. EM660 USB Modem"

Revision history for this message
Wei (trojanwei) said :
#6

# sudo modprobe usbserial vendor=0×12d1 product=0×1404
sudo: unable to resolve host (none)
FATAL: Module usbserial not found

# sudo modprobe usbserial vendor=0×12d1 product=0×1404
sudo: unable to resolve host (none)
FATAL: Module usbserial not found.

Revision history for this message
Wei (trojanwei) said :
#7

# sudo modprobe -r option
sudo: unable to resolve host (none)
FATAL: Module option not found.
# sudo modprobe -r usbserial
sudo: unable to resolve host (none)
FATAL: Module usbserial not found.

Revision history for this message
Vitaliy Kulikov (slonua) said :
#8

could u provide output:

$ lsb_release -a && uname -a

Revision history for this message
Vitaliy Kulikov (slonua) said :
#9

just got it, please install this package:

$ sudo apt-get install usb-modeswitch

Revision history for this message
Wei (trojanwei) said :
#10

After $ sudo aptitude install usb-modeswitch, not solved

$lsb_release -a && uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Linux 2.6.31-19-generic-pae #56-Ubuntu SMP Thu Jan 28 02:29:51 UTC 2010 i686 GNU/Lin

$ ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3

at the same time, I can use wvdial to connect Internet

$ sudo wvdial
--> 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. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Tue May 25 10:35:12 2010
--> Pid of pppd: 3598
--> Using interface ppp0
--> pppd: (�s[08]@�s[08]
--> pppd: (�s[08]@�s[08]
--> pppd: (�s[08]@�s[08]
--> pppd: (�s[08]@�s[08]
--> local IP address 75.208.166.141
--> pppd: (�s[08]@�s[08]
--> remote IP address 66.174.216.64
--> pppd: (�s[08]@�s[08]
--> primary DNS address 66.174.92.14
--> pppd: (�s[08]@�s[08]
--> secondary DNS address 69.78.96.14
--> pppd: (�s[08]@�s[08]

Revision history for this message
Vitaliy Kulikov (slonua) said :
#11

so, u can connect by wvdial, i guess ?

ohh, usb-modeswitch will help on ubuntu 10.04 for NM

will u upgrade ?

Revision history for this message
Wei (trojanwei) said :
#12

I missed a comment, I can use wvdial in the Desktop PC, not the device

Revision history for this message
Wei (trojanwei) said :
#13

In the device

# sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
#
# ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3
#
when pluged out or plugined the USB device,
#dmesg

# [ 411.680000] usb 1-1.4.2: USB disconnect, address 7
[ 411.690000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from tty0
[ 411.710000] option 1-1.4.2:1.0: device disconnected
[ 411.720000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from tty1
[ 411.730000] option 1-1.4.2:1.1: device disconnected
[ 411.740000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from tty2
[ 411.760000] option 1-1.4.2:1.2: device disconnected
[ 411.770000] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from tty3
[ 411.790000] option 1-1.4.2:1.3: device disconnected
[ 416.530000] usb 1-1.4.2: new full speed USB device using tegra-ehci and address 8
[ 416.570000] usb 1-1.4.2: New USB device found, idVendor=12d1, idProduct=1404
[ 416.580000] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[ 416.600000] usb 1-1.4.2: Product: HUAWEI Mobile
[ 416.610000] usb 1-1.4.2: Manufacturer: HUA�WEI TECHNOLOGIES
[ 416.620000] usb 1-1.4.2: SerialNumber: �������������������
[ 416.630000] usb 1-1.4.2: configuration #1 chosen from 1 choice
[ 416.650000] usb-storage: probe of 1-1.4.2:1.0 failed with error -5
[ 416.660000] option 1-1.4.2:1.0: GSM modem (1-port) converter detected
[ 416.680000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 416.700000] usb-storage: probe of 1-1.4.2:1.1 failed with error -5
[ 416.710000] option 1-1.4.2:1.1: GSM modem (1-port) converter detected
[ 416.720000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 416.740000] usb-storage: probe of 1-1.4.2:1.2 failed with error -5
[ 416.750000] option 1-1.4.2:1.2: GSM modem (1-port) converter detected
[ 416.760000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 416.780000] usb-storage: probe of 1-1.4.2:1.3 failed with error -5
[ 416.790000] option 1-1.4.2:1.3: GSM modem (1-port) converter detected
[ 416.800000] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB3

Revision history for this message
fgrdehy gvfdgbf (laoki893) said :
#14

Why you are still using 3G USB there are so many other options are available now like you can se some choices on this link https://www.freshbeautystudio.com/ and choose which looks suitable to you.

Can you help with this problem?

Provide an answer of your own, or ask Wei for more information if necessary.

To post a message you must log in.