Pagina 1 di 1

GPRS && Bluetooth @ Slackware [Risolto]

Inviato: ven 8 set 2006, 22:40
da punish3r
Ciao a tutti!
da qualche giorno sto provando a configurare una connessione gprs attraverso bluetooth su slackware.
Ho un problema pero' nella connessione.
Dopo aver lanciato

Codice: Seleziona tutto

pppd call gprs
mi avvia la connessione ma non riesce a connettersi anche se il pc è autorizzato nel mio Nokia 6600.
Posto di seguito i codici degli script di connessione e l'output di pppd call gprs

Inviato: ven 8 set 2006, 22:43
da punish3r
/etc/ppp/peers/gprs:

Codice: Seleziona tutto

# File:
# gprs
#
# Description:
# Serial cable, IrDA, Bluetooth and USB pppd options for GPRS phones.

# 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

# Hardware flow control:
# Use hardware flow control with cable, Bluetooth and USB but not with IrDA.
crtscts  # serial cable, Bluetooth and USB
#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

# 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 "rlnet"
#"" * ""

# 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
# File:
# gprs
#
# Description:
# Serial cable, IrDA, Bluetooth and USB pppd options for GPRS phones.

# 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

# Hardware flow control:
# Use hardware flow control with cable, Bluetooth and USB but not with IrDA.
crtscts  # serial cable, Bluetooth and USB
#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

# 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 "rlnet"
#"" * ""

# 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

Inviato: ven 8 set 2006, 22:44
da punish3r
/etc/ppp/peers/chatscripts/gprs-connect-chat

Codice: Seleziona tutto

#!/bin/sh
# 
# 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.wind","",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#
#
# 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#				\
	TIMEOUT		22				\
	SAY		"\nwaiting for connect...\n"	\
	CONNECT		""				\
	SAY		"\nConnected." \
	SAY		"\nIf the following ppp negotiations fail,\n"	\
	SAY		"try restarting the phone.\n"

Inviato: ven 8 set 2006, 22:44
da punish3r
ed ecco l'output di pppd call gprs:

Codice: Seleziona tutto

defining PDP context...

OK

OK

OK
AT+CGDCONT=1,"IP","internet","",0,0
OK
waiting for connect...

ATD*99#
CONNECT
Connected.
If the following ppp negotiations fail,
try restarting the phone.

Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x9c2203cd>]
rcvd [LCP ConfRej id=0x1 <magic 0x9c2203cd>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
No auth is possible
sent [LCP ConfRej id=0x0 <auth pap>]
rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0xa0000>]
sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0xa0000>]
sent [LCP EchoReq id=0x0 magic=0x0]
kernel does not support PPP filtering
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]
sent [IPCP ConfNak id=0x0 <addr 10.0.0.1>]
rcvd [LCP EchoRep id=0x0 magic=0x0]
rcvd [LCP TermReq id=0x2]
LCP terminated by peer
sent [LCP TermAck id=0x2]
Connection terminated.

Sending break to the modem

PDP context detached
Serial link disconnected.
Modem hangup

Inviato: ven 8 set 2006, 22:45
da punish3r
ringrazio tutti coloro che mi aiuteranno ;)

Inviato: ven 8 set 2006, 22:48
da punish3r
comunque non mi convince il messaggio di output:

Codice: Seleziona tutto

kernel does not support PPP filtering
dove posso abilitarlo nel kernel (sempre se si puo'...)?

Inviato: sab 9 set 2006, 14:52
da syaochan
In Device Drivers -> Network Device Support -> PPP (point-to-point protocol) support
(se usi il 2.6)

Inviato: sab 9 set 2006, 15:20
da pennega
prova a vedere se in questa guida trovi la soluzione

http://www.spaghettilinux.org/guide-scr ... oth-e-gprs

Inviato: lun 11 set 2006, 21:37
da punish3r
syaochan ha scritto:In Device Drivers -> Network Device Support -> PPP (point-to-point protocol) support
(se usi il 2.6)
grazie

Inviato: lun 2 ott 2006, 2:30
da punish3r
ho risolto tutto e ho scritto un how-to sulla configurazione del bluetooth su slack, anche se è in continuo aggiornamento ;)

http://www.orvietolug.org/howto/linux-b ... h_v0.3.pdf

W slackware! :D

Inviato: mar 3 ott 2006, 0:11
da pennega
io ti consiglierei di tagliere il

Codice: Seleziona tutto

make mrproper
sulla configurazione del kernel... in quanto poi quando dai il make ti ricompila tutto... invece se non lo dai ti compila solo le parti non compilate in precedenza o quelle che necessitano dell' inclusione dei nuovi supporti, con un bel risparmi di tempo

Inviato: dom 8 ott 2006, 20:57
da punish3r
giusto :)