8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

ubuntu/debian 串行调制解调器 quectel EN915 pppd 未连接

Gen 2月前

55 0

我有一个 RS485 调制解调器,我使用 USB 转 RS485 转换器将其连接到我的计算机。我可以使用 Minicom 连接它,波特率为 9600,8N1,流量控制设置为 xonxoff。调制解调器

我有一个 RS485 调制解调器,我使用 USB 转 RS485 转换器将其连接到我的计算机。我可以使用 Minicom 连接它,波特率为 9600,8N1,流量控制设置为 xonxoff。调制解调器响应 AT 命令。

我曾尝试配置 pppd 和聊天设置,但只有聊天设置可以正确执行。我尝试将 MTU 和 MRU 值设置在 550 到 1500 之间,但不幸的是,我也无法让它使用这些值。

我没什么主意了。我怎样才能获得更有意义的日志来了解为什么我没有收到回复?

sudo pppd call quectel-ppp
pppd options in effect:
debug           # (from /etc/ppp/peers/quectel-ppp)
kdebug 1                # (from /etc/ppp/peers/quectel-ppp)
nodetach                # (from /etc/ppp/peers/quectel-ppp)
dump            # (from /etc/ppp/peers/quectel-ppp)
noauth          # (from /etc/ppp/peers/quectel-ppp)
/dev/ttyUSB0            # (from /etc/ppp/peers/quectel-ppp)
9600            # (from /etc/ppp/peers/quectel-ppp)
lock            # (from /etc/ppp/peers/quectel-ppp)
connect /usr/sbin/chat -s -v -f /etc/ppp/peers/quectel-chat-connect             # (from /etc/ppp/peers/quectel-ppp)
disconnect /usr/sbin/chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect               # (from /etc/ppp/peers/quectel-ppp)
xonxoff         # (from /etc/ppp/peers/quectel-ppp)
local           # (from /etc/ppp/peers/quectel-ppp)
mru 1492                # (from /etc/ppp/peers/quectel-ppp)
mtu 1492                # (from /etc/ppp/peers/quectel-ppp)
lcp-restart 6           # (from /etc/ppp/peers/quectel-ppp)
novj            # (from /etc/ppp/peers/quectel-ppp)
novjccomp               # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-local               # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-remote              # (from /etc/ppp/peers/quectel-ppp)
noipdefault             # (from /etc/ppp/peers/quectel-ppp)
defaultroute            # (from /etc/ppp/peers/quectel-ppp)
usepeerdns              # (from /etc/ppp/peers/quectel-ppp)
noccp           # (from /etc/ppp/peers/quectel-ppp)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 120 seconds
send (AT^M)
expect (OK)

^M
OKOK
 -- got it

send (ATE0^M)
expect (OK)

^M^M
OKOK
 -- got it

send (ATI^M)
expect (OK)

^M^M
Quectel
Quectel^M
EG915N
EG915N^M
Revision: EG915NEUAGR03A09M16
Revision: EG915NEUAGR03A09M16^M

^M
OKOK
 -- got it

send (AT+CSQ^M)
expect (OK)

^M^M
+CSQ: 22,99
+CSQ: 22,99^M

^M
OKOK
 -- got it

send (AT+CPIN?^M)
expect (OK)

^M^M
+CPIN: READY
+CPIN: READY^M

^M
OKOK
 -- got it

send (AT+COPS?^M)
expect (OK)

^M^M
+COPS: 0,2,"21630",7
+COPS: 0,2,"21630",7^M

^M
OKOK
 -- got it

send (AT+CGREG?^M)
expect (OK)

^M^M
+CGREG: 2,1,"2EE1","B6F06",7
+CGREG: 2,1,"2EE1","B6F06",7^M

^M
OKOK
 -- got it

send (ATZ^M)
expect (OK)

^M^M
OKOK
 -- got it

send (AT+CGDCONT=1,"IP","internet.telekom",,0,0^M)
expect (OK)
AT+CGDCONT=1,"IP","internet.telekom",,0,0
^MAT+CGDCONT=1,"IP","internet.telekom",,0,0^M^M
OKOK
 -- got it

send (ATD*99#^M)
expect (CONNECT)
ATD*99#
^MATD*99#^M^M
CONNECTCONNECT
 -- got it

PPPD

Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0xa0000> <magic 0x16ea0a07> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
abort on (ERROR)
abort on (NO DIALTONE)
\send (+++ATH^M)

我查看了以下论坛帖子: https://forums.quectel.com/t/quectel-ec25-ppp-connect-failure/3379/6 http://web.mit.edu/~linux/redhat/docs/untarred/PPP-Client-HOWTO-13.html

移远通信

noauth
connect '/usr/sbin/chat -s -v -f /etc/ppp/peers/quectel-chat-connect'
disconnect '/usr/sbin/chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect'
debug
/dev/ttyUSB0
9600
defaultroute
noipdefault
novj
novjccomp
noccp
ipcp-accept-local
ipcp-accept-remote
local
lock
dump
kdebug 1
nodetach
# Hardware flow control
#nocrtscts
# Software flow control
xonxoff
usepeerdns
lcp-restart 6
mtu 1492
mru 1492

/etc/ppp/peers/quectel-chat-c​​onnect:

ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'ERROR'
ABORT 'NO ANSWER'
TIMEOUT 120
ECHO ON
'' AT
OK ATE0
OK ATI
OK AT+CSQ
OK AT+CPIN?
OK AT+COPS?
OK AT+CGREG?
OK ATZ
OK AT+CGDCONT=1,"IP","internet.telekom",,0,0
OK ATD*99#
CONNECT
帖子版权声明 1、本帖标题:ubuntu/debian 串行调制解调器 quectel EN915 pppd 未连接
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由Gen在本站《ubuntu》版块原创发布, 转载请注明出处!
最新回复 (0)
  • 谢谢回复!我不知道文件名太长的原因。我第一次克隆这个仓库。将尝试在短父目录中克隆它。

返回
作者最近主题: