[Dialer Defaults]
Modem = /dev/ircomm0
Baud = 115200
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","www.umc.ua"
Phone = *99***1#
Username = " "
Password = " "
не подключается. что нетак ?
вывод консоли:
localhost ~ # wvdial
--> WvDial: Internet dialer version 1.56
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","hyper.net"
AT+CGDCONT=1,"IP","hyper.net"
OK
--> Modem initialized.
--> Sending: ATDT*99**1*1#
--> Waiting for carrier.
ATDT*99**1*1#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Connected, but carrier signal lost! Retrying...
--> Sending: ATDT*99**1*1#
--> Waiting for carrier.
кстати еще одно: у меня логин и пароль должны быть пустыми, если я пробел убираю в конфиге внутри логина и пароля - то плачется что нельзя так делать. подключаюсь к украинскому моб. оператору: mts
wvdial+gprs (невыходит)
Модератор: /dev/random
-
Black
- Сообщения: 1104
- ОС: ArchLinux
Re: wvdial+gprs
А если убрать username и password совсем?
Компьютер служит для решения тех проблем, которых до изобретения компьютера не существовало
-
n1kt0
- Сообщения: 289
- ОС: GNU/Gentoo
-
targeti
- Сообщения: 45
- ОС: Gentoo
Re: wvdial+gprs
Init2 = AT+CGDCONT=1,"IP","www.umc.ua"
--> Sending: AT+CGDCONT=1,"IP","hyper.net"
AT+CGDCONT=1,"IP","hyper.net"
OK
:-)
Кстати, на сайте МТС-Украина логин и пароль указаны как "mts".
Там не нужно дополнительно активировать Гипер.нет через центр обслуживания абонентов (номер 111)?
-
fa_gtr_michael
- Сообщения: 153
- ОС: Gentoo Linux
Re: wvdial+gprs
если инет gprs\edge - то луше чистого pppd нету
сам пользуюсь gprs не один год...
у тебя какой мобил?
если Nokia Siemes Sony Ericson то номер дозвона такой *99#
если нужно могу кинуть файлы для pppd
сам пользуюсь gprs не один год...
у тебя какой мобил?
если Nokia Siemes Sony Ericson то номер дозвона такой *99#
если нужно могу кинуть файлы для pppd
Как хорошо быть свободным - Ах как жаль что она(свобода) дана не всем!!
-
Supervisor
- Сообщения: 147
- ОС: Sabayon ~x86
Re: wvdial+gprs
Код: Выделить всё
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet"
Modem Type = USB Modem
Phone = *99#
ISDN = 0
Username = megafon
Init1 = ATZ
Password = megafon
Modem = /dev/ttyACM0
Baud = 460800мой конфиг для тела Моторола С380 подключенного через Усб шнурок.
-
Sekta-N
- Сообщения: 854
- ОС: Зоопарк
Re: wvdial+gprs
если инет gprs\edge - то луше чистого pppd нету
и что, ежик от этого будет быстрее работать?
Нет тут подписи и не будет.
-
kknight
- Сообщения: 756
Re: wvdial+gprs
Зачем вам пляски с wvdial? Вот тут все написано:
http://www.linux-online.ru/desktop/users/d...ail.php?ID=1505
Те же настройки можно вбить в kppp при желании.
-
quadrik
- Сообщения: 350
- ОС: gentoo, только на серверах
Re: wvdial+gprs
Тоже поругаю за vwdial
Я сделал через стандартный init скрипт:
/etc/conf.d/net
gprs-moto - это для usb подключения. для bluetooth поставить gprs-bt-beeline
/etc/ppp/peers/gprs-moto
/etc/ppp/peers/gprs-bt-beeline
/etc/ppp/chatscripts/gprs-moto-connect-chat
/etc/ppp/chatscripts/gprs-bt-beeline
/etc/ppp/gprs-options
установка соединения по /etc/init.d/net.ppp0 start
Я сделал через стандартный init скрипт:
/etc/conf.d/net
Код: Выделить всё
config_ppp0=( "ppp" )
link_ppp0="pty \"pppd call gprs-moto\""gprs-moto - это для usb подключения. для bluetooth поставить gprs-bt-beeline
/etc/ppp/peers/gprs-moto
Код: Выделить всё
#
# pppd options for the Motorola T260
# Replace the obvious lines with your username and modem device
#
# $Id: gprs-moto,v 1.1 2001/12/10 16:17:15 tjd21 Exp $
name tjd21
/dev/ttyACM0
# Serial port line speed and options
#57600
# Control character handling
asyncmap 20A0000
escape FF
# Generic GPRS options
file /etc/ppp/gprs-options
# Chat scripts
connect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-moto-connect-chat"
#disconnect "/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-disconnect-chat"/etc/ppp/peers/gprs-bt-beeline
Код: Выделить всё
lcp-echo-failure 0
lcp-echo-interval 0
/dev/rfcomm0
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/gprs-bt-beeline"
115200
crtscts
ipcp-accept-local
noauth
usepeerdns
defaultroute
noipdefault/etc/ppp/chatscripts/gprs-moto-connect-chat
Код: Выделить всё
#
# chat script to open Sonera GPRS service with a Motorola Timeport
#
# If ppp negotiation stalls, try restarting the phone.
# For more details of what the commands do, see ETSI TS 127 007
# (AT command set for User Equipment), at http://www.etsi.org/,
# and your phone's documentation.
#
# $Id: gprs-moto-connect-chat,v 1.5 2001/12/18 16:04:25 tjd21 Exp $
# Boilerplate
#
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT '\nRINGING\r\n\r\nRINGING\r'
SAY "GPRS modem init: press <ctrl>-C to disconnect"
# Wake up the modem
#
TIMEOUT 5
'' 'AT'
OK-ATQ0V1&C1-OK 'ATE1'
ABORT 'ERROR'
TIMEOUT 12
# Reset to the factory defaults
# Also, use '+CME ERROR' codes for ME errors, 'ERROR' for syntax errors
#
OK 'AT&F'
OK 'AT+CMEE=2'
# The Motorola has only one PDP context; we have no choice.
# cid = 1 (which context)
# PDP_type = IP (packet type)
# APN = mob.cl.cam.ac.uk (GGSN)
# PDP_addr = "0.0.0.0" (our address, null means they choose)
# data_comp = 0 (data compression)
# head_comp = 0 (header compression)
#
OK 'AT+CGDCONT=1,"IP","internet.beeline.ru","0.0.0.0",0,0'
SAY "\n + defining PDP context"
# QoS requested, and minimum accptable, for our context
# (<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean>)
# "0" means let the network pick.
#
OK 'AT+CGQREQ=1,0,0,0,0,0'
SAY "\n + defining QoS requirements"
OK 'AT+CGQMIN=1,0,0,0,0,0'
# Attach to the GPRS service. Strictly, we don't need this step,
# as AT+CGDATA will do it for us, but doing it explicitly makes it
# a little easier to debug.
#
TIMEOUT 45
OK 'AT+CGATT=1'
SAY "\n + attaching to GPRS"
# Enter data state
# Motorola doesn't do the CGDATA command, use the magic number instead
OK 'ATD*99#'
SAY "\n + requesting data connection"
CONNECT ''
SAY "\n + connected"/etc/ppp/chatscripts/gprs-bt-beeline
Код: Выделить всё
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
'' 'AT'
'OK' 'AT+CGDCONT=1,"IP","internet.beeline.ru"'
'OK' 'ATDT*99#'
TIMEOUT 30
CONNECT
ogin: ''
assword: ''/etc/ppp/gprs-options
Код: Выделить всё
# General options for making GPRS connections
#
# $Id: gprs-options,v 1.2 2002/01/15 16:28:40 tjd21 Exp $
# Change this line to 'defaultroute' if you want to use the GPRS link
# as your gateway.
defaultroute
usepeerdns
# Comment this line out to let pppd background itself.
nodetach
# Turn this on to see all the PPP negotiations
# debug
# *** Below this line you probably won't need to change.
# Limit the MTU (workaround for an oddity in the VPN)
mtu 1400
# Use hardware flow conrtrol
crtscts
# Let the phone figure out all the IP addresses
noipdefault
ipcp-accept-local
ipcp-accept-remote
# No ppp compression
novj
novjccomp
# For sanity, keep a lock on the serial line
lockустановка соединения по /etc/init.d/net.ppp0 start
-
Sekta-N
- Сообщения: 854
- ОС: Зоопарк
Re: wvdial+gprs
если инет gprs\edge - то луше чистого pppd нету
и что, ежик от этого будет быстрее работать?
Зачем вам пляски с wvdial? Вот тут все написано:
http://www.linux-online.ru/desktop/users/d...ail.php?ID=1505
Те же настройки можно вбить в kppp при желании.
Не понял, а я тут причем, я спросил только при подъеме через консоль вместо wvdial работать будет-ли быстрее (впрочем я сильно очень сомневаюсь).
А поднимаю я через kppp
Нет тут подписи и не будет.
-
Doka
- Сообщения: 715
- Статус: ASIC Design Engineer
- ОС: RHEL4
Re: wvdial+gprs
мне встречался в сети такой вариант задания пустых логина и пасса:
Код: Выделить всё
Username = \n
Password = \nNever stop thinking..................................................................