作者gn00618777 (非常念旧)
看板ASM
标题Fw: [问题] 3G上网
时间Sun Oct 5 13:36:20 2014
※ [本文转录自 Linux 看板 #1KBfYsnv ]
作者: gn00618777 (非常念旧) 看板: Linux
标题: [问题] 3G上网
时间: Fri Oct 3 20:38:10 2014
环境是 arm-linux (ubuntu)
在 device 上装上 3G网卡(UC20),kernel也有抓到。接着在编辑
etc/ppp/peers/Module-UC20, /etc/ppp/peers/Chat-Module-UC20-connect,
etc/ppp/peers/Chat-Module-UC20-disconnect.
最後执行 pppd call Module-UC20出现以下讯息
=========================================================================
root@ubuntu-armhf:/# pppd call Module-UC20
abort on (NO CARRIER)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (BUSY)
abort on (NO ANSWER)
send (AT^M)
send (ATE0^M)
expect (OK)
^M
OK
-- got it
send (ATD*99#^M)
expect (CONNECT)
^M
^M
OK^M
^M
CONNECT
-- got it
send (^M)
Script chat -s -v -f /etc/ppp/peers/Chat-Module-UC20-connect finished (pid 1597), status = 0x0
Serial connection established.
using channel 3
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbd8ec2> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap MD5> <magic 0x259267f> <pcomp> <accomp>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth chap MD5> <magic 0x259267f> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbd8ec2> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xbd8ec2]
rcvd [LCP DiscReq id=0x3 magic=0x259267f]
rcvd [CHAP Challenge id=0x1 <1429c17f92217062ba2aacaf70732950>, name = "UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <dfb382700007423dc6159a5a88da59af>, name = "bernie"]
rcvd [LCP EchoRep id=0x0 magic=0x259267f 00 bd 8e c2]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [proto=0x3] 01 00 04
Unsupported protocol 0x3 received
sent [LCP ProtRej id=0x2 00 03 01 00 04]
Modem hangup
Connection terminated.
==============================================================================
感觉在最後倒数六行 IPCP 这个 protocol 怪怪的,是对方 server 没支援吗?
3G一直无法连线 Modem hangup,求方向...谢谢。
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.169.58.148
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Linux/M.1412339894.A.C79.html
※ gn00618777:转录至看板 Network 10/03 20:55
※ 发信站: 批踢踢实业坊(ptt.cc)
※ 转录者: gn00618777 (220.136.152.81), 10/05/2014 13:36:24
1F:→ gn00618777: 已解决,连线脚本有问题 10/06 17:29