我想在Linux中用脚本实现ppp拨号上网,使用的是外置的串口无线GSM MODEM,出现如下日志提示:
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
貌似是说在验证用户名的时候出现了错误,我在脚本中的用户名和密码都设置为空,不知道正不正确,如果不正确应该如何设置?希望高手能解答一下