wvdial fails to start ppp (which exits with exit code 2)

60 views
Skip to first unread message

Zaphod B

unread,
Aug 14, 2016, 8:37:32 AM8/14/16
to wvstreams-devel
Hi there,

I am trying to set up a Huawei E1762 modem working on a Raspberry Pi. This fails with

pi@raspberrypi:~ $ sudo wvdial
--> WvDial: Internet dialer version 1.61
--> 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: ATM1L3D*99#
--> Waiting for carrier.
ATM1L3D
*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Fri May 27 19:22:45 2016
--> Pid of pppd: 884
--> Disconnecting at Fri May 27 19:22:46 2016
--> The PPP daemon has died: pppd options error (exit code = 2)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 2)

The man page of ppp indicates, that this means that "An error was detected in processing the options given, such as two mutually exclusive options being used.". I am confident, that the wvdial.conf is correct, because doing the same on my laptop works fine:

zaphod@x220 ~ % sudo wvdial
--> WvDial: Internet dialer version 1.61
--> 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: ATM1L3D*99#
--> Waiting for carrier.
ATM1L3D
*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Aug 13 19:49:28 2016
--> Pid of pppd: 7179
--> Using interface ppp0
--> local  IP address 10.143.180.112
--> remote IP address 10.64.64.64
--> primary   DNS address 195.186.152.33
--> secondary DNS address 195.186.216.33

The wvdial.conf looks like this:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Username = blah
Password = blah
Ask Password = off
Check Def Route = on
Abort on No Dialtone = on
apn
= gprs.swisscom.ch
Idle Seconds = 0
Modem Type = Analog Modem
Stupid Mode = on
Baud = 9600
Auto DNS = on
Dial Command = ATM1L3D
Modem = /dev/ttyUSB0
ISDN
= 0
Phone = *99#
Carrier Check = On

[pin]
Init3 = AT+CPIN=1234

Can anyone help or give me a hint?

Reply all
Reply to author
Forward
0 new messages