LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1236|回复: 3

蓝牙问题,拨号GPRS成功,但2分钟断线!问题结症已经找到!lcp在“做怪” 那么如何结束lcp

[复制链接]
发表于 2005-11-11 10:01:53 | 显示全部楼层 |阅读模式
http://www.linuxsir.cn/bbs/showthread.php?p=1318458#post1318458

大家请看

如何结束lcp呢?  我看不太懂下面命令。。。。
You MUST disable the lines that give values for lcp-echo-interval and lcp-echo-failure or your connection will always terminate (eg after two minutes). It appears that GPRS providers do not reply to lcp echo requests but pppd normally uses these to determine if the connection is still good.
/etc/apm/event.d/ppp:

#!/bin/sh
# stop and also restore ppp connection
case "$1" in
suspend)
/usr/bin/poff
;;
resume)
(sleep 15 && /sbin/ifconfig eth0 >/dev/null 2>&1 || pon tmobile) &
;;
esac

http://www.laikan8.com/8/55410.html
 楼主| 发表于 2005-11-11 18:23:38 | 显示全部楼层
已经搞定!!
在 /etc/ppp/options  
里面把  lcp-echo-interval 30    lcp-echo-failure 4  前面加上#号注释掉!!
原因不解释了,前面有!
这样,GPRS能保证一直在线!!!
LCP  对GPRS是起“反作用”!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-11 20:00:17 | 显示全部楼层
搞定个 lcp后又有新问题了!

就是无法找到rfcomm0了!
待编辑。
待解决。
待查资料。
待做个详细报告。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-15 11:57:04 | 显示全部楼层
问题解决!!
注意,这个找不到rfcomm0的问题是我个人原因!!
非suse或者其他原因!
现在很稳定!!
很高兴。希望我的例子对大家有帮助
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表