我正在使用telit GC864-DUAL-V2调制解调器。
我正在尝试使用Linux中的chat
和pppd
连接到gprs网络。因为我收到来自pppd
的“LCP:超时发送配置请求”的错误消息。我已尝试在lcp-max-configure
中增加pppd
选项。然后我也收到了同样的错误信息。
有人可以提出一些建议来纠正这个问题吗?
以下是我从pppd
获得的详细消息日志。
获得PPPD日志:
pppd /dev/ttyUSB0 115200 modem lock connect '/usr/sbin/chat -v -s -f /etc/ppp/chatscript' debug logfd 1 nodetach noauth defaultroute
timeout set to 10 seconds
abort on (\nBUSY\r)
abort on (\nNO ANSWER\r)
abort on (\nERROR\r)
abort on (\nNO CARRIER\r)
timeout set to 35 seconds
send (ATZ^M)
expect (OK)
ATZ^M^M
OK
-- got it
send (ATX3^M)
expect (OK)
^M
ATX3^M^M
OK
-- got it
send (AT&K0^M)
expect (OK)
^M
AT&K0^M^M
OK
-- got it
send (AT+CGDCONT=2,"IP","airtelgprs.com"^M)
expect (OK)
^M
AT+CGDCONT=2,"IP","airtelgprs.com"^M^M
OK
-- got it
send (AT+CGATT=1^M)
expect (OK)
^M
AT+CGATT=1^M^M
OK
-- got it
send (ATD*99***2#^M)
expect (CONNECT)
^M
ATD*99***2#^M^M
CONNECT
-- got it
Serial connection established.
using channel 7
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x23dd4e00> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth pap>]
rcvd [LCP TermReq id=0x2 00 00 00 00 00 00]
sent [LCP TermAck id=0x2]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd04133c> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
答案 0 :(得分:1)
我已将AT#GAUTH=0
添加到我的chat
脚本中。然后我能够毫无问题地连接。
注意:强>
AT#GAUTH
- 命令为PPP-GPRS
和PPP-GSM
连接设置身份验证类型。其出厂默认设置为PAP
身份验证启用。有关详细信息,请参阅telit GC864-DUAL-V2 AT参考手册。在我没有将AT#GAUTH=0
添加到聊天脚本中的情况下,调制解调器期待来自对等方的身份验证数据包。但在我的情况下peer(airtel)它不需要任何身份验证。所以它没有发送任何数据包。所以在主机方面我收到来自pppd
的超时消息。
我希望这可以帮助像我这样寻找答案的人。