XLinux PPP:wvdial 退出代码 16 无调试详细信息

XLinux PPP:wvdial 退出代码 16 无调试详细信息

我尝试在 Rapsbian RPi 上使用 3G USB 调制解调器,一切顺利,除了由于某种原因 PPP 断开连接并退出代码 16。我启用了调试模式,但除了身份验证成功之外,它什么也没说。

请参阅下面的详细信息:

 WvDial: Internet dialer version 1.61
 Initializing modem.
 Sending: ATZ
ATZ
OK
 Sending: AT+CPIN=XXXX
AT+CPIN=XXXX
OK
 Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
 Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
 Modem initialized.
 Sending: ATD*99#
 Waiting for carrier.
ATD*99#
CONNECT 3600000
 Carrier detected.  Starting PPP immediately.
 Starting pppd at Sun Dec  7 22:23:20 2014
 Pid of pppd: 2967
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 Using interface ppp0
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 Authentication (CHAP) started
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 Authentication (CHAP) successful
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 pppd: 8�f[01]P�f[01]h�f[01]��f[01]؉f[01]0�f[01]
 Disconnecting at Sun Dec  7 22:23:24 2014
 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

/var/log/messages 显示:

Dec  7 22:58:45 raspberrypi pppd[3779]: pppd 2.4.5 started by root, uid 0
Dec  7 22:58:45 raspberrypi pppd[3779]: Using interface ppp0
Dec  7 22:58:45 raspberrypi pppd[3779]: Connect: ppp0 <--> /dev/ttyUSB2
Dec  7 22:58:45 raspberrypi pppd[3779]: CHAP authentication succeeded
Dec  7 22:58:45 raspberrypi pppd[3779]: CHAP authentication succeeded
Dec  7 22:58:48 raspberrypi pppd[3779]: Modem hangup
Dec  7 22:58:48 raspberrypi pppd[3779]: Connection terminated.
Dec  7 22:58:48 raspberrypi pppd[3779]: Exit.

答案1

我确实弄清楚了。问题是输入 SIM 卡 PIN 码后,wvdial 会继续拨号。这太快了。输入 PIN 码后,卡需要一段时间才能注册到网络。

我已经创建了拨号脚本,一个只需输入 PIN 码,等待 20 秒,然后另一个拨打 3G 网络,现在它可以可靠地工作。

相关内容