pppd, запущенный wvdial, ничего не делает

1892
mephisto123

Я пытаюсь заставить модем GPRS работать под Linux. Для некоторых провайдеров это работало нормально, но для одного из них процесс зависал сразу после запуска pppd.

Журнал выглядит так:

--> WvDial: Internet dialer version 1.61 --> Initializing modem. --> Sending: AT AT OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK --> Sending: AT+CGDCONT=1,"IP","internet.beeline.kz" AT+CGDCONT=1,"IP","internet.beeline.kz" OK --> Modem initialized. --> Sending: ATD*99***1# --> Waiting for carrier. ATD*99***1# CONNECT ~[7f]}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&[10]FG"}#}%B#}%[08][~ --> Carrier detected. Waiting for prompt. ~[7f]}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&[10]FG"}#}%B#}%[08][~ --> PPP negotiation detected. --> Starting pppd at Wed Nov 19 03:05:44 2014 --> Pid of pppd: 17354 

Он застрял в этой точке и больше ничего не делает. Даже не время ожидания соединения. Любые идеи о том, как отладить эту проблему?

Обновить:

Попытался добавить отладку в / etc / ppp / peers / wvdial, / etc / ppp / peers / wvdial-pipe; раскомментируйте его в / etc / ppp / options. Системный журнал по-прежнему содержит только сообщение о том, что соединение установлено, но больше ничего.

Также проверил ifconfig, интерфейс ppp0 там не появляется.

0

2 ответа на вопрос

1
mephisto123

I was not able to resolve my problem using wvdial.

However, I used pppd directly to set up the connection and it worked fine.

If anyone would need it, I'll post the brief instructions on how to do it.

First, create file /etc/ppp/peers/ with the following content:

/dev/ connect '/usr/sbin/chat -v -f /etc/chatscripts/gprs -T ' defaultroute usepeerdns unit persist chap-interval 60 ipparam user "" nopcomp novjccomp nobsdcomp nodeflate noaccomp lcp-echo-interval 2 lcp-echo-failure 3 noipdefault 

Second, add the following line to the /etc/ppp/pap-secrets and /etc/ppp/chap-secrets:

"" "" 

The connection can be set up using the command "pon " and closed using the command "poff".

You need to replace with any string you want to use to identify this connection; with the device name of your serial port (ttyS0, ttyS1... for COM ports and ttyUSB0, ttyUSB1... for USB modems); and with the login and password used to connect to your ISP and with your ISP's APN. Also you can choose any . For example, 100 to have your ppp interface named "ppp100".

0
fede.evol

The connection is on (the weird characters you see are PPPD trying to negotiate). Would seem the other side is trying but something is missing on yours.

Try putting a "debug" to pppd as an option so you can see in detail what is going on. This is usually done in /etc/ppp/peers/<PEERNAME> (where <PEERNAME> in your case could be wvdial) just put a line with debug inside.

Обновил мой вопрос с дополнительной информацией, основанной на вашем совете. Неудачно :( mephisto123 9 лет назад 0