modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Wszystko na temat internetu za pomocą sieci komórkowych pod systemem Linux.

Moderator: Moderatorzy

ODPOWIEDZ
wojtass05
Początkujący użytkownik forum
Posty: 7
Rejestracja: 2006-12-11, 15:01

modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Post autor: wojtass05 »

Witam,
mam modem option globetrotter edge i według przepisów znalezionych na tym forum zainstalowalem modem ndiswrapper'em i utworzylem nastepujace skrypty:
/etc/ppp/peers/iplus

noauth
connect "/usr/sbin/chat -v -f /etc/ppp/iplus-connect"
disconnect "/usr/sbin/chat -v -f /etc/ppp/iplus-disconnect"
debug
/dev/ttyS2
115200
defaultroute
c rtscts
lock
local
nodetach
usepeerdns
lcp-echo-failure 4
lcp-echo-interval 65535

/etc/ppp/iplus-connect

TIMEOUT 600
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'
SAY 'Starting connect script\n'

"" 'AT+CFUN=1,1'
"" 'AT+CPIN=7050'

OK 'ATE1\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d'

SAY 'Setting APN\n'
OK 'AT+CGDCONT=1,"IP","www.plusgsm.pl"'

ABORT 'NO CARRIER'
SAY 'Dialing...\n'
OK 'ATD*99***1#'

CONNECT ''

/etc/ppp/iplus-disconnect

"" "\K"
"" "+++ATH0"
SAY "GPRS Disconnected."

modem sie łaczy i mam internet(co prawda tylko gprs i moze wiecie jak to zmienic na edge) ale trwa to jakies 10 min i sie rozlacza
to moje logi z tego procesu

Feb 11 23:24:05 wojtas-laptop pppd[5178]: pppd 2.4.4 started by wojtas, uid 1000
Feb 11 23:24:05 wojtas-laptop chat[5180]: timeout set to 600 seconds
Feb 11 23:24:05 wojtas-laptop chat[5180]: abort on (BUSY)
Feb 11 23:24:05 wojtas-laptop chat[5180]: abort on (NO ANSWER)
Feb 11 23:24:05 wojtas-laptop chat[5180]: abort on (ERROR)
Feb 11 23:24:05 wojtas-laptop chat[5180]: send (AT+CFUN=1,1^M)
Feb 11 23:24:05 wojtas-laptop chat[5180]: send (AT+CPIN=7050^M)
Feb 11 23:24:05 wojtas-laptop chat[5180]: expect (OK)
Feb 11 23:24:05 wojtas-laptop chat[5180]: MRDY: 1^M
Feb 11 23:24:05 wojtas-laptop chat[5180]: AT+CFUN=1,1^M^M
Feb 11 23:24:05 wojtas-laptop chat[5180]: OK
Feb 11 23:24:05 wojtas-laptop chat[5180]: -- got it
Feb 11 23:24:05 wojtas-laptop chat[5180]: send (ATE1\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d^M)
Feb 11 23:24:35 wojtas-laptop chat[5180]: expect (OK)
Feb 11 23:24:35 wojtas-laptop chat[5180]: ^M
Feb 11 23:24:35 wojtas-laptop chat[5180]: AT+CPIN=7050^M^M
Feb 11 23:24:35 wojtas-laptop chat[5180]: *MRDY: 4^M
Feb 11 23:24:35 wojtas-laptop chat[5180]: ATE1^M
Feb 11 23:24:35 wojtas-laptop chat[5180]: OK
Feb 11 23:24:35 wojtas-laptop chat[5180]: -- got it
Feb 11 23:24:35 wojtas-laptop chat[5180]: send (AT+CGDCONT=1,"IP","www.plusgsm.pl"^M)
Feb 11 23:24:36 wojtas-laptop chat[5180]: abort on (NO CARRIER)
Feb 11 23:24:36 wojtas-laptop chat[5180]: expect (OK)
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: *MTZ: 1, "F054E59FF054E59FF054E59FF054E59FF054E1A00000E59FF050E59FF050BABEFACE00
Feb 11 23:24:36 wojtas-laptop chat[5180]: 00000000000000000000000000000000000000"^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: *MTZ: 2, "02/11/2007, 23:24:29+04", 0^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: *MTSMENU: "Plus Mega", 0, 10
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M1:"Informacje"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M2:"Gry SMS"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M3:"Rozrywka"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M4:"Pilot Plus"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M5:"Gdzie jestes"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M6:"PlusNet"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M7:"Wyslij e-mail"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M8:"Uzytkowe"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M9:"Chat Plus"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M10:"Program 5 Plus"
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: OK
Feb 11 23:24:36 wojtas-laptop chat[5180]: -- got it
Feb 11 23:24:36 wojtas-laptop chat[5180]: send (ATD*99***1#^M)
Feb 11 23:24:36 wojtas-laptop chat[5180]: expect (CONNECT)
Feb 11 23:24:36 wojtas-laptop chat[5180]: ^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: AT+CGDCONT=1,"IP","www.plusgsm.pl"^M^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: OK^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: ATD*99***1#^M^M
Feb 11 23:24:36 wojtas-laptop chat[5180]: CONNECT
Feb 11 23:24:36 wojtas-laptop chat[5180]: -- got it
Feb 11 23:24:36 wojtas-laptop chat[5180]: send (^M)
Feb 11 23:24:36 wojtas-laptop pppd[5178]: Serial connection established.
Feb 11 23:24:36 wojtas-laptop pppd[5178]: using channel 2
Feb 11 23:24:36 wojtas-laptop pppd[5178]: Using interface ppp0
Feb 11 23:24:36 wojtas-laptop pppd[5178]: Connect: ppp0 <--> /dev/ttyS2
Feb 11 23:24:36 wojtas-laptop pppd[5178]: rcvd [LCP ConfReq id=0x3b <mru 1500> <asyncmap 0x0> <auth pap> <magic 0xf2a8> <pcomp> <accomp>]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd5ac437c> <pcomp> <accomp>]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: sent [LCP ConfAck id=0x3b <mru 1500> <asyncmap 0x0> <auth pap> <magic 0xf2a8> <pcomp> <accomp>]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd5ac437c> <pcomp> <accomp>]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: sent [LCP EchoReq id=0x0 magic=0xd5ac437c]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: sent [PAP AuthReq id=0x1 user="wojtas-laptop" password=<hidden>]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: rcvd [LCP EchoRep id=0x0 magic=0xd5ac437c]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: appear to have received our own echo-reply!
Feb 11 23:24:36 wojtas-laptop pppd[5178]: rcvd [PAP AuthAck id=0x1 "PAP access OK"]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: Remote message: PAP access OK
Feb 11 23:24:36 wojtas-laptop pppd[5178]: PAP authentication succeeded
Feb 11 23:24:36 wojtas-laptop pppd[5178]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Feb 11 23:24:36 wojtas-laptop pppd[5178]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Feb 11 23:24:37 wojtas-laptop pppd[5178]: rcvd [IPCP ConfReq id=0x3b <addr 172.24.173.0> <compress VJ 0f 01>]
Feb 11 23:24:37 wojtas-laptop pppd[5178]: sent [IPCP ConfAck id=0x3b <addr 172.24.173.0> <compress VJ 0f 01>]
Feb 11 23:24:37 wojtas-laptop pppd[5178]: rcvd [LCP ProtRej id=0x3c 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Feb 11 23:24:37 wojtas-laptop pppd[5178]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Feb 11 23:24:37 wojtas-laptop pppd[5178]: rcvd [IPCP ConfNak id=0x1 <addr 172.24.173.111> <ms-dns1 212.2.96.51> <ms-dns3 212.2.96.52>]
Feb 11 23:24:37 wojtas-laptop pppd[5178]: sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 172.24.173.111> <ms-dns1 212.2.96.51> <ms-dns3 212.2.96.52>]
Feb 11 23:24:37 wojtas-laptop pppd[5178]: rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 172.24.173.111> <ms-dns1 212.2.96.51> <ms-dns3 212.2.96.52>]
Feb 11 23:24:37 wojtas-laptop pppd[5178]: Cannot determine ethernet address for proxy ARP
Feb 11 23:24:37 wojtas-laptop pppd[5178]: local IP address 172.24.173.111
Feb 11 23:24:37 wojtas-laptop pppd[5178]: remote IP address 172.24.173.0
Feb 11 23:24:37 wojtas-laptop pppd[5178]: primary DNS address 212.2.96.51
Feb 11 23:24:37 wojtas-laptop pppd[5178]: secondary DNS address 212.2.96.52
Feb 11 23:24:37 wojtas-laptop pppd[5178]: Script /etc/ppp/ip-up started (pid 5195)
Feb 11 23:24:37 wojtas-laptop pppd[5178]: Script /etc/ppp/ip-up finished (pid 5195), status = 0x0
Feb 11 23:32:34 wojtas-laptop pppd[5178]: Terminating on signal 15
Feb 11 23:32:34 wojtas-laptop pppd[5178]: Connect time 8.0 minutes.
Feb 11 23:32:34 wojtas-laptop pppd[5178]: Sent 64849 bytes, received 361811 bytes.
Feb 11 23:32:34 wojtas-laptop pppd[5178]: Script /etc/ppp/ip-down started (pid 5389)
Feb 11 23:32:34 wojtas-laptop pppd[5178]: sent [LCP TermReq id=0x2 "User request"]
Feb 11 23:32:34 wojtas-laptop pppd[5178]: Script /etc/ppp/ip-down finished (pid 5389), status = 0x0
Feb 11 23:32:37 wojtas-laptop pppd[5178]: sent [LCP TermReq id=0x3 "User request"]
Feb 11 23:32:40 wojtas-laptop pppd[5178]: Connection terminated.

Acha jak probuje sie polączyc jeszcze raz to mam:

Feb 11 23:33:30 wojtas-laptop pppd[5424]: Device ttyS2 is locked by pid 5178

Moze jeszcze jak wpisuje pppd debug to mam :
pppd: The remote system is required to authenticate itself
pppd: but I couldn't find any suitable secret (password) for it to use to do so.
Awatar użytkownika
crow6
Stały użytkownik forum
Posty: 113
Rejestracja: 2006-04-26, 22:28
Lokalizacja: Wrocław

Re: modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Post autor: crow6 »

Jak sie bawilem Linuksem to tez mi lacze po jakims czasie padalo. Pomoglo skasowanie linii:
lcp-echo-failure 4
z konfiga. Moze i Tobie pomoze??
Gott ist ein Popstar ]:->
wojtass05
Początkujący użytkownik forum
Posty: 7
Rejestracja: 2006-12-11, 15:01

niestety

Post autor: wojtass05 »

skasowanie tej lini nie pomoglo:( Nadal mi sie rozlacza jak ledwo zaladuje kilka stron:(((
rodgie
Początkujący użytkownik forum
Posty: 9
Rejestracja: 2006-05-09, 14:05

Re: modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Post autor: rodgie »

sprobuj dospisac:
lcp-echo-failure 10
lcp-echo-interval 3600

pozdr
wojtass05
Początkujący użytkownik forum
Posty: 7
Rejestracja: 2006-12-11, 15:01

Re: modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Post autor: wojtass05 »

niestety i to nie pomoglo. Teraz to <font color="#FF00FF"><b>»»w ogóle««</b></font> ledwo zdaze wejsc na google.pl i ewentualnie jeszcze jedna stronke i koniec. Juz wszedzie szukalem i jakos nie moge znalezc przyczyny. Sprzet jest dobrze zainstalowany, skrypty niby tez dobrze dzialaja ale nie za dlugo ale czemu ?? Bede dalej z tym walczyl i jesli komus wpadnie jakis pomysl to prosze o pomoc :)
kisiel291
Stały użytkownik forum
Posty: 131
Rejestracja: 2006-10-24, 15:46
Lokalizacja: Rydzykowo

Re: modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Post autor: kisiel291 »

hmm a może tak przestawienie proxy na np. w3cache. Mnie to pomogło, iplus sux... :(
E160 Play
wojtass05
Początkujący użytkownik forum
Posty: 7
Rejestracja: 2006-12-11, 15:01

Re: modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Post autor: wojtass05 »

niestety i to nie pomoglo. Bede walczyl dalej. Jak cos sie ruszy to napisze. Pozdrawiam:)
magnum_pl
Użytkownik forum
Posty: 31
Rejestracja: 2006-12-05, 22:29

Re: modem sie łączy ale po jakis 10 min pada (linux: Ubuntu)

Post autor: magnum_pl »

spróbuj wyczyścić plik options z katalogu /etc/ppp , wyczyść tylko zawartość a plik zostaw. kiedyś mi to pomogło bo mialem podobny przypadek.
ODPOWIEDZ