ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] /etc/net + GPRS
@ 2008-02-09 20:45 Konstantin S. Uvarin
  2008-02-10  8:03 ` Andrey Rahmatullin
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin S. Uvarin @ 2008-02-09 20:45 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Приветствую! 

  Как подружить /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
фигика

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] /etc/net + GPRS
  2008-02-09 20:45 [Comm] /etc/net + GPRS Konstantin S. Uvarin
@ 2008-02-10  8:03 ` Andrey Rahmatullin
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Rahmatullin @ 2008-02-10  8:03 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 905 bytes --]

On Sat, Feb 09, 2008 at 11:45:30PM +0300, Konstantin S. Uvarin wrote:
> 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"'
У меня здесь так:
SAY             "Press CTRL-C to close the connection at any stage!"
SAY             "\nSetting up...\n"
OK              ATH
OK              "AT&D2&C1"
OK              AT+CMEE=1
SAY             "\ndefining PDP context...\n"
OK              'ATE1+CGDCONT=1,"IP","inet.ycc.ru"'


-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):

<Maks> Vitls: мне собственно непонятно, что такое "uninterruptible sleep"
<Vitls> Maks: непрерываемый сон. вВыспаться наверное хочет.
 * Maks хочет уйти в "uninterruptible sleep" эдак на недельку минимум ;(

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-10  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-09 20:45 [Comm] /etc/net + GPRS Konstantin S. Uvarin
2008-02-10  8:03 ` Andrey Rahmatullin

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