作者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/m.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