|
ubuntu 12.04
send (AT^M) expect (OK) ^M OK -- got it
send (ATV1^M) expect (OK) ^M ^M OK -- got it
send (ATE0^M) expect (OK) ^M ^M OK -- got it
send (ATS0=0^M) expect (OK) ^M ^M OK -- got it
send (AT+CSQ^M) expect (OK) ^M ^M +CSQ: 0,99^M ^M OK -- got it
send (AT+COPS?^M) expect (OK) ^M ^M +COPS: 0^M ^M OK -- got it
send (AT+COPS=?^M) expect (OK) ^M ^M +COPS: ,,(0-4),(0-2)^M ^M OK -- got it
send (AT&D1^M) expect (OK) ^M ^M +CME ERROR -- failed 看win驱动初始化有AT&F&D2&C1S0=0 如果不用此命令 send (AT+CGDCONT=1,"IP","CMNET"^M) expect (OK) ^M ^M OK -- got it
send (AT+CFUN=1^M) expect (OK) ^M ^M OK -- got it
send (ATDT*99***1#^M) expect (CONNECT) ^M ^M +CREG: 2^M ^M +CGREG: 2^M ^M CONNECT -- got it
send (^M) Script /usr/sbin/chat -s -v -f /etc/ppp/gprs-connect-chat finished (pid 3922), status = 0x0 Serial connection established. using channel 1 Using interface ppp0 Connect: ppp0 <--> /dev/ttyUSB0 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8a92a80> <pcomp> <accomp>] rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x96a24aa4> <pcomp> <accomp>] sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x96a24aa4> <pcomp> <accomp>] rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xb8a92a80> <pcomp> <accomp>] sent [LCP EchoReq id=0x0 magic=0xb8a92a80] sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] rcvd [LCP EchoRep id=0x0 magic=0x96a24aa4] rcvd [IPCP ConfReq id=0x1 <addr 0.0.0.0>] sent [IPCP ConfRej id=0x1 <addr 0.0.0.0>] rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15] Protocol-Reject for 'Compression Control Protocol' (0x80fd) received rcvd [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>] sent [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>] rcvd [IPCP ConfReq id=0x3] sent [IPCP ConfAck id=0x3] rcvd [LCP TermReq id=0x3 "User request"] LCP terminated by peer (User request) sent [LCP TermAck id=0x3] Connection terminated. Modem hangup 得不到IP也连不上,请高手指教。
|