LINUX.ORG.RU

LInux+PPP+Bluetooth+GPRS = не работает


0

0

Немогу выйти в интернет через связку LInux+PPP+Bluetooth+GPRS.

Сам по себе bluetooth работает нормально. Телефон как модем прекрастно отвечает через /dev/rfcomm0. Набирает номера и т.д.

Но ни KPPP ни Kinternet (Suse10.2) не могут выйти в инет. Таймаут PPPD. Кто-нибудь сталкивался?

Инициализация: ============== ATZ OK AT+CGDCONT=1,"IP","internet.mts.ru" OK ATM1L1 OK ATX3 OK ATDT*99**1*1# CONNECT

А это debug: ========== Feb 23 20:24:52 ded pppd[6428]: Plugin passwordfd.so loaded. Feb 23 20:24:52 ded pppd[6428]: pppd 2.4.4 started by ded_mopozzz, uid 1000 Feb 23 20:24:52 ded pppd[6428]: using channel 11 Feb 23 20:24:52 ded pppd[6428]: Using interface ppp1 Feb 23 20:24:52 ded pppd[6428]: Connect: ppp1 <--> /dev/rfcomm0 Feb 23 20:24:52 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:24:52 ded pppd[6428]: rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>] Feb 23 20:24:52 ded pppd[6428]: sent [LCP ConfAck id=0x1 <asyncmap 0xa0000> <auth pap>] Feb 23 20:24:54 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:24:56 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:24:58 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:00 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:02 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:04 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:06 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:08 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:10 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:12 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:14 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:16 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:18 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:20 ded pppd[6428]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x28442a3> <pcomp> <accomp>] Feb 23 20:25:22 ded pppd[6428]: Terminating on signal 15 Feb 23 20:25:22 ded pppd[6428]: sent [LCP TermReq id=0x2 "User request"] Feb 23 20:25:22 ded pppd[6428]: Hangup (SIGHUP) Feb 23 20:25:22 ded pppd[6428]: Modem hangup Feb 23 20:25:22 ded pppd[6428]: Connection terminated. Feb 23 20:25:22 ded pppd[6428]: Exit.

anonymous

из листинга ни хрена не понял...

Попробуйте через скрипты со своими настройками.

вызывается pppd call gprs.

3 файла в /etc/ppp/peers
-----gprs------------------------------
# $Id: gprs,v 1.4 2004/04/28 08:40:32 mcfrisk Exp $
#
# File:
# gprs
#
# Description:
# Serial cable, IrDA, Bluetooth and USB pppd options for GPRS phones.
# See 'man pppd' for detailed option descriptions.

# Most GPRS phones don't reply to LCP echo's
lcp-echo-failure 0
lcp-echo-interval 0

# Keep pppd attached to the terminal:
# Comment this to get daemon mode pppd
nodetach

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

# Show password in debug messages
show-password

# Connect script:
# scripts to initialize the GPRS modem and start the connection,
# wvdial command is for Orange SPV while other phones should work with chat
#connect /etc/ppp/peers/gprs-connect-chat
connect "/usr/bin/wvdial --chat --config /etc/ppp/peers/gprs-wvdial.conf radiolinja_usb_orange_spv"

# Disconnect script:
# AT commands used to 'hangup' the GPRS connection.
disconnect /etc/ppp/peers/gprs-disconnect-chat

# Serial device to which the GPRS phone is connected:
# /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

# Serial port line speed
115200 # fast enough
#57600 # perhaps usefull with IrDA as some phones don't like
# speeds higher than this

# 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

# 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 "mts"

# 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



------------gprs-connect-chat--------------------
#!/bin/sh
#
# $Id: gprs-connect-chat,v 1.2 2004/02/02 23:19:28 mcfrisk Exp $
#
# File:
# gprs-connect-chat
#
# Description:
# chat script to open Radiolinjas GPRS service with GPRS phones. If ppp
# negotiation stalls, try restarting the phone. To try with other GPRS
# operator setting, change the PDP contex setting. The settings work with
# most Ericsson models, but Nokia 8310 and 30 do not support QoS parameters
# with AT commands, so just delete those lines and it'll work.
#
# Set PDP context CID=1, protocol=IP, APN=internet:
# AT+CGDCONT=1,"IP","internet","",0,0
#
# Set CID=1 QoS requirements from the network, not supported by Nokia:
# AT+CGQREQ=1,0,0,0,0,0
#
# Set CID=1 minimum acceptable QoS parameters, not supported by Nokia:
# AT+CGQMIN=1,0,0,0,0,0
#
# 'Call' CID=1 (activate PDP context one, perform GPRS attach):
# ATD*99***1#
#
# Some phones like the Orange SPV (yes, the Microsoft Smartphone) use this
# dial string to start GPRS connection:
# ATD*99#
#
# The actual chat script:
exec chat \
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 "\ndefining PDP context...\n" \
OK ATH \
OK ATE1 \
OK 'AT+CGDCONT=1,"IP","internet","",0,0' \
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"



--------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"



-----------gprs-wvdial.conf-------------
# File:
#
# $Id: gprs-wvdial.conf,v 1.3 2004/04/27 21:44:35 mcfrisk Exp $
#
# gprs-wvdial.conf
#
# Description:
# Wvdial settings for different GPRS phones and operators. See wvdial man pages
# for more help. Below are the service specific settings, which should be given
# by the operator - at least the
#
# Set PDP (Packet Data Protocol) context CID (Context ID) = 1 (an index sort of
# since a phone may have many different GPRS settings), protocol = IP,
# APN (Access Point Name) = "internet":
# AT+CGDCONT=1,"IP","internet","",0,0
#
# Set CID=1 QoS (Quality of Service) requirements from the network, not
# supported by Nokia phones:
# AT+CGQREQ=1,0,0,0,0,0
#
# Set CID=1 minimum acceptable QoS parameters, not supported by Nokia phones:
# AT+CGQMIN=1,0,0,0,0,0
#
# Call CID=1 which activate PDP context one and perform GPRS attach:
# ATD*99***1#
#
# Some phones seem to have only one CID, in which case the CID can be omitted
# when calling:
# ATD*99#
#
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0


[Dialer radiolinja_usb_orange_spv]
Modem = /dev/ttyUSB0
Baud = 115200
Init1 = ATH
Init2 = ATE1
Init3 = AT+CGDCONT=1,"IP","internet.mts.ru","0.0.0.0",0,0
# Some phones like the NEC DB7000 don't like empty strings, so an address must
# be provided
#Init3 = AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
# Some phones don't like the quality of service parameters:
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0
Dial Command = ATD
# Phone = *99#
Phone = *99***1#
Username = mts
Password = mts


soomrack ★★★★★
()
Ответ на: комментарий от soomrack

Всё равно не работает :( Причём откликается на все команды...

P.S.:мой телефон SAMSUNG SGH-S400i

===========================================

# pppd call gprs

--> WvDial: Internet dialer version 1.54.0

--> Initializing modem.

--> Sending: ATH

ATH

OK

--> Sending: ATE1

ATE1

OK

--> Sending: AT+CGDCONT=1,"IP","internet.mts.ru","0.0.0.0",0,0

AT+CGDCONT=1,"IP","internet.mts.ru","0.0.0.0",0,0

OK

--> Modem initialized.

--> Sending: ATD*99**1*1#

--> Waiting for carrier.

ATD*99**1*1#

CONNECT

--> Carrier detected. Waiting for prompt.

--> Don't know what to do! Starting pppd and hoping for the best.

Serial connection established.

using channel 2

Using interface ppp0

Connect: ppp0 <--> /dev/rfcomm0

sent [LCP ConfReq id=0x1 <asyncmap 0xa0000>]

rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]

sent [LCP ConfAck id=0x1 <asyncmap 0xa0000> <auth pap>]

sent [LCP ConfReq id=0x1 <asyncmap 0xa0000>]

sent [LCP ConfReq id=0x1 <asyncmap 0xa0000>]

sent [LCP ConfReq id=0x1 <asyncmap 0xa0000>]

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

А сие выставлять пробовали?

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

Если не получится, то можно попробовать поэкспериментировать с другими параметрами.

soomrack ★★★★★
()
Ответ на: комментарий от soomrack

>А сие выставлять пробовали? Да. Игрался со всеми параметрами. Ничего не помогает. В Винде работает.

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

>А сие выставлять пробовали? Да. Игрался со всеми параметрами. Ничего не помогает. В Винде работает.

Где-то видел какие-то заметки про решение проблем с подключением для каких-то телефонов, ща попробую вспомнить где.

soomrack ★★★★★
()
Ответ на: комментарий от anonymous

>Ни одно решение не помогает :(

Тогда, скорее всего, все решается очень глупо.

ЗЫ: Я, например, 2 дня не мог залогиниться на один сайт. Думал пароль неправильно вспомнил. Потом меня осенило: я куки отключил. Вот так. Думаю у Вас тоже какая-то аналогичная фигня.

soomrack ★★★★★
()
Ответ на: комментарий от soomrack

>все решается очень глупо.

Я это даже чувствую :)

Но всё же есть обмен между модемом и pppd, и вполне однозначно модему что то надо:

Feb 25 15:23:37 ded pppd[3668]: Connect: ppp0 <--> /dev/rfcomm0

Feb 25 15:23:38 ded pppd[3668]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa326388c> <pcomp> <accomp>]

Feb 25 15:23:38 ded pppd[3668]: rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]

Feb 25 15:23:38 ded pppd[3668]: sent [LCP ConfAck id=0x1 <asyncmap 0xa0000> <auth pap>]

Feb 25 15:23:38 ded pppd[3668]: rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>]

Feb 25 15:23:38 ded pppd[3668]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xa326388c>]

Feb 25 15:23:38 ded pppd[3668]: rcvd [LCP ConfNak id=0x2 <asyncmap 0xa0000>]

Feb 25 15:23:38 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:40 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:42 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:44 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:46 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:48 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:50 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:52 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

Feb 25 15:23:54 ded pppd[3668]: sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0xa326388c>]

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