PPP mit UMTS USB Stick Huawei E172

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
clauer
Beiträge: 25
Registriert: 03.05.2011 23:13:14

PPP mit UMTS USB Stick Huawei E172

Beitrag von clauer » 20.05.2011 14:05:49

Hallo,

der oben genannte Stick wird unter ttyusb0 und ttyusb1 erkannt. Wenn ich jetzt in /etc/ppp/peers/provider
als genutztes Modem /dev/ttyusb0 eintrage kommt, wenn ich die Verbindung mit "pon" aktivieren will folgende Fehlermeldung:
/usr/sbin/pppd: In file /etc/ppp/peers/provider: unrecognized option '/dev/ttyusb0'

DeletedUserReAsG

Re: PPP mit UMTS USB Stick Huawei E172

Beitrag von DeletedUserReAsG » 20.05.2011 15:22:43

Heißt das Devicefile nicht 'ttyUSB0'? Das Ganze ist Case-Sensitive …

cu,
niemand

clauer
Beiträge: 25
Registriert: 03.05.2011 23:13:14

Re: PPP mit UMTS USB Stick Huawei E172

Beitrag von clauer » 20.05.2011 15:30:14

OK. Problem gelöst. ttyusb0 ist falsch, es muss ttyUSB0 lauten.

"pon" kann jetzt erfolgreich ausgeführt werden. Aber irgendetwas stimmt noch nicht mit der Konfiguration,
es kommt noch keine Verbindung zu Stande.

Hier meine /etc/ppp/peers/provider:

Code: Alles auswählen

# example configuration for a dialup connection authenticated with PAP or CHAP
#
# This is the default configuration used by pon(1) and poff(1).
# See the manual page pppd(8) for information on all the options.

# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "User"

# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T ********"

# Serial device to which the modem is connected.
/dev/ttyUSB0

# Speed of the serial line.
115200

# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute

# Makes pppd "dial again" when the connection is lost.
persist

# Do not ask the remote to authenticate.
noauth
Und hier meine /etc/chatscripts/gprs:

Code: Alles auswählen

# You can use this script unmodified to connect to cellular networks.
# The APN is specified in the peers file as the argument of the -T command
# line option of chat(8).

# For details about the AT commands involved please consult the relevant
# standard: 3GPP TS 27.007 - AT command set for User Equipment (UE).
# (http://www.3gpp.org/ftp/Specs/html-info/27007.htm)

ABORT           BUSY
ABORT           VOICE
ABORT           "NO CARRIER"
ABORT           "NO DIALTONE"
ABORT           "NO DIAL TONE"
ABORT           "NO ANSWER"
ABORT           "DELAYED"
ABORT           "ERROR"

# cease if the modem is not attached to the network yet
ABORT           "+CGATT: 0"

""              AT
TIMEOUT         12
OK              ATH
OK              ATE1

# +CPIN provides the SIM card PIN
#OK             "AT+CPIN=1234"

# +CFUN may allow to configure the handset to limit operations to
# GPRS/EDGE/UMTS/etc to save power, but the arguments are not standard
# except for 1 which means "full functionality".
#OK             AT+CFUN=1

OK              AT+CGDCONT=1,"IP","\T","",0,0
OK              ATD*99#
TIMEOUT         22
CONNECT         ""
Danke.

Chris

Antworten