Do polanczenia internetowego tym modemem zastosowalem przerobione skrypy opisane tu:
https://www.abclinuxu.cz/hardware/pr.../gprs-gsm/es75
plik /etc/ppp/peers/es75
Code:
/dev/ttyS0
115200
noipdefault
defaultroute
nodetach
user heyah
password heyah
connect '/usr/sbin/chat -v -f /etc/ppp/es75-connect'
lcp-echo-interval 10
disconnect '/usr/sbin/chat -v -f /etc/ppp/es75-disconnect'
defaultroute
usepeerdns
lock
plik /etc/ppp/es75-connect
Code:
TIMEOUT 10
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
""
'\rATZ' OK
ATX1 OK
AT+CGDCONT=1,"IP","heyah.pl" OK
"ATD*99***1#" CONNECT
plik /etc/ppp/es75-disconnect
Simka jest z Heyah, w gammu wpisalem PIN i polanczenie:
Code:
linux:~ # pppd call es75
Script /usr/sbin/chat -v -f /etc/ppp/es75-connect finished (pid 1887), status = 0x0
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
Remote message: TTP Com PPP - Password Verified OK
PAP authentication succeeded
local IP address 100.65.175.42
remote IP address 10.0.0.1
primary DNS address 213.158.199.1
secondary DNS address 213.158.199.5
W Firefoksie nie otwieraly sie strony po wpisaniu konkretnych adresow, dlatego zrobilem dodatkowy wpis do pliku /etc/resolv.conf
Code:
nameserver 213.158.199.1
nameserver 213.158.199.5
i tu juz mozna przegladac internet. Rozlaczenie klawiszami ctrl+c