Portál AbcLinuxu, 5. května 2025 16:30
Sun May 3 00:20:43 2015 kern.info kernel: [ 498.620000] usb 1-1: USB disconnect, device number 2 Sun May 3 00:20:55 2015 kern.info kernel: [ 511.120000] usb 1-1: new high-speed USB device number 3 using ehci-platform Sun May 3 00:20:56 2015 kern.info kernel: [ 511.770000] usb 1-1: USB disconnect, device number 3 Sun May 3 00:20:57 2015 kern.info kernel: [ 512.540000] usb 1-1: new high-speed USB device number 4 using ehci-platform Sun May 3 00:20:57 2015 kern.info kernel: [ 512.730000] option 1-1:1.0: GSM modem (1-port) converter detected Sun May 3 00:20:57 2015 kern.info kernel: [ 512.750000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0 Sun May 3 00:20:57 2015 kern.info kernel: [ 512.750000] option 1-1:1.1: GSM modem (1-port) converter detected Sun May 3 00:20:57 2015 kern.info kernel: [ 512.770000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1 Sun May 3 00:20:58 2015 daemon.notice netifd: Interface 'ppp' is setting up now Sun May 3 00:21:00 2015 daemon.notice netifd: ppp (1445): Trying to set mode Sun May 3 00:21:01 2015 daemon.notice pppd[1529]: pppd 2.4.7 started by root, uid 0 Sun May 3 00:21:02 2015 local2.info chat[1532]: abort on (BUSY) Sun May 3 00:21:02 2015 local2.info chat[1532]: abort on (NO CARRIER) Sun May 3 00:21:02 2015 local2.info chat[1532]: abort on (ERROR) Sun May 3 00:21:02 2015 local2.info chat[1532]: report (CONNECT) Sun May 3 00:21:02 2015 local2.info chat[1532]: timeout set to 10 seconds Sun May 3 00:21:02 2015 local2.info chat[1532]: send (AT&F^M) Sun May 3 00:21:02 2015 local2.info chat[1532]: expect (OK) Sun May 3 00:21:02 2015 local2.info chat[1532]: AT&F^M^M Sun May 3 00:21:02 2015 local2.info chat[1532]: OK Sun May 3 00:21:02 2015 local2.info chat[1532]: -- got it Sun May 3 00:21:02 2015 local2.info chat[1532]: send (ATE1^M) Sun May 3 00:21:02 2015 local2.info chat[1532]: expect (OK) Sun May 3 00:21:02 2015 local2.info chat[1532]: ^M Sun May 3 00:21:02 2015 local2.info chat[1532]: ATE1^M^M Sun May 3 00:21:02 2015 local2.info chat[1532]: OK Sun May 3 00:21:02 2015 local2.info chat[1532]: -- got it Sun May 3 00:21:02 2015 local2.info chat[1532]: send (AT+CGDCONT=1,"IP","internet"^M) Sun May 3 00:21:03 2015 local2.info chat[1532]: timeout set to 30 seconds Sun May 3 00:21:03 2015 local2.info chat[1532]: expect (OK) Sun May 3 00:21:03 2015 local2.info chat[1532]: ^M Sun May 3 00:21:03 2015 local2.info chat[1532]: AT+CGDCONT=1,"IP","internet"^M^M Sun May 3 00:21:03 2015 local2.info chat[1532]: OK Sun May 3 00:21:03 2015 local2.info chat[1532]: -- got it Sun May 3 00:21:03 2015 local2.info chat[1532]: send (ATD*99***1#^M) Sun May 3 00:21:03 2015 local2.info chat[1532]: expect (CONNECT) Sun May 3 00:21:03 2015 local2.info chat[1532]: ^M Sun May 3 00:21:03 2015 local2.info chat[1532]: ATD*99***1#^M^M Sun May 3 00:21:03 2015 local2.info chat[1532]: CONNECT Sun May 3 00:21:03 2015 local2.info chat[1532]: -- got it Sun May 3 00:21:03 2015 local2.info chat[1532]: send ( ^M) Sun May 3 00:21:03 2015 daemon.info pppd[1529]: Serial connection established. Sun May 3 00:21:03 2015 daemon.info pppd[1529]: Using interface 3g-ppp Sun May 3 00:21:03 2015 daemon.notice pppd[1529]: Connect: 3g-ppp <--> /dev/ttyUSB0 Sun May 3 00:21:34 2015 daemon.warn pppd[1529]: LCP: timeout sending Config-Requests Sun May 3 00:21:34 2015 daemon.notice pppd[1529]: Connection terminated. Sun May 3 00:21:35 2015 daemon.notice pppd[1529]: Modem hangup Sun May 3 00:21:35 2015 daemon.info pppd[1529]: Exit. Sun May 3 00:21:35 2015 daemon.notice netifd: Interface 'ppp' is now downVypis USB sbernice
root@(none):~# lsusb Bus 001 Device 004: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@(none):~#Konfigurace rozhrani
config interface 'ppp' option proto '3g' option apn 'internet' option service 'umts' option device '/dev/ttyUSB0'
config interface 'ppp_4g' option proto 'mbim' option ifname 'wwan0' option device '/dev/cdc-wdm0' option apn 'internet' option delay '50' option delegate '0' option ipv6 '0'Verim, ze zapracovani plne podpory HLINKu do OpenWRT je jen otazkou casu, ale do te doby muze byt tento prispevek nekomu snad uzitecny. Puvodni modem mi zustal lezet, takze pochopitelne stale plati, ze budu vdecny za nejake to nasmerovani, ale prozatim tomu nedavam velkou sanci.
config interface 'wan' option ifname 'eth1' option proto 'dhcp'
$ cat /etc/ppp/peers/Swan
modemSwan
921600
unit 10
nolock
novj
novjccomp
noccp
nodefaultroute
noipdefault
#usepeerdns
noauth
persist
holdoff 10
maxfail 0
#debug
connect "/usr/sbin/chat -v -f /etc/chatscripts/Swan.chat"
$ cat /etc/chatscripts/Swan.chat
TIMEOUT 5
ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "VOICE"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
ABORT DELAYED
"" ATZ
OK AT+CGDCONT=1,"IP","internet"
OK ATDT*99#
CONNECT ""
Zdravim neviem ci nie neskoro ale
mam tiez modem E3372 s kartou od swan pouzivam router tp-link wr842n v2 cele sa mi to podarilo rozbehnut len som musel pouzit openwrt distribuciu gargoyle
skusal som viacej verzii ale nakoniec to cele funguje len s verziou
| Gargoyle version 1.6.0 | OpenWrt AA backports branch |
| Gargoyle revision 1ba6619 | OpenWrt revision r39392 |
| Built February 01, 2014
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.