连接配置openwrt和sat电话/thuraya gprs/modem

问题描述 投票:0回答:1

我在使用带有 openwrt 固件的 tp-link mr3020 路由器将 thuraya so-2510 卫星电话配置为调制解调器时遇到问题。

内部调制解调器驱动程序包运行良好,并且检测到调制解调器,我可以使用 AT 命令(minicom)与其交谈。

问题出在 ppp 配置上。

系统/路由器和操作系统信息

Status
System
Hostname    OpenWrt
Model   TP-Link TL-MR3020 v3
Architecture    MediaTek MT7628AN ver:1 eco:2
Target Platform ramips/mt76x8
Firmware Version    OpenWrt 23.05.4 r24012-d8dd03c46f / LuCI openwrt-23.05 branch git-24.086.45142-09d5a38
Kernel Version  5.15.162

系统日志+调试选项

Thu Oct  3 01:40:59 2024 daemon.notice netifd: Interface 'gprs' is setting up now
Thu Oct  3 01:41:00 2024 daemon.warn odhcpd[1522]: No default route present, overriding ra_lifetime!
Thu Oct  3 01:41:01 2024 daemon.notice pppd[6537]: pppd 2.4.9 started by root, uid 0
Thu Oct  3 01:41:02 2024 daemon.notice hostapd: phy0-ap0: AP-STA-DISCONNECTED 9a:0a:46:e5:33:de
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: abort on (BUSY)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: abort on (NO CARRIER)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: abort on (ERROR)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: report (CONNECT)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: timeout set to 10 seconds
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: send (AT&F^M)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: expect (OK)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: AT&F^M^M
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: OK
Thu Oct  3 01:41:02 2024 local2.info chat[6538]:  -- got it
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: send (ATE1^M)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: expect (OK)
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: ^M
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: ^M
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: OK
Thu Oct  3 01:41:02 2024 local2.info chat[6538]:  -- got it
Thu Oct  3 01:41:02 2024 local2.info chat[6538]: send (AT+CGDCONT=1,"IP","get"^M)
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: timeout set to 30 seconds
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: expect (OK)
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: ^M
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: AT+CGDCONT=1,"IP","get"^M^M
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: OK
Thu Oct  3 01:41:03 2024 local2.info chat[6538]:  -- got it
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: send (ATD*99#^M)
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: expect (CONNECT)
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: ^M
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: ATD*99#^M^M
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: CONNECT
Thu Oct  3 01:41:03 2024 local2.info chat[6538]:  -- got it
Thu Oct  3 01:41:03 2024 local2.info chat[6538]: send ( ^M)
Thu Oct  3 01:41:03 2024 daemon.debug pppd[6537]: Script USE_APN=get DIALNUMBER=*99# /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat finished (pid 6538), status = 0x0
Thu Oct  3 01:41:03 2024 daemon.info pppd[6537]: Serial connection established.
Thu Oct  3 01:41:03 2024 daemon.debug pppd[6537]: using channel 16
Thu Oct  3 01:41:03 2024 daemon.info pppd[6537]: Renamed interface ppp0 to 3g-gprs
Thu Oct  3 01:41:03 2024 kern.info kernel: [  303.516961] 3g-gprs: renamed from ppp0
Thu Oct  3 01:41:03 2024 daemon.info pppd[6537]: Using interface 3g-gprs
Thu Oct  3 01:41:03 2024 daemon.notice pppd[6537]: Connect: 3g-gprs <--> /dev/ttyACM0
Thu Oct  3 01:41:04 2024 daemon.debug pppd[6537]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xba428e7>]
Thu Oct  3 01:41:04 2024 daemon.debug pppd[6537]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xba428e7>]
Thu Oct  3 01:41:04 2024 daemon.debug pppd[6537]: sent [LCP ConfNak id=0x1 <magic 0xbd7c6082>]
Thu Oct  3 01:41:06 2024 daemon.debug pppd[6537]: rcvd [LCP ConfReq id=0x2f <mru 1600> <magic 0xbab8b743> <asyncmap 0x0> <pcomp> <accomp>]
Thu Oct  3 01:41:06 2024 daemon.debug pppd[6537]: sent [LCP ConfRej id=0x2f <pcomp> <accomp>]
Thu Oct  3 01:41:06 2024 daemon.debug pppd[6537]: rcvd [LCP ConfReq id=0x30 <mru 1600> <magic 0xaa5e89d3> <asyncmap 0x0>]
Thu Oct  3 01:41:06 2024 daemon.debug pppd[6537]: sent [LCP ConfAck id=0x30 <mru 1600> <magic 0xaa5e89d3> <asyncmap 0x0>]
Thu Oct  3 01:41:06 2024 daemon.info hostapd: phy0-ap0: STA 9a:0a:46:e5:33:de IEEE 802.11: authenticated
Thu Oct  3 01:41:06 2024 daemon.info hostapd: phy0-ap0: STA 9a:0a:46:e5:33:de IEEE 802.11: associated (aid 1)
Thu Oct  3 01:41:06 2024 daemon.notice hostapd: phy0-ap0: AP-STA-CONNECTED 9a:0a:46:e5:33:de auth_alg=open
Thu Oct  3 01:41:06 2024 daemon.info hostapd: phy0-ap0: STA 9a:0a:46:e5:33:de WPA: pairwise key handshake completed (RSN)
Thu Oct  3 01:41:06 2024 daemon.notice hostapd: phy0-ap0: EAPOL-4WAY-HS-COMPLETED 9a:0a:46:e5:33:de
Thu Oct  3 01:41:06 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.1.126 9a:0a:46:e5:33:de
Thu Oct  3 01:41:06 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.1.126 9a:0a:46:e5:33:de tekno-s-A13
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xba428e7>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xba428e7>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [LCP EchoReq id=0x0 magic=0xba428e7]
Thu Oct  3 01:41:07 2024 daemon.warn odhcpd[1522]: No default route present, overriding ra_lifetime!
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfReq id=0x1 <addr fe80::b0a7:c55c:1cef:d089>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [LCP EchoReq id=0x0 magic=0xba428e7]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [LCP EchoRep id=0x0 magic=0xba428e7]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP ConfRej id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfReq id=0x1 <addr fe80::b0a7:c55c:1cef:d089>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfNak id=0x1 <addr fe80::7088:368d:6651:97cc>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [LCP EchoRep id=0x0 magic=0xba428e7]
Thu Oct  3 01:41:07 2024 daemon.warn pppd[6537]: appear to have received our own echo-reply!
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfNak id=0x1 <addr fe80::7088:368d:6651:97cc>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfReq id=0x2 <addr fe80::0561:3734:6938:7d3f>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfReq id=0x2 <addr fe80::0561:3734:6938:7d3f>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfNak id=0x2 <addr fe80::dcdb:4000:183a:1a79>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP ConfReq id=0x3]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfNak id=0x2 <addr fe80::dcdb:4000:183a:1a79>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfReq id=0x3 <addr fe80::2539:2740:3d9c:2561>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP ConfReq id=0x3]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP ConfAck id=0x3]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfReq id=0x3 <addr fe80::2539:2740:3d9c:2561>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfNak id=0x3 <addr fe80::81f3:31ee:188a:3fd9>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP ConfAck id=0x3]
Thu Oct  3 01:41:07 2024 daemon.err pppd[6537]: Could not determine local IP address
Thu Oct  3 01:41:07 2024 daemon.info pppd[6537]: Connect time 0.1 minutes.
Thu Oct  3 01:41:07 2024 daemon.info pppd[6537]: Sent 164 bytes, received 150 bytes.
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP TermReq id=0x4 "Could not determine local IP address"]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfNak id=0x3 <addr fe80::81f3:31ee:188a:3fd9>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfReq id=0x4 <addr fe80::3da5:19dc:8a73:3ca3>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP TermReq id=0x4 "Could not determine local IP address"]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPCP TermAck id=0x4]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfReq id=0x4 <addr fe80::3da5:19dc:8a73:3ca3>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfNak id=0x4 <addr fe80::2d19:5b9d:c5a5:52ad>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPCP TermAck id=0x4]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfNak id=0x4 <addr fe80::2d19:5b9d:c5a5:52ad>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfReq id=0x5 <addr fe80::808a:8d66:dc00:31b7>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfReq id=0x5 <addr fe80::808a:8d66:dc00:31b7>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfNak id=0x5 <addr fe80::5089:3d82:a6d2:b21d>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfNak id=0x5 <addr fe80::5089:3d82:a6d2:b21d>]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfReq id=0x6]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfReq id=0x6]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP ConfAck id=0x6]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP ConfAck id=0x6]
Thu Oct  3 01:41:07 2024 daemon.err pppd[6537]: Could not determine remote LL address
Thu Oct  3 01:41:07 2024 daemon.warn pppd[6537]: cif6addr: ioctl(SIOCDIFADDR): No such address
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP TermReq id=0x7 "Could not determine remote LL address"]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP TermReq id=0x7 "Could not determine remote LL address"]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [IPV6CP TermAck id=0x7]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [IPV6CP TermAck id=0x7]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: sent [LCP TermReq id=0x2 "No network protocols running"]
Thu Oct  3 01:41:07 2024 daemon.debug pppd[6537]: rcvd [LCP TermAck id=0x2]
Thu Oct  3 01:41:07 2024 daemon.notice pppd[6537]: Connection terminated.
Thu Oct  3 01:41:07 2024 daemon.info pppd[6537]: Connect time 0.2 minutes.
Thu Oct  3 01:41:07 2024 daemon.info pppd[6537]: Sent 272 bytes, received 272 bytes.
Thu Oct  3 01:41:08 2024 daemon.info pppd[6537]: Exit.
Thu Oct  3 01:41:08 2024 daemon.notice netifd: Interface 'gprs' is now down

聊天脚本字段内容

/etc/聊天脚本/

ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 10
""      "AT&F"
OK      "ATE1"
OK      'AT+CGDCONT=1,"IP","$USE_APN"'
SAY     "GmPRS ready"
TIMEOUT 30
OK      "ATD*99#"
CONNECT ' '

网络配置文件内容

/etc/config/网络


config interface 'loopback'
    option device 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd66:e814:9bd4::/48'

config device
    option name 'br-lan'
    option type 'bridge'
    list ports 'eth0.1'

config interface 'lan'
    option device 'br-lan'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option ip6assign '60'

config switch
    option name 'switch0'
    option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'switch0'
    option vlan '1'
    option ports '0 6t'

config interface 'wwan'
    option proto 'dhcp'

config interface 'gprs'
    option proto '3g'
    option device '/dev/ttyACM0'
    option apn 'get'
    option dialnumber '*99#'
    option ipv6 '0'
    option service 'gprs_only'
    option pppd_options 'debug'
    option disabled '1'

config device
    option name '3g-gprs'
    option ipv6 '0'

ppp配置 /etc/ppp/选项



#debug

logfile /dev/null

noipdefault

noaccomp

nopcomp

nocrtscts

lock

maxfail 0

thuraya 公司有他们自己修改过的 openwrt,可以与某些手机型号配合使用

他们为 tp-link mr3040 开发了 openwrt 操作系统

我的路由器是mr3020硬件版本3

运行openwrt 23.5操作系统

任何建议或想法都可以帮助解决这个问题!!!

尝试过 noip 选项 尝试更改聊天脚本 尝试监视/提取 Windows-XP 和电话/调制解调器之间的命令 并在winXP连接中找到这些设置


**modem configuration

maximum speed(bps) 5700

hardware features
enabled hardware flow control
disabled modem error control
disabled modem compression


**securityoption

optional encryption (connect even if no encryption)
allow these protocols

**advanced security option 

unencrypted password (PAP)

shiva password authentication (SPAP)

chalange handshake authentication protocol (CHAP)

microsoft chap (MS-CHAP)

microsoft CHAP version 2 (MS-CHAP v2 windows 95 servers)

*****************

**network option

type of dial-up server im calling (PPP:windows 95/98/NT4/2000,internet
enable LCP extentions
enable software compression
disable negotiate multilink for single link connections


this connection uses the following items: internet protocol (TCP/IP)
TCP/IP properties : obtain IP address automatically
obtain DNS server automataclly

QoS pocket scheduler


network-programming openwrt modem gprs ppp
1个回答
0
投票

任何人有任何想法或什么 这里有没有经验丰富的人🤷或者根本没有人

© www.soinside.com 2019 - 2024. All rights reserved.