GPRS через USB Xubuntu

Linux, безопасность, сети и все что с этим связано
Humans
Заглянувший
Сообщения: 2
Зарегистрирован: 22 сен 2008, 16:01

GPRS через USB Xubuntu

Сообщение Humans »

Пытаюсь настроить соединение через GPRS.
На сайте Velcom нашёл инструкцию
Всё сделал как в ней написано (тока вместо USB0 у меня ACM0)
При подключении (pppd call gprs nodetach) написано следующее

Код: Выделить всё

Sep 22 16:03:11 Humans pppd[9209]: pppd 2.4.4 started by humans, uid 1000 
Sep 22 16:03:12 Humans chat[9211]: abort on (\nBUSY\r) 
Sep 22 16:03:12 Humans chat[9211]: abort on (\nERROR\r) 
Sep 22 16:03:12 Humans chat[9211]: abort on (\nNO ANSWER\r) 
Sep 22 16:03:12 Humans chat[9211]: abort on (\nNO CARRIER\r) 
Sep 22 16:03:12 Humans chat[9211]: abort on (\nNO DIALTONE\r) 
Sep 22 16:03:12 Humans chat[9211]: abort on (\nRINGING\r\n\r\nRINGING\r) 
Sep 22 16:03:12 Humans chat[9211]: send (^MAT^M) 
Sep 22 16:03:12 Humans chat[9211]: timeout set to 12 seconds 
Sep 22 16:03:12 Humans chat[9211]: expect (OK) 
Sep 22 16:03:12 Humans chat[9211]: ^MAT^M^M 
Sep 22 16:03:12 Humans chat[9211]: OK 
Sep 22 16:03:12 Humans chat[9211]:  -- got it  
Sep 22 16:03:12 Humans chat[9211]: send (ATH^M) 
Sep 22 16:03:12 Humans chat[9211]: expect (OK) 
Sep 22 16:03:12 Humans chat[9211]: ^M 
Sep 22 16:03:12 Humans chat[9211]: ATH^M^M 
Sep 22 16:03:12 Humans chat[9211]: OK 
Sep 22 16:03:12 Humans chat[9211]:  -- got it  
Sep 22 16:03:12 Humans chat[9211]: send (ATE1^M) 
Sep 22 16:03:12 Humans chat[9211]: expect (OK) 
Sep 22 16:03:12 Humans chat[9211]: ^M 
Sep 22 16:03:12 Humans chat[9211]: ATE1^M^M 
Sep 22 16:03:12 Humans chat[9211]: OK 
Sep 22 16:03:12 Humans chat[9211]:  -- got it  
Sep 22 16:03:12 Humans chat[9211]: send (AT+CGDCONT=1,"IP","web.velcom.by"^M) 
Sep 22 16:03:13 Humans chat[9211]: expect (OK) 
Sep 22 16:03:13 Humans chat[9211]: ^M 
Sep 22 16:03:13 Humans chat[9211]: AT+CGDCONT=1,"IP","web.velcom.by"^M^M 
Sep 22 16:03:13 Humans chat[9211]: OK 
Sep 22 16:03:13 Humans chat[9211]:  -- got it  
Sep 22 16:03:13 Humans chat[9211]: send (ATD*99***1#^M) 
Sep 22 16:03:13 Humans chat[9211]: timeout set to 22 seconds 
Sep 22 16:03:13 Humans chat[9211]: expect (CONNECT) 
Sep 22 16:03:13 Humans chat[9211]: ^M 
Sep 22 16:03:14 Humans chat[9211]: ATD*99***1#^M^M 
Sep 22 16:03:14 Humans chat[9211]: CONNECT 
Sep 22 16:03:14 Humans chat[9211]:  -- got it  
Sep 22 16:03:14 Humans pppd[9209]: Serial connection established. 
Sep 22 16:03:14 Humans pppd[9209]: Using interface ppp0 
Sep 22 16:03:14 Humans pppd[9209]: Connect: ppp0 <--> /dev/ttyACM0 
Sep 22 16:03:15 Humans pppd[9209]: Remote message: Congratulations! 
Sep 22 16:03:15 Humans pppd[9209]: PAP authentication succeeded 
Sep 22 16:03:15 Humans pppd[9209]: LCP terminated by peer 
Sep 22 16:03:16 Humans pppd[9209]: Modem hangup 
Sep 22 16:03:16 Humans pppd[9209]: Connection terminated. 
Sep 22 16:03:17 Humans pppd[9209]: Exit.
Подскажите пожалуйста, почему modem делает hangup?
И как сделать чтобы он не вешал трубку?

Humans
Заглянувший
Сообщения: 2
Зарегистрирован: 22 сен 2008, 16:01

Re: GPRS через USB Xubuntu

Сообщение Humans »

Через wvdial тоже пробовал. То же самое. PPP demon has died: A modem hang up the phone (exit code = 16)
Вот содержимое wvdial.conf

Код: Выделить всё

[Dialer velcom]
Modem = /dev/ttyACM0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","web.velcom.by"
ISDN = 0
Dial Attempts = 1
Modem Type = USB Modem
Dial Command = ATDP  
Phone = *99***1#
Phone1 = *99***1# 
Username = web
Password = web
Auto DNS = on
New PPPD = yes
Пробовал чере винду подключить - все работает...
Ничего не понимаю... Подскажите чтонить?

Аватара пользователя
Llama
Неотъемлемая часть форума
Сообщения: 9749
Зарегистрирован: 06 фев 2002, 11:40
Откуда: Менск

Re: GPRS через USB Xubuntu

Сообщение Llama »

Humans, попробуйте запустить с опицей 'debug' - pppd call gprs nodetach debug - более подробный лог поместите сюда плс.
Опыт растет прямо пропорционально выведенному из строя оборудованию

satgluq
Интересующийся
Сообщения: 40
Зарегистрирован: 20 июл 2007, 13:04

Re: GPRS через USB Xubuntu

Сообщение satgluq »

А телефон чаем не Samsung?

Ответить