From: "Konstantin S. Uvarin" <khedin@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] /etc/net + GPRS
Date: Sat, 9 Feb 2008 23:45:30 +0300
Message-ID: <200802092345.30640.khedin@mail.ru> (raw)
Приветствую!
Как подружить /etc/net и GPRS? Я наткнулся на Альтовский же FAQ:
http://faq.altlinux.ru/index.php?action=listq&nf=1&qid=897, но выданный там
совет у меня не заработал -- говорит "Connect script failed" без
дознательства причин. Телефон при этом вполне наличествует, и именно
на /dev/ttyUSB0. Может, я где-то не там логи процесса соединения смотрел?
Да, кстати, почему faq такой отцентрированный? Глаза ж скачут туда-сюда,
читать неудобно...
bash$ gammu --identify
Manufacturer : Nokia
Model : 5140i (RM-104)
Firmware : 03.80 K (24-03-06)
Hardware : 1904
IMEI : 353255014199130
Original IMEI : 353255/01/419913/0
Manufactured : 12/2006
Product code : 0522964
sudo tail -n15 /var/log/messages
[skip]
Feb 9 23:25:09 khedin -- MARK --
Feb 9 23:30:18 khedin kernel: usb 1-5: new full speed USB device using
ohci_hcd and address 8
Feb 9 23:30:18 khedin kernel: usb 1-5: configuration #1 chosen from 1 choice
Feb 9 23:30:18 khedin kernel: pl2303 1-5:1.0: cp2101 converter detected
Feb 9 23:30:18 khedin kernel: usb 1-5: reset full speed USB device using
ohci_hcd and address 8
Feb 9 23:30:18 khedin kernel: usb 1-5: cp2101 converter now attached to
ttyUSB0
Feb 9 23:31:12 khedin pppd[27634]: pppd 2.4.4 started by lodin, uid 0
Feb 9 23:31:25 khedin pppd[27634]: Connect script failed
Feb 9 23:31:26 khedin pppd[27634]: Modem hangup
Feb 9 23:31:26 khedin pppd[27634]: Connection terminated.
Feb 9 23:31:26 khedin pppd[27634]: Exit.
bash$ dmesg | tail
[skip]
usb 1-5: new full speed USB device using ohci_hcd and address 8
usb 1-5: configuration #1 chosen from 1 choice
pl2303 1-5:1.0: cp2101 converter detected
usb 1-5: reset full speed USB device using ohci_hcd and address 8
usb 1-5: cp2101 converter now attached to ttyUSB0
bash$ tail /etc/ppp/connect-errors
Press CTRL-C to close the connection at any stage!
Setting up...
[так несколько раз, по числу попыток соединения]
Конфигурация (как я уже говорил, слизана с вышеприведенного совета):
/etc/net/ifaces/ppp2
bash$ cat options
TYPE=ppp
ONBOOT=no
PPPTYPE=dialup
RESTORE_DEFAULTROUTE=yes
bash$ cat pppconnect
TIMEOUT 5
#ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' '\rAT'
TIMEOUT 12
SAY "Press CTRL-C to close the connection at any stage!"
SAY "\nSetting up...\n"
OK ATE1
SAY "\ndefining PDP context...\n"
OK 'AT+CGDCONT=1,"IP","internet.beeline.ru"'
OK ATD*99***1#
TIMEOUT 22
SAY "\nwaiting for connect...\n"
CONNECT ""
SAY "\nConnected."
SAY "\nIf the following ppp negotiations fail,\n"
SAY "try restarting the phone.\n"
bash$ cat pppoptions
lcp-echo-failure 0
lcp-echo-interval 0
port /dev/ttyUSB0
debug
noipdefault
ipcp-accept-local
defaultroute
usepeerdns
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
nodeflate
noauth
user "beeline"
password "beeline"
receive-all
# nolog
debug
--
Konstantin S. Uvarin
фигика
next reply other threads:[~2008-02-09 20:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-09 20:45 Konstantin S. Uvarin [this message]
2008-02-10 8:03 ` Andrey Rahmatullin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200802092345.30640.khedin@mail.ru \
--to=khedin@mail.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git