Linux中GPRS拨号上网

dudu_002   2008-3-20 21:32 楼主
我想在Linux中实现GPRS拨号上网,但不知什么原因,总是不能成功,我的系统是Redhat9,用PPP脚本时出现下列情况:
这是日志:
Mar 21 20:35:37 localhost pppd[14795]: pppd 2.4.1 started by root, uid 0
Mar 21 20:35:38 localhost chat[14796]: timeout set to 3 seconds
Mar 21 20:35:38 localhost chat[14796]: abort on (\nBUSY\r)
Mar 21 20:35:38 localhost chat[14796]: abort on (\nNO ANSWER\r)
Mar 21 20:35:38 localhost chat[14796]: abort on (\nRINGING\r\n\r\nRINGING\r)
Mar 21 20:35:38 localhost chat[14796]: send (rAT^M)
Mar 21 20:35:39 localhost chat[14796]: expect (OK)
Mar 21 20:35:39 localhost chat[14796]: rAT^M^M
Mar 21 20:35:39 localhost chat[14796]: OK
Mar 21 20:35:39 localhost chat[14796]:  -- got it
Mar 21 20:35:39 localhost chat[14796]: send (ATH0^M)
Mar 21 20:35:39 localhost chat[14796]: timeout set to 30 seconds
Mar 21 20:35:39 localhost chat[14796]: expect (OK)
Mar 21 20:35:39 localhost chat[14796]: ^M
Mar 21 20:35:39 localhost chat[14796]: ATH0^M^M
Mar 21 20:35:39 localhost chat[14796]: OK
Mar 21 20:35:39 localhost chat[14796]:  -- got it
Mar 21 20:35:39 localhost chat[14796]: send (ATDT*99***1#^M)
Mar 21 20:35:39 localhost chat[14796]: expect (CONNECT)
Mar 21 20:35:39 localhost chat[14796]: ^M
Mar 21 20:35:39 localhost chat[14796]: ATDT*99***1#^M^M
Mar 21 20:35:39 localhost chat[14796]: CONNECT
Mar 21 20:35:39 localhost chat[14796]:  -- got it
Mar 21 20:35:39 localhost chat[14796]: send (^M)
Mar 21 20:35:39 localhost chat[14796]: expect (ogin
Mar 21 20:35:39 localhost chat[14796]:  9600^M
Mar 21 20:35:42 localhost chat[14796]: ~^?}#@!}!}!} }6}!}$}%\}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%\}"}&} } }
Mar 21 20:35:48 localhost chat[14796]:  } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%\}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!
Mar 21 20:35:51 localhost chat[14796]: } }6}!}$}%\}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%\}"}&} } } } }'}"}(}
Mar 21 20:35:57 localhost chat[14796]: "}#}$@#&4~~^?}#@!}!}!} }6}!}$}%\}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%
Mar 21 20:36:00 localhost chat[14796]: \}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%\}"}&} } } } }'}"}(}"}#}$@#&4~
Mar 21 20:36:06 localhost chat[14796]: ~^?}#@!}!}!} }6}!}$}%\}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%\}"}&} } }
Mar 21 20:36:09 localhost chat[14796]: alarm
Mar 21 20:36:09 localhost chat[14796]: send (^M)
Mar 21 20:36:09 localhost chat[14796]: expect (ogin
Mar 21 20:36:10 localhost chat[14796]: ^M
Mar 21 20:36:10 localhost chat[14796]: NO CARRIER^M
Mar 21 20:36:39 localhost chat[14796]: alarm
Mar 21 20:36:39 localhost chat[14796]: Failed
Mar 21 20:36:39 localhost pppd[14795]: Connect script failed
Mar 21 20:36:40 localhost pppd[14795]: Exit.

回复评论 (2)

你应该要用Redhat里的TCP/IP协议拨号脚本来配合拨号。。。
点赞  2008-3-21 16:51
接分先!
点赞  2008-5-1 19:30
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复