The contents of wvdial.conf are:
- Code: Select all
[Dialer Defaults]
Stupid Mode = 1
init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,"IP","3netaccess"
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Dial Command = ATD
Auto Reconnect = on
Carrier Check = yes
Username = three
Password = three
Modem = /dev/ttyUSB2
Baud = 460800
The only thing I've noticed is that it used to work on /dev/ttyUSB0, but now it's /dev/ttyUSB2 that wvdialconfig detects, so I've left it at /dev/ttyUSB2. Running usb_modeswitch I get:
- Code: Select all
klaatu etc # usb_modeswitch -c usb_modeswitch.conf
Looking for target devices ...
Found devices in target mode or class (1)
Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.
And the entry I'm using in usb_modeswitch.conf is this, which used to work before (in other words, I found it to work with both modems perfectly, before whatever it is broke):
- Code: Select all
########################################################
# Huawei E122 (HSPA+ modem)
#
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x1001
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
CheckSuccess=5
Now, invoking wvdial shows:
- Code: Select all
klaatu etc # wvdial
--> 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
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","3netaccess"
AT+CGDCONT=1,"IP","3netaccess"
OK
--> Modem initialized.
--> Sending: ATD*99#
--> Waiting for carrier.
ATD*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Feb 5 12:15:49 2011
--> Pid of pppd: 13939
--> pppd: �[7f]
--> Using interface ppp0
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> Disconnecting at Sat Feb 5 12:16:19 2011
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","3netaccess"
AT+CGDCONT=1,"IP","3netaccess"
OK
--> Modem initialized.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","3netaccess"
AT+CGDCONT=1,"IP","3netaccess"
OK
--> Modem initialized.
--> Sending: ATD*99#
--> Waiting for carrier.
ATD*99#
NO CARRIER
--> No Carrier! Trying again.
--> Sending: ATD*99#
--> Waiting for carrier.
^BOOT:30117084,0,0,0,87
ATD*99#
NO CARRIER
--> No Carrier! Trying again.
--> Sending: ATD*99#
--> Waiting for carrier.
ATD*99#
NO CARRIER
--> No Carrier! Trying again.
--> Sending: ATD*99#
--> Waiting for carrier.
ATD*99#
NO CARRIER
--> No Carrier! Trying again.
^CCaught signal 2: Attempting to exit gracefully...
--> Disconnecting at Sat Feb 5 12:16:27 2011
klaatu etc #
looking at /var/log/messages shows nothing specific.
Can anyone help?