LINUX.ORG.RU

GPRS TELE2


0

0

Люди,помогите!Пытаюсь уже два дня завести BlueTooth GPRS на tele2. У них пароль и логин не используются, а kppp их требует. пытался через скрипт: телефон после инициализации выдает пару смайлов в лог и все.Куда копать?

используй pppd
звонить так:
pppd call mgsm

вот 2 настроечных файла - изменить по вкусу:



scyld:/home/scaldov # cat /etc/ppp/mgsm-script

ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT DELAYED
TIMEOUT 60
'' 'AT+CGDCONT=1,"IP","internet"'
OK-AT-OK "ATDT*99***1#"
CONNECT \d\c




scyld:/home/scaldov # cat /etc/ppp/peers/mgsm

ipcp-accept-local
ipcp-accept-remote
noipdefault
debug
usepeerdns
mtu 576
#novj
#nobsdcomp
#novjccomp
nopcomp
#noaccomp
noauth
maxfail 0
holdoff 3
persist
ifname mgsm
defaultroute
/dev/rfcomm0 230400
logfile /var/log/pppd.mgsm
connect "/usr/sbin/chat -v -f /etc/ppp/mgsm-script"

scyld
()
Ответ на: комментарий от proDOOMman

Вот мои конфиги, телефон Benq-Siemens S 68, Tele 2. Звонить pon gprs.

#################/etc/ppp/peers/gprs#################
# Most GPRS phones don't reply to LCP echo's
lcp-echo-failure 0
lcp-echo-interval 0

# Keep pppd attached to the terminal:
nodetach

# Debug info from pppd:
# Comment this off, if you don't need more info
debug

# Show password in debug messages
show-password

connect /etc/ppp/peers/gprs-connect-chat

disconnect /etc/ppp/peers/gprs-disconnect-chat

# /dev/ttyS0 for serial port (COM1 in Windows), 
# /dev/ircomm0 for IrDA,
# /dev/ttyUB0 for Bluetooth (Bluez with rfcomm running) and
# /dev/ttyUSB0 for USB
#/dev/ttyS0	# serial port one
#/dev/ttyS1	# serial port two
#/dev/ircomm0	# IrDA serial port one
/dev/rfcomm0	# Bluetooth serial port one
#/dev/ttyUSB0	# USB serial device, for example Orange SPV

115200
#57600

# Hardware flow control:
# Use hardware flow control with cable, Bluetooth and USB but not with IrDA.
crtscts  # serial cable, Bluetooth and USB, on some occations with IrDA too
#nocrtscts # IrDA

# Ignore carrier detect signal from the modem:
local

# IP addresses:
# - accept peers idea of our local address and set address peer as 10.0.0.1 
# (any address would do, since IPCP gives 0.0.0.0 to it)
# - if you use the 10. network at home or something and pppd rejects it,
# change the address to something else 
:10.0.0.1

# pppd must not propose any IP address to the peer!
noipdefault

# Accept peers idea of our local address
ipcp-accept-local

# Add the ppp interface as default route to the IP routing table
defaultroute

# Newer pppd's also support replacing the default route, if one is 
# already present, when the GPRS connetion should be set as the default route
# to the network
#replacedefaultroute

# DNS servers from the phone:
# some phones support this, some don't.
usepeerdns

# ppp compression:
# ppp compression may be used between the phone and the pppd, but the 
# serial connection is usually not the bottleneck in GPRS, so the 
# compression is useless (and with some phones need to disabled before 
# the LCP negotiations succeed).
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
noccp

# The phone is not required to authenticate:
noauth

# Username and password:
# If username and password are required by the APN, put here the username 
# and put the username-password combination to the secrets file: 
# /etc/ppp/pap-secrets for PAP and /etc/ppp/chap-secrets for CHAP 
# authentication. See pppd man pages for details.
# Example, Radiolinja operator pap-secrets: 
# "rlnet"         *       "internet"	*
#user ""

# The persist tries to reopen the connection if it is dropped. This
# is usefull for example with a Nokia 7650 which only manages to
# 'dial' with every second attempt or when the network likes to drop the
# connection every now and then. It's not fun when the over-night 
# 'apt-get dist-upgrade -d -y' fails constantly...
persist
maxfail 99

# Asyncmap:
# some phones may require this option.
#asyncmap 0xa0000

# No magic:
# some phones may require this option.
#nomagic

# Require PAP authentication:
# some phones may require this option.
#require-pap

mtu 296


#################/etc/ppp/peers/gprs-connect-chat#################
#!/bin/sh
#
# $Id: gprs-disconnect-chat,v 1.3.2.2 2006/02/14 20:20:17 mcfrisk Exp $
#
# File:
# gprs-disconnect-chat
#
# send break
exec /usr/sbin/chat -V -s -S	\
ABORT		"BUSY"		\
ABORT		"ERROR"		\
ABORT		"NO DIALTONE"	\
SAY		"\nSending break to the modem\n"	\
""		"\K"		\
""		"\K"		\
""		"\K"		\
""		"\d\d+++\d\dATH"	\
SAY		"\nPDP context detached\n"


#################/etc/ppp/peers/gprs-disconnect-chat#################
#!/bin/sh
#
# $Id: gprs-disconnect-chat,v 1.3.2.2 2006/02/14 20:20:17 mcfrisk Exp $
#
# File:
# gprs-disconnect-chat
#
# send break
exec /usr/sbin/chat -V -s -S    \
ABORT           "BUSY"          \
ABORT           "ERROR"         \
ABORT           "NO DIALTONE"   \
SAY             "\nSending break to the modem\n"        \
""              "\K"            \
""              "\K"            \
""              "\K"            \
""              "\d\d+++\d\dATH"        \
SAY             "\nPDP context detached\n"

asdas
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.